Pod Checkpoint
Write a structured recovery snapshot to lifecycle/checkpoint.md before context reset, ...
Install
npx skills add Snowflake-Labs/cocoplus --skill pod-checkpoint -g -a claude-code -y- Repository
- Snowflake-Labs/cocoplus727
- Category
- Writing
- Updated
- 1mo ago
- License
- MIT
- Context cost
- Lightabout 1,316 tokens
- Runs scripts
- No, instructions only
What it does
Write a structured recovery snapshot to lifecycle/checkpoint.md before context reset, captures phase, stage, decisions, and pending items so $pod resume can restore precise context
$pod checkpoint
Write a structured recovery snapshot to .cocoplus/lifecycle/checkpoint.md. Use this before $clear to ensure $pod resume can restore your exact position.
Preconditions
.cocoplus/directory must exist (run$pod initfirst)- No arguments accepted
Step-by-Step Behavior
-
Verify initialization: Check
.cocoplus/exists. If not, output: "CocoPlus not initialized. Run$pod initfirst." and exit. -
Read current lifecycle phase: Read
.cocoplus/lifecycle/meta.json. Extract: current phase, phase ID, completion timestamps. -
Read in-progress flow stage: Read
.cocoplus/flow.json. Find the stage withstatus: "running"or the nextstatus: "pending"stage. Extract: stage ID, stage name, checkpoint validation status. -
Read last 5 decisions: Read
.cocoplus/memory/decisions.md. Extract the 5 most recent entries (newest first), capture ID, brief description, date. -
Read open must-fix items: Read
.cocoplus/lifecycle/review.mdif it exists. Extract any must-fix findings that have not been resolved. -
Read active HITL stages: Read
.cocoplus/flow.json. Find all stages with"hitl": trueandstatus: "pending"awaiting developer approval. -
Read triggered seeds: Scan
.cocoplus/seeds/*.yamlfor entries withstatus: triggered. -
Read CocoHarvest status: Read
.cocoplus/harvest/directory for any*-tasks.jsonfiles with in-progress stages. Extract harvest ID and agent summary. -
Assess context utilization: Read
.cocoplus/meter/current-session.jsonif it exists. Approximate utilization from token accumulation. If context utilization data is unavailable, omit this field gracefully. -
Write checkpoint file: Write all gathered state to
.cocoplus/lifecycle/checkpoint.md(overwrite if it exists):
---
checkpoint_date: [ISO8601]
lifecycle_phase: [phase name]
phase_id: [phase-id or null]
context_utilization: [percentage or "unavailable"]
---
