update-docs
9
总安装量
7
周安装量
#31357
全站排名
安装命令
npx skills add https://github.com/aleister1102/skills --skill update-docs
Agent 安装分布
opencode
7
trae
6
cursor
6
kiro-cli
6
github-copilot
6
Skill 文档
Documentation Updates
Guides you through keeping documentation aligned with code changes. Use it whenever touched code requires corresponding updates in README/docs artifacts.
Quick Start
- Analyze changes: run
update-docs/scripts/doc_impact.sh --base <base-ref> --head <head-ref> - Inspect suggestions: confirm the mapped docs/README files and doc roots before editing
- Update docs: edit the identified files with the required behavior/config descriptions
- Validate: run the repoâs lint/build/check commands (see
agents-md-generator/references/repo_detection_heuristics.mdfor clues) - Commit: stage the doc files and describe the scope of the updates
Generic Workflow
Step 1: Understand the scope
- Use git diff (or your repoâs equivalent) to highlight the code, config, and API changes that need documentation coverage.
- Capture the affected packages/modules so you can trace their docs later.
Step 2: Identify documentation targets
- Run
update-docs/scripts/doc_impact.sh --base <base> --head <head>to list likely files and doc roots; review the candidate files before touching them. - Provide a custom mapping file via
--mapor place one under.codex/docs-mapping.*ordocs/DOCS-MAPPING.*so the script can suggest precise targets. - Reference
references/MAPPING_FORMAT.mdwhen authoring or expanding your mapping file.
Step 3: Update the docs
- Apply edits that clearly describe the change (behavior, API, config, migration) and keep prose aligned with the touched code.
- Use
references/GENERIC_TEMPLATES.mdfor boilerplate sections you can reuse, and track deliverables withreferences/GENERIC_CHECKLIST.md. - Refresh anchors, navigation entries, and related links that point to the updated docs.
Step 4: Validate and finalize
- Execute whichever validation commands your repo uses (lint, tests, doc builds) and record them for future reference.
- Rerun
doc_impact.shif you edited docs outside the original target set to make sure nothing blinded you. - Stage the updated files and include a brief description of what documentation now reflects.
Next.js Mode (optional)
When the repository contains packages/next/src + docs/01-app, the skill switches to Next.js-specific guidance:
doc_impact.shloadsreferences/CODE-TO-DOCS-MAPPING.mdand the previous Next.js heuristics.- Validate with
pnpm lintandupdate-docs/scripts/mdx_quick_check.sh <paths>to keep MDX conventions safe. - Use
references/TEMPLATES.mdxand the MDX conventions inreferences/DOC-CONVENTIONS.mdfor shared App/Pages docs. - Update the App Router source when a Pages Router file uses a
source:frontmatter value. - After correctness edits, run
docs-cleanerif you discover duplications or overlapping guides.
References
references/GENERIC_CHECKLIST.mdâ Generic doc update checklistreferences/GENERIC_TEMPLATES.mdâ Plain Markdown templates for change notesreferences/MAPPING_FORMAT.mdâ How to author repo-specific mappingsreferences/TEMPLATES.mdxâ Next.js templates + related-links snippet (Next.js mode)references/DOC-CONVENTIONS.mdâ Next.js MDX/conventions reference (Next.js mode)references/CODE-TO-DOCS-MAPPING.mdâ Next.js codeâdoc mapping table (Next.js mode)agents-md-generator/references/repo_detection_heuristics.mdâ Discover repo commands and tool hints