Prompt file imported from coder-2011/no-circles (
.codex/prompts/update-docs.md). Copyright stays with the author.
/update-docs
Update project documentation to match current code and architecture decisions.
Goal:
- Keep documentation in sync with implementation.
- Maintain required structure:
documentation/subsystems/documentation/files/documentation/appendix/
Required workflow:
- Inspect current branch and working tree:
git branch --show-currentgit status --short
- Review changed files and diffs:
git diff --name-onlygit diff --cached --name-onlygit diff
- Update subsystem docs:
- Ensure each active subsystem has/updates a doc under
documentation/subsystems/.
- Ensure each active subsystem has/updates a doc under
- Update file docs:
- For each created/modified code file, create/update corresponding docs under
documentation/files/.
- For each created/modified code file, create/update corresponding docs under
- Update appendix docs:
- Add/update key terms and concepts in
documentation/appendix/when new vocabulary appears.
- Add/update key terms and concepts in
- Keep top-level docs aligned:
- Reconcile updates with
documentation/vision.mdanddocumentation/architecture.md.
- Reconcile updates with
- Validate documentation index:
- Ensure
documentation/README.mdreflects new/updated docs and reading order.
- Ensure
- Return a concise summary:
- files created/updated
- any missing docs still pending
- suggested next documentation actions
Constraints:
- Do not switch branches.
- Do not amend commits.
- Do not delete docs unless explicitly justified by a code removal.
- Prefer concise, implementation-aligned documentation over speculative content.