Update a living document with new content.
Arguments: $ARGUMENTS
- •First word: document identifier (case-insensitive)
Procedure
- •
Resolve the target document from the argument:
- •
UI-PATTERNSorui-patterns→UI-PATTERNS.md - •
project-goal→project-goal.md - •
READMEorindex→docs/README.md - •
CLAUDE→CLAUDE.md - •Any other name → search
docs/architecture/for a matching file
- •
- •
Read the current content of the target document.
- •
Ask the user what needs updating — unless the conversation already provides sufficient context about what changed.
- •
Make the update following these rules:
- •For
UI-PATTERNS.md: follow the existing pattern template format (see the Appendix section of that file) - •For
project-goal.md: preserve the existing section structure - •For
docs/README.md: add or update entries in the appropriate category table - •For
CLAUDE.md: preserve the existing section structure and keep it concise - •For architecture docs: preserve the document structure, update relevant sections
- •For
- •
Confirm what changed — provide a brief summary of the update made.
- •
Only update living documents. If the user tries to update a point-in-time document (date-prefixed), explain that point-in-time documents are append-only. Offer to add a follow-up note at the bottom instead, or create a new document that supersedes it.