spec-spine: Skill for Claude Code

.claude/skills/commit/SKILL.md

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

A procedure for creating a Git commit, a saved snapshot of repository changes, with a conventional message scoped to the relevant specification. It also stages regenerated index files that belong with the change.

In plain words
What is it for?
It helps inspect staged and unstaged changes, verify the branch and project gate, choose a commit type, and create a correctly formatted commit.
Why use it?
Commits can omit generated files, use unclear messages, or capture changes made on the wrong branch or with failing 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/commit/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 commit

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/statecrafting/spec-spine/commit"><img src="https://agentmods.dev/badge/skills/statecrafting/spec-spine/commit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,084 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.00038 $0.01084
Opus 5 $0.00019 $0.00542
Sonnet 5 $0.00008 $0.00217
Haiku 4.5 $0.00004 $0.00108

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

Security

Grade A, and why

commit 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/commit/SKILL.md · 120 lines

How it starts

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

/commit

Create a git commit following these steps. Text that lands in git is public under the author's name: the banned list at the end is not optional.

0. Preflight

  • git branch --show-current is not the default branch. Work lands on a feature branch, named after the spec id when it implements one; the push hook refuses the default branch anyway, but do not get there.
  • The gate has run green on this tree since the last edit (the command list in AGENTS.md "Working the backlog", "Run the gate before every commit"). If it has not, run it now; a commit on a red gate is a commit that will be amended.
  • git diff --stat -- .derived/: shards the gate regenerated belong in this commit with the change they describe. build-meta.json is gitignored, so git add .derived/ is safe. Never stage the tool-state directory spec-spine.toml [layout] state_dir names.

1. Survey the changes

git status
git diff --cached
git diff
git log --oneline -5

Identify what is staged versus unstaged, the nature of each change (feature, fix, refactor, docs, test, chore, ci), and the user-visible impact. Match the scoping visible in recent history.

2. Draft a conventional-commit message

Format: type(scope): subject

Type (required): feat, fix, refactor, docs, test, chore, ci.

Scope: the three-digit ordinal of the spec the change implements or amends: feat(017): ..., fix(011): ..., docs(024): .... Several specs: feat(045,046): .... A shard-only regeneration uses chore(derived): ...; a release bump chore(release): ...; a change with no owning spec uses an area name (ci(workflows): ...).

Subject line:

  • 72 characters maximum (hard limit; count them).
  • Lead with the impact or problem solved, not the technique used.
  • No trailing period. No emojis. No em dash.

Good versus bad:

  • BAD: refactor(017): extract helper for parent sorting
  • GOOD: feat(017): ledger entries reject unsorted or duplicate parents
  • BAD: fix(005): update validation
  • GOOD: fix(005): the coupling gate names the owning spec on C-001

Read the full file on GitHub · 120 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 · 120 lines · 38 tokens per session scan A f8424d82ba47

Subscribe to this mod's changes

commit is a skill published in the GitHub repository statecrafting/spec-spine (10 stars, last pushed today), licensed Apache-2.0. It adds 38 tokens to every session and 1,084 once invoked, about $0.0002 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.