/blueprint-plugin:blueprint-docs-currencyfrom blueprint-plugin
Enforces same-commit landing of code and documentation for APIs, formats, ADRs, and research. Use when committing API changes, finding affected docs, promoting research, or landing an ADR.
Ships in blueprint-plugin. 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.
Same-commit discipline for code and documentation. This skill is the
reusable version of claude-plugins' .claude/rules/docs-currency.md,
refined for blueprint-driven projects.
| Use this skill when… | Skip when… |
|---|---|
| Committing code that changes a public API, format spec, or error enum | Refactoring internal helpers with no external surface change |
Promoting research findings from tmp/ to docs/ | Scratch work that will not ship |
| Landing an architectural decision | Implementation detail with no branching trade-off |
| Advancing a tracker entry past "in progress" | Small task completion that does not cross a phase gate |
| A reviewer flags missing documentation | Typo fixes or whitespace changes |
Code + its docs land in the same commit. Research promotes to
docs/before the feature advances past "in progress." ADR-worthy decisions land with a new or updated ADR in the same commit.
| Change kind | Doc target |
|---|---|
| Public API / exported type | Inline docstring + reference doc under docs/api/ (or tool-appropriate) |
| File-format spec | docs/format-spec/<name>.md (hand-written prose, not generated) |
| Error enum / protocol code | docs/errors/<name>.md or the protocol reference |
| Milestone / phase status | Feature-tracker entry + docs/PLAN.md if the phase advanced |
| Architectural decision | New ADR under docs/adrs/NNNN-<title>.md |
| New CLI flag or subcommand | README + relevant docs/cli/ page |
Forward-reference blueprint-plugin:blueprint-curate-docs for how to
produce the curated .claude/rules/ entry when the code change
surfaces an AI-context gotcha worth capturing.
Research findings arrive in tmp/ (gitignored). Before the dependent
feature advances past "in progress" in the blueprint feature tracker:
docs/ at a canonical path (e.g.
docs/research/<topic>.md, or directly into docs/format-spec/<name>.md
if the research is the spec).docs/ path in its
evidence field (blueprint-plugin:feature-tracking handles the
mechanical edit).in_progress to done.See blueprint-plugin:blueprint-curate-docs for the prose-production
mechanics; see blueprint-plugin:blueprint-sync for the drift detection
that catches stale generated content drifting from source PRDs.
| Layer | Lives at | Authoritative? |
|---|---|---|
TODO.md, feature tracker JSON | Repo root or docs/blueprint/ | No — sidecar |
docs/PLAN.md, docs/roadmap.md | docs/ | Yes |
docs/format-spec/, docs/api/ | docs/ | Yes |
ADRs in docs/adrs/ | docs/adrs/ | Yes |
tmp/research/… | gitignored | No — scratch |
Sidecars record priority, status, and notes for humans. If a reader
needs the information to port, debug, or onboard, it belongs in docs/,
not the sidecar.
Before committing, run the bounded sweep over the staged diff:
bash "${CLAUDE_SKILL_DIR}/../../scripts/docs-dependency-sweep.sh"
It names the hand-written docs that may describe what the commit changes, one hop from each staged path. It reports; it never edits.
| Staged path | Candidate docs (KIND=) |
|---|---|
<plugin>/skills/<skill>/…, <plugin>/agents/<agent>.md, <plugin>/.claude-plugin/… | plugin README.md (plugin_readme), plugin plugin.json (plugin_manifest), README.md / docs/PLUGIN-MAP.md / .claude-plugin/marketplace.json (catalog) |
<plugin>/<any other path> | plugin README.md, plugin plugin.json |
.claude/rules/<rule>.md | CLAUDE.md / AGENTS.md (rule_index), then every other tracked *.md citing <rule>.md (rule_backref) |
| Anything else | Not swept (UNMAPPED_PATHS=); use the Same-commit scope table |
Bound. At most CANDIDATE_CAP files are examined (default 10; set
it with --cap N or DOCS_SWEEP_CAP). Candidates already staged count
as covered and are not examined. Past the cap the sweep stops and emits
one cap_reached finding with the number dropped: a change that broad
needs a full review, not a longer sweep.
Reading the output. Each review_candidate row carries DOC=,
KIND=, the staged SOURCE=, and ENTRY_LINES=, the lines in that doc
that name the change (none: the doc does not name it; -: there was
no specific name to look for). Open each doc at those lines, then update
it in this commit or confirm it is unaffected. STATUS=OK means nothing
is left to review.
Before git commit, ask:
docs/ file?review_candidate updated in this commit or confirmed unaffected?tmp/research/ either empty or intentionally scratch for this change?docs/ path?If any box is unchecked, the commit is not ready. Pattern-match on what the code changed, then fix the doc gap in place.
Before a PR's final review:
git log main..HEAD — each commit that touches a scoped surface
has a same-commit doc editfind tmp -type f — empty, or the contents are scratch that
should not shipdocs: follow-up commits planned for after mergeDeferred doc follow-ups are the failure mode this skill exists to prevent. "I'll write the spec after the code is in" is the signal to stop and write the spec now.
| Signal | Action |
|---|---|
| Adding a new exported function | Same commit: update the reference doc |
| Changing a binary format header | Same commit: update docs/format-spec/<name>.md |
| Adding an error code | Same commit: update error enum docs |
| Choosing library A over library B | Same commit: file an ADR |
Promoting tmp/research/foo.md → feature | Move to docs/ first, advance tracker second |
.claude/rules/docs-currency.md — claude-plugins' dogfood version of this ruleblueprint-plugin:blueprint-curate-docs — mechanics of producing curated rule entriesblueprint-plugin:blueprint-sync — drift detection for generated docsblueprint-plugin:feature-tracking — tracker entry mechanicsscripts/check-docs-index.sh (claude-plugins, Layer 1 of #1460) — the whole-repo audit that owns skill/agent counts; the sweep names rows and never compares counts.claude/rules/conventional-commits.md — commit types that co-evolve with docsEvidence: research landed without a same-commit
docs/update — the spec had to be reconstructed in a follow-up PR. The inverse pattern (same-commit code + spec) survived grep-based re-investigation months later without loss.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub laurigates/claude-plugins --plugin blueprint-plugin35 skills in this plugin
/adr-relationshipsDomain analysis, conflict detection, and relationship validation for Architecture Decision Records. Use when creating or validating ADRs to ensure consistency./blueprint-adr-listList ADRs as a markdown table with title, status, date, domain. Use when generating an ADR index, auditing ADR status, or reviewing all architecture decisions./blueprint-adr-validateValidate ADR relationships, domain consistency, and duplicate ADR numbers. Use when auditing ADRs before release, finding broken supersedes/extends links, cycles, or number collisions./blueprint-autonomy-level3Install blueprint autonomy level 3 (ADR-0020): scheduled-autorun + approved-work-order-execution GitHub workflows. Use when enabling out-of-band blueprint automation in a repo./blueprint-autopilotRun due blueprint maintenance ambiently at autonomy level 2+. Use when a drift nudge reports blueprint tasks due or suggests /blueprint:autopilot./blueprint-claude-mdCLAUDE.md and CLAUDE.local.md from blueprint artifacts. Use when editing CLAUDE.md team instructions, converting inline content to @imports, or setting up CLAUDE.local.md.Other plugins' skills for the same job