Update Context Documentation

VerifiedSafe

Reviews recent code changes and closed stories to identify missing updates to context documentation. Maps changed code areas to specific context docs (domain, modules, integrations, etc.) and proposes updates. Ideal for keeping project documentation in sync with delivered features.

Sby Skills Guide Bot
DocumentationIntermediate
6/2/2026
Claude Code
#context-documentation#git-integration#documentation-update#project-context

Recommended for

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.
When to use it

After implementing a feature, changing architecture, or closing a story, to synchronize context documentation with the actual project state.

When not to use it

When documentation is already perfectly up to date, or for projects without a formal context documentation structure.

Security analysis

Safe
Quality score90/100

The 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 made

Examples

Update context after feature implementation
/update-context after implementing customer registration
Catch up on missed documentation updates
Check recent closed stories and suggest context documentation updates for any that were missed.
Review context docs after architecture change
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

  1. 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
    
  2. 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
  3. 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 |

  4. Present findings to user using AskUserQuestion:

    • List what changed
    • Suggest which context docs might need updates
    • Ask user to confirm which docs to update
  5. For each doc to update:

    • Read the current content
    • Propose specific changes based on recent work
    • Make edits after user approval
  6. After updates, remind user to:

    • Commit context doc changes with the related code
    • Check that current-state.md reflects 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:

  1. Review each story's acceptance criteria and tech notes
  2. Compare against current context docs
  3. Propose updates to bring docs in sync with what's actually built
  4. This is especially important for current-state.md which 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.md when 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 files

This 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.md

From 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.

Related skills