원클릭으로
docgen-repo-understanding
Build a global semantic model of the repository for documentation purposes.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Build a global semantic model of the repository for documentation purposes.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Review documentation for human understanding effect; not format or fact-check only.
Analyze repository changes and map them to documentation impact.
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.
| name | docgen-repo-understanding |
| description | Build a global semantic model of the repository for documentation purposes. |
| allowed-tools | Bash, Read, Write, Edit |
Establish a comprehensive, factual understanding of the entire repository before any documentation is written or updated. This skill produces a structured summary that downstream skills (change-impact, tutorial-update) consume as context.
src/, include/).tests/).scripts/docgen/repo_map.py.scripts/docgen/doc_inventory.py.scripts/docgen/example_inventory.py.Read documentation automation rules — extract only the targeted section from AGENTS.md:
sed -n '/## Documentation Automation Rules/,/## AI Customization Layout/p' AGENTS.md
If the heading ## Documentation Automation Rules is not found, stop and report an error. Do NOT fall back to reading the entire file or generic engineering rules.
Run scripts/docgen/repo_map.py --root . --output docs/generated/repo_map_output.md to get the directory tree summary, key entry files, core module locations, and test/example distribution.
Run scripts/docgen/doc_inventory.py --root . --output docs/generated/doc_inventory_output.md to get the current docs index and staleness risk.
Run scripts/docgen/example_inventory.py --root . --output docs/generated/example_inventory_output.md to map examples to tutorial sections.
Read the top-level README, architecture docs, and key header files.
Synthesize a structured understanding summary in docs/generated/repo_understanding_summary.md.
Write the summary to docs/generated/repo_understanding_summary.md with the following sections:
src/main.cpp, include/agent_loop.hpp)./home/user/project/src/main.cpp.sed -n '1,260p' AGENTS.md instead of targeted section reading causes rule miss.scripts/docgen/verify_paths.py docs/generated/repo_understanding_summary.md --root . to confirm all referenced paths are valid.scripts/docgen/verify_links.py docs/generated/repo_understanding_summary.md --root . to confirm internal links resolve.codex exec mode, ensure the working directory is the repo root and Python 3 is available.scripts/docgen/run_repo_understanding.sh to automate the deterministic prep steps, write the docs/generated/*_output.md inputs, and verify docs/generated/repo_understanding_summary.md when that summary already exists.