checkpoints-and-rewind

checkpoints-and-rewind is a skill for Claude Code, Codex from ChrisLamDev/hermes-core-skills. It costs 50 tokens per session (1,432 once invoked), scanned A, original, MIT.

A safety procedure for creating a recoverable checkpoint before risky changes, such as deleting files, changing Git history, or refactoring several files. A checkpoint is a saved state that can be restored if the work goes wrong.

In plain words
What is it for?
Use it before large refactors, deletions, destructive Git commands, experimental changes, or automatic code fixes across multiple files.
Why use it?
It reduces the risk of losing working code during destructive or experimental changes.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents; mentions Claude Code; mentions Codex.

Good fit Use it before large refactors, deletions, destructive Git commands, experimental changes, or automatic code fixes across multiple files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/chrislamdev/hermes-core-skills/checkpoints-and-rewind
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 ChrisLamDev/hermes-core-skills --skill checkpoints-and-rewind
Clone the repo
git clone --depth 1 https://github.com/ChrisLamDev/hermes-core-skills

Made for: Claude Code, Codex.

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 checkpoints-and-rewind

README.md
[![agentmods](https://agentmods.dev/badge/skills/chrislamdev/hermes-core-skills/checkpoints-and-rewind/github.svg)](https://agentmods.dev/skills/chrislamdev/hermes-core-skills/checkpoints-and-rewind)
Your own site
<a href="https://agentmods.dev/skills/chrislamdev/hermes-core-skills/checkpoints-and-rewind"><img src="https://agentmods.dev/badge/skills/chrislamdev/hermes-core-skills/checkpoints-and-rewind/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 checkpoints-and-rewind

Your own site · 80×15
<a href="https://agentmods.dev/skills/chrislamdev/hermes-core-skills/checkpoints-and-rewind"><img src="https://agentmods.dev/badge/skills/chrislamdev/hermes-core-skills/checkpoints-and-rewind.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,432 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.00050 $0.01432
Opus 5 $0.00025 $0.00716
Sonnet 5 $0.00010 $0.00286
Haiku 4.5 $0.00005 $0.00143

Measured 9d ago against content hash 3e81c0cdf889, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

checkpoints-and-rewind 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 9d 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/checkpoints-and-rewind/SKILL.md · 206 lines

How it starts

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

Checkpoints & Rewind

Overview

Before making risky or irreversible changes, create a checkpoint. If things go wrong, rewind to the checkpoint. This gives you the confidence to experiment without fear of breaking things.

Core principle: Every multi-file change starts with a safety net.

When to Use

  • Before large refactors — Moving code, renaming files, changing architecture
  • Before deleting anything — Files, directories, database data
  • Before destructive git operationsgit reset, git rebase, git clean
  • Before trying experimental approaches — "Let's see if this works"
  • At the start of any task that modifies 3+ files
  • Before running auto-fix in code review (Step 7 of requesting-code-review)

Do NOT use for: Single-file edits, reading files, running tests, or any operation that's trivially undoable.

How to Create a Checkpoint

Method 1: Git Commit (Recommended)

# Before making changes
git add -A && git commit -m "[checkpoint] before <description>"

# Make your changes...

# If things go wrong:
git reset --hard HEAD~1

# If things go right:
# Keep the checkpoint commit, or squash it later

Method 2: Git Stash (For Experiments)

# Before making changes
git stash push -m "checkpoint: <description>"

# Make your changes... (starting from clean state)

# If things go wrong:
git stash pop  # restore the checkpoint (undoes your changes)

# If things go right:
git stash drop  # discard the checkpoint

Method 3: Manual Backup (No Git)

# Before making changes
cp -r important_file.ts important_file.ts.checkpoint

# Make your changes...

# If things go wrong:
cp important_file.ts.checkpoint important_file.ts

# Clean up after success:
rm important_file.ts.checkpoint

Naming Convention

Always include:

  • [checkpoint] prefix (easy to search in git log)
  • What you're about to do
  • Date/time if helpful

Good:

[checkpoint] before refactoring ChantingHall to adapter pattern
[checkpoint] before trying experimental rendering approach
[checkpoint] before deleting old story-data.js

Read the full file on GitHub · 206 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. 9d ago First seen · 206 lines · 50 tokens per session scan A 3e81c0cdf889

Subscribe to this mod's changes

checkpoints-and-rewind is a skill published in the GitHub repository ChrisLamDev/hermes-core-skills (9 stars, last pushed 2mo ago), licensed MIT. It adds 50 tokens to every session and 1,432 once invoked, about $0.0003 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-08-31.

Related

Other skills, from other repositories

iterm2-layout

Configure iTerm2 workspace layouts with TOML. TRIGGERS - iTerm2 layout, workspace tabs, layout.toml, AutoLaunch.

terrylica/cc-skills · 35 tokens

pull-request-automation

Audits and improves the pull request workflow for a GitHub repository. Covers PR description templates, auto-labelling, CODEOWNERS, PR size checks, and branch protection rules. Invoked when the user asks to improve the PR process, set up PR automation, or add a PR template.

soulcodex/agentic · 65 tokens

ship

Commit, push, create PR(s), and auto-finalize — full automation pipeline. Handles uncommitted changes and recently created PRs.

dryvist/claude-code-plugins · 30 tokens

github-release-management

GitHub release orchestration — automated versioning, testing, deployment, and rollback. Use when cutting a release, tagging a version, drafting release notes, or coordinating a deploy/rollback workflow.

frankxai/claude-skills-library · 43 tokens

magpie-release-vote-tally

After the approval window closes, fetch the approval signal for an RC of , classify each reply as +1 / 0 / -1 and binding or non-binding against the configured roster, produce the tally summary, and draft the [RESULT] [VOTE] email. Never sends mail and never applies a label without explicit RM confirmation.

apache/magpie · 84 tokens

slackcli

Read, send, search, and manage Slack workspaces with the slackcli binary. Installs slackcli if missing and checks or proposes authentication first. Use whenever the user mentions Slack or pastes a slack.com link.

shaharia-lab/slackcli · 48 tokens