بنقرة واحدة
pause
Save your current session state for later resumption.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Save your current session state for later resumption.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Run multiple phases hands-free. Chains discuss, plan, build, and verify automatically.
Start a new project. Deep questioning, research, requirements, and roadmap.
Execute all plans in a phase. Spawns agents to build in parallel, commits atomically.
Configure settings: depth, model profiles, features, git, and gates.
Execute the next logical step automatically. No prompts, no decisions — just do it.
Systematic debugging with hypothesis testing. Persistent across sessions.
| name | pause |
| description | Save your current session state for later resumption. |
| allowed-tools | Read, Write, Bash, Glob |
| argument-hint | [reason] |
STOP — DO NOT READ THIS FILE. You are already reading it. This prompt was injected into your context by Claude Code's plugin system. Using the Read tool on this SKILL.md file wastes ~7,600 tokens. Begin executing Step 1 immediately.
Before ANY tool calls, display this banner:
╔══════════════════════════════════════════════════════════════╗
║ PLAN-BUILD-RUN ► PAUSING SESSION ║
╚══════════════════════════════════════════════════════════════╝
Then proceed to Step 1.
You are running the pause skill. Your job is to capture the current session state so the user can resume exactly where they left off in a future conversation. This creates a .continue-here.md handoff file with everything the next session needs.
This skill runs inline (no Task delegation).
Capture everything the next session needs to hit the ground running. The resume skill will read this file cold, with zero prior context. Write it as if you're handing off to a colleague who has never seen this project.
Flag: --checkpoint
If $ARGUMENTS contains --checkpoint:
Read the following files to understand where things stand:
.planning/STATE.md — Current position
╔══════════════════════════════════════════════════════════════╗
║ ERROR ║
╚══════════════════════════════════════════════════════════════╝
No Plan-Build-Run project state found. Nothing to pause.
**To fix:** Run `/pbr:new-project` to initialize a project first.
.planning/config.json — Project settings
.planning/ROADMAP.md — Phase overview
From STATE.md, get the current phase number and find its directory:
.planning/phases/Collect the following information:
Scan the current phase directory for SUMMARY.md files:
Also check git log for recent commits:
git log --oneline -20 --since="8 hours ago"
This gives a reasonable window for "this session's work."
Scan for plan files without corresponding SUMMARY.md files:
Check for:
/pbr:discuss-phase)From STATE.md blockers section and any:
Determine the logical next action (same routing logic as /pbr:progress):
Reflect on the current approach:
CRITICAL: Write pause state NOW before displaying confirmation. Do NOT skip this step.
Write the handoff file to the current phase directory:
Path: .planning/phases/{NN}-{phase-name}/.continue-here.md
Content:
Read ${CLAUDE_SKILL_DIR}/templates/continue-here.md.tmpl for the handoff file format. Fill in all {variable} placeholders with actual session data gathered in Steps 1-3. Fill in all XML sections. The <context> section should capture your understanding of the current approach and reasoning -- not just facts. Think of it as a message to your future self explaining what was going on.
CRITICAL: Write HANDOFF.json NOW, alongside .continue-here.md. Do NOT skip this step.
After writing .continue-here.md, also create .planning/HANDOFF.json with structured state for machine consumption:
Read current STATE.md for phase/plan/status
Read current plan file to get task progress (current task, total tasks)
Check for uncommitted files via git status --short
Read the HANDOFF.json template: ${CLAUDE_PLUGIN_ROOT}/templates/HANDOFF.json.tmpl
Fill in all fields from the template with actual session data:
status: "paused"created_at: current ISO timestampphase: number, slug, and name from STATE.mdplan: number, wave, current task, total tasksnext_action: the suggested next action from Step 3blockers: any blockers from STATE.md or verification failureshuman_actions_pending: any actions the user needs to takecompleted_tasks: task descriptions already done in current planuncommitted_files: from git status --shortcontext_notes: mental context about current approach and reasoning
CRITICAL: Write HANDOFF.json NOW. This file is required for session resumption.Write the filled JSON to .planning/HANDOFF.json
Purpose: .continue-here.md is human-readable; HANDOFF.json is machine-readable. The resume skill reads HANDOFF.json first for structured data, falling back to .continue-here.md for backward compatibility.
CRITICAL -- DO NOT SKIP: Update STATE.md via CLI.
pbr-tools state record-session --stopped-at "{brief description of current work}"
This updates STATE.md frontmatter (session_last, session_stopped_at, session_resume, last_command, last_activity) and the Session Continuity body section atomically.
Also update the session_resume pointer:
pbr-tools state update last_command "/pbr:pause-work"
If the CLI fails, display a branded ERROR box: "Failed to update STATE.md session state." and stop.
Reference: skills/shared/commit-planning-docs.md for the standard commit pattern.
If planning.commit_docs: true in config.json:
git add .planning/phases/{NN}-{phase-name}/.continue-here.md
git add .planning/HANDOFF.json
git add .planning/STATE.md
git commit -m "wip(planning): save session state — phase {N} plan {M}"
Commit rules:
wip(planning): prefix for pause commitsDisplay branded confirmation:
╔══════════════════════════════════════════════════════════════╗
║ PLAN-BUILD-RUN ► SESSION SAVED ✓ ║
╚══════════════════════════════════════════════════════════════╝
Position: Phase {N} — {phase name}, Plan {M}
Completed: {count} plans this session
Remaining: {count} plans in this phase
╔══════════════════════════════════════════════════════════════╗
║ ▶ NEXT UP ║
╚══════════════════════════════════════════════════════════════╝
**Resume in your next session**
`/pbr:resume-work`
<sub>`/clear` first → fresh context window</sub>
| Information | Source | Why It Matters |
|---|---|---|
| Phase + plan position | STATE.md | Know where to start |
| Completed work | SUMMARY.md files, git log | Know what's already done |
| Remaining work | Plan files without summaries | Know what's left |
| Decisions | CONTEXT.md, SUMMARY.md | Preserve user preferences |
| Blockers | STATE.md, verification files | Don't repeat failed approaches |
| Next steps | Routing logic | Immediate action on resume |
Reference: skills/shared/error-reporting.md for branded error output patterns.
planning.commit_docs is enabled — the WIP commit preserves the pause state in version control and ensures .continue-here.md is not lost if working tree changes occur