synaptiai/agent-capability-standard/checkpoint
Claude Code and agent skill by synaptiai/agent-capability-standard
- community
Checking that the SKILL.md file is still in the repository.
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.
Install
npx vskill@latest install synaptiai/agent-capability-standard/checkpointSKILL.md
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
1) 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
2) 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
3) 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
4) Generate restore command: Document how to rollback
- Exact command(s) to restore state
- Any prerequisites for restoration
- Order of operations if multiple systems involved
5) Ground claims: Attach evidence of checkpoint creation
- Format:
tool:bash:<command>,file:<checkpoint_path> - Include hash verification output
6) Format output: Return checkpoint metadata per contract
Output Contract
Return a structured object:
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:
Output:
Evidence pattern: Git stash creation command output, stash list verification.
Example 2: File Backup Checkpoint
Input:
Output:
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
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/checkpoint/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/synaptiai/agent-capability-standard/checkpoint)