Resume work

From buildomator/buildomator · View interactive version

Resume work is an AI agent skill from the GitHub repository buildomator/buildomator. Resume work from previous session with full context restoration

How to use this skill

Skill file

<objective>

Restore complete project context from a previous session. Handle manual-pause (/gsd:pause-work) and auto-compact (PreCompact hook) handoffs identically.

</objective>

<process>

  1. Detect handoff state.

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.

  1. Load STATE.md.

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.

  1. Read the handoff.

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).

  1. Present project status.

Emit a compact status block covering:

  1. Route to the next action.

Offer 1-3 concrete options based on handoff state. Common patterns:

  1. Clean up the handoff (LIFE-01).

After routing — once steps 1-5 have completed without error — remove the handoff file:

```bash

node "${CLAUDE_PLUGIN_ROOT:-$(ls -d "$HOME/.claude/plugins/cache/gsd-plugin/gsd/"*/ 2>/dev/null|sort -V|tail -1)}/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>

</rules>

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.