Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Resume work from previous session with full context restoration
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-05 | ✗→✓ | ▲ Improved | -21% | 0% |
| case-06 | ✗→✓ | ▲ Improved | 13% | 0% |
| case-10 | ✗→✓ | ▲ Improved | -26% | 0% |
| case-11 | ✗→✓ | ▲ Improved | -12% | 0% |
| case-12 | ✗→✓ | ▲ Improved | 5% | 0% |
<objective> Restore complete project context from a previous session — handling both manual pause (from /gsd:pause-work) and auto-compact (from the PreCompact hook) handoffs identically. </objective>
<process>
Check for .planning/HANDOFF.json via Read tool. If missing, the session has no handoff — announce "No handoff found" and proceed to normal /gsd:progress routing.
Read .planning/STATE.md to restore the big-picture project position. If missing, reconstruct from .planning/ROADMAP.md and the latest phase directory's SUMMARY.md files; if reconstruction fails, surface the error and stop.
Parse .planning/HANDOFF.json. Extract phase, plan, task, status, source, uncommitted_files, decisions, context_notes, next_action. Per HANDOFF schema, all fields are always present (empty arrays / null for unset).
Emit a compact status block covering:
progress.percent).next_action string verbatim — it's the resumption hint.Offer 1-3 concrete options based on handoff state. Common patterns:
/gsd:execute-phase with the current phase./gsd:plan-phase or /gsd:execute-phase for the next phase.After routing — once steps 1-5 have completed without error — remove the handoff file:
bash node "${CLAUDE_PLUGIN_ROOT:-$HOME/.claude/plugins/cache/gsd-plugin/current}/bin/gsd-tools.cjs" checkpoint --clear
If the command is unavailable for any reason, fall back to direct removal: bash rm -f .planning/HANDOFF.json
Do not abort the resume if cleanup fails — it's hygiene, not correctness. The next session's SessionStart will overwrite a stale handoff anyway (per D-05 from Phase 4: latest snapshot wins).
</process>
<rules>
HANDOFF.json is absent in step 1, skip everything — don't attempt to clean up what isn't there. checkpoint --clear is idempotent but unnecessary work.</rules>
Other measured skills in the registry, with their headline benchmark lift.