agentleFS
benjaminthomasbenjaminthomas/spec-driven-dev/skills/spec-checkpoint/SKILL.md

spec-checkpoint

Skill2 starsChanged 6 days agoMITView on GitHub

Create a comprehensive checkpoint commit with detailed analysis of all changes. Use this skill when the user says "checkpoint", "commit everything", "save my progress", "create a commit", or wants to stage and commit all current changes with a well-crafted message. Also use when the user says "/spec-checkpoint" (or their host's equivalent invocation syntax) or asks to snapshot current work. This skill stages all changes and creates a descriptive commit — it does not push.

  • Reads credentials

The file

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. About 0 are common, 9 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

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

    line 15
  2. Distinctive:

    Multi-repo: run this in every listed repo that has changes, making one commit per repo with the same subject.

    line 25
  3. Very specific:

    No config?: If the spec-setup skill is available, run it first, then continue here.

    line 27
  4. Distinctive:

    Run these commands to understand the full picture:

    line 36
  5. Very specific:

    Use commands from .spec-driven.yml.

    line 45
  6. Very specific:

    Write a commit message in the config's git.commit_style (conventional → feat: …, ticket → STP-123: … using the ticket ID from the branch …

    line 68
  7. Very specific:

    Use conventional commit prefixes where the project uses them: feat:, fix:, refactor:, docs:, chore:, etc.

    line 71
  8. Distinctive:

    Create the commit using a heredoc for proper formatting:

    line 79
  9. Distinctive:

    If the repo has no git history, run git init first

    line 104
  10. Distinctive:

    All quality checks (lint, type-check, build) MUST pass before committing — fix issues, don't skip them

    line 105
  11. Distinctive:

    Keep the commit body short — a TL;DR, not an essay

    line 106
  12. Distinctive:

    Follow the project's existing commit conventions (check the log first)

    line 107
  13. Distinctive:

    Do not push — only commit locally

    line 108

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Checkpoint Commit

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

Project config (read first)

Load .spec-driven.yml: walk up from the current directory to the home folder, and the first one found wins (a multi-repo config only applies inside the repos it lists). If none is found, check ~/.spec-driven/workspaces.json, which maps each multi-repo config to its repo paths. Use the config whose repos contain the current directory, because a workspace's repos can live in unrelated folders. Its values beat anything you would detect or assume. This skill uses commands (lint/typecheck/test/build), git.commit_style, and layout/repos.

Multi-repo: run this in every listed repo that has changes, making one commit per repo with the same subject. Monorepo: run the checks for the packages that changed, or the root commands if that's how the repo works.

No config? If the spec-setup skill is available, run it first, then continue here. If it isn't, detect what this skill needs from the repo, ask about anything ambiguous, and offer to save the answers to .spec-driven.yml (keys: layout, repos, tracker, git, commands, specs_dir).

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

Use commands from .spec-driven.yml. For any that are missing, find the repo's own lint, typecheck, test, and build commands — package.json scripts (with the repo's package manager), Makefile, pyproject.toml, Cargo.toml, CI config, or CLAUDE.md/ AGENTS.md. Run each one the repo has; skip (and say so) any it doesn't. If any fail, fix the issues before proceeding — do not skip or ignore failures.

Iterate until every check passes 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 in the config's git.commit_style (conventional → feat: …, ticket → STP-123: … using the ticket ID from the branch name, freeform). Without config, follow 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

Step 5: Commit

Create the commit using a heredoc for proper formatting:

git commit -m "$(cat <<'EOF'
{first line}

{tldr}

Co-Authored-By: {agent name} <noreply@example.com>
EOF
)"

Fill in {agent name} with whatever the current agent/model actually identifies as (e.g. "Claude", "Codex", "Cursor Agent") — if your host has no clean way to identify itself, omit the footer entirely rather than guessing.

Step 6: Report

Display:

  • The commit hash and message summary
  • Files changed count
  • Insertions/deletions summary

Important

  • Stage and commit everything except files that look like secrets or credentials (see Step 3) — check contents, not just filenames, before assuming something is safe to commit
  • If the repo has no git history, run git init first
  • All quality checks (lint, type-check, build) MUST pass before committing — fix issues, don't skip them
  • Keep the commit body short — a TL;DR, not an essay
  • Follow the project's existing commit conventions (check the log first)
  • Do not push — only commit locally

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.