From agent-capability-standard
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.
npx claudepluginhub synaptiai/synapti-marketplace --plugin agent-capability-standardThis skill is limited to using the following tools:
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.
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Guides building MCP servers enabling LLMs to interact with external services via tools. Covers best practices, TypeScript/Node (MCP SDK), Python (FastMCP).
Generates original PNG/PDF visual art via design philosophy manifestos for posters, graphics, and static designs on user request.
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:
Compatible schemas:
schemas/output_schema.yaml| Parameter | Required | Type | Description |
|---|---|---|---|
scope | Yes | string|array | Files, directories, or state keys to checkpoint |
reason | No | string | Why this checkpoint is being created (for audit trail) |
checkpoint_type | No | enum | Type: git_stash, file_backup, state_snapshot, database_savepoint |
expiry | No | string | When checkpoint can be garbage collected (e.g., "24h", "never") |
Identify scope: Determine exactly what needs to be checkpointed
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 transactionsCapture pre-mutation state: Execute the checkpoint
git stash push -m "checkpoint:<id>:<reason>".checkpoints/<id>/ with manifestGenerate restore command: Document how to rollback
Ground claims: Attach evidence of checkpoint creation
tool:bash:<command>, file:<checkpoint_path>Format output: Return checkpoint metadata per contract
Return a structured object:
checkpoint_created: boolean
checkpoint:
id: string # Unique identifier (e.g., "chk_20240115_143022_abc123")
type: git_stash | file_backup | state_snapshot | database_savepoint
created_at: string # ISO timestamp
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 | Type | Description |
|---|---|---|
checkpoint_created | boolean | Whether checkpoint was successfully created |
checkpoint.id | string | Unique identifier for this checkpoint |
checkpoint.type | enum | Mechanism used for checkpointing |
checkpoint.scope | object | What was included in the checkpoint |
checkpoint.restore_command | string | Exact command to restore state |
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") |
Input:
scope:
- "src/api/handlers/*.py"
- "tests/test_handlers.py"
reason: "Before refactoring API handlers"
checkpoint_type: git_stash
Output:
checkpoint_created: true
checkpoint:
id: "chk_20240115_143022_a7b3c9"
type: git_stash
created_at: "2024-01-15T14:30:22Z"
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:
- "act-plan: Proceed with handler refactoring"
- "edit: 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.
Input:
scope: "config/production.yaml"
reason: "Before config migration"
checkpoint_type: file_backup
expiry: "24h"
Output:
checkpoint_created: true
checkpoint:
id: "chk_20240115_150000_config"
type: file_backup
created_at: "2024-01-15T15:00:00Z"
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:
- "act-plan: 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"
Apply the following verification patterns:
Verification tools: Bash (for hash verification), Read (for manifest)
mutation: true (creates checkpoint artifacts)requires_checkpoint: false (this IS the checkpoint operation)requires_approval: falserisk: mediumCapability-specific rules:
.checkpoints/ within workspaceCommonly follows:
plan - After creating a plan, checkpoint before executioncritique - After reviewing risks, checkpoint before proceedingconstrain - After policy check passes, checkpoint before mutationCommonly precedes:
act-plan - REQUIRED: Never act-plan without prior checkpoint (CAVR pattern)improve - Checkpoint before iterative improvement cyclessend - Checkpoint before external communicationsAnti-patterns:
act-plan without prior checkpointrollback without valid checkpoint referenceWorkflow references:
reference/composition_patterns.md#checkpoint-act-verify-rollback for CAVR patternreference/composition_patterns.md#debug-code-change for checkpoint placementreference/composition_patterns.md#digital-twin-sync-loop for checkpoint in loops