بنقرة واحدة
continue
Execute the next logical step automatically. No prompts, no decisions — just do it.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Execute the next logical step automatically. No prompts, no decisions — just do it.
التثبيت باستخدام 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.
Systematic debugging with hypothesis testing. Persistent across sessions.
Explore ideas, think through approaches, and route insights to the right artifacts.
| name | continue |
| description | Execute the next logical step automatically. No prompts, no decisions — just do it. |
| allowed-tools | Read, Write, Bash, Glob, Grep, Task, Skill, AskUserQuestion |
| argument-hint | [--auto] |
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.
You are running the continue skill. Unlike /pbr:progress which shows the dashboard and suggests the next action, /pbr:continue determines and EXECUTES the next logical step automatically. Stops safely at milestones, checkpoints, errors, and verification gaps.
This skill runs inline and may delegate to other skills via Task().
Before ANY tool calls, display this banner:
╔══════════════════════════════════════════════════════════════╗
║ PLAN-BUILD-RUN ► NEXT STEP ║
╚══════════════════════════════════════════════════════════════╝
Then proceed to Step 1.
Reference: skills/shared/context-budget.md for the universal orchestrator rules.
Additionally for this skill:
Do, don't ask. Read STATE.md, determine the next action, and execute it. The user wants hands-off forward progress.
Parse $ARGUMENTS:
--auto is present in $ARGUMENTS: set auto_mode = true. Log: "Auto mode enabled — passing --auto to delegated skills"| Argument | Meaning |
|---|---|
--auto | Pass --auto flag to all delegated skills, increase consecutive chain limit from 6 to 20 |
CRITICAL — Run init command FIRST before any manual file reads:
node plugins/pbr/scripts/pbr-tools.js init continue
Store the JSON result as blob. This single call replaces multiple file reads with a pre-computed payload containing state, config, routing, drift, and signal file data.
Use blob fields for all downstream state references:
blob.state — STATE.md frontmatter (status, current_phase, plans_complete, last_command, etc.)blob.current_phase.num, blob.current_phase.name, blob.current_phase.status — current phase detailsblob.auto_next — .auto-next file content (or null)blob.continue_here — .continue-here file content (or null)blob.active_skill — .active-skill file content (or null)blob.routing — suggestNext output with blob.routing.command and blob.routing.reasonblob.drift — drift detection result (blob.drift.drift_detected, blob.drift.stale_fields)blob.config.mode, blob.config.features, blob.config.gates — config checksIf blob.error is set, display the error banner and stop (no project found).
Then read .planning/ROADMAP.md to identify the current milestone boundary (initContinue does not include roadmap data):
## Milestone: section contains the current phase/pbr:milestone to complete it."Depends on references a phase from the previous milestone that is not yet complete, warn: "Cross-milestone dependency: Phase {N} depends on Phase {M} from milestone {prev}, which is not yet complete."Before proceeding to Step 2, check the configured context window from blob.config or:
pbr-tools config get context_window_tokens
If the returned value is >= 500000, perform the following lookahead reads before moving to Step 2. If the value is < 500000 (or the command fails), skip this section entirely and proceed to Step 2 with no changes to behavior.
Lookahead analysis:
pbr-tools roadmap analyze --lookahead
Parse the JSON output which includes:
parallel_candidates: array of phase pairs that can run concurrently (display at most 3)dependency_inversions: array of phases where dependency phase number > current phase numberdeferred_unblocked: array of out-of-scope items whose blocking phase is now complete (display at most 2)Display all findings BEFORE proceeding to Step 2. If no findings exist, display nothing.
If the CLI fails, skip lookahead silently — lookahead is advisory, not blocking.
If blob.error is set (STATE.md doesn't exist), display:
╔══════════════════════════════════════════════════════════════╗
║ ERROR ║
╚══════════════════════════════════════════════════════════════╝
No project state found.
**To fix:** Run `/pbr:new-project` first.
Before proceeding to priority evaluation, check for runaway continue chains:
last_command from blob.state.last_command. If last_command is missing, empty, or the field does not exist, skip directly to the fallback detection — do NOT error or warn.blob.state.last_command equals /pbr:continue, this is a chained continue. Check session context for consecutive /pbr:continue invocations.blob.state.last_command is not available:
blob.active_skill — if it contains continue, treat as a chained continueblob.state.last_action — if it contains continue, treat as a chained continue/pbr:continue in a row (or 20th if auto_mode is true), display:WARNING: Context budget warning: 6 consecutive auto-continues detected.
Recommend running /pbr:pause-work then resuming in a fresh session.
Then present the user with a choice:
/pbr:pause-work logic to save state and stopThis prevents runaway chains that fill the context window without a human checkpoint.
Use blob.routing.command and blob.routing.reason from the init blob to determine the next action. The routing field contains the suggestNext output which implements the full priority hierarchy:
status: gaps_found → Execute /pbr:plan-phase {N} --gaps.checkpoint-manifest.json with pending items → Resume the buildblob.continue_here is non-null → Follow its next step/pbr:execute-phase {N}/pbr:verify-work {N}/pbr:plan-phase {N+1}/pbr:audit-milestone to verify cross-phase integration, then /pbr:complete-milestone to archive."/pbr:new-milestone to start the next milestone, or /pbr:audit-milestone if not yet audited."When blob.routing.command doesn't match a priority item above, route based on blob.current_phase.status:
| Status | Next Action |
|---|---|
not_started | Suggest /pbr:discuss-phase {N} or /pbr:plan-phase {N} |
discussed | Suggest /pbr:plan-phase {N} |
ready_to_plan | Suggest /pbr:plan-phase {N} |
planning | Wait for planner to complete, or re-run /pbr:plan-phase {N} |
planned | Suggest /pbr:build {N} |
ready_to_execute | Suggest /pbr:build {N} |
building | Resume build with /pbr:build {N} |
built | Read workflow.validate_phase from config.json (default: true). If true: suggest /pbr:validate-phase {N}. If false: suggest /pbr:review {N}. Secondary: If workflow.suggest_test_generation is true (default: true) AND the phase has no TESTING.md or test coverage is unknown, also display advisory: "Test coverage not tracked for this phase. Consider /pbr:test {N} to generate tests before review." |
partial | Resume build with /pbr:build {N} |
verified | Suggest /pbr:plan-phase {N+1} or milestone completion |
needs_fixes | Suggest /pbr:plan-phase {N} --gaps |
complete | Advance to next phase or milestone completion |
skipped | Advance to next phase |
Based on the determined action, display the delegation indicator to the user:
◐ Delegating to /pbr:{skill} {args}...
Then invoke the appropriate skill via the Skill tool. NEVER read SKILL.md files into your context — this wastes the main context budget with 500+ lines of instructions. Instead, use the Skill tool which runs the skill in a clean invocation:
| Situation | Action | How |
|---|---|---|
| Gaps need closure | Plan gap closure | Skill({ skill: "pbr:plan", args: "{N} --gaps" }) (append --auto if auto_mode) |
| Build incomplete | Continue build | Skill({ skill: "pbr:build", args: "{N}" }) (append --auto if auto_mode) |
Validate needed (built + workflow.validate_phase: true) | Run validate-phase | Skill({ skill: "pbr:validate-phase", args: "{N}" }) (append --auto if auto_mode) |
Test generation needed (built + workflow.suggest_test_generation: true + no TESTING.md) | Suggest test generation | Display: "Advisory: /pbr:test {N} — generate tests before review" (do NOT auto-delegate; leave as user-visible suggestion only) |
| Review needed (validate_phase disabled or already validated) | Run review | Skill({ skill: "pbr:review", args: "{N}" }) (append --auto if auto_mode) |
| Next phase needed | Plan next phase | Skill({ skill: "pbr:plan", args: "{N+1}" }) (append --auto if auto_mode) |
| Project not started | Plan phase 1 | Skill({ skill: "pbr:plan", args: "1" }) (append --auto if auto_mode) |
Where {N} is blob.current_phase.num determined from the init blob in Step 1.
After execution completes, display a branded completion:
╔══════════════════════════════════════════════════════════════╗
║ PLAN-BUILD-RUN ► STEP COMPLETE ✓ ║
╚══════════════════════════════════════════════════════════════╝
✓ Completed: {what was done}
╔══════════════════════════════════════════════════════════════╗
║ ▶ NEXT UP ║
╚══════════════════════════════════════════════════════════════╝
**{Next action description}**
`/pbr:continue` or `{specific command}`
If blob.config.features.auto_advance is true AND blob.config.mode is autonomous:
After the delegated skill completes, immediately re-run Step 1-3 to determine and execute the NEXT action. Continue chaining until a hard stop is reached. This enables hands-free phase cycling: build→review→plan→build→...
Do NOT auto-continue when:
blob.config.mode is NOT autonomous and a gate confirmation is neededIn these cases, explain why auto-continue stopped and what the user needs to do.
Reference: skills/shared/error-reporting.md for branded error output patterns.