/spectre:spectre-doctorfrom spectre
Assesses and repairs Spectre knowledge corpus quality including work history, tags, and retrieval accuracy. Use for cleanup, migration, format compliance, and claim accuracy review.
Ships in spectre. 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.
Help users and agents trust project memory as code, decisions, and record formats change. Run Doctor when stale or conflicting guidance, duplicate records, or gaps in organization make it hard to know what still applies. Bring older records into the current format and make reliable guidance and relevant history easy to find, so future work can reuse prior evidence and decisions with uncertainty explicit.
Prioritize accuracy and useful coverage. Preserve decisions, qualifications, provenance, and recoverable history.
assess by default, writing only review artifacts/maintenance history; apply when repairs are requested or already authorized. Carry existing authorization forward. Assessment produces concrete proposed edits before any additional approval that is actually required.node "${CLAUDE_PLUGIN_ROOT}/hooks/scripts/knowledge-cli.mjs". Read help for supported operations and bind every invocation to the resolved --project-dir. Knowledge Doctor is this skill; the installer command spectre doctor diagnoses runtime installation.${CLAUDE_PLUGIN_ROOT}/skills/spectre-capture/SKILL.md, ${CLAUDE_PLUGIN_ROOT}/skills/spectre-capture/references/knowledge-capture-input.json, ${CLAUDE_PLUGIN_ROOT}/skills/spectre-capture/references/tagging-policy.md, ${CLAUDE_PLUGIN_ROOT}/skills/spectre-work-record/SKILL.md, and ${CLAUDE_PLUGIN_ROOT}/skills/spectre-work-record/references/work-capture-input.json as needed. Reuse prior discoveries and exact loads.One bounded report and machine-readable repair manifest, with baseline identity, scope, coverage, evidence, unresolved findings, and recovery references. Default to docs/knowledge-doctor/<unique-run-id>/report.md and repair-manifest.json in the resolved project; honor an explicit destination and preserve prior runs. Workers return evidence directly; no per-worker report files.
Each proposed repair names exact record/tag identities and loaded revisions, priority and expected user impact, action, reason, claim-level evidence, before/after content or patch, related records/resources, dependencies, expected result, and recovery method. Include justified no-op, retain, and defer dispositions. A source or record change invalidates its dependent proposal.
Keep maintenance history in a separate Doctor ledger, preserving record schema v1. Its contract records run identity, project/scope, policy version, baseline/source versions, per-phase outcome, coverage, claim findings, repairs with pre/post revisions, unresolved work, checks, and recovery references:
lastAssessedAt: completed assessment; retain its coverage and unresolved findings. Partial/failed runs remain distinguishable and resumable.lastAppliedAt: actual record/tag changes; a no-op never advances it.lastVerifiedAt: successfully completed post-repair checks, with their exact scope and evidence; failed or incomplete checks never advance it.If ledger support is unavailable, return this information in the report/manifest and state that persistent maintenance history was not updated. These dates are maintenance metadata, not tags or invented provenance.
DONE, assess: every scoped record has an accounted-for disposition; structural checks and semantic review coverage are explicit; evidence-backed repairs and uncertainties are reviewable. Unverifiable claims may remain, but excluded or unreviewed material cannot be reported healthy.
DONE, apply: each authorized repair is applied and verified, a justified no-op, or an explicit conflict/failure/defer with recovery. Report actual coverage and partial results; do not label failed verification successful or suppress unresolved findings.
Both modes require a self-contained final response with the highest-priority repairs and the Handoff next-steps table; artifact links alone are insufficient.
Inspect and map. The capable primary agent owns scope, claim classification, review depth, and all edit decisions. Inspect structure, format, ownership, revision/resource integrity, tag quality, duplicate candidates, and retrieval surfaces. Group records by shared subject, decision, mechanism, code, and exact work ownership; tags are hints, not partitions. Include contradictions and cross-group links.
Fan out evidence review. Dispatch independent bounded groups to fast, read-only agents: Luna on Codex, Sonnet on Claude, using the runtime's configured equivalents and concurrency limits. Route code tracing to @spectre:analyst, location discovery to @spectre:finder, and external facts to @spectre:web-research; respect each role's contract and let primary assemble final claim judgments. Give each worker exact IDs/revisions, relevant bodies and sources, claim questions, scope, and return contract. Workers neither mutate records nor decide final repairs. Consolidate per claim: exact claim and record/revision; supported | contradicted | outdated | context-dependent | unverifiable; specific evidence locators and source version/date; uncertainties, cross-group dependencies, and suggested correction where the role permits it. Symbol existence alone does not prove behavior.
Reconcile and deepen. Primary reads decisive evidence and reconciles groups. Follow up on weak support, disagreements, missing context, and high-impact claims; use an independent second check or stronger reviewer when uncertainty warrants it. Regroup related findings rather than accepting isolated verdicts. Missing evidence means unverifiable, not false; recency alone does not establish authority.
Prepare repairs. Correct maintained knowledge and its title/summary/applicability together. Consolidate records answering the same future question only while retaining unique constraints and links. Extract supported durable guidance from work or imports when useful; preserve historical accounts and exact run ownership. Distinct Execute runs never fold merely because branch, feature, tag, or PR matches. Never invent original branches, verification, lifecycle state, or Doctor-owned Execute history.
Delegate resolved repairs. In apply mode, primary assigns exact, authorized manifest edits to fast, write-capable @spectre:dev agents, respecting their role contracts. Each assignment binds repair IDs, record identities, expected revisions, source dependencies, exact payloads, preservation/recovery requirements, and checks. Evidence investigators remain read-only; repair workers implement decided edits without changing scope or resolving new authority questions.
Verify usefulness. Require checks for every changed identity: schema, format/token bounds, resource/history preservation, ownership, tags, and entry-point accuracy. Primary independently exact-loads actual records for all authority rewrites, consolidations, retirements, unexpected differences, and a representative sample from each worker and other repair type. Compare with the decided payloads; expand review when a spot check fails. Worker receipts alone are insufficient. Exercise representative future questions through actual search/load and relevant tag/path/work retrieval; check maintained authority is reachable and retired guidance is absent from active recall while historical recovery remains available. Unchanged assessments use scoped structural/retrieval checks without claiming post-repair verification.
Record maintenance. Persist the report/manifest and supported ledger only after observed phase outcomes. Account for every scoped record, including unchanged, unresolved, excluded, and interrupted portions. Distinguish assessment, changes, and verified repairs; retain failed/partial attempts. Resume by validating prior dependencies and re-reviewing changed material, not trusting a global last-run date.
Lead the final response with the overall assessment and actual scope, then summarize the 3–5 highest-priority repairs or unresolved issues (fewer when appropriate). For each, state the concrete change, why it matters to future work, and whether it is proposed, applied, deferred, or blocked. Rank by impact on accuracy, authority, and retrieval, ahead of cosmetic format debt. Give compact outcome counts, material blockers, verification results, and maintenance dates that actually advanced; link the report/manifest for supporting detail.
End with the Spectre-style next-steps table, resolving every entry to this run:
| Handoff | Details |
|---|---|
| 🧭 Current phase | Actual assessment/application outcome and any incomplete phase. |
| 📦 What was just done | Concrete result and remaining work. |
| ▶️ Proposed next step | Render one resolved action; no placeholders. Use the highest-value available action, with exact repair IDs/artifact or the blocking dependency. |
| 💬 Recommended user response | Copy-ready reply naming the resolved project, manifest, and repair selection, or answering the specific missing decision. |
The reader must understand the important changes and know what to reply without opening an artifact. Do not offer generic approval prompts, unresolved placeholders, or unsupported commands. Complete already-authorized work before this handoff; the table never introduces another approval gate. When work is complete, recommend only a useful follow-up supported by remaining findings. Do not make maintenance a gate for normal Execute, PR, or delivery workflows.
Project identity/scope is ambiguous, authority conflicts, evidence cannot support a required field, a revision changes, recovery is unavailable, or a runtime capability is missing: surface the exact dependency and defer affected actions while continuing independent review. Ask only for missing information or authority needed for those actions; never repeat an existing approval.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub joenandez/spectre --plugin spectre20 skills in this plugin
/spectre-captureCapture durable project decisions, accepted corrections, verified reusable patterns or gotchas, disproved guidance, and changed persistent blockers as soon as they matter. The user's correction is sufficient authority without code corroboration. Do not use for routine progress, transient errors, incidental code, task outcomes, or historical work accounts./spectre-code_reviewRun final adversarial review through a pinned high-effort opposing runtime with one native fallback. Use at the final boundary to falsify correctness, safety, production readiness, and requirement delivery. Do not use for partial checkpoints or implementation; review only./spectre-create_prGenerate a grounded draft pull request from the actual diff and open it via gh. Use when wrapping up a branch or writing a PR description; not for Ship-owned cleanup, rebase, or delivery sequencing./spectre-executeExecute tasks/plans with checks/reviews/proof. Use after planning/resume. Not for planning, unplanned fixes, or pruning./spectre-feature-rootInternal initializer for a missing Spectre feature root. Invoke only from a standalone workflow with no confirmed managed root. Do NOT invoke for existing roots, orchestrated calls missing a root, or direct user requests./spectre-fixInvestigate a reported bug, pin its root cause, and prepare an Execute handoff. Use for errors, stack traces, failing behavior, or repro steps. Do NOT use for greenfield work (plan/execute) or a complete repair report (execute).Other plugins' skills for the same job