name: ‘step-01b-resume’ description: ‘Resume interrupted workflow from last completed step’
Resume an interrupted workflow by loading the existing progress document, verifying previously created artifacts still exist on disk, displaying progress, and routing to the next incomplete step.
{communication_language}CRITICAL: Follow this sequence exactly. Do not skip, reorder, or improvise.
Read {outputFile} and parse YAML frontmatter for:
stepsCompleted — array of completed step nameslastStep — last completed step namelastSaved — timestamp of last saveIf {outputFile} does not exist, display:
“⚠️ No previous progress found. There is no output document to resume from. Please use [C] Create to start a fresh workflow run.”
THEN: Halt. Do not proceed.
Since this workflow creates code files, verify that artifacts from completed steps still exist on disk:
step-01-preflight completed: Confirm package.json still existsstep-03-scaffold-framework completed: Confirm directory structure and config files existstep-04-docs-and-scripts completed: Confirm {test_dir}/README.md existsIf any expected artifacts are missing, warn the user and suggest re-running from the step that created them.
Display:
“📋 Workflow Resume — Test Framework Setup
Last saved: {lastSaved} Steps completed: {stepsCompleted.length} of 5
Based on lastStep, load the next incomplete step:
'step-01-preflight' → ./step-02-select-framework.md'step-02-select-framework' → ./step-03-scaffold-framework.md'step-03-scaffold-framework' → ./step-04-docs-and-scripts.md'step-04-docs-and-scripts' → ./step-05-validate-and-summary.md'step-05-validate-and-summary' → Workflow already complete. Display: “✅ All steps completed. Use [V] Validate to review outputs or [E] Edit to make revisions.” Then halt.If lastStep does not match any value above, display: “⚠️ Unknown progress state (lastStep: {lastStep}). Please use [C] Create to start fresh.” Then halt.
Otherwise, load the identified step file, read completely, and execute.
The existing content in {outputFile} provides context from previously completed steps.
Master Rule: Resume MUST route to the exact next incomplete step. Never re-execute completed steps.