Skip to content
Agent Orchestration
Skill

/spectre-ship

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,

BOOST
From plugin
spectre
16521 skills8 agents
Install
$ npx -y skills add joenandez/spectre --skill spectre-ship --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/spectre-ship

Context 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,

SKILL.md

spectre-ship.SKILL.md
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

ship

Own cleanup, rebase, advisory suite, and draft PR.

Inputs

  • `$ARGUMENTS`: optional feature root/artifact, target (default `origin/main`), feedback focus, or `--draft`; live branch/tree/remotes/PR state.

Feature root

  • Reuse a managed `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-feature-root)` through DONE; orchestrated calls escalate. Keep writes beneath it and pass it unchanged.

Proof independence

Proof is optional: do not inspect, infer, invoke, or gate on it. Only authority/publication-safety impasses prevent PR creation.

Outputs + DONE

  • Return PR URL, commits, rebase/tested SHA, verification/repairs, `CI: pending`, measurement, and `PR_OPENED` status `PASS|REPAIRED|PRE_EXISTING_FAILURES|INDETERMINATE|KNOWN_FAILURES_REMAIN`.

**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.

Method / guardrails

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.

  • Attribute failures `branch-caused|unrelated|indeterminate`, preferring target-SHA CI and otherwise reproducing only the failing check at target.
  • Repair branch-caused families; rerun only failing/affected checks, never the full suite. Route unrelated/indeterminate findings; record repaired HEAD and `CI: pending`.
  • Verification is evidence, never a stop condition.

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-

Read more
Ships withspectre

SPECTRE is an Agentic Engineering workflow for Claude Code and Codex designed to help you do ONE THING more, faster, and with higher quality.

Get the whole plugin

Other skills on spectre.