Our review
This skill helps keep a project's context documentation up to date after changes, using git and GitHub Issues to identify gaps.
Strengths
- Provides a systematic procedure to detect missing documentation updates.
- Integrates directly with git and GitHub Issues for efficient checking.
- Offers a clear mapping between change types and documents to update.
- Includes a catch-up mechanism for missed updates.
Limitations
- Assumes a specific folder structure (docs/context/) which is not universal.
- Requires manual confirmation from the user for each update.
- Cannot detect changes not reflected in git or issues.
After implementing a feature, changing architecture, or closing a story, to synchronize context documentation with the actual project state.
When documentation is already perfectly up to date, or for projects without a formal context documentation structure.
Security analysis
SafeThe skill only runs local read-only git and gh commands to inspect changes and closed issues, then updates documentation files after user confirmation. No destructive, exfiltrating, or obfuscated actions are present.
No concerns found
Examples
/update-context after implementing customer registrationCheck recent closed stories and suggest context documentation updates for any that were missed.I just refactored the payment module. Can you help me update the context documentation accordingly?Update Context Documentation
You are helping the user review and update context documentation after completing work.
Instructions
-
Check recent changes and closed stories by running:
git log --oneline -5 git diff --name-only HEAD~5 gh issue list --state closed --label story --search "sort:updated-desc" --json number,title,closedAt --limit 5 -
Cross-reference commits with closed stories:
- For each recently closed story, check if there's a corresponding commit
- For each story, review what was delivered (use
gh issue view <number>) - Identify any gaps where a story was completed but context docs weren't updated
-
Review what was changed and determine which context docs might need updates:
| If you changed... | Consider updating... | |-------------------|---------------------| | New domain entity or rules |
docs/context/domain/<name>.md| | New module or module boundaries |docs/context/modules/<name>.md| | External integration |docs/context/integrations.md| | New patterns or conventions |docs/context/conventions.md| | Architecture decisions |docs/context/overview.md| | New domain terms |docs/context/glossary.md| | New features built |docs/context/current-state.md| -
Present findings to user using AskUserQuestion:
- List what changed
- Suggest which context docs might need updates
- Ask user to confirm which docs to update
-
For each doc to update:
- Read the current content
- Propose specific changes based on recent work
- Make edits after user approval
-
After updates, remind user to:
- Commit context doc changes with the related code
- Check that
current-state.mdreflects what's now built
Context Doc Purposes
- overview.md: System architecture, module structure, tech stack summary
- glossary.md: Domain terms (credit, lending, customer lifecycle)
- domain/*.md: Business rules, entity states, lifecycle flows
- modules/*.md: Module responsibilities, APIs, database schemas
- integrations.md: External systems, API contracts
- conventions.md: Code patterns, naming, testing standards
- current-state.md: What's built vs planned, MVP scope
Example Flow
User runs /update-context after implementing customer registration
1. Check git log and closed stories
2. Cross-reference: Story #21 closed, commit exists, but context not updated
3. Present: "I see story #21 (Customer Registration) was completed. Consider updating:
- docs/context/domain/customer.md (if business rules changed)
- docs/context/modules/customer-module.md (if APIs changed)
- docs/context/current-state.md (to mark feature as built)"
4. User confirms which to update
5. Read each doc, propose changes, apply after approval
6. Remind to commit with code changes
Catching Up on Missed Updates
If you find stories that were closed without context updates:
- Review each story's acceptance criteria and tech notes
- Compare against current context docs
- Propose updates to bring docs in sync with what's actually built
- This is especially important for
current-state.mdwhich should reflect reality
Important
- Don't create new domain/module docs unless a new domain or module was added
- Keep updates focused and concise
- Context docs should be factual and dense, not narrative
- Always update
current-state.mdwhen features move from "planned" to "built"
API Documentation Generator
Documentation
Automatically generates OpenAPI/Swagger API documentation.
Technical Writer
Documentation
Writes clear technical documentation following top style guides.
Typed Documentation Forms System
Documentation
Add typed comments, documentation, todos, and metadata to Scheme code using `(doc ...)` forms. Doc annotations are authoritative for type inference, extracted by search commands (lf-todo, lf-types), and integrated with the type checker and LSP. Useful for annotating functions, marking deprecations, or tracking localized improvements alongside the code.