spec-checkpoint

spec-checkpoint is a skill for Claude Code from benjaminthomas/spec-driven-dev. It costs 98 tokens per session (896 once invoked), scanned A, original, MIT.

A skill for creating a checkpoint commit, which is a saved group of the current project changes in version control. It first checks the code with linting, type checking, and a build.

In plain words
What is it for?
Use it when saving all current work, creating a commit, or responding to a checkpoint request. It reviews changes, runs quality checks, stages files, and prepares the commit.
Why use it?
It prevents unfinished or failing code, and possible secret files, from being included in a progress commit.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Codex; mentions Cursor.

Part of the spec-driven-dev plugin — 6 skills shipped together

Good fit Use it when saving all current work, creating a commit, or responding to a checkpoint request. It reviews changes, runs quality checks, stages files, and prepares the commit.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/benjaminthomas/spec-driven-dev/spec-checkpoint
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add benjaminthomas/spec-driven-dev --skill spec-checkpoint
Clone the repo
git clone --depth 1 https://github.com/benjaminthomas/spec-driven-dev

Made for: Claude Code.

Or install spec-driven-dev, the plugin that ships this one along with the rest of its 6 skills.

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 spec-checkpoint

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/benjaminthomas/spec-driven-dev/spec-checkpoint"><img src="https://agentmods.dev/badge/skills/benjaminthomas/spec-driven-dev/spec-checkpoint.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 98 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 896 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.00098 $0.00896
Opus 5.5 $0.00039 $0.00358
Sonnet 5.5 $0.00020 $0.00179
Haiku 4.5 $0.00010 $0.00090

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

Security

Grade A, and why

spec-checkpoint 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.

skills/spec-checkpoint/SKILL.md · 95 lines

How it starts

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

Checkpoint Commit

Create a checkpoint commit that captures all current changes — but only after the code passes lint, type check, and build.

Instructions

Step 1: Analyze Changes

Run these commands to understand the full picture:

  1. git status — see all tracked and untracked files
  2. git diff — see detailed changes in tracked files
  3. git diff --cached — see already-staged changes
  4. git log -5 --oneline — understand this repo's commit message style

Step 2: Quality Checks

Run all three checks. If any fail, fix the issues before proceeding — do not skip or ignore failures.

  1. npm run lint — fix any lint errors
  2. npm run type-check — fix any type errors (if the script doesn't exist, try npx tsc --noEmit)
  3. npm run build — fix any build errors

Iterate until all three pass cleanly. Only then move to the next step.

Step 3: Stage Everything

Stage all changes — tracked modifications, deletions, and new untracked files:

git add -A

Then review git status again. If anything staged looks like it could hold secrets — .env*, *.pem, *_rsa, credentials.json, secrets.*, or an unfamiliar filename that might contain an API key — unstage it (git restore --staged <file>) and tell the user what was excluded and why, rather than committing it silently. Don't rely on the filename alone for anything you don't recognize; skim its diff if you're unsure.

Step 4: Craft the Commit Message

Write a commit message following the project's existing conventions (observed from git log). Structure:

  • First line: clear, concise summary in imperative mood (50-72 chars)
    • Use conventional commit prefixes where the project uses them: feat:, fix:, refactor:, docs:, chore:, etc.
  • Body (separated by blank line): a short TL;DR of the changes — 1-3 sentences max. No bullet lists, no file-by-file breakdowns, no lengthy explanations.
  • Footer: co-author attribution, naming whichever agent/model is actually running this skill — never hardcode a specific vendor or model name, since this skill runs under many different hosts

Read the full file on GitHub · 95 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 First seen · 95 lines · 98 tokens per session scan A 1c1ea2858bb2

Subscribe to this mod's changes

spec-checkpoint is a skill published in the GitHub repository benjaminthomas/spec-driven-dev (1 stars, last pushed 2mo ago), licensed MIT. It adds 98 tokens to every session and 896 once invoked, about $0.0004 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-08-31.

Related

Other skills, from other repositories