/powerups:update-docsfrom powerups
Syncs maintainer documentation across repos after shipping a feature — CLAUDE.md, README, docs/, plans/, sibling repos, and skill plugins. Scans everything by default.
Ships in powerups. 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.
After shipping a feature, documentation drifts. This skill finds what's stale and updates it — across ALL repos, not just the current one.
Scope: docs written for whoever maintains the code. CLAUDE.md, README, docs/, .env.example, plans/, and the same files in sibling repos. Anything a customer reads — help/docs pages, blog or product-updates posts, pricing, screenshots, in-app copy — is powerups:marketing-surfaces; CHANGELOG.md is powerups:change-log. This skill never touches those, and never duplicates their triage.
Invoke this skill:
The user can invoke this directly with /update-docs.
Spawn an Explore subagent to understand the current branch's changes:
git diff main...HEAD --stat to see what files changed on this branchReturn a concise summary of what changed and what categories apply.
Spawn an Explore subagent to discover every doc file that might need updating. Scan everything — local and cross-repo. The whole point of this skill is comprehensive coverage.
Local docs (current repo):
docs/ — in-repo guides (glob for docs/**/*.md).env.example — env var referenceplans/ — plan files with status tables or task checkboxesSibling repos (always scan):
Grep CLAUDE.md for ../ paths to find sibling repos. For EVERY sibling repo found:
6. CLAUDE.md — check for stale references to this project
7. README.md — check for stale API descriptions, ports, defaults
8. Skill/plugin docs — API references, recipes, guides, integration docs
9. Any docs/ directory — in-repo guides in sibling repos
If a sibling repo is the public/marketing site, scan only its maintainer docs (CLAUDE.md, README). Its published pages are out of scope here — the finishing sequence runs powerups:marketing-surfaces right after this skill, and that triage covers them.
This is not optional. If CLAUDE.md references ../other-project/, scan that project's docs too. Documentation drifts most at repo boundaries.
The subagent should return the list of ALL doc files found and what each covers.
For each doc file, spawn subagents (in parallel where possible) to:
Return findings as a checklist:
- [ ] CLAUDE.md line 45: says interval_minutes defaults to 5, should be 60
- [ ] ../sibling-repo/api-reference.md: missing new webhook fields
- [ ] README.md: port 8000 should be 8001
- [x] docs/guide.md: already up to date
Before touching any docs, present the full checklist and use AskUserQuestion to clarify:
Don't assume you know how the user wants their docs written. Ask.
Never silently skip a finding. If a doc file is stale, present it to the user — even if you think the update is minor or optional. Let the user decide what to skip, not you.
After getting user direction:
docs: update for [feature name]After applying updates:
docs/)When multiple repos are involved in a feature (e.g., a service + its SDK, or two services that integrate), documentation naturally fragments. Each repo partially explains the integration, and none tells the full story. This is the most common source of confusion.
The fix: single source of truth for cross-repo concerns.
../shared-docs/integration-guide.md."During Step 3 (diffing docs against reality), watch for:
When you find this, recommend consolidation before making edits. Ask the user: "I found the X integration partially described in N places. Want me to consolidate into one guide and replace the others with links?"
| Doc type | Scope | Example |
|---|---|---|
| Integration guide (shared) | End-to-end flow across repos, data contracts, what each system owns | "How Service A + Service B work together" |
| CLAUDE.md (per-repo) | How to work in THIS codebase — key files, commands, conventions | Links to integration guide for cross-repo context |
| README.md (per-repo) | What this repo IS, how to set it up, how to run it | Does not explain other repos |
| API reference (per-repo) | Endpoints, request/response formats for THIS service | Payload schemas for events this service sends |
| Skill docs (shared) | How to USE a service from another codebase | Recipes, workflow steps, troubleshooting |
powerups:marketing-surfaces; CHANGELOG.md is powerups:change-log. Don't re-triage them here.| What drifts | Why | How to catch |
|---|---|---|
| API defaults (interval_minutes, schedule_enabled) | Changed in code, not in docs | Grep docs for old default values |
| Endpoint additions | New endpoint added, docs not updated | Compare router files against API reference |
| Removed features | Code deleted, docs still reference it | Grep docs for removed function/endpoint names |
| Env vars | New var added to config.py but not to CLAUDE.md or .env.example | Compare config.py against env var tables |
| Downstream integration notes | Upstream API changed, downstream docs stale | Scan sibling repos for stale references |
| Scattered integration docs | Each repo partially explains the same flow | Look for the same webhook/API/flow described in 2+ places |
| Ports and URLs | Changed in code, old values in docs/README | Grep all docs for port numbers and URLs |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
documentation-sync, maintainer-docs, cross-repo, post-feature
14 skills in this plugin
/best-practicesUse for any code change — bug fix, small feature, refactor, or improvement. Ensures TDD, clarifying questions, codebase investigation, DRY, proper branching/worktrees, UI skills, and doc updates. PDD invokes this automatically for large features./bug-fixUse when fixing a bug — enforces reproduce-first-then-fix discipline with a strict step-by-step protocol. Prevents wrong-approach loops by gating each step on success criteria./change-logUse after completing a feature or bug fix to log the change in CHANGELOG.md using plain, business-user-friendly language/drift-auditReconcile shipped code with the plan in both directions — additive drift (unplanned work that landed) and subtractive drift (dead files, stale TODOs, completed deferred items). Run as part of PDD's post-completion audit, before /simplify./give-me-fiveGenerate 5 meaningfully distinct UI/UX variants of the same screen in parallel (one subagent each), reachable via ?style=1...5, so the user can compare and pick. Calling again on a chosen style refines within that direction./marketing-surfacesShip the public-facing side of a user-visible feature — docs/help page, blog or changelog post, screenshots, pricing tier line, landing copy, email, and social. Run the triage on EVERY feature, bug fix, or change (best-practices finishing sequence, bug-fix Step 9, plan-driven-development's post-completion audit), and directly whenever asked to announce, document, or promote something that shipped.npx claudepluginhub jackyliang/powerups --plugin powerupsOther plugins' skills for the same job