/spectre:spectre-executefrom spectre
Executes tasks and plans with checks, reviews, and proof. Use after planning or resume; not for planning, unplanned fixes, or pruning.
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.
Read when SKILL.md points to them.
Preserve parallelism, authority, gates, repair.
$ARGUMENTS: path; --origin plan|fix; --preflight-plan <xs|light|standard|comprehensive>; wave hints; --orchestrated; orchestrated-only --finalization-owner parent. Default owner: self.--review-profile final-only, valid only with --orchestrated --finalization-owner parent; it defers intermediate review and requires the orchestrating caller to invoke Skill(spectre-code_review) exactly once; caller owns sequencing, never semantic review.structured: execute index + resolvable tasks.json; malformed structured input escalates, never becomes a plan.fix-source: bug-report path/root or identifying content—not --origin—selects fix; load references/fix-source.md, not Plan preparation.plan-direct: explicit readable plan, including paths, Plan handoff markers, and legacy Execution Mode: direct headers. The explicit supplied plan wins over ambient task artifacts and enters this preparation contract.--preflight-plan <depth> remains a preparation-depth hint, not authorization, classification, or task-graph switch; a depth hint must not create authority pause. Execution Mode: direct is a legacy coordination hint. No selected readable plan needs a completeness/header ceremony.FEATURE_ROOT only when explicit/current-thread evidence ties it to this work (physical directory wins; never branch/recency/lifecycle/scans); distinct work ignores ambient roots. Otherwise, including on collision, standalone MUST first load and follow @skill-spectre:spectre-feature-root through DONE; orchestrated calls escalate. Keep writes beneath it and pass it unchanged.Tasks JSON → adjacent tasks.json → sibling .tasks.json; else escalate. Read whole; detail targeted slices.references/telemetry.md, start/resume local event run with origin, follow primary/worker authority. Local workflow store is the sole lifecycle/progress authority; plans/tasks immutable. Summaries retain origin/shape/category/elapsed/aggregate tokens; Plan-direct emits events. Telemetry failure degrades observation, never delivery authority.SCOPE_DOCS: manifest paths or scope/UX/research cited by the plan.references/plan-direct.md for preparation state. On the first verification failure, review finding, E2E gap, or proof failure, read references/repair-policy.md.self: one final comprehensive review; proof ends PASS.parent: IMPLEMENTATION_READY + ACCEPTANCE_PENDING manifest; no final review, proof, or acceptance claim. With --review-profile final-only, every phase records final-only and the parent receives FINAL_REVIEW_PENDING.done|skipped; current affected verification; each phase final-only or reviewed once for recorded compounding risk; every finding dispositioned; no safe authorized work or stale/uncovered final surface; self final review + end-only proof when applicable; no primary-authored planned work; structured telemetry complete or honestly degraded.task_context.md assessment by plan/authority hashes; after scope-safe byte-only review edits, rebind if topology/uncertainty is unchanged; reroute only if absent/materially invalidated. Missing assessment dispatches Skill(spectre-plan-route) to a fresh child agent for one classification. Hash-bound observed size, never depth, decides Plan Review: XS/S record review:not-required:<size> and skip; M+ reuse a closed correctness+simplification chain only with external-attempt/recorded-failure+fallback provenance, completed route/reports, finalized plan hash/disposition, and protected files unchanged; reject route-only/interrupted/NOT DONE; else resume hash-valid or user-decided partial correctness or dispatch ${CLAUDE_PLUGIN_ROOT}/skills/spectre-execute/references/plan-review.md --auto-apply scope-safe --orchestrated once to fresh child. Review-worthy risk reclassifies M+; no hidden XS/S exception. Mechanical repairs stay local; semantic corrections use child. Scope/explicit-design changes remain withheld; scope-safe result proceeds without a second user gate. ATOMIC/DIRECT use the bounded local workstream/Active Wave pattern. For STRUCTURED, pass finalized plan path/hash, closed review evidence, and assessment depth; STRUCTURED dispatches a fresh child with ${CLAUDE_PLUGIN_ROOT}/skills/spectre-execute/references/create-tasks.md --orchestrated (L → standard, XL → comprehensive). No automatic task review; when a user explicitly requests a task-graph audit, load ${CLAUDE_PLUGIN_ROOT}/skills/spectre-execute/references/task-review.md. Select only a validated pair bound to finalized plan and closed review chain. For all preparation children, consume child DONE inside the same Execute run before proceeding.run start with original --source returns the same runId; run status --run-id <id> --json reports it. Compare selected source/preparation hashes before trusting mappings; references/plan-direct.md owns hash-bound pair reuse and source-mode continuity. Fresh structured selection persists its resolved JSON event source so resubmitting the plan resumes the same run. Trust only completed/skipped; every other value is redo-or-verify. INVALID_TASK_TRANSITION means the log is ahead: re-read, never force. Source order alone does not block concurrent dispatch; detail only the ready frontier.references/parallel-scheduling.md before first dispatch; apply it to every source and frontier. Waves guide; phases bound review. Batch at most three sequential parents or bounded plan-direct workstreams. Assign plan-required real-input probes to @spectre:dev before dependent implementation; independent ready work may proceed. Require a sanitized real capture/fixture and observed result against the plan's stop condition; static inference cannot replace them. Every source-owned workstream, including single/sequential work, goes to @spectre:dev; the primary only orchestrates, verifies, accepts, and records state; it never implements planned work. For risk, use Claude claude-opus-5-5 or Codex gpt-6-sol; otherwise defaults. Give exact assignment, context, threatened invariant, and shared contract; omit unrelated ids. Structured dispatch includes exact <workflow_telemetry>. Require the worker to load ${CLAUDE_PLUGIN_ROOT}/skills/spectre-execute/references/tdd.md, run focused checks, commit, return compressed insights, and report E2E Complete|Gap|Adaptation.references/repair-policy.md; implementation reports are leads only.Skill(spectre-work-record) once at start with truthful intent/scope. Workers return compact findings/evidence; after each accepted batch primary invokes Skill(spectre-capture) only for qualifying reusable knowledge. For meaningful blocked handoff/resolved resumption, invoke Skill(spectre-work-record); never task, batch, check, review, commit, or routine-progress update. At terminal completion run finish first, then invoke Skill(spectre-work-record) once with truthful seven-section account and --source-run-id <exact-run>; capturing earlier leaves a start-only delivery receipt Ship can never select. Authorized successful self sends execution: finalized with remainingWork: "None.", independent of Ship, any PR, and later review/CI/merge/closure; parent stays IMPLEMENTATION_READY/ACCEPTANCE_PENDING; blocked/failed/incomplete runs stay non-final with truthful residual work. Capture failure does not block verification, review, proof, lifecycle authority, or delivery; return recovery input.--review-profile final-only, record each verified completed phase as final-only without loading review routing or dispatching a reviewer. Otherwise a phase may be reviewed only after all source-owned tasks/workstreams and adaptations are done|skipped under current affected verification; completion alone is not a trigger. On first phase completion, read references/review-routing.md.
CLEAN or evidence-backed CRITICAL/HIGH with file:line, invariant, observable scenario, evidence chain, smallest in-thread fix. Persist only local route/dispositions, never an intermediate review report. Follow repair policy: one consolidated pass, affected verification, no repair re-review.Compute coverage from the ledger. Run only stale or uncovered checks; never blanket-rerun cumulative verification or a root suite. Expensive harness/performance/full qualification runs only for the final relevant candidate unless a source task produces a prerequisite or product-consumed qualification artifact blocking downstream work. Cache by candidate definition hash = relevant inputs + scenario/config + command; permit one run per hash, rerun only after changed inputs or diagnosed infrastructure invalidation.
parent: require wave gates/review dispositions. Return diff/base, commits/files, test roots, coverage, review route, repair ledger, requirement slices, findings, and ACCEPTANCE_PENDING; add FINAL_REVIEW_PENDING for final-only, requiring one opposite-runtime-first Skill(spectre-code_review) before proof. The manifest names ${CLAUDE_PLUGIN_ROOT}/skills/spectre-execute/references/proof.md and its tuple-bound Validate step as pending acceptance; parent mode ends here and the caller owns that sequence.self: invoke Skill(spectre-code_review) exactly once, high effort, over cumulative diff + requirements/scope without implementer rationale. Structured mode passes completed requirement/AC slices; plan-direct passes PLAN_SOURCE plus relevant EXECUTION_STATE evidence as routing only. It owns delivery/reachability, scope-creep, dead-computation, old-path, and single-source audits. Record its result as a review gate. Give attributable CRITICAL/HIGH one consolidated repair pass, affected verification, and honest dispositions.${CLAUDE_PLUGIN_ROOT}/skills/spectre-execute/references/proof.md once over the final authoritative source and current candidate. This reference invokes Skill(spectre-validate) --orchestrated with the same source, resolved FEATURE_ROOT, and complete BASE_SHA/HEAD_SHA/DIFF_SHA256 tuple, then observes uncovered journeys. Persist validation report, status, and tuple in Proof; a PASS requires status Complete for the exact current tuple. Any Partial, Dead Code, or Missing requirement blocks aggregate PASS and follows the existing repair policy, with fresh current-candidate validation after repair. A genuine authority block is reported truthfully. Parent ACCEPTANCE_PENDING names this Proof reference and tuple-bound validation as its pending acceptance step. Static validation and observed journeys remain distinct. Record Proof as the final acceptance gate; after repair, use targeted rechecks from references/repair-policy.md before another full current-candidate Proof pass; do not terminalize until aggregate PASS or every remainder is NEEDS_AUTHORITY. Formatting, lint, artifact, rebase, or commit-only changes do not trigger reproof. Finish structured runs with the truthful terminal event.plan.execution_outcome; Plan/Execute artifact joins use SHA-256 hashes of raw artifact file bytes, and join failure only degrades telemetry.Parent: machine IMPLEMENTATION_READY/ACCEPTANCE_PENDING (+ FINAL_REVIEW_PENDING), no table. Self terminal: returns counts/coverage/review/dispositions/owner/proof/findings/RUN_ID/telemetry. Companion opens same resolved local file beside conversation; outside same clickable link/no failure; Never publish/share proof.
| Handoff | Details |
|---|---|
| 🧭 Current phase | Complete/recovery. |
| 📦 What was just done | Delivery/impact. |
| ▶️ Proposed next step | Render resolved action. |
| 🔎 Review proof | Render Markdown Review proof; substitute absolute FEATURE_ROOT. |
What was just done contains delivered capability + user impact only; must not include test/review/proof verdicts. Put counts/coverage/review/dispositions/owner/RUN_ID/telemetry outside the table.
High → Fix; coverage or any other closeout → /spectre:spectre-ship; blocked/failed → same table/exact resolved recovery action.
/spectre:spectre-execute <resolved-plan.md> from the original readable plan; if no readable plan exists, report NEEDS_AUTHORITY against the malformed source.NEEDS_AUTHORITY before task generation/delivery.--review-profile final-only without an orchestrated caller that explicitly owns the one final Skill(spectre-code_review) invocation; unsafe/unrelated prompt slice; conflicting acceptance; unavailable authority/capability; required scope change; or unauthorized destructive action.NEEDS_AUTHORITY.references/create-tasks.md (opens in a new tab)references/create-tasks/execute.example.md (opens in a new tab)references/create-tasks/tasks.example.json (opens in a new tab)references/fix-source.md (opens in a new tab)references/parallel-scheduling.md (opens in a new tab)references/plan-direct.md (opens in a new tab)references/plan-review.md (opens in a new tab)references/plan-review/correctness-review.md (opens in a new tab)references/plan-review/simplification-review.md (opens in a new tab)references/proof.md (opens in a new tab)references/proof/proof-html.md (opens in a new tab)references/proof/proof-tools.md (opens in a new tab)references/proof/scripts/validate-proof-html.mjs (opens in a new tab)references/repair-policy.md (opens in a new tab)references/review-routing.md (opens in a new tab)references/scripts/task-review-safety.mjs (opens in a new tab)references/task-review.md (opens in a new tab)references/tdd.md (opens in a new tab)references/telemetry.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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-doctorAssess and repair a project's Spectre knowledge, work history, tags, and retrieval quality through primary-led decisions, parallel evidence review, and delegated repairs. Use for corpus cleanup, claim accuracy review, legacy migration, format compliance, or Knowledge Doctor. Not for installer/runtime diagnostics, product-code fixes, or routine capture./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