spec-spine: Skill for Claude Code

.claude/skills/code-review/SKILL.md

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

A read-only review of the current code difference, or diff, against its expected specification and project rules. It reports correctness bugs, contract drift, and broken invariants with file and line evidence.

In plain words
What is it for?
It helps review committed and uncommitted changes, inspect affected source and configuration, and run checks that confirm compilation and index freshness.
Why use it?
A change can pass basic checks yet still violate its intended behavior or the rules governing the affected files.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md; 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 →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is sh scripts/statecraft/gate.sh governance.

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/code-review/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 code-review

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/statecrafting/spec-spine/code-review"><img src="https://agentmods.dev/badge/skills/statecrafting/spec-spine/code-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,611 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.00037 $0.01611
Opus 5.5 $0.00015 $0.00644
Sonnet 5.5 $0.00007 $0.00322
Haiku 4.5 $0.00004 $0.00161

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

Security

Grade A, and why

code-review 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/code-review/SKILL.md · 140 lines

How it starts

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

/code-review: correctness, spec drift, invariants

Reviews the current diff against three questions: does the change have correctness or edge-case bugs, does it still match its owning spec's contract, and does it hold the invariants the project's path-scoped rules name. Output is an evidence-oriented findings list, each line citing file:line. Nothing authored is modified. The gate's read-only forms (scripts/statecraft/gate.sh governance, which includes the composed freshness read) are used so the review never dirties the tree; a stale verdict is itself a finding.

Step 0: scope the diff

git fetch origin
BASE="$(git symbolic-ref --short refs/remotes/origin/HEAD 2>/dev/null || echo origin/main)"   # spec 093: resolved, not assumed
git status --short && git diff --stat && git log --oneline -10
git diff "$BASE"...HEAD --stat        # committed delta
git diff HEAD --stat                  # uncommitted delta
git diff "$BASE"...HEAD --name-only; git diff HEAD --name-only

Note which classes changed: source, specs (specs/**/spec.md), standards (standards/**), the harness (.claude/**, AGENTS.md, CLAUDE.md, workflows), scripts, docs, derived shards.

Step 1: the gate stays green

sh scripts/statecraft/gate.sh governance
BASE_SHA="$(git symbolic-ref --short refs/remotes/origin/HEAD 2>/dev/null || echo origin/main)" \
  HEAD_SHA=HEAD PR_BODY="${PR_BODY:-}" sh scripts/statecraft/gate.sh couple

then the stack's own build, tests, and lints as AGENTS.md lists them.

  • A couple failure is the headline finding: cite the file the gate named and the owning spec whose declared edges fail to cover it.
  • An unclaimed file from coverage is a finding against the implementing spec's establishes.
  • A lint or freshness failure from governance mode is a corpus finding: cite the diagnostic verbatim. Stale shards mean the change forgot to run compile and index and commit the result; the fix is to do that, not to hide it.

Step 2: spec-contract match

Read the full file on GitHub · 140 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 5258c432547e
  2. 1mo ago Changed b1dd4c60e624
  3. 1mo ago Changed 52ea781a6370
  4. 1mo ago Changed acfd7133e580
  5. 1mo ago Changed a5e4fbe457a2
  6. 2mo ago First seen · 140 lines · 37 tokens per session scan A 15b731dbe74f

Subscribe to this mod's changes

code-review is a skill published in the GitHub repository statecrafting/spec-spine (11 stars, last pushed 8d ago), licensed Apache-2.0. It adds 37 tokens to every session and 1,611 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-07.

Related

code-review compared with skills from other repositories

code-review next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
code-reviewstatecrafting/spec-spineSkill118d agoApache-2.0A37Claude Code
sync-bridgechromium/chromiumSkill25kyesterdayBSD-3-ClauseA109Claude Code, Codex
sync-model-processorchromium/chromiumSkill25kyesterdayBSD-3-ClauseA98Claude Code, Codex
adversarial-revieweremdash-cms/emdashSkill14kyesterdayMITA72Claude Code, Codex
gsd-ns-reviewopen-gsd/gsd-coreSkill11kyesterdayMITA16Claude Code
gitnexushashgraph-online/awesome-codex-pluginsSkill1.5kyesterdayApache-2.0A58Codex
issuejeremylongshore/tons-of-skills-marketplaceSkill2.9kyesterdayMITA115Claude Code