Update project documentation after code changes. An agent skill from peterkrueck/Claude-Code-Development-Kit.

MITAuto-check passedAgent Workflows

Install Update Docs

skills CLI
$ npx skills add peterkrueck/Claude-Code-Development-Kit --skill update-docs -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install peterkrueck/Claude-Code-Development-Kit update-docs --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/peterkrueck/Claude-Code-Development-Kit.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/update-docs .claude/skills/update-docs && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
update-docs
GitHub stars
1.4k
Token cost
~2.7k tokens
SKILL.md length
1,420 words
Files
1
Skills in repo
9
Repo updated
First seen
Licence
MIT

At a glance

Update project documentation after code changes. An agent skill from peterkrueck/Claude-Code-Development-Kit.

  • Works in 6 steps: (optional): Scope to a module → Analyze What Changed → Update Relevant Files → …
  • Tasks that involve Refactoring
  • SKILL.md covers Core Documentation Principle, When to Skip, What NOT to Document and Process, plus 4 more sections
  • Calls git

What it does

Update Docs is an agent skill from peterkrueck/Claude-Code-Development-Kit. Update project documentation after code changes. Maintains the 4 core ai-context files (spec, project-structure, progress, deployment-infrastructure) and CLAUDE.md. Use after completing features, refactors, or any changes that affect project structure, capabilities, or status. Also creates initial documentation if files don't exist yet.

Its SKILL.md is about 2.7k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Agent Workflows, covering Refactoring and Agent instruction files. It works with Git. The repository describes itself as: Claude Code Workflow for beginners & intermediate users. Tutorial and Installer included. The licence is MIT.

When your agent uses it

  • Tasks that involve Refactoring
  • Tasks that involve Agent instruction files

Example prompts

  • “/update-docs”

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. (optional): Scope to a module
  2. Analyze What Changed
  3. Update Relevant Files
  4. Apply the Single Source of Truth Rule
  5. Keep Docs Lean
  6. Create Missing Files

What it can do on your machine

Read from SKILL.md and the folder at commit ba85375. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Update Docs loads about 2.7k tokens when it runs. Until then it costs about 88 tokens; SKILL.md has 1,420 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~88
When it runs · the whole SKILL.md, loaded when a task matches
~2.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from peterkrueck/Claude-Code-Development-Kit at commit ba85375, republished under its MIT licence (© peterkrueck). 1,420 words, ~2,669 tokens.

