spec-spine: Skill for Claude Code

.claude/skills/prime/SKILL.md

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

A session-start procedure that reads a project's AGENTS.md instructions and follows its new-session checklist. It then produces the project's required status summary.

In plain words
What is it for?
Use it when starting an agent session in a project governed by AGENTS.md, especially when the project requires rules, registry, freshness, or recent-activity checks.
Why use it?
It gives coding agents a consistent way to learn the project's rules, current state, and pending work before making changes. It avoids duplicating the checklist in multiple places.

Skill for Claude Code

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

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/prime/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 prime

README.md
[![agentmods](https://agentmods.dev/badge/skills/statecrafting/spec-spine/prime/github.svg)](https://agentmods.dev/skills/statecrafting/spec-spine/prime)
Your own site
<a href="https://agentmods.dev/skills/statecrafting/spec-spine/prime"><img src="https://agentmods.dev/badge/skills/statecrafting/spec-spine/prime/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 prime

Your own site · 80×15
<a href="https://agentmods.dev/skills/statecrafting/spec-spine/prime"><img src="https://agentmods.dev/badge/skills/statecrafting/spec-spine/prime.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 606 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.00027 $0.00606
Opus 5.5 $0.00011 $0.00242
Sonnet 5.5 $0.00005 $0.00121
Haiku 4.5 $0.00003 $0.00061

Measured 1mo ago against content hash fcf0c0f36e43, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

prime 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 1mo ago.

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/prime/SKILL.md · 55 lines

How it starts

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

/prime: session bootstrap

Thin dispatcher. The canonical protocol lives in AGENTS.md under ## New Sessions, the cross-agent AAIF/Linux Foundation standard read by Claude Code, Codex CLI, Cursor, Copilot, and an orchestrator's driven sessions alike.

What to do

  1. Read AGENTS.md: the section from ## New Sessions inclusive to the next ## heading exclusive. That section is the step list.
  2. Load the standing rules it names first (its own ## Rules section), then execute the protocol, using parallel tool calls wherever it says "dispatch simultaneously".
  3. Emit the structured summary the protocol prescribes: the ## primed: <project> block (the layer model, a ## lifecycle: sub-section from registry status-report, the registry plan ready/blocked line, the freshness verdicts, recent activity, and a ready-to-help line).

This dispatcher deliberately does not duplicate the step list: AGENTS.md is the single source of truth. Evolve the protocol by editing AGENTS.md, never this file, so every agent stays in sync.

Rules

  • The protocol's governed reads go through the spec-spine invocation AGENTS.md names. If spec-spine --version fails, run /setup first (an in-tree build if AGENTS.md says the binary is built from source); never fall back to parsing .statecraft/derived/ by hand.
  • /prime reports, it does not mutate: spec-spine check is the freshness read, never a bare compile or index. It answers for both committed trees and writes nothing. A stale verdict is reported with the shards it names, per tree, and the session continues; repairing the tree is the session's later, committed work, not a side effect of reading it.
  • Establish the binary's version before believing any exit code, which is the read AGENTS.md step 1 schedules. A binary older than the checkout can reject a flag the protocol passes, and reporting that as drift sends someone chasing a phantom. Exit-code semantics live in AGENTS.md, which is where the project layer lives.
  • A file the protocol names but cannot find is logged as "not found" and the protocol continues.

Read the full file on GitHub · 55 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. 1mo ago Changed fcf0c0f36e43
  2. 1mo ago Changed 94d127b27d53
  3. 1mo ago First seen · 55 lines · 27 tokens per session scan A a46063560a3d

Subscribe to this mod's changes

prime is a skill published in the GitHub repository statecrafting/spec-spine (11 stars, last pushed 8d ago), licensed Apache-2.0. It adds 27 tokens to every session and 606 once invoked, about $0.0001 per session on Opus 5.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-09.

Related

prime compared with skills from other repositories

prime next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
primestatecrafting/spec-spineSkill118d agoApache-2.0A27Claude Code
orbit-notionnexu-io/open-designSkill106kyesterdayApache-2.0A117Claude Code, Codex
agentmailpaperclipai/paperclipSkill111kyesterdayMITA30Claude Code, Codex
Cortexdanielmiessler/LifeOSSkill20kyesterdayMITA184Claude Code
rowboat-spacesrowboatlabs/rowboatSkill18kyesterdayApache-2.0A60Claude Code, Codex
feishuHmbown/CodeWhaleSkill41k5d agoMITA33Claude Code, Codex
pinchtab-mcppinchtab/pinchtabSkill11k10d agoMITA52Claude Code, Codex