checkpoint

Featured

Mid-task rollback points — save/restore state before risky ops (refactors, migrations, destructive edits). For end-of-session save use `/handoff`. Triggers "checkpoint", "snapshot", "before this risky op", "rollback to", "list checkpoints", pre-refactor save.

AI & Automation 42 stars 3 forks Updated today MIT

Install

View on GitHub

Quality Score: 89/100

Stars 20%
54
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Checkpoint: Save & Restore Task State ## Subcommands ### save [label] Save current state with an optional label. ```bash bun ~/.claude/src/scripts/checkpoint.ts save "Completed phase 3 migration" ``` ### list List all checkpoints for the current project. ```bash bun ~/.claude/src/scripts/checkpoint.ts list ``` ### show [checkpoint-id] Show details of a specific checkpoint. ```bash bun ~/.claude/src/scripts/checkpoint.ts show chk-20240115-103000 ``` ### restore [checkpoint-id] [--force] Real, opt-in rollback — restores tracked files (working tree + index) to exactly what they were at save time, then reapplies whatever uncommitted changes existed at that moment (captured as a patch when the checkpoint was saved). Untracked files are never touched or deleted; if any existed at save time they're just listed as a warning (their content was never captured). Scope note: restore reconstructs file *content* only — anything that was staged at save time comes back as unstaged working-tree changes (the patch reapplies to the worktree; index state is intentionally not reconstructed). Safety rails: - **Auto safety-checkpoint first.** Before anything is touched, the current state is saved as its own checkpoint and its id is printed — restore is itself reversible by restoring that id (with `--force`). - **Branch/sha guard.** If the current branch or HEAD differs from what the checkpoint recorded, restore refuses and tells you to check out that branch or pass `--force`....

Details

Author
darkroomengineering
Repository
darkroomengineering/cc-settings
Created
7 months ago
Last Updated
today
Language
TypeScript
License
MIT

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Listed

checkpoint

Capture the full Claude Code session state to disk so the user can safely restart Claude Code and pick up exactly where they left off. Pauses active loops, writes TaskList + background-process snapshot + handoff notes. Use when user says "checkpoint", "save state to restart", "I want to restart Claude safely", "pause everything", "/restart". After this runs, the user can /exit + relaunch + /restore.

0 Updated 1 weeks ago
thepictishbeast
AI & Automation Solid

checkpoint

保存、恢復、列出長 session checkpoint;記錄 branch、ticket、todo、recent activity,方便中斷或 context compression 後接續。 session 要中斷、或剛被壓縮完要接回來的時候。例如「存檔」「checkpoint」 「恢復」「列出存檔」。 也用於:想知道上一次做到哪、有哪些 checkpoint 可以接。 不用於:一張單走到哪一站(那寫在單自己的狀態裡,走 driving-work-to-done)。

5 Updated today
HsuanYuLee
Data & Documents Listed

checkpoint

Write a committed, cross-machine handoff snapshot - active plan, decisions made, file pointers with line numbers, open questions, and the next 1-3 concrete actions - to `.claude/session-reports/`. Use when the user says "checkpoint", "save state", "snapshot before I stop", "where am I", "wrap up for handoff", or before a long break, a model switch, or handing the repo to a collaborator. Auto-memory is machine-local and `/rewind` is in-session undo; the checkpoint is the artifact that travels with the repo.

1 Updated 2 weeks ago
groundnuty