Skip to content
Back to skills

Squirrel Checkpoint

ASecurity

Explicitly create or update the current project's resume checkpoint with compare-and-swap protection.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 1, 2026
ai-agentspythonshellgitdatabase

Security analysis

A100/100

Scanned December 1, 2026

npx -y skills add thgMatajs/squirrel-mode --skill squirrel-checkpoint --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Squirrel Checkpoint?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Squirrel Checkpoint
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/thgmatajs-squirrel-checkpoint/badge)](https://www.skillsdirectory.com/skills/thgmatajs-squirrel-checkpoint)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: squirrel-checkpoint
description: "Explicitly create or update the current project's resume checkpoint with compare-and-swap protection."
---

<!-- GENERATED FILE. Source: targets/codex/skills/squirrel-checkpoint/SKILL.md; installed by targets/codex/install.sh. -->

# squirrel-checkpoint

Run only when the user explicitly asks to save or update project state. Codex has no verified automatic checkpoint lifecycle here; never write at turn end automatically.

1. Run `python3 "$HOME/.agents/skills/squirrel-checkpoint/squirrel.py" checkpoint-show --cwd "$PWD"`.
2. If `stale` is true, report the age and ask the user to confirm the current state before replacing it. If `body` is null, start a new checkpoint and say no prior state exists; do not reconstruct from chat history.
3. Write a compact Markdown checkpoint with `## Doing`, `## Next`, `## Waiting on` (optional), `## Open decisions` (optional), and `## Done` (optional). Store a resume summary and links/pointers to authoritative plans, issues, trackers, or databases. Never copy financial balances, transactions, payment status, credentials, or standing authorization into it.
4. Use the exact `path` and `revision` returned by the helper. Submit the complete new Markdown on stdin to `checkpoint-write --cwd "$PWD" --expected '<revision>'`. Use a quoted here-document delimiter that does not occur in the content. Do not write the file with shell redirection, `cat`, or another tool.
5. If the helper reports that the revision changed, preserve both versions and show the conflict; reread and reconcile only after user direction. Never retry with a fresh revision while discarding the first proposal.

The helper keys Git projects by canonical Git common directory, so the repository root, subdirectories, and linked worktrees share one local checkpoint. A non-Git directory uses its canonical path. The checkpoint remains under `~/.squirrel/checkpoints/`, outside the repository.

## Python requirement

This skill requires Python 3.8 or newer and uses only the standard library. If Python is unavailable, explain that no checkpoint was written.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.