with one click
update-docs
// Update documentation files (README.md, CLAUDE.md, assistant-knowledge.ts) based on code changes since they were last committed. Stops if git status is dirty.
// Update documentation files (README.md, CLAUDE.md, assistant-knowledge.ts) based on code changes since they were last committed. Stops if git status is dirty.
| name | update-docs |
| description | Update documentation files (README.md, CLAUDE.md, assistant-knowledge.ts) based on code changes since they were last committed. Stops if git status is dirty. |
| disable-model-invocation | true |
| argument-hint | [optional: specific files to update] |
| allowed-tools | Bash, Read, Write, Edit, Grep, Glob |
Update documentation files based on code changes since they were last modified.
CRITICAL: Check git status first. If the working tree is dirty, stop immediately.
git status --porcelain
If this outputs anything, STOP and tell the user:
"Working tree is dirty. Please commit or stash your changes before running /update-docs."
Do NOT proceed with any documentation updates if there are uncommitted changes.
Default documentation files (unless overridden by $ARGUMENTS):
If user provides arguments: $ARGUMENTS
For each documentation file:
Get the last commit that modified this specific doc file:
git log -1 --format="%H" -- <doc-file>
Then find all code changes since that commit:
git diff <last-doc-commit>..HEAD --stat
git log --oneline <last-doc-commit>..HEAD
Look at the commits and diffs to understand:
getDataModel() if database schema changedgetMcpToolCapabilities() if MCP tools added/changedgetOrchestrationCapabilities() if new CLI capabilitiesgetProblemSolvingPatterns() if new use cases enabledgetCondensedKnowledge() to reflect major changesALWAYS read the current content of each file before making changes:
After updating, provide a summary:
1. Check git status → clean ✓
2. README.md last updated at commit abc123
- 15 commits since then
- Notable: added WhatsApp integration, new CLI commands
- Updated: Features section, CLI usage section
3. CLAUDE.md last updated at commit def456
- 8 commits since then
- Notable: new messaging service, schema changes
- Updated: Architecture section, Database tables
4. assistant-knowledge.ts last updated at commit ghi789
- 3 commits since then
- Notable: new MCP tools
- Updated: getMcpToolCapabilities()
Summary:
- README.md: Updated features list, added WhatsApp to integrations
- CLAUDE.md: Added messaging service docs, updated schema table
- assistant-knowledge.ts: Added messaging tools to MCP section