一键导入
docgen-change-impact
Analyze repository changes and map them to documentation impact.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Analyze repository changes and map them to documentation impact.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | docgen-change-impact |
| description | Analyze repository changes and map them to documentation impact. |
| allowed-tools | Bash, Read, Write, Edit |
Translate code changes from a "file diff" perspective into a "documentation impact" perspective. This skill bridges the gap between what changed in code and what needs to change in docs.
Before any analysis, read the Documentation Automation Rules from this repository:
sed -n '/## Documentation Automation Rules/,/## AI Customization Layout/p' AGENTS.md
If that command returns nothing (e.g. the heading is missing), fail explicitly with a clear error. Do not proceed without the rules section.
docs/generated/change_facts.json (from scripts/docgen/change_facts.py or changed_context.py --format json). Contains diff_ref, changed_files, public_surface_signals, large_refactor_signals.docs/generated/repo_understanding_summary.md for repository context.Write docs/generated/doc_scope_decision.json only. All paths must be repository-relative. Never emit absolute paths. Target docs are fixed: only README.md and book/src/**/*.md. Do not output a list of "candidate docs" or "affected docs" across the whole repo.
Produce a single JSON file with:
["book/src"] or specific paths under book/src).README.md and README_zh.md if update_readme is true (they are always updated together as a bilingual pair); must include each path in book_dirs_or_chapters and book/src/SUMMARY.md when any book path is in scope. This is the canonical boundary for downstream rework; rationale must not contradict it."none", "add", "delete", "merge", or "reorg" if the change implies directory-level changes.docs/generated/change_facts.json and analyze what the change represents: Did it add new modules, new user-facing capabilities, or new concepts? Or only modify existing behavior?book_dirs_or_chapters, directory_actions can be "none".directory_actions to "add" and specify that a new chapter (or new section) is needed in book_dirs_or_chapters (e.g. a new file under book/src and an entry in SUMMARY.md). Infer the need from the changed files and their meaning — do not rely on path keywords.docs/generated/doc_scope_decision.json; in rationale, state what you inferred (e.g. "New doc automation pipeline added; book should add a chapter for it").reference_context script consumes doc_scope_decision.json; then doc_restructure_or_update (tutorial-update) updates README and book only.docs/generated/change_facts.json (from scripts/docgen/change_facts.py or changed_context.py --format json).codex exec mode should pass the diff range explicitly via environment or argument (e.g. REF=main).Review documentation for human understanding effect; not format or fact-check only.
Guide how to write documentation for quick project understanding; expression order and priorities, not scope or target selection.
Conservative patch skill for the repository homepage README. Enforces skeleton preservation and bilingual sync. Do NOT use for book/tutorial chapters.
Final review pass for teaching quality and readability. Does not rewrite content.
Update or generate tutorial and guide documentation based on repo understanding and change impact.
Verify generated or updated documentation against the actual repository state.