spec-spine: Skill for Claude Code

.claude/skills/ship/SKILL.md

ship is a skill for Claude Code from statecrafting/spec-spine. It costs 51 tokens per session (1,450 once invoked), scanned A, original, Apache-2.0.

A pre-pull-request workflow for checking a branch, running the project gate, reviewing changes, creating a conventional commit, pushing it, and opening a pull request. A pull request is a request for teammates and automated checks to review proposed changes.

In plain words
What is it for?
It is for preparing a feature branch, checking the working tree, committing the intended files, pushing them, and opening a pull request with the required validation evidence.
Why use it?
It turns the final steps before review into a defined sequence and stops work on the default branch or changes that have not passed the required checks.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions AGENTS.md.

This is statecrafting/spec-spine's own configuration. It tells Claude Code how to work on spec-spine itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything spec-spine configures →

Reuse

Borrowing it

Nothing to install: this file belongs to statecrafting/spec-spine. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/statecrafting/spec-spine/main/.claude/skills/ship/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/statecrafting/spec-spine

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ship

README.md
[![agentmods](https://agentmods.dev/badge/skills/statecrafting/spec-spine/ship/github.svg)](https://agentmods.dev/skills/statecrafting/spec-spine/ship)
Your own site
<a href="https://agentmods.dev/skills/statecrafting/spec-spine/ship"><img src="https://agentmods.dev/badge/skills/statecrafting/spec-spine/ship/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ship

Your own site · 80×15
<a href="https://agentmods.dev/skills/statecrafting/spec-spine/ship"><img src="https://agentmods.dev/badge/skills/statecrafting/spec-spine/ship.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,450 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00051 $0.01450
Opus 5 $0.00026 $0.00725
Sonnet 5 $0.00010 $0.00290
Haiku 4.5 $0.00005 $0.00145

Measured yesterday against content hash d1683a5bb5dc, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

ship scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/ship/SKILL.md · 130 lines

How it starts

The opening of the file, as written. The whole thing — 130 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/ship: gate, review, commit, PR

Sequences the steps that turn a working tree into a PR. This is the "Ship" step of AGENTS.md "Working the backlog". Bound by .claude/rules/orchestrator-rules.md (checkpoints are real stops) and .claude/rules/adversarial-prompt-refusal.md (never edit an owning spec to make the gate pass). The gate is the spec-spine invocation AGENTS.md names; if it is missing, run /setup.

Step 0: preflight

  • git branch --show-current. The branch must be a feature branch, named after the spec id when the change implements one. On the default branch, STOP and create the branch first (git switch -c <spec-id>); the PreToolUse hook refuses a push to the default branch regardless.
  • git status --short. Confirm the changes are the intended set: the spec's territory, the spec's own spec.md (frontmatter flipped, decision entries recorded), and the regenerated derived shards. Surface anything unexpected before proceeding.
  • git fetch origin main so the coupling gate has a base.

Step 1: run the gate locally

Run the gate exactly as AGENTS.md lists it under "Run the gate before every commit". The governance floor:

spec-spine compile
spec-spine index
spec-spine lint --fail-on-warn
spec-spine index check
spec-spine couple --base origin/main --head HEAD
spec-spine index coverage --fail-on-untraced   # when [coupling] require_ownership is on

then the stack's own build, tests, and lints. Stop on the first failure (orchestrator rule: halt, never continue silently). Outcomes:

  • All green: continue to Step 2.
  • index check stale (exit 2): spec-spine index, stage the derived directory, and re-run. The shards are committed with the change they describe.
  • couple drift (C-001): a changed path is claimed by a spec that did not change. Two legitimate paths, chosen explicitly:
    1. Fix the coupling. The path belongs to the spec you are implementing: add it to that spec's establishes, or declare an extends edge on the owning spec's unit in your spec's frontmatter. The gate enforces the declared graph, not prose. Do NOT edit the other spec to retroactively justify code that contradicts its design: that is a coherence-guard halt; surface the contradiction and stop.
    2. Waiver. A cited Spec-Drift-Waiver: <reason> line in the PR body. CHECKPOINT: requires explicit human approval in this session. A waiver is a human instrument; standing authorization (below) never covers it.
  • couple unclaimed (C-002): a source file no spec specifically claims. Claim it in the implementing spec's establishes list; the ownership ratchet has no waiver-free path by design.
  • index coverage --fail-on-untraced lists a file: same remedy as C-002.
  • A stack gate fails: fix it. Never disable a test, never loosen a lint, never regenerate a never-touch artefact the path-scoped rules name (that is a human decision; stop and report).

Read the full file on GitHub · 130 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 130 lines · 51 tokens per session scan A d1683a5bb5dc

Subscribe to this mod's changes

ship is a skill published in the GitHub repository statecrafting/spec-spine (10 stars, last pushed today), licensed Apache-2.0. It adds 51 tokens to every session and 1,450 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-07.