/apogee:update-docs [base branch, default: develop]from apogee
Update project documentation after code changes. Maintains the 4 core docs/apogee files (spec, project-structure, progress, deployment-infrastructure) and CLAUDE.md. Run by /apogee:finish (and /apogee:run-plan) at the end of a unit of work, and by /apogee:init for initial creation; standalone only when the user asks. Skips small changes (see When to Skip).
Ships in apogee. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Keep project documentation synchronized with the current state of the code. Updates the core docs/apogee/ai-context/ files and CLAUDE.md as needed.
Document current "is" state only — never reference legacy implementations or what changed.
Compress aggressively — the default for every line is DELETE. A line earns its place only when it encodes something an agent cannot derive from the code, the git log, or another core doc. Every run prunes as much as it adds.
Two memories, two owners. docs/apogee/ is project state for any agent that primes on it.
Claude Code's auto-memory (.claude/memory/) is this agent's own lessons and preferences. Don't
copy one into the other: a fact about the project goes here, a lesson about how to work with the
user goes to memory.
Do NOT run this skill for:
Claude Code can read files and grep code. Only document what cannot be inferred from the code itself:
| Don't document | Why | Instead |
|---|---|---|
| Standard language conventions | Claude already knows them | Only project-specific deviations |
| Response JSON examples | Claude reads actual source files | Request contract + error codes only |
| File-by-file descriptions | Claude can Glob and Read | Only non-obvious file purposes |
| Completed checklist items | Done = in git history | Remove from progress.md |
| ASCII art diagrams | Many lines, low value | Use compact tables |
Density test: Before adding content, ask: "Could Claude figure this out by reading the code?" If yes, don't document it.
Base = $ARGUMENTS if given; else git config gitflow.branch.develop; else develop if it
exists; else the merge-base with the default branch. Check what the branch changed, committed or
not:
git diff --stat <base>...HEAD
git log --oneline <base>..HEAD
git status --short
Identify what categories of change occurred:
spec.md, possibly progress.mdproject-structure.mddeployment-infrastructure.mdprogress.mdCLAUDE.mdOnly update files where the change is meaningful. The 4 core files and their ownership:
| File | What It Owns | Update When |
|---|---|---|
docs/apogee/ai-context/spec.md | What the product does — features, API contracts, data flows | New feature, API change, behavior change |
docs/apogee/ai-context/project-structure.md | File tree, tech stack, directory organization | New files/dirs, dependency changes, tech stack change |
docs/apogee/ai-context/progress.md | What's done, what's next, blockers | Phase completed, new work started, status change |
docs/apogee/ai-context/deployment-infrastructure.md | Hosting, accounts, secrets, CI/CD | Infrastructure change, new service, new secret |
CLAUDE.md | This project's facts, decisions and own rules/exceptions (never Apogee's general rules) | New project rule, new decision, changed constraint |
Each fact lives in exactly ONE file. If you find the same information in multiple files, keep it in the primary owner and remove it from the others.
Examples:
spec.md (not CLAUDE.md)CLAUDE.md (not project-structure.md)deployment-infrastructure.md (not spec.md)Only document non-obvious complexity that can't be inferred from reading the code:
Do NOT document:
A core doc is missing when it does not exist or still carries the apogee:scaffold-stub sentinel (setup.sh scaffolds these template stubs — placeholders, not real docs). For each missing doc — absent or an untouched stub — write it from scratch from the current codebase state (analyze code, tech stack, structure) and drop the sentinel when filling a stub. Don't "refine" a stub: its content is generic template guidance, not project context.
progress.md:
spec.md:
CLAUDE.md:
rules/RULES.md,
rules/SOUL.md, injected at session start) and are never copied into CLAUDE.md; write here
only this project's facts, decisions and its own rules or exceptions to the toolkit's.docs/apogee/README.md is the index /apogee:prime reads. Any file created under
docs/apogee/ outside ai-context/ in this session (a domain note, a research report, a design
file) gets one line there: path, what it is, when to read it. A file without an index line is
invisible to the next session.docs/ that declare sources: frontmatter, invoke
apogee:public-docs update now; it refreshes only the docs whose sources changed. A project
without such docs gets a one-line no-op; don't generate public docs unasked.After updating, silently check progress.md:
Net-line audit. These docs are local-only (git-excluded), so git cannot measure them: record
wc -l of each doc before editing and compare after. If this run added 10 or more lines and
deleted none, stop and re-read what you added: documentation that only grows is
documentation nobody prunes. Find the lines the additions made redundant, or justify to yourself
why none exist, before finishing.
Then check if CLAUDE.md would also benefit from an update based on the changes made.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mishagin-dev/apogee --plugin apogee20 skills in this plugin
/ai-clean-roomPersonal black-box clean-room skill: build an independent product that reproduces the functionality of a closed-source reference application using only its public documentation, observed behavior and screenshots, without copying its code, texts, icons, design or name. Manual invocation only (/apogee:ai-clean-room)./brOfficial skill for beads_rust (`br`), a local-first, dependency-aware issue tracker for AI agents. Use when creating issues, triaging backlogs, managing dependencies, finding ready work, updating status, or exporting the local JSONL backup (br sync --flush-only)./cleanupReclaim disk space that agent work leaves behind: linked git worktrees (of the repository and of every submodule), the stale records of worktrees deleted by hand, orphaned worktree directories, and the build directories (Rust target/, DerivedData) that make each copy 5–35 GB. Inventories first with a read-only script, deletes only what the user picks. Use when the disk fills up, when worktrees pile up after parallel agents, or when the user asks to clean up, tidy up or free space, in any language. Offered by the session-start reminder and by /apogee:finish.