| name | update-docs |
| description | Synchronize README, docs, and AGENT guidance with the actual codebase and tooling. Use when implementation changed commands, behavior, configuration, architecture, or project structure. |
update-docs
Update repository documentation to match the current implementation.
Phase 1: Inspect the Current Source of Truth
Read the smallest set of files that define behavior:
- entry points and changed source files
- build and dependency manifests
- CI workflows
README.md, docs/, AGENTS.md
docs/development-memo.md when present
Do not update docs from memory. Derive every command and path from the repository.
Phase 2: Update the Right Document
Use this split:
README.md: how to install, run, configure, and use the project
docs/: design rationale, ADRs, requirements, internal notes
AGENTS.md: repo-specific instructions for Codex
For GitReal specifically, keep README.md and docs/development-memo.md aligned on:
- executable name
git-real
- user-facing command
git real
- safety model around
arm, backups, and rescue
- planned Go-based architecture
Common updates:
- build, test, lint, format, or release commands
- config file names and option descriptions
- module layout and entry points
- examples and sample outputs
- workflow or validation requirements
Phase 3: Consistency Check
Verify consistency across docs:
- file paths
- command names
- option flags
- module names
- stated prerequisites
If the repo has no established command for something, say that plainly instead of inventing one.
Phase 4: Report the Update
Summarize in this form:
## Documentation Update
Updated:
- <file>: <what changed>
Open gaps:
- ...
Remaining assumptions:
- ...
Editing Rules
- keep README user-facing and concise
- keep developer guidance close to the code it explains
- prefer exact commands over prose-only instructions
- remove stale claims instead of softening them