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 44 stars 3 forks Updated today MIT

Install

View on GitHub

Quality Score: 90/100

Stars 20%
55
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Checkpoint: Save & Restore Task State ## Product-aware runner Set these once for the active host. `checkpoint.ts` uses `claudePath`, so pass the matching state root on every invocation. ```bash # Standalone Codex CHECKPOINT_RUNNER="${CODEX_HOME:-$HOME/.codex}/darkroom/source/src/scripts/checkpoint.ts" CC_STATE_ROOT="${CODEX_HOME:-$HOME/.codex}/darkroom/state" # Claude Code instead uses: # CHECKPOINT_RUNNER="$HOME/.claude/src/scripts/checkpoint.ts" # CC_STATE_ROOT="$HOME/.claude" ``` ## Subcommands ### save [label] Save current state with an optional label. ```bash CC_SETTINGS_HOME="$CC_STATE_ROOT" bun "$CHECKPOINT_RUNNER" save "Completed phase 3 migration" ``` ### list List all checkpoints for the current project. ```bash CC_SETTINGS_HOME="$CC_STATE_ROOT" bun "$CHECKPOINT_RUNNER" list ``` ### show [checkpoint-id] Show details of a specific checkpoint. ```bash CC_SETTINGS_HOME="$CC_STATE_ROOT" bun "$CHECKPOINT_RUNNER" 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 unst...

Details

Author
darkroomengineering
Repository
darkroomengineering/cc-settings
Created
8 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