checkpoint
Skill6 starsChanged 14 days agoApache-2.0View on GitHub
Create a safety checkpoint marker before mutation or execution steps. Use when about to modify files, execute plans, or perform any irreversible action. Essential for the CAVR pattern.
- Reads credentials
91 other projects use a version of this.
Adopted by
Most recently taken up by
- TheLunchTrae/claude-code-configstheir own version, first seen Nov 8, 2026
- codewithmukesh/dotnet-claude-kittheir own version, first seen Nov 8, 2026
- pedrohcgs/claude-code-my-workflowtheir own version, first seen Nov 7, 2026
- flonat/flonat-researchtheir own version, first seen Nov 3, 2026
- jboczek/skillstheir own version, first seen Nov 1, 2026
- AhmedMerza/claude-skillstheir own version, first seen Nov 1, 2026
Used with
Projects with it also use aside, spinoff and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
TheKREATORSSkillaside
Answer a quick side question without interrupting or losing context from the current task. Resume work automatically after answering.
Also in 3 projects that use this
AhmedMerzaSkillspinoff
After a branch is finished, harvest the work it made CHEAP — the helper you wrote that four other sites now hand-roll, the plumbing that turned a deferred feature small, the pattern that just split the codebase in two. Produces a follow-up backlog (0–3 candidates, feeding /issue), NEVER commits on the current branch. Invoke with /spinoff at the tail of the chain — after /fix-review has settled the review findings, before the MR merges — or when the user asks \"what else should we do while we're here / what did this unlock / anything to follow up on\". This is ship-check's optional twin — that finds what's MISSING and blocks the merge; this finds what's now CHEAP and blocks nothing. Restraint-gated: \"nothing spun off\" is the common and correct answer, and a finding that would have been equally valid before this branch is not a finding.
Also in 3 projects that use this
TheKREATORSSkillinstinct-export
Export instincts from project/global scope to a file
Also in 3 projects that use this
seek888Skillopen-gstack-browser
Launch GStack Browser — AI-controlled Chromium with the sidebar extension baked in. Opens a visible browser window where you can watch every action in real time. The sidebar shows a live activity feed and chat. Anti-bot stealth built in. Use when asked to "open gstack browser", "launch browser", "connect chrome", "open chrome", "real browser", "launch chrome", "side panel", or "control my browser". Voice triggers (speech-to-text aliases): "show me the browser".
Also in 5 projects that use this
diego-tobalinaSkillbuild-fix
Fix build and compilation errors systematically. Run when build fails.
Also in 5 projects that use this
seek888Skilldesign-html
Design finalization: generates production-quality Pretext-native HTML/CSS. Works with approved mockups from /design-shotgun, CEO plans from /plan-ceo-review, design review context from /plan-design-review, or from scratch with a user description. Text actually reflows, heights are computed, layouts are dynamic. 30KB overhead, zero deps. Smart API routing: picks the right Pretext patterns for each design type. Use when: "finalize this design", "turn this into HTML", "build me a page", "implement this design", or after any planning skill. Proactively suggest when user has approved a design or has a plan ready. (gstack) Voice triggers (speech-to-text aliases): "build the design", "code the mockup", "make it real".
Also in 5 projects that use this
- +2 more from TheKREATORS
- +2 more from seek888
Other versions91 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 91
- pedrohcgs/claude-code-my-workflow★ 1.7ksame name
- codewithmukesh/dotnet-claude-kit★ 808same name
- leonvanzyl/agentic-coding-starter-kit★ 447same name
- myICOR/myPKA★ 319same name
- hsantanna88/clo-author★ 262same name
- hugosantanna/clo-author★ 262same name
- sterlingcrispin/claude_slash_commands★ 200same name
- flonat/flonat-research★ 150same name
- josipjelic/orchestrated-project-template★ 96same name
- panayiotism/claude-harness★ 79same name
81 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository42 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- attributeSkill
- auditSkill
- gap-analysis-workflowSkill
- classifySkill
- compareSkill
- constrainSkill
- critiqueSkill
- debug-workflowSkill
- decomposeSkill
- delegateSkill
- detectSkill
- digital-twin-bootstrapSkill
- digital-twin-sync-workflowSkill
- discover-capabilitiesSkill
- discoverSkill
- executeSkill
- explainSkill
- generateSkill
- groundSkill
- inquireSkill
- integrateSkill
- invokeSkill
- measureSkill
- mutateSkill
- observeSkill
- persistSkill
- perspective-validationSkill
- planSkill
- predictSkill
- recallSkill
- receiveSkill
- retrieveSkill
- rollbackSkill
- searchSkill
- sendSkill
- simulateSkill
- stateSkill
- synchronizeSkill
- transformSkill
- transitionSkill
- verifySkill
The file
We split this skill into the rules it gives an agent
10 rules. 0 are common, 10 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 85 edited versions we read keep these.
10
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 57
All files/state in scope are captured
- Distinctive: line 79
Check for uncommitted git changes in scope
- Distinctive: line 91
Verify checkpoint integrity immediately after creation
- Distinctive: line 93
Generate restore command: Document how to rollback
- Distinctive: line 247
NEVER skip checkpoint before mutate or send (CRITICAL)
- Distinctive: line 248
NEVER delete checkpoints until explicitly requested
- Distinctive: line 249
ALWAYS verify checkpoint integrity immediately after creation
- Distinctive: line 250
Do not checkpoint sensitive files (.env, credentials) - warn and exclude
- Distinctive: line 270
Never checkpoint after mutation has started
- Distinctive: line 271
Never delete checkpoint before verify confirms success
“Common” is measured: kept by at least 6 in 10 of the 85 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Intent
Execute checkpoint to create a restorable state marker before any mutating operation. This is the foundation of safe agentic execution - enabling rollback if subsequent actions fail.
Success criteria:
- Checkpoint successfully created with unique identifier
- All files/state in scope are captured
- Restore command is documented and tested
- Expiry policy set if applicable
Compatible schemas:
schemas/output_schema.yaml
Inputs
| Parameter | Required | Type | Description |
scope | Yes | string | Files, directories, or state keys to checkpoint |
label | No | string | Checkpoint name |
metadata | No | object | Additional metadata |
Inputs not listed here are outside the capability's contract: a workflow step that binds them gets W604 (STANDARD v1.1 §5.5).
Procedure
- Identify scope: Determine exactly what needs to be checkpointed
- List all files that will be modified by upcoming mutation
- Include related configuration or state files
- Check for uncommitted git changes in scope
- Select checkpoint type: Choose appropriate mechanism
git_stash: For git-tracked files (preferred for code changes)file_backup: For non-git files, copy to.checkpoints/state_snapshot: For in-memory or runtime statedatabase_savepoint: For database transactions
- Capture pre-mutation state: Execute the checkpoint
- For git:
git stash push -m "checkpoint:<id>:<reason>" - For files: Copy to
.checkpoints/<id>/with manifest - Record hashes of all captured content
- Verify checkpoint integrity immediately after creation
- For git:
- Generate restore command: Document how to rollback
- Exact command(s) to restore state
- Any prerequisites for restoration
- Order of operations if multiple systems involved
- Ground claims: Attach evidence of checkpoint creation
- Format:
tool:bash:<command>,file:<checkpoint_path> - Include hash verification output
- Format:
- Format output: Return checkpoint metadata per contract
Output Contract
Return a structured object:
checkpoint_id: string # Unique identifier (e.g., "chk_20240115_143022_abc123")
timestamp: string # ISO 8601 date-time the checkpoint was created
size: integer # Checkpoint size in bytes (optional)
checkpoint_created: boolean # Whether the checkpoint was successfully created
type: git_stash | file_backup | state_snapshot | database_savepoint
scope:
files: array[string] # File paths included
state_keys: array[string] # State keys included (if applicable)
restore_command: string # Exact command to restore
expiry: string | null # When checkpoint expires
pre_mutation_state:
hash: string | null # Combined hash of all checkpointed content
summary: string # Human-readable state summary
next_safe_actions: array[string] # What can now safely proceed
confidence: number # 0.0-1.0
evidence_anchors: ["tool:bash:...", "file:..."]
assumptions: []Field Definitions
| Field | Type | Description |
checkpoint_id | string | Unique identifier for this checkpoint (workflows bind ${<step>.checkpoint_id}) |
timestamp | string | ISO 8601 date-time the checkpoint was created |
size | integer | Checkpoint size in bytes (optional) |
checkpoint_created | boolean | Whether checkpoint was successfully created |
type | enum | Mechanism used for checkpointing |
scope | object | What was included in the checkpoint |
restore_command | string | Exact command to restore state |
expiry | string | When the checkpoint expires, or null |
pre_mutation_state.hash | string | Integrity hash of captured state |
next_safe_actions | array | Actions that can now safely proceed |
confidence | number | 0.0-1.0 based on checkpoint integrity verification |
evidence_anchors | array | Proof of checkpoint creation |
assumptions | array | Explicit assumptions (e.g., "git available") |
Examples
Example 1: Git Stash Checkpoint
Input:
scope: "src/api/handlers/*.py tests/test_handlers.py"
metadata:
reason: "Before refactoring API handlers"
checkpoint_type: git_stashOutput:
checkpoint_id: "chk_20240115_143022_a7b3c9"
timestamp: "2024-01-15T14:30:22Z"
checkpoint_created: true
type: git_stash
scope:
files:
- "src/api/handlers/user.py"
- "src/api/handlers/auth.py"
- "tests/test_handlers.py"
state_keys: []
restore_command: "git stash pop stash@{0}"
expiry: null
pre_mutation_state:
hash: "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
summary: "3 files, 342 lines total, last modified 2024-01-15"
next_safe_actions:
- "execute: Proceed with handler refactoring"
- "mutate: Modify files in scope"
confidence: 1.0
evidence_anchors:
- "tool:bash:git stash push -m 'checkpoint:chk_20240115_143022_a7b3c9:Before refactoring API handlers'"
- "tool:bash:git stash list | head -1"
assumptions:
- "Git repository is initialized and clean"
- "No merge conflicts in working tree"Evidence pattern: Git stash creation command output, stash list verification.
Example 2: File Backup Checkpoint
Input:
scope: "config/production.yaml"
metadata:
reason: "Before config migration"
checkpoint_type: file_backup
expiry: "24h"Output:
checkpoint_id: "chk_20240115_150000_config"
timestamp: "2024-01-15T15:00:00Z"
size: 3412
checkpoint_created: true
type: file_backup
scope:
files:
- "config/production.yaml"
state_keys: []
restore_command: "cp .checkpoints/chk_20240115_150000_config/production.yaml config/production.yaml"
expiry: "2024-01-16T15:00:00Z"
pre_mutation_state:
hash: "sha256:abc123..."
summary: "1 file, 89 lines, production database config"
next_safe_actions:
- "mutate: Apply config migration"
confidence: 0.95
evidence_anchors:
- "file:.checkpoints/chk_20240115_150000_config/manifest.json"
- "tool:bash:sha256sum config/production.yaml"
assumptions:
- ".checkpoints directory exists and is writable"Verification
Apply the following verification patterns:
- State Assertion: pre_mutation_state.hash can be recomputed and matches
- Restore Command Valid: restore_command executes without error (dry-run if possible)
- Scope Complete: All files in scope are captured in checkpoint
- Evidence Grounding: checkpoint_id appears in evidence_anchors
Verification tools: Bash (for hash verification), Read (for manifest)
Safety Constraints
mutation: true (creates checkpoint artifacts)requires_checkpoint: false (this IS the checkpoint operation)requires_approval: falserisk: low
Capability-specific rules:
- NEVER skip checkpoint before mutate or send (CRITICAL)
- NEVER delete checkpoints until explicitly requested
- ALWAYS verify checkpoint integrity immediately after creation
- Do not checkpoint sensitive files (.env, credentials) - warn and exclude
- Store checkpoint metadata in
.checkpoints/within workspace - Include reason in checkpoint for audit trail
Composition Patterns
Commonly follows:
plan- After creating a plan, checkpoint before executioncritique- After reviewing risks, checkpoint before proceedingconstrain- After policy check passes, checkpoint before mutation
Commonly precedes:
mutate- REQUIRED: Never mutate without prior checkpoint (CAVR pattern)execute- Checkpoint before a step that raisesrequires_checkpointsend- REQUIRED: Checkpoint before external communicationsrollback- REQUIRED: Rollback restores to a checkpoint
Anti-patterns:
- CRITICAL: Never call
mutateorsendwithout priorcheckpoint - CRITICAL: Never call
rollbackwithout valid checkpoint reference - Never checkpoint after mutation has started
- Never delete checkpoint before verify confirms success
Workflow references:
- See
reference/composition_patterns.md#checkpoint-act-verify-rollbackfor CAVR pattern - See
reference/composition_patterns.md#debug-code-changefor checkpoint placement - See
reference/composition_patterns.md#digital-twin-sync-loopfor checkpoint in loops
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

