with one click
resume
Restore context from a previous session and continue work
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Restore context from a previous session and continue work
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Initialize a Megazord project with configuration and planning structure
Systematic four-phase debugging (reproduce, isolate, root-cause, fix)
Socratic brainstorming to explore approaches before implementation
Execute the current phase plan (subagent or Agent Teams mode)
Show all available Megazord skills with descriptions and usage examples
Complete milestone lifecycle -- audit, archive, deferred items, and next version preparation
| name | resume |
| description | Restore context from a previous session and continue work |
| disable-model-invocation | false |
Restore context from a previous session and display current project state. Shows what was being worked on, restores any stashed files, and suggests the next action -- but does NOT auto-execute.
Reference @skills/init/design-system.md for all visual output formatting.
╔═══════════════════════════════════════════════╗
║ ⚡ MEGAZORD ► RESUME ║
╚═══════════════════════════════════════════════╝
Read .planning/STATE.md for session continuity and current position.
If STATE.md does not exist or .planning/ directory is missing, display:
╔═══════════════════════════════════════════════╗
║ ✗ No Megazord project found ║
╠═══════════════════════════════════════════════╣
║ Run /mz:init to set up your project first. ║
╚═══════════════════════════════════════════════╝
Then exit.
Extract from STATE.md:
Read the stash ref from session continuity.
If stash ref exists and is not "None":
Run via Bash to restore stashed files:
node {plugin_path}/bin/megazord.mjs tools stash resume --stash-ref "{stash_ref}"
Where {plugin_path} is the absolute path to the Megazord plugin directory (the root of this repository where package.json lives).
Parse the JSON result:
success is true: files were restored. Clear the stash ref in STATE.md by running:
node {plugin_path}/bin/megazord.mjs tools state update-session --stash-ref "None"
success is false and message contains "not found": display note "No pause checkpoint found -- showing last known position" (best-effort recovery)success is false and message contains "CONFLICT": display warning with resolution steps:
⚠ Stash conflicts detected. To resolve:
1. Run `git stash show` to see conflicting files
2. Resolve conflicts manually
3. Run `git stash drop` to clean up
If no stash ref (None or missing):
No stash to restore. Continue with context display.
Display the session restoration in an action box:
╔═══════════════════════════════════════════════════════╗
║ Session Restored ║
╠═══════════════════════════════════════════════════════╣
║ Phase: {phase} of {totalPhases} -- {phaseName} ║
║ Plan: {plan} of {totalPlans} -- {status} ║
║ Stash: {status message} ║
║ Last: {lastSession} -- {stoppedAt} ║
╚═══════════════════════════════════════════════════════╝
For the Stash line, use:
✓ {N} files restored if stash was successfully poppedNo modified files stashed if no stash ref existed⚠ Conflicts -- manual resolution needed if stash pop had conflictsNo pause checkpoint found if stash ref was invalid/missingRead the resume file path from session continuity. If it points to a PLAN.md file, read it and extract the objective to show what was being worked on.
Display a context section:
▸ Context
{Brief description of what was being worked on, extracted from the resume file or stopped-at field}
Read the Accumulated Context > Decisions section from STATE.md. If there are recent decisions, display them:
▸ Recent Decisions
- {decision 1}
- {decision 2}
If no decisions, display ▸ Recent Decisions with (none).
Update the status from "Paused" back to "In Progress" via:
node {plugin_path}/bin/megazord.mjs tools state update-position --status "In Progress"
Update the session timestamp:
node {plugin_path}/bin/megazord.mjs tools state update-session --stopped-at "Resumed from pause"
Determine the appropriate next command based on current state (same logic as /mz:status):
/mz:plan/mz:go/mz:verify/mz:goDisplay the Next Up block:
═══════════════════════════════════════════════════
▸ Next Up
**{Task description}** -- {brief context}
Would you like to continue with `/mz:{command}`?
═══════════════════════════════════════════════════
IMPORTANT: Do NOT auto-execute the suggested command. Display the suggestion and wait for the user to invoke it explicitly.