Checkpoint

From senda-labs/DQIII8 · View interactive version

Checkpoint is an AI agent skill from the GitHub repository senda-labs/DQIII8. Save and verify session state using git commits and a checkpoints log. Use before risky multi-file changes or after completing a significant implementation block.

How to use this skill

Skill file

/checkpoint — Save and Verify Session State

Save or verify a named checkpoint using git + .claude/checkpoints.log.

Usage

/checkpoint create [name]    — Save current state
/checkpoint verify [name]    — Compare current state to checkpoint
/checkpoint list             — Show recent checkpoints

Create Checkpoint

When create [name] is called:

  1. Run /quality-gate quick check (black + pytest -x -q)
  2. Create a git commit with the checkpoint name:

```bash

git add -p # stage only intended changes

git commit -m "checkpoint: [name]"

```

  1. Append to .claude/checkpoints.log (create it first if absent, otherwise

verify/list fail on a fresh install):

```bash

[ -f .claude/checkpoints.log ] || touch .claude/checkpoints.log

echo "$(date +%Y-%m-%d-%H:%M) | [name] | $(git rev-parse --short HEAD)" >> .claude/checkpoints.log

```

  1. Report: CHECKPOINT CREATED: [name] @ [hash]

Verify Checkpoint

When verify [name] is called:

  1. Read the checkpoint hash from .claude/checkpoints.log

```bash

[ -f .claude/checkpoints.log ] || touch .claude/checkpoints.log

```

  1. Compare current state:

```bash

git diff [hash]..HEAD --stat

git diff [hash]..HEAD -- '*.py' | head -60

```

  1. Report:

```

CHECKPOINT COMPARISON: [name]

==============================

Commits since: N

Files changed: X added / Y modified / Z deleted

Build: PASS / FAIL

Tests: +N passed / -N failed

```

List Checkpoints

[ -f .claude/checkpoints.log ] || touch .claude/checkpoints.log
tail -20 .claude/checkpoints.log

Typical Workflow

/checkpoint create "before-p2a"
  → implement 5 skills + 3 commands
/checkpoint verify "before-p2a"
  → confirm only expected files changed
/checkpoint create "p2a-complete"

Arguments

Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.