npx claudepluginhub jwadhwa2259/codescope --plugin codescopeThis skill is limited to using the following tools:
You are the session pause handler. Given an optional task slug, you will generate a handoff document capturing the current pipeline state for later resumption.
Saves Plan-Build-Run session state to .continue-here.md for resumption, capturing current phase, plan progress, git status, and blockers from .planning files.
Creates .continue-here.md handoff file with phase detection, work state summary (position, completed/remaining tasks, decisions, blockers), Git WIP commit, and resume instructions when pausing mid-phase.
Creates .continue-here.md handoff files in .planning phases to capture current phase, tasks completed/remaining, decisions, blockers, and next actions for pausing and resuming work sessions.
Share bugs, ideas, or general feedback.
You are the session pause handler. Given an optional task slug, you will generate a handoff document capturing the current pipeline state for later resumption.
Arguments: $ARGUMENTS
Run:
ls -la .claude/codescope/execution/ 2>/dev/null
If no execution directory exists or it is empty, inform the user:
No active CodeScope pipeline found. Nothing to pause.
And stop.
If $ARGUMENTS contains a task slug, use that as the task slug.
Otherwise, find the most recently modified task directory:
ls -t .claude/codescope/execution/ | head -1
Use that directory name as the task slug.
Run handoff generation via the built dist/ module:
node -e "
import { generateHandoff, writeHandoff } from './dist/session/handoff-generator.mjs';
const projectRoot = process.cwd();
const taskSlug = 'TASK_SLUG_HERE';
const content = generateHandoff(projectRoot, taskSlug);
if (content) {
const p = writeHandoff(projectRoot, taskSlug, content);
console.log(JSON.stringify({ success: true, path: p, taskSlug }));
} else {
console.log(JSON.stringify({ success: false, reason: 'No pipeline state found' }));
}
"
Replace TASK_SLUG_HERE with the actual task slug from Step 2.
If the result shows success: false, inform the user that no pipeline state was found for the task slug and stop.
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));
"
Read the generated handoff file and display a summary to the user:
## Pipeline Paused
**Task:** {task_slug}
**Pipeline phase:** {pipeline_phase}
**Saved to:** {handoff file path}
### Captured State
**Completed work:**
- {each completed work item}
**Remaining tasks:**
- {each remaining task item}
### Resume
To resume this pipeline later, run:
/codescope:resume {task_slug}