skills/docs-writing-publishing/document-writer/SKILL.md
Write or update technical documentation from the real codebase and project files. Use whenever the user asks for README, API docs, architecture guides, user guides, CONTRIBUTING docs, migration notes, or JSDoc/code comments, and also when they want technical documentation rewritten into natural Chinese with correct terminology and formatting.
npx skillsauth add bahayonghang/my-claude-code-settings document-writerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Write or update technical documentation for the target project at $ARGUMENTS.
$ARGUMENTS is empty, report: Error: Please provide the target path and the documentation task (for example: './docs/api.md update the payment API docs' or './src/utils.ts add JSDoc for the public helpers').$SKILL_DIR/references/WORKFLOW.md, $SKILL_DIR/references/DOCUMENT_TYPES.md, and $SKILL_DIR/references/VERIFICATION_CHECKLIST.md before drafting.$SKILL_DIR/references/CHINESE_TECH_WRITING.md.Determine the closest document type before writing:
README.md or overview docsCONTRIBUTING, maintenance, migration, or release notesInfer the type from the requested file, target path, and user request. Ask only if multiple document types would lead to materially different outputs.
Use the actual project files as the source of truth:
README.md, CONTRIBUTING.md, MIGRATION.mddocs/ for user, API, or architecture docsDOCUMENT_TYPES.md.TODO: only for facts that cannot be derived from the repo and are necessary for completeness.Walk through VERIFICATION_CHECKLIST.md and confirm:
development
Turn vague or complex Codex tasks into strong `/goal` commands with outcome, verification, constraints, boundaries, iteration policy, completion evidence, and pause/block conditions. Use when the user asks for Codex goal instructions, Goal 指令, 目标指令, `/goal` prompts, 中文 Goal 模板, plan-to-goal interviews, success criteria, verification commands, or bounded agent work definitions.
tools
Write, debug, and validate ast-grep structural code search rules. Use this skill when the user needs syntax-aware code search, AST pattern matching, structural refactor discovery, language-construct queries, or searches that plain text tools like rg can miss, such as finding functions with particular descendants, calls inside specific contexts, missing error handling, React hook shapes, decorators, or other Tree-sitter-backed code structures.
development
Use when the user asks to ground an ambitious proposal, avoid over-grand designs, make a bold direction executable, pressure-test feasibility, prevent "too much vision and too little landing", or turn a strategy/refactor/product idea into the smallest verifiable first move with stop rules. Trigger for requests such as 落地, 先落地, 别太飘, 收一收, 可执行, 可验证, 止损, and for follow-ups after geju-style big-picture thinking. Do not trigger for ordinary code review or implementation unless the user explicitly asks to ground or shrink the plan first.
development
Use when the user explicitly asks to think bigger, open up the design space, challenge conservative design, avoid over-indexing on backward compatibility, escape local-detail fixation, or make a bold high-level product or architecture direction call. Use for strategic reframing, not for ordinary code review, PRD writing, implementation planning, or adversarial risk review.