| name | context-resume |
| description | Load plugin context from handoff files to resume work |
| allowed-tools | Read, Bash, Skill |
| preconditions | Handoff file must exist in one of 3 locations |
context-resume Skill
Purpose: Universal entry point for resuming plugin work from .continue-here.md handoff files. Handles workflow, ideation, mockup, and improvement resume scenarios.
Capabilities:
- Locates handoff files (3 possible locations)
- Parses YAML frontmatter and markdown context
- Presents state summary with time-ago calculation
- Routes to appropriate continuation skill (via Skill tool)
- Graceful error recovery for missing/corrupt handoffs
Orchestration Protocol
CRITICAL: This skill MUST NOT implement workflow stages directly.
When resuming workflow (Stages 0-6), this skill:
- Locates handoff file
- Parses context
- Presents summary to user
- Checks for
orchestration_mode: truein handoff YAML - If orchestration_mode enabled → Invokes plugin-workflow skill via Skill tool
- If orchestration_mode disabled → Uses legacy direct routing
NEVER bypass orchestration_mode. This enforces the dispatcher pattern:
- plugin-workflow orchestrates
- Subagents implement
- context-resume just loads and routes
See references/continuation-routing.md Step 4a-1 for complete protocol.
Handoff File Locations
The system uses 3 handoff locations, checked in priority order:
Search order: Priority 1 → 2 → 3. If multiple found, disambiguate (see references/handoff-location.md).
Resume Workflow
See references/handoff-location.md for complete location logic.
MUST complete before Step 2. If no handoff found, see error recovery.
See references/context-parsing.md for parsing logic.
MUST complete before Step 3.
See references/context-parsing.md for presentation logic.
See references/continuation-routing.md for routing logic.
Error Recovery
Common error scenarios with recovery strategies:
- No Handoff Found: Check PLUGINS.md and git log to infer state, offer reconstruction options
- Corrupted Handoff File: Parse git log to infer stage, offer manual recreation
- Stale Handoff (>2 weeks old): Warn about staleness, offer to verify code changes
- Multiple Handoffs for Same Plugin: Present disambiguation menu with recommendations
See references/error-recovery.md for all error scenarios and advanced features.
Integration Points
Invoked by:
/continuecommand (no args) → Triggers interactive plugin selection/continue [PluginName]command → Triggers specific plugin resume- Natural language: "resume [PluginName]", "continue working on [PluginName]"
Invokes (via Skill tool):
plugin-workflow- For workflow resume at specific stage (Stages 0-6)plugin-ideation- For ideation resume (improvements or refinement)ui-mockup- For mockup iteration resumeplugin-improve- For improvement implementation resume
MUST use Skill tool for invocation, NEVER implement directly.
This skill is READ-ONLY for state files.
MUST read:
.continue-here.mdfiles (all 3 locations)- PLUGINS.md (status verification)
- Git log (commit history for inference)
- Contract files (creative-brief.md, parameter-spec.md, architecture.md, plan.md)
- Source files (if mentioned in handoff)
- CHANGELOG.md (for improvements)
MUST NOT write:
- Any
.continue-here.mdfiles - PLUGINS.md
- Any source code or contract files
Continuation skills invoked by this skill will handle all state updates.
Success Criteria
Resume is successful when:
- Handoff located: Found correct handoff file(s) from 3 possible locations
- Context parsed: YAML and markdown extracted without errors
- State understood: User sees clear summary of where they left off
- Continuity felt: User doesn't need to remember details, handoff provides everything
- Appropriate routing: Correct continuation skill invoked with right parameters
- Context loaded: Contract files and relevant code loaded before proceeding
- Error handled: Missing/corrupt handoff handled gracefully with fallbacks
- User control: User explicitly chooses to continue, not auto-proceeded
Execution Requirements
MUST do when executing this skill:
- ALWAYS search all 3 handoff locations before declaring "not found"
- MUST parse YAML carefully - handle missing optional fields gracefully
- MUST present time-ago in human-readable format (not raw timestamps)
- MUST show enough context that user remembers where they were
- NEVER auto-proceed - wait for explicit user choice
- MUST load contract files BEFORE invoking continuation skill (provides context)
- MUST use git log as backup if handoff is stale/corrupt
- MUST preserve user's mental model - summary should match how they think about plugin
NEVER do these common pitfalls:
- Forgetting to check all 3 locations
- Auto-proceeding without user confirmation
- Not loading contract files before continuation
- Showing raw YAML instead of human summary
- Missing disambiguation when multiple handoffs exist