Automated summary
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
How this analysis is madeExamples
/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"
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/update-context-documentation-mm5t8cgj/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/update-context-documentation-mm5t8cgj' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/update-context-documentation-mm5t8cgj/download' --output '.skill-downloads/update-context-documentation-mm5t8cgj/SKILL.md.part' && mv '.skill-downloads/update-context-documentation-mm5t8cgj/SKILL.md.part' '.skill-downloads/update-context-documentation-mm5t8cgj/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
This file does not provide a usable name/description header for this native procedure. It remains available to download and inspect; use the manual method below.
Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/update-context-documentation-mm5t8cgj/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
Supabase Docs Authoring
Documentation
Write, edit, and review Supabase documentation content including guides, tutorials, reference docs, and partials. Follow style guides and MDX/TOML validation rules.
Create Architecture Decision Record
Documentation
Create a new Architecture Decision Record with sequential numbering, register it in the AgentDB graph, and link related ADRs.
Plan update with deep research
Documentation
Updates a plan document by launching parallel subagents to analyze a topic across all compiler passes, then consolidates findings into the plan doc.