Skip to content
Development
Skill

/resume-from

Restores cognitive state from an atomic checkpoint in .tasks/checkpoints/[task_id].md, enabling instant recovery at the exact point of failure without re-running the full task.

From plugin
software-development-department
74116 skills28 agents1 MCP

Claude Code

$ npx -y skills add tranhieutt/software_development_department --skill resume-from --agent claude-code

SKILL.md

resume-from.SKILL.md
name: resume-from
type: workflow
description: "Restores cognitive state from an atomic checkpoint in .tasks/checkpoints/[task_id].md, enabling instant recovery at the exact point of failure without re-running the full task."
argument-hint: "<task_id>"
user-invocable: true
allowed-tools: Read, Write, Glob, Bash
effort: 2
when_to_use: "Use after an agent crash, session restart, or context compaction when a specific task was interrupted mid-execution. Requires a checkpoint previously written by /save-state <task_id>."

Resume From Checkpoint

Restore the working context of a specific task from its atomic checkpoint at `.tasks/checkpoints/[task_id].md`, then continue execution from the exact next step โ€” without re-running completed work.

Steps

1. Validate argument

`$ARGUMENTS` must contain a `task_id`. If missing or empty:

โŒ Usage: /resume-from <task_id>
   Example: /resume-from 042
   Example: /resume-from auth-api

Available checkpoints:
[Run: ls .tasks/checkpoints/ and list files excluding .gitkeep]

Stop here if no `task_id` is provided.

2. Load checkpoint

Read `.tasks/checkpoints/[task_id].md`.

If the file does not exist:

โŒ No checkpoint found for task: [task_id]
   Expected: .tasks/checkpoints/[task_id].md

Available checkpoints:
[List files in .tasks/checkpoints/ excluding .gitkeep]

Tip: Run /save-state [task_id] first to create a checkpoint.

Stop here if file is missing.

3. Parse and surface checkpoint

Extract the following fields from the checkpoint and display them clearly:

๐Ÿ” Resuming task: [task_id]
   Agent:         [agent_id]
   Saved at:      [saved_at]
   Retry count:   [retry_count]

๐Ÿ“„ Output Snapshot (last known state):
   [output_snapshot content]

โœ… Completed Steps:
   [completed steps list]

โญ๏ธ  Next Step:
   [next_step content]

โ“ Open Questions:
   [open_questions content โ€” or "None" if empty]

๐Ÿ“ Files Modified So Far:
   [files_modified list]

4. Apply exponential backoff if retrying

Check `retry_count` in the checkpoint frontmatter:

  • `retry_count = 0` โ†’ proceed immediately, no wait
  • `retry_count = 1` โ†’ wait 2s before continuing
  • `retry_count = 2` โ†’ wait 4s before continuing
  • `retry_count = 3` โ†’ wait 8s before continuing
  • `retry_count >= 4` โ†’ surface a warning:
โš ๏ธ  This task has failed [retry_count] times.
    Continuing, but consider escalating to a senior agent or the user
    if the same error recurs.

Then increment `retry_count` and update `backoff_next_s` (double the previous value, max 64s) in the checkpoint file before proceeding.

5. Resume execution

Hand off context to the appropriate agent (`agent_id` from checkpoint) with the following instruction:

> "You are resuming task `[task_id]`. The completed steps and output snapshot above are already done โ€” do NOT repeat them. Your only job is to execute the **Next Step** listed above and continue from there."

6. Update checkpoint on success

When the task completes successfully, update `.tasks/checkpoints/[task_id].md`:

  • Set `status: completed`
  • Set `completed_at: [ISO timestamp]`
  • Append to `## Completed Steps`

Print:

โœ… Task [task_id] completed successfully.
   Checkpoint updated โ†’ .tasks/checkpoints/[task_id].md (status: completed)

---

Checkpoint lifecycle

/save-state [task_id]   โ†’ creates  .tasks/checkpoints/[task_id].md (status: in_progress)
/resume-from [task_id]  โ†’ reads checkpoint, increments retry_count, resumes
                        โ†’ on success: sets status: completed

Completed checkpoints are kept for audit โ€” they are never auto-deleted. To list all checkpoints: `ls .tasks/checkpoints/`

Read more
@tranhieutt
Ships withsoftware-development-department

Software Development Department

74116 skills28 agents1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
74
Star history of tranhieutt/software_development_department on GitHub, a chart by star-history.com

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โ€ฆ

react3d252k
@facebook@facebookInstall Skill

Questions about resume-from.

Which coding agents can use resume-from?
resume-from 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.