update-docs
Audit and update all project documentation to reflect recent changes
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Menu
Audit and update all project documentation to reflect recent changes
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Baseado na classificação ocupacional SOC
| name | update-docs |
| description | Audit and update all project documentation to reflect recent changes |
Audit and update all project documentation to reflect recent code changes, ensuring docs stay in sync with the codebase.
When user asks to:
| Location | Content | Key Sections |
|---|---|---|
README.md | Project overview, quick start, tech stack | Entry point only, links to docs/ |
docs/ | User-facing docs (Diataxis framework) | Tutorials, how-to, reference, explanation |
AGENTS.md | Agent control manifest | Project structure, tech stack, available skills/rules, commands |
.agents/rules/ | Domain-specific guidelines | Code style, patterns, commands, communication, special considerations |
.agents/skills/ | Task-specific toolkits | Each skill's SKILL.md |
.env.dist | Environment variable reference | All required/optional env vars |
Determine the scope of changes to review:
# If user specifies a range, use it. Otherwise, find recent changes:
git log --oneline --since="2 weeks ago"
git log --oneline HEAD~20..HEAD
# Get a summary of what changed:
git diff --stat <range>
Ask the user for a commit range if not provided. Default to the last 20 commits or 2 weeks, whichever is smaller.
Group changes by their documentation impact:
For each category, note which documentation locations are affected using the mapping:
| Change Type | Docs to Check |
|---|---|
| New command | docs/reference/01-commands-list.md, docs/explanation/02-bot-commands-design.md, docs/index.md |
| New env var | .env.dist, docs/reference/05-environment-variables.md |
| New dependency | README.md, AGENTS.md (tech stack), docs/reference/02-pnpm-scripts.md |
| New pnpm script | docs/reference/02-pnpm-scripts.md, .agents/rules/commands.md |
| Database change | docs/reference/04-database-schema.md |
| New skill/rule | AGENTS.md (available skills/rules) |
| Test changes | docs/explanation/03-testing-strategy.md, .agents/rules/patterns.md |
| Project structure change | docs/reference/03-project-structure.md, AGENTS.md |
For each affected documentation file:
Pay special attention to:
package.json?).env.dist?)Update each affected file following these principles:
.agents/rules/communication.mdReview all changes for:
.env.dist are documented and vice versadocs/index.md links are current and complete# Verify commands still work
pnpm run typecheck
pnpm run lint
README.md checked (entry point still accurate)docs/ files checked and updated for affected topicsdocs/index.md links verifiedAGENTS.md checked: project structure, tech stack, skills, rules, commands.agents/rules/ checked for affected rules.agents/skills/ checked for affected skills.env.dist checked against actual env var usageThe docs/ directory follows the Diataxis framework. Each document must serve one primary purpose:
| Type | Purpose | Question It Answers |
|---|---|---|
| Tutorial | Learning-oriented guided experience | "Can you teach me to...?" |
| How-to guide | Goal-oriented steps | "How do I...?" |
| Reference | Information-oriented lookup | "What is...?" |
| Explanation | Understanding-oriented discussion | "Why...? Can you tell me about...?" |
Current docs/ structure:
tutorials/developers/: 01-your-first-slash-command, 02-database-backed-feature, 03-testing-your-command, 04-autocomplete-handlers, 05-external-api-integration, 06-scheduled-background-tasks, 07-permission-based-accesstutorials/users/: 01-getting-started, 02-using-bot-commands, 03-admin-guidehow-to/: 01-quick-start, 02-development-workflow, 03-deploy-commands, 04-production-testing, 05-contributingreference/: 01-commands-list, 02-pnpm-scripts, 03-project-structure, 04-database-schema, 05-environment-variables, 06-command-interfaces, 07-testing-utilities, 08-error-handlingexplanation/: 01-architecture, 02-bot-commands-design, 03-testing-strategyWhen updating docs, do not mix content types. Move how-to steps out of reference docs, move reference tables out of explanation docs, etc.
Every mention of an external tool, framework, pattern, or standard must include a hyperlink on first mention per document.
docs/ files unless a major new feature clearly warrants one.docs/ files are numbered for ordering. If a new file is needed, pick the next available number.