spectre-capture
Capture durable project decisions, accepted corrections, verified reusable patterns or gotchas, disproved guidance, and changed…
Turn completed branch work into a reviewer-ready PR: directly coordinate cleanup, rebase, one advisory full suite, repair/route failures, and spectre-create_pr. Use when asked to ship finished work. Proof is optional. Do NOT use for implementation, main/master pushes, releases,
$ npx -y skills add joenandez/spectre --skill spectre-ship --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/spectre-shipContext preview
The summary Claude sees to decide when to auto-load this skill.
Turn completed branch work into a reviewer-ready PR: directly coordinate cleanup, rebase, one advisory full suite, repair/route failures, and spectre-create_pr. Use when asked to ship finished work. Proof is optional. Do NOT use for implementation, main/master pushes, releases,
name: "spectre-ship" description: "Turn completed branch work into a reviewer-ready PR: directly coordinate cleanup, rebase, one advisory full suite, repair/route failures, and spectre-create_pr. Use when asked to ship finished work. Proof is optional. Do NOT use for implementation, main/master pushes, releases, or autonomous request-to-PR delivery." user-invocable: true disable-model-invocation: true
Own cleanup, rebase, advisory suite, and draft PR.
Proof is optional: do not inspect, infer, invoke, or gate on it. Only authority/publication-safety impasses prevent PR creation.
**DONE when:** Prune analysts/Test testers finish their gates, then Sweep, rebase, one full suite, repair/routing, measurement relay/degradation, and PR URL. Non-green verification never prevents DONE.
1. **Resolve once.** Confirm branch/target/set; reject `main`/`master`. Read the exact branch; never derive work identity from branch, recency, or ambient roots — selection binds to the frozen post-rebase candidate. `FEATURE_ROOT` is artifact-only. Reuse unambiguous ancestral `CLEANED_THROUGH_SHA`. Invoke `node "${PLUGIN_ROOT}/hooks/scripts/workflow-cli.mjs" measure start --label Ship`; below, `measure` means `node "${PLUGIN_ROOT}/hooks/scripts/workflow-cli.mjs" measure`. 2. **Parallel cleanup boundary.** Classify P0-P3; invoke `measure start` for Prune/Test. Load `${PLUGIN_ROOT}/skills/spectre-ship/references/prune.md` and `${PLUGIN_ROOT}/skills/spectre-ship/references/test.md` with the set/risk/`FEATURE_ROOT`/`--orchestrated`. Skill loading imports instructions, not phase delegation: the primary owns both contracts and makes one parallel dispatch of leaf `@spectre_analyst`/`@spectre_tester` batches; no phase child spawns agents. Neither stages/commits. Invoke `measure finish` after all batches, attaching a child identity only when singular; relay compact paths/checks and repair/route cross-boundary needs unless `NEEDS_AUTHORITY`. 3. **Sweep.** Start `measure start --label "Sweep"`; load `${PLUGIN_ROOT}/skills/spectre-ship/references/sweep.md` with `--orchestrated`, unchanged set, and both results. It alone integrates stale/uncovered checks, repairs attributable failures, and commits; invoke `measure finish` for the Sweep snapshot. 4. **Rebase.** Start `measure start --label "Rebase"`; load `${PLUGIN_ROOT}/skills/spectre-ship/references/rebase.md` with target, `--orchestrated --verification-owner parent`; retain backup summary. No checks; invoke `measure finish` for the Rebase snapshot. 5. **Observe one full suite after rebase.** At `FULL_SUITE_SHA`, derive and freeze candidate `{repository, base, head, diff}` as `EXPECTED_BASE_SHA`/`EXPECTED_HEAD_SHA`/`EXPECTED_DIFF_SHA256`. Before the first PR side effect, select against that frozen tuple with `knowledge-cli.mjs work membership --branch <exact-branch> --candidate <tuple-json>`; freeze its `selected` work-ID set and report `excluded`/`ambiguous` without substituting recency. Still before Create PR, invoke `Skill(spectre-work-record)` per selected record: finalize a complete one with `execution.state` `finalized` and `remainingWork` exactly `None.`; refresh a blocked/incomplete one truthfully and never finalize it. No PR, CI, review, or readiness value enters `remainingWork`. Then invoke `measure start --label "Full suite"` and `measure start --label "Create PR"`. In parallel run the full-suite lane and `Skill(spectre-create_pr)` pending with target, `--orchestrated --pr-phase pending`, the frozen set, and the tuple; it returns a draft with local verification `RUNNING`. At each end invoke `measure finish` with child identity when available. No duplicate suites or raw child output.
6. **Create PR and measure.** After suite call `Skill(spectre-create_pr)` with target, `--orchestrated --pr-phase final-update`, URL/body, the same frozen set, refreshed tuple, and `FINAL_VERIFICATION_SUMMARY`; change Testing only. Refresh claims after repairs; on `PR_CANDIDATE_STALE`, refresh and retry. Once PR identity exists, re-run `work membership` against the final tuple after any repair; a record it no longer proves is reported, not associated. Annotate the still-selected set through one `work associate --work-id <id> … --pull-request-id <id> --candidate <final-json> --pull-request <json>`, replaying `retry.expectedRevisions` via `--expected-revisions` until `associated`/`noop` and reporting `partial` `remaining`. Association annotates only: it never confers finality, PR state is `draft-open`, never merged, and a later Execute run on this branch keeps its own record and joins this same PR only when the updated candidate proves membership. Ambiguity or capture failure returns recovery input but does not block PR. Run `measure summary --rows … --outer-snapshot … --persist --project-
SPECTRE is an Agentic Engineering workflow for Claude Code and Codex designed to help you do ONE THING more, faster, and with higher quality.
Capture durable project decisions, accepted corrections, verified reusable patterns or gotchas, disproved guidance, and changed…
Run final adversarial review through a pinned high-effort opposing runtime with one native fallback. Use at the final boundary to…
Generate a grounded draft pull request from the actual diff and open it via gh. Use when wrapping up a branch or writing a PR…
Assess and repair a project's Spectre knowledge, work history, tags, and retrieval quality through primary-led decisions,…
Execute tasks/plans with checks/reviews/proof. Use after planning/resume. Not for planning, unplanned fixes, or pruning.
Internal initializer for a missing Spectre feature root. Invoke only from a standalone workflow with no confirmed managed root.…