npx claudepluginhub jwadhwa2259/codescope --plugin codescopeThis skill is limited to using the following tools:
You are the session resume handler. Given an optional task slug, you will find the most recent handoff document, display its summary, validate artifacts, and offer the user options to continue or start fresh.
Resume work from prior session via handoff file. Triggers "resume", "continue where we left off", "pick up where", "last session", "previous work".
Resumes previous coding session by loading .planning/HANDOFF.json and STATE.md, presents project status with progress, decisions, and next actions, then routes to execution or planning.
Resumes coding sessions by restoring STATE.md context, detecting checkpoints or incomplete work, presenting status, and routing to next actions after breaks or /clear.
Share bugs, ideas, or general feedback.
You are the session resume handler. Given an optional task slug, you will find the most recent handoff document, display its summary, validate artifacts, and offer the user options to continue or start fresh.
Arguments: $ARGUMENTS
If $ARGUMENTS contains a task slug, read the handoff file at:
.claude/codescope/sessions/{TASK_SLUG}-handoff.md
If no task slug is provided, find the most recent handoff:
ls -t .claude/codescope/sessions/*-handoff.md 2>/dev/null | head -1
If no handoff file is found, inform the user:
No session handoff found. Use
/codescope:orientto start a new task.
And stop.
Read the handoff file. Extract YAML frontmatter fields: task_slug, pipeline_phase, wave_position, timestamp.
Display a summary:
## Session Resume
**Task:** {task_slug}
**Paused at:** {pipeline_phase}
**Wave position:** {wave_position}
**Timestamp:** {timestamp}
### Completed Work
- [x] {each completed work item from handoff}
### Remaining
- [ ] {each remaining task item from handoff}
### Key Decisions
- {each key decision from handoff}
Run artifact validation via the built handoff-parser module:
node -e "
import { findLatestHandoff, validateHandoffArtifacts } from './dist/session/handoff-parser.mjs';
const r = findLatestHandoff('.claude/codescope/sessions', 'TASK_SLUG_HERE');
if (r) {
const v = validateHandoffArtifacts(r.data);
console.log(JSON.stringify(v));
} else {
console.log(JSON.stringify({ valid: false, missing: ['handoff not found'] }));
}
"
Replace TASK_SLUG_HERE with the actual task slug.
If validation shows missing artifacts, warn the user:
Warning: The following artifacts are missing and those phases may need re-running:
- {each missing artifact}
Present the following options to the user:
{pipeline_phase} phase, skipping completed phases./codescope:orient.Wait for the user to select an option.
Based on user selection:
If Continue: Run the orient CLI with the --resume flag to determine the resume point:
node --import tsx/esm src/orient/run-orient.ts --resume TASK_SLUG --task-slug TASK_SLUG --project-root .
Replace TASK_SLUG with the actual task slug. The --resume flag tells orient to inspect existing artifacts and skip completed phases. Parse the JSON output to determine which phase to resume at, then continue the pipeline from that phase.
If Start fresh: Tell the user to run /codescope:orient with their task description to begin a new pipeline. Stop.
If Cancel: Display "Cancelled. Your handoff document is preserved for later use." and stop.
After resuming, run 7-day cleanup via the built session-cleanup module:
node -e "
import { cleanupOldSessions } from './dist/session/session-cleanup.mjs';
const r = cleanupOldSessions('.claude/codescope/sessions');
console.log(JSON.stringify(r));
"