Skip to content
Development
Skill

/checkpoint

Create, list, or recover workflow checkpoints and prepare a handoff for a new session so interrupted work resumes from a known-good position

From plugin
aiwg
229200 skills199 agents26 commands

Claude Code

$ npx -y skills add jmagly/aiwg --skill checkpoint --agent claude-code

SKILL.md

checkpoint.SKILL.md
namespace: aiwg
name: checkpoint
platforms: [all]
description: Create, list, or recover workflow checkpoints and prepare a handoff for a new session so interrupted work resumes from a known-good position

Checkpoint

You create, list, or recover lightweight mid-workflow checkpoints that allow a crashed or interrupted workflow to continue from a known-good position rather than restart from scratch.

Triggers

Alternate expressions and non-obvious activations (primary phrases are matched automatically from the skill description):

  • "save my place" → create checkpoint at current position
  • "mark progress" → create checkpoint
  • "pick up where we left off" → recover from most recent checkpoint
  • "what checkpoints exist" → list checkpoints
  • "resume from checkpoint" → recover from specified or latest checkpoint
  • "handoff" → create a checkpoint with session handoff documents
  • "hand off to a new session" → create a checkpoint with session handoff documents
  • "split this session" → create a checkpoint with session handoff documents
  • "prepare a handoff for a new session" → create a checkpoint with session handoff documents

Trigger Patterns Reference

| Pattern | Example | Action | |---------|---------|--------| | Create (named) | "checkpoint this as iteration-3-complete" | Run `aiwg checkpoint create --name iteration-3-complete` | | Create (anonymous) | "create a checkpoint" | Run `aiwg checkpoint create` | | Handoff | "hand off to a new session" | Run `aiwg checkpoint create --handoff` with explicit context flags | | List | "show available checkpoints" | Run `aiwg checkpoint list` | | Recover (latest) | "recover from the last checkpoint" | Run `aiwg checkpoint recover` | | Recover (specific) | "recover checkpoint ckpt_7b2f1a" | Run `aiwg checkpoint recover ckpt_7b2f1a` |

Behavior

When triggered:

1. **Extract intent**:

  • Which subcommand: `create`, `list`, or `recover`?
  • Is a name or checkpoint ID provided?
  • For recover, should it use the most recent checkpoint or a specific one?

2. **Run the appropriate subcommand**:

   # Create — anonymous
   aiwg checkpoint create

   # Create — named
   aiwg checkpoint create --name <name>

   # Prepare a new session, with ordered tasks and binding constraints
   aiwg checkpoint create --handoff --name tests-next \
     --scope "Checkpoint implementation; next session owns verification" \
     --phase construction --step verification --note "Implementation complete; tests pending" \
     --todo "Run focused tests" --todo "Review the diff" \
     --constraint "Do not commit or push" --artifact docs/cli-reference.md

   # List all checkpoints
   aiwg checkpoint list

   # Recover — most recent checkpoint
   aiwg checkpoint recover

   # Recover — specific checkpoint by ID or name
   aiwg checkpoint recover <id>

3. **Checkpoints vs. snapshots**: Checkpoints are lightweight — they record the current workflow phase and step plus any in-progress artifact paths, not full artifact checksums. Use snapshots for complete point-in-time captures; use checkpoints for crash recovery during active workflows.

| | Checkpoint | Snapshot | |---|---|---| | **Purpose** | Crash recovery | Reproducibility | | **Size** | Small (phase + step + artifact refs) | Full (versions + checksums) | | **Created by** | Manual or agent loop (auto) | Manual only | | **Use for** | Resume interrupted run | Replay from known state |

4. **Automatic creation**: Agent loops create checkpoints automatically between iterations. Manual `create` supplements this for critical workflow milestones.

5. **Storage**: Resolve the configured artifact root with `aiwg artifacts path --json --check-write`. Plain checkpoints use `<artifact_root>/checkpoints/<id>.json`. Handoff checkpoints use `<artifact_root>/checkpoints/<id>/checkpoint.json`, with sibling `handoff.md` and `next-session-prompt.md`. The record includes `handoffPath` and `nextSessionPromptPath`. The shipped template is `agentic/code/addons/aiwg-utils/templates/checkpoint-handoff.md`. Existing flat records remain readable. This checkpoint format has inline validation, with no governed schema in the schema catalog.

`--scope` fills Scope and ownership, `--note` plus `--phase`/`--step` fills State at handoff, repeatable `--todo` fills To do (ordered), repeatable `--constraint` fills Binding constraints, and repeatable `--artifact` fills Links. Omitted context stays as explicit `[TODO: ...]` placeholders. `--scope`, `--todo`, and `--constraint` require `--handoff`; every value flag requires a nonempty value. Creation is headless and never asks questions.

List marks handoffs in its Handoff column. Recover prints the next-session prompt text and both document paths without writing files or restoring artifacts. `list --json` and `recover --json` return checkpoint records, including the document paths.

6. **Report the result** — on create, confirm the checkpoint ID and position; on recover, confirm which step the workflow will resume from.

Examples

Example 1: Create a named checkpoint

**User**: "Create a checkpoint after iteration 3 completes"

**Extraction**: Create subcommand, name `iteration-3-complete`

**Action**:

aiwg checkpoint create --name iteration-3-complete

**Response**: "Checkpoint `iteration-3-complete` created (ID: `ckpt_7b2f1a`). Recorded position: Construction phase, iteration 3, step 12/15. In-progress artifacts: `.aiwg/working/tests/integration-plan-draft.md`. Stored at `.aiwg/checkpoints/ckpt_7b2f1a.json`."

Example 2: List checkpoints

**User**: "What checkpoints do we have?"

**Extraction**: List subcommand

**Action**:

aiwg checkpoint list

**Response**:

ID            Name                     Date                  Phase / Step
ckpt_3a8c12   (auto)                   2026-03-28 10:04:51   Construction / iter 1, step 8
ckpt_9f20de   (auto)                   2026-03-29 14:17:33
Read more
@jmagly
Ships withaiwg

Reusable project context and specialist workflows for the AI tools you already use. Plan software, coordinate specialist reviews, prepare campaigns, investigate incidents, organize research, curate media, and maintain operational knowledge.

229200 skills199 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
229
Star history of jmagly/aiwg on GitHub, a chart by star-history.com

Other skills on aiwg.

agent-loop-ext

agent-loop-ext

Crash-resilient external agent loop with state persistence and CI/CD integration

@jmagly@jmaglyInstall Skill
agent-loop

agent-loop

Detect requests for iterative autonomous agent loops and route to the appropriate loop executor

@jmagly@jmaglyInstall Skill
auto-test-execution

auto-test-execution

Automatically execute tests when code-generating agents modify source files, enforcing the execute-before-return pattern

@jmagly@jmaglyInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills12d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc13d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react2d252k
@facebook@facebookInstall Skill

Questions about checkpoint.

Which coding agents can use checkpoint?
checkpoint installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.