How this skill is triggered — by the user, by Claude, or both
Slash command
/codescope:pauseThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
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.
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}
npx claudepluginhub jwadhwa2259/codescope --plugin codescopeSaves Plan-Build-Run session state to .continue-here.md for resumption, capturing current phase, plan progress, git status, and blockers from .planning files.
Captures current workflow state into a handoff document so a fresh session can resume exactly where the previous one left off. Useful when context is running low or work needs to continue in a new session.
Saves session state by checking git status, committing deliberate WIP changes, and writing pause.json with branch, phase, tier, and note. Pause mid-session for clean resume.