/ccc-dashboard:docs-driftfrom Claude Command Center
Audits documentation for stale factual claims by spawning a sibling session that extracts and verifies each claim (API fields, endpoint names, CLI flags, config keys, file paths, version numbers, example commands) against the actual code, reporting mismatches as drift with severity.
Ships in Claude Command Center. 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.
Docs-drift spawns a single fresh CCC session that treats a doc as a list of
factual assertions about the code and checks each one against the source. It
does not follow the docs as a user would — it enumerates the claims (this
endpoint exists, this flag is --foo, this response has field bar, this
default is 127.0.0.1, this version is X.Y.Z) and greps/reads the code to
confirm or refute each. The output is a drift ledger. It builds on the
spawn/report_to mechanics in the ccc-orchestration skill — read that first for
the full Spawn/Inject/Ask API.
1 spawned session. Each spawn is a real billed session on the user's
kanban — tell the user the count before spawning. Point it at a bounded set
of docs (one file, or a section) — "audit all the docs" is a fleet job
(fleet-lane-dispatch with a per-doc brief), not one session.
CCC_URL="$(cat ~/.claude/command-center/port.txt 2>/dev/null || echo "${CCC_URL:-http://127.0.0.1:8090}")"
curl -sf --max-time 2 "$CCC_URL/api/version" >/dev/null 2>&1 || CCC_URL="http://127.0.0.1:8090"
curl -sf --max-time 2 "$CCC_URL/api/version" >/dev/null 2>&1 || CCC_DOWN=1
repo_path in query strings (+ → %2B, space → %20).$CLAUDE_SESSION_ID, else the newest
*.jsonl under ~/.claude/projects/<slugified-cwd>/ (see ccc-orchestration).curl -s -X POST "$CCC_URL/api/sessions/spawn" -H "Content-Type: application/json" -d @- <<'JSON'
{
"prompt": "Audit this doc for drift against the code. DOC: <path or section>. SOURCE OF TRUTH: <module / endpoints / config to check against>. Method: 1) Extract EVERY checkable factual claim the doc makes about the code — endpoint paths, request/response field names, CLI flags, config keys and their stated defaults, file paths, version strings, and any copy-paste example command. Ignore prose, motivation, and opinion; only claims a reader could act on and be wrong. 2) For EACH claim, verify it against the actual code (grep / read the source — do NOT trust the doc). 3) Classify each: MATCH (doc agrees with code), DRIFT (doc contradicts code — wrong field name, renamed flag, changed default, dead endpoint, stale version), or UNVERIFIABLE (could not locate the truth — say why). Report ONLY the DRIFT and UNVERIFIABLE rows as a ledger; give a MATCH count as one summary number. Each drift row: the exact doc quote + line, what the code actually says (with file:line evidence), severity (BROKEN = a reader following this will fail, e.g. dead endpoint or wrong flag / MISLEADING = works but the doc is wrong, e.g. stale default / COSMETIC = typo-level), and the one-line doc patch. Finish with a verdict: is this doc safe to trust as-is, yes or no?",
"repo_path": "/abs/path/to/repo",
"report_to": "<your-session-id>"
}
JSON
Omit "model" and "reasoning_effort": the server spawn defaults (Settings →
Spawn defaults) apply. Pass either explicitly to keep cost down, with
"engine" alongside it, since both are validated per engine (see
ccc-orchestration § 2 for the per-engine effort ladders). CCC appends the
return-address footer (report_to), so the auditor injects its ledger back to
you when it finishes.
After spawning, end your turn. Tell the user an auditor is checking the doc
against the code and give its session id. The ledger arrives by injection
(report_to) — do not poll or sleep-loop. If it never arrives, check
GET /api/sessions/spawned for whether the child is still alive.
Turn the ledger into doc fixes:
/api/* endpoint, a renamed flag, a wrong required
field). For a public repo these ship the moment you push, so treat them like
code bugs.If the arguments contain dry-run, print the exact payload — session count (1),
the full auditor prompt with the doc path and source-of-truth filled in, and the
target repo — and POST nothing.
If CCC_DOWN=1 or the spawn curl returns connection refused (exit 7), fall back
to the built-in Task tool subagent with the same claim-extraction prompt —
fresh context matters less here than for dogfood, because the value is the
systematic cross-check, not naïve eyes. You lose only kanban visibility. Never
pretend the CCC spawn ran.
dogfood — that follows the getting-started path as a user and reports
where it stumbles; it only catches drift on the exact steps it walks.
Docs-drift ignores the experience and checks every claim in the doc against the
code, including claims off the happy path. Run dogfood to prove the
quickstart works; run docs-drift to prove a reference doc is not lying./code-review — that judges whether the code is right. This assumes the
code is the truth and judges whether the doc still matches it.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub amirfish1/claude-command-center --plugin ccc-dashboard20 skills in this plugin
/a-b-copyUse when you want a marketing-copy A/B — spawns two writer sibling sessions via CCC that draft the SAME message architecture in DIFFERENT voices, then a judge session (which saw neither draft happen) scores both and picks a winner./bug-raceUse when a bug has already survived at least one debugging attempt and you have 2-3 genuinely distinct root-cause hypotheses — spawns one racer sibling session per hypothesis via CCC, referees the first CONFIRMED root cause with reproducible evidence, and stands the others down via inject./ccc-orchestrationSpawn, inject into, and ask questions of persistent sibling sessions via Claude Command Center (CCC)./dogfoodUse for docs QA — it spawns ONE fresh sibling session via CCC that has never seen the feature, has it follow the README / quickstart / docs cold in a scratch directory, and reports every stumble, ambiguity, and broken step as a doc bug. Fresh eyes are the whole point./fleet-lane-dispatchUse when dispatching a batch of autonomous CCC worker lanes with a mission brief and a report_to return address, or when receiving a lane assignment and needing to send a well-formed completion report — and, on the dispatcher side, before trusting a lane's SUCCEEDED report at face value./fleet-verifyUse after a UI or user-visible change and before you claim it works — it spawns ONE CCC verification lane that drives a real browser (gstack browse, or CCC's puppeteer snapshot as fallback) against the running app, checks the specific thing you changed, and reports a visual/behavioral verdict with a screenshot. Independent of your context; catches what a diff read and a unit test cannot.Other plugins' skills for the same job