Skill

checkpoint-resume

Install
1
Install the plugin
$
npx claudepluginhub yonatangross/orchestkit --plugin ork

Want just this skill?

Add to a custom plugin, then install with one command.

Description

Rate-limit-resilient pipeline with checkpoint/resume for long multi-phase sessions. Saves progress to .claude/pipeline-state.json after each phase. Use when starting a complex multi-phase task that risks hitting rate limits, when resuming an interrupted session, or when orchestrating work spanning commits, GitHub issues, and large file changes.

Tool Access

This skill is limited to using the following tools:

BashReadWriteEditGrepGlobTaskCreateTaskUpdateTaskListTaskOutput
Supporting Assets
View in Repository
references/pipeline-state-schema.md
references/pipeline-state.schema.json
references/resume-decision-tree.md
rules/_sections.md
rules/_template.md
rules/checkpoint-mini-commit.md
rules/ordering-priority.md
rules/state-write-timing.md
scripts/init-pipeline.sh
scripts/show-status.sh
test-cases.json
Skill Content

Checkpoint Resume

Rate-limit-resilient pipeline orchestrator. Saves progress to .claude/pipeline-state.json after every phase so long sessions survive interruptions.

Quick Reference

CategoryRuleImpactKey Pattern
Phase Ordering${CLAUDE_SKILL_DIR}/rules/ordering-priority.mdCRITICALGitHub issues/commits first, file-heavy phases last
State Writes${CLAUDE_SKILL_DIR}/rules/state-write-timing.mdCRITICALWrite after every phase, never batch
Mini-Commits${CLAUDE_SKILL_DIR}/rules/checkpoint-mini-commit.mdHIGHEvery 3 phases, checkpoint commit format

Total: 3 rules across 3 categories

On Invocation

If .claude/pipeline-state.json exists: run scripts/show-status.sh to display progress, then ask to resume, pick a different phase, or restart. Load Read("${CLAUDE_SKILL_DIR}/references/resume-decision-tree.md") for the full decision tree.

If no state file exists: ask the user to describe the task, build an execution plan, write initial state via scripts/init-pipeline.sh <branch>, begin Phase 1.

Execution Plan Structure

{
  "phases": [
    { "id": "create-issues", "name": "Create GitHub Issues", "dependencies": [], "status": "pending" },
    { "id": "commit-scaffold", "name": "Commit Scaffold", "dependencies": [], "status": "pending" },
    { "id": "write-source", "name": "Write Source Files", "dependencies": ["commit-scaffold"], "status": "pending" }
  ]
}

Phases with empty dependencies may run in parallel via Task sub-agents (when they don't share file writes).

After Each Phase

  1. Update .claude/pipeline-state.json — see Read("${CLAUDE_SKILL_DIR}/rules/state-write-timing.md")
  2. Every 3 phases: create a mini-commit — see Read("${CLAUDE_SKILL_DIR}/rules/checkpoint-mini-commit.md")

References

Load on demand with Read("${CLAUDE_SKILL_DIR}/references/<file>"):

FileContent
references/pipeline-state-schema.mdFull field-by-field schema with examples
references/pipeline-state.schema.jsonMachine-readable JSON Schema for validation
references/resume-decision-tree.mdLogic for resuming, picking phases, or restarting

Scripts

  • scripts/init-pipeline.sh <branch> — print skeleton state JSON to stdout
  • scripts/show-status.sh [path] — print human-readable pipeline status (requires jq)

Key Decisions

DecisionRecommendation
Phase granularityOne meaningful deliverable per phase (a commit, a set of issues, a feature)
ParallelismTask sub-agents only for phases with empty dependencies that don't share file writes
Rate limit recoveryState is already saved — re-invoke /checkpoint-resume to continue
Stats
Stars128
Forks14
Last CommitMar 20, 2026
Actions

Similar Skills