Download SKILL.mdSave it as .claude/skills/update-docs/SKILL.md (or your agent's skills folder).
name
update-docs
description
Update project documentation after code changes. Maintains the 4 core ai-context files (spec, project-structure, progress, deployment-infrastructure) and CLAUDE.md. Use after completing features, refactors, or any changes that affect project structure, capabilities, or status. Also creates initial documentation if files don't exist yet.
user_invocable
true

Update Docs — Documentation Maintenance

Keep project documentation synchronized with the current state of the code. Updates the core docs/ai-context/ files and CLAUDE.md as needed.

Core Documentation Principle

Compress aggressively — the default for every line is DELETE. A line earns its place only when it encodes something an AI agent cannot derive from the code, git log, or spec.md. Every run prunes as much as it adds.

Document current "is" state only — never reference legacy implementations or what changed.

  • Write as if the documentation is being read for the first time
  • No "previously", "was changed from", "used to be", or "improved" language
  • No migration notes or upgrade paths within the docs themselves
  • If something was removed, remove it from docs — don't leave a "removed X" note
  • No build-state qualifiers ("recently added", "just landed", "new in this release") — dead the moment work ships; git log carries that

Audience: AI agents, not humans. These docs exist so a future session can prime fast. No marketing, no narrative arc, no "we did X then Y," no friendly hedging. Prefer tables, bold inline labels, and pseudocode over prose. Put code identifiers in backticks. Pair every non-obvious rule with a one-phrase reason (security, past incident, vendor quirk).

When to Skip

The bar is architecture, not activity. A run only earns doc changes when a change lands new architecture — a data flow, contract, invariant, or design decision a future session could not reconstruct from code alone. Fold that into spec.md in present tense. That is the ONLY thing that earns new lines — never a record that the work happened (git carries that), never a "we fixed/added X" note. If "document this change" reduces to "note that we did it," write nothing.

Do NOT run this skill for:

  • Bug fixes that don't change architecture or capabilities
  • Small refactors (rename, extract method) that don't change behavior
  • UI tweaks or styling changes
  • Single file additions within existing patterns
  • Performance optimizations without architectural impact
  • Comment or formatting changes

What NOT to Document

Claude Code can read files and grep code. Only document what cannot be inferred from the code itself:

Don't documentWhyInstead
Standard language conventionsClaude already knows themOnly project-specific deviations
Response JSON examplesClaude reads actual source filesRequest contract + error codes only
File-by-file descriptionsClaude can Glob and ReadOnly non-obvious file purposes
Completed checklist itemsDone = in git historyRemove from progress.md
ASCII art diagramsMany lines, low valueUse compact tables

Density test: Before adding content, ask: "Could Claude figure this out by reading the code?" If yes, don't document it.

Process

Step 0 (optional): Scope to a module

Default scope is the whole project — one project per repo. If your repo splits into modules/components under distinct top-level paths (each with its own docs/ai-context/), you may narrow to the one touched this session: git status --short shows which path has modified files; update only that module's docs. Skip this step entirely if the project has a single docs/ai-context/ — which is the common case.

Step 1: Analyze What Changed

Check recent changes:

bash
git diff --stat HEAD
git log --oneline -5

Identify what categories of change occurred:

  • New feature or capability → update spec.md, possibly progress.md
  • New files or directories → update project-structure.md
  • Deployment or infrastructure change → update deployment-infrastructure.md
  • Milestone completed or status change → update progress.md
  • New architecture decision or rule → update CLAUDE.md
Step 2: Update Relevant Files

Only update files where the change is meaningful. The 4 core files and their ownership:

FileWhat It OwnsUpdate When
docs/ai-context/spec.mdWhat the product does — features, API contracts, data flowsNew feature, API change, behavior change
docs/ai-context/project-structure.mdFile tree, tech stack, directory organizationNew files/dirs, dependency changes, tech stack change
docs/ai-context/progress.mdWhat's done, what's next, blockersPhase completed, new work started, status change
docs/ai-context/deployment-infrastructure.mdHosting, accounts, secrets, CI/CDInfrastructure change, new service, new secret
CLAUDE.mdProject rules, architecture decisions, coding standardsNew rule, new decision, changed constraint
Step 3: Apply the Single Source of Truth Rule

State each fact exactly once across the ai-context + CLAUDE.md bundle. If the same fact appears in multiple files, keep only the canonical owner and delete the rest — no breadcrumb pointer left behind. Resolve contradictions by trusting the canonical owner.

  • Internal section refs are allowed — within one file, pointing §3.7 → §3.2 for navigation is fine.
  • Cross-file breadcrumbs are forbidden. /update-docs and /prime load the bundle together, so writing See spec.md §X from another file is pure overhead. Move the fact to its owner; don't leave a pointer.

Examples:

  • API endpoint details → spec.md (not CLAUDE.md)
  • File naming conventions → CLAUDE.md (not project-structure.md)
  • Deployment URLs → deployment-infrastructure.md (not spec.md)

Header-rename hazard: in single-source-of-truth docs, section-number pointers are load-bearing. If /prime is light (TOC + opening invariants only), deep facts are reached via CLAUDE.md → spec.md <section> pointers. Renaming a ## header means updating every pointer that cites it — or the pointer dangles.

Step 4: Keep Docs Lean

Only document non-obvious complexity that can't be inferred from reading the code:

  • Architecture decisions and their rationale
  • Non-obvious constraints (e.g., "audio must never be stored")
  • Cross-cutting concerns that span multiple files
  • External service configurations

Do NOT document:

  • What a function does (the code shows this)
  • Standard framework patterns (the framework docs cover this)
  • Obvious file purposes (e.g., "utils.ts contains utility functions")
Show full SKILL.md (561 more words)Show less
Step 5: Create Missing Files

If docs/ai-context/ files don't exist yet, create them from the current codebase state. Analyze the code, tech stack, and project structure to populate each file with accurate current-state documentation.

Doc-Specific Rules

progress.md:

  • Use absolute dates, never relative ("March 2026", not "last week")
  • When marking items complete, DELETE the item (don't strike through) — the fix is in git history
  • Keep completed phase summaries to a single table row (~10 words), not paragraphs
  • Remove completed checklist items that have been done for 2+ weeks
  • Security items: remove when fixed, keep only open issues

spec.md:

  • Don't duplicate CLAUDE.md content (architecture principles, coding standards)
  • Document request format + error codes + key behaviors — skip response examples
  • Reference shared utility files by path, don't reproduce their content
  • Load-bearing / cross-cutting invariants live in the spec's opening section(s). Light prime reads only the opening + TOC, so an invariant buried mid-doc is invisible at session start. When folding a shipped feature in, hoist any new cross-cutting invariant up as one terse line + a → § pointer to its detail section.

CLAUDE.md:

  • Only rules that change Claude's behavior — if removing a line wouldn't cause Claude to do anything differently, delete it
  • Not a reference doc: no test structure tables, no naming convention tables for standard patterns

Doc Lifecycle — Permanent vs Non-Permanent

  • Fold-on-ship. When a feature ships, fold its feature-doc's current architecture into spec.md (present tense) and retire the feature doc. Never leave shipped architecture in a future/feature doc.
  • Hoist cross-cutting invariants up. An invariant that spans the whole project belongs in spec.md's opening, not buried in a feature doc.
  • Permanence. spec.md / project-structure.md / CLAUDE.md are permanent and must NOT cite non-permanent docs (e.g. open-issues/*, feature docs) by specific-file link. Only progress.md (the roadmap) may. Carve-out: project-structure.md may list a non-permanent doc as a file-tree entry (filename + one-line role), but no deep section-number citations into it.

Named-Reference Lifecycle (optional convention)

If you tag recurring traps, gotchas, or open issues with stable IDs, give each tag a stale-pass rule so dead references get pruned instead of accumulating. The exact scheme is yours — below is one example using an open-issue tag T-XX; adopt it, rename it, or skip it entirely.

  • Traps / gotchas: for each tagged item, grep the cited files/symbols. If ALL referenced files/symbols are gone, the item is dead — delete it. If the item is keyed to a resolution that has shipped, verify and delete.
  • Gates / checklists: any checked ([x]) row → delete immediately; done lives in git.
  • Open follow-ups: if the cited file/symbol is gone OR a recent commit closes the item → delete.
  • Library-version notes (e.g. "X needs Y ≥ 0.31"): if the current pin is already past the threshold, surface it to the user rather than silently deleting — you may not know whether upstream actually fixed the issue.

Run the stale pass every invocation, regardless of which tagging scheme (if any) you use.

Bloat Check

After updating, silently check progress.md:

  • Each completed phase row: ~10 words max in "What" column — trim immediately if longer
  • No duplication with spec.md — if progress.md restates architecture details, delete and cross-reference
  • Dead items: remove completed checklist items done 2+ weeks with no ongoing relevance

Net-line audit guard: if a run adds ≥10 lines while deleting 0, pause and reconsider. Something is almost always prunable — a run that only grows is a smell.

Then check if CLAUDE.md would also benefit from an update based on the changes made.

© peterkrueck, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/update-docs of peterkrueck/Claude-Code-Development-Kit.

Open the folder on GitHubat commit ba85375

Compare with similar skills

Update Docs next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Update Docs compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Update Docs this skillpeterkrueck/Claude-Code-Development-Kit1.4k—~2.7kAutomated safety check: PassMIT
Docslatitude-dev/latitude-llm4.7k—~2.5kAutomated safety check: PassMIT
Neat-Freak Knowledge CloseoutKKKKhazix/khazix-skills21k—~1.9kAutomated safety check: PassMIT
Setup Matt Pocock Skillsywwynm/EverythingDone1449 repos~1.7kAutomated safety check: PassGPL-3.0
Squad Agent Collaboration Patternsmicrosoft/waza1.4k4 repos~500Automated safety check: PassMIT
Steadyagent WorkflowKhalilzhang0825/boring-is-all-you-need173—~1kAutomated safety check: PassMIT

Similar skills

  • Docs

    latitude-dev/latitude-llm

    Review the current conversation context and git changes, then persist durable repository knowledge into dev-docs/.md by domain and into AGENTS.md for cross-cutting repo rules.

    4.7k GitHub stars~2.5k tokensUpdated yesterday
    Agent WorkflowsAuto-check passed
  • Neat-Freak Knowledge Closeout

    KKKKhazix/khazix-skills

    Brings project docs, agent rule files, authorized memory and leftover workspace files back in line with what the code and runtime actually do at the end of a work session.

    21k GitHub stars~1.9k tokensUpdated 6 days ago
    Agent WorkflowsAuto-check passed
  • Setup Matt Pocock Skills

    ywwynm/EverythingDone

    Sets up an Agent skills block in AGENTS.md/CLAUDE.md and docs/agents/ so the engineering skills know this repo's issue tracker (GitHub or local markdown), triage label vocabulary, and domain doc…

    144 GitHub starsUsed in 9 repos~1.7k tokens
    Agent WorkflowsAuto-check passed
  • Official

    Shared collaboration rules for a team of squad agents covering worktree awareness, writing decisions to an inbox, cross-agent requests and reviewer lockout.

    1.4k GitHub starsUsed in 4 repos~500 tokens
    Agent WorkflowsAuto-check passed
  • Steadyagent Workflow

    Khalilzhang0825/boring-is-all-you-need

    Local-first Codex workflow for planning, debugging, reviewing, refactoring, improving AGENTS.md, building skills, publishing agent harness repositories, or running complex multi-step coding tasks…

    173 GitHub stars~1k tokensUpdated 1 mo ago
    Agent WorkflowsAuto-check passed
  • Zed Config

    wcygan/dotfiles

    Zed editor configuration expert. An agent skill from wcygan/dotfiles.

    196 GitHub stars~930 tokensUpdated 4 days ago
    Agent WorkflowsAuto-check passed

More from peterkrueck/Claude-Code-Development-Kit

All 9 skills in this repo
  • Image Edit

    peterkrueck/Claude-Code-Development-Kit

    Edit images with precision — crop, resize, mirror, rotate, trim, and reframe.

    1.4k GitHub stars~1.2k tokensUpdated 2 mo ago
    Auto-check passed
  • Image Gen

    peterkrueck/Claude-Code-Development-Kit

    Generate character art and image variations using AI image generation (Google Gemini) with reference images for style and character consistency.

    1.4k GitHub stars~1.4k tokensUpdated 2 mo ago
    Auto-check passed
  • Bg Remove

    peterkrueck/Claude-Code-Development-Kit

    Remove backgrounds from images using local AI (rembg). An agent skill from peterkrueck/Claude-Code-Development-Kit.

    1.4k GitHub stars~1.3k tokensUpdated 2 mo ago
    Auto-check passed
  • Context7 Guidance

    peterkrueck/Claude-Code-Development-Kit

    Fetch CURRENT library/framework/API/CLI documentation via Context7 instead of relying on training data.

    1.4k GitHub stars~671 tokensUpdated 2 mo ago
    Auto-check passed
  • Second Opinion

    peterkrueck/Claude-Code-Development-Kit

    Get a second opinion from OpenAI's Codex CLI running locally.

    1.4k GitHub stars~2.4k tokensUpdated 2 mo ago
    Auto-check: warnings
  • Deploy

    peterkrueck/Claude-Code-Development-Kit

    Test and deploy changes safely. An agent skill from peterkrueck/Claude-Code-Development-Kit.

    1.4k GitHub stars~3.3k tokensUpdated 2 mo ago
    Auto-check passed

Works with

Questions about Update Docs

What does Update Docs do?

Update project documentation after code changes. An agent skill from peterkrueck/Claude-Code-Development-Kit. Update Docs is an agent skill from peterkrueck/Claude-Code-Development-Kit. Update project documentation after code changes.

When should I use Update Docs?

Update Docs fits situations like: tasks that involve Refactoring; tasks that involve Agent instruction files.

How do I install Update Docs in Claude Code?

Run `npx skills add peterkrueck/Claude-Code-Development-Kit --skill update-docs -a claude-code`. Or copy the skill folder (skills/update-docs in peterkrueck/Claude-Code-Development-Kit) into .claude/skills/update-docs in your project. Claude Code loads it when a task matches its description.

How do I install Update Docs in Codex?

Run `npx skills add peterkrueck/Claude-Code-Development-Kit --skill update-docs -a codex`. Or copy the skill folder (skills/update-docs in peterkrueck/Claude-Code-Development-Kit) into .agents/skills/update-docs in your project. Codex loads it when a task matches its description.

Can I use Update Docs in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add peterkrueck/Claude-Code-Development-Kit --skill update-docs -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/update-docs, .gemini/skills/update-docs, .github/skills/update-docs and .opencode/skills/update-docs in your project.

What does Update Docs need to run?

Going by SKILL.md and its folder, Update Docs needs the command-line tools its instructions call (git).

Does Update Docs access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Update Docs safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Update Docs use?

Update Docs is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Update Docs use?

About 2.7k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Update Docs?

Skills that share tags, products or a category with Update Docs: Docs (latitude-dev/latitude-llm, 4.7k stars), Neat-Freak Knowledge Closeout (KKKKhazix/khazix-skills, 21k stars), Setup Matt Pocock Skills (ywwynm/EverythingDone, 144 stars) and Squad Agent Collaboration Patterns (microsoft/waza, 1.4k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Update Docs?

peterkrueck (a GitHub user) maintains it in peterkrueck/Claude-Code-Development-Kit, which has 1,385 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on July 22, 2026.

Source: peterkrueck/Claude-Code-Development-Kit on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.