continue
Flagged{"isSafe":false,"isSuspicious":true,"riskLevel":"critical","findings":[{"category":"prompt_injection","severity":"critical","description":"Injected prompt attempts to override safety checks and force immediate execution without proper gating.","evidence":"**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.**"},{"category":"prompt_injection","severity":"high","description":"Content explicitly instructs autonomous execution and chaining across skills, which can bypass user consent and safety checks.","evidence":"\"This skill runs inline and may delegate to other skills via Task()... 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.\""}],"summary":"The skill document contains a prompt-injection line aimed at bypassing safeguards and initiating execution, plus a design that enables autonomous, hands-off execution across skills. This combination creates a high-risk scenario where actions could be performed without explicit user confirmation or review."}
npx machina-cli add skill SienkLogic/plan-build-run/continue --openclawSTOP — 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.
$pbr-continue — Action-Oriented Resumption
You are running the continue skill. Unlike $pbr-status 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().
Step 0 — Immediate Output
Before ANY tool calls, display this banner:
╔══════════════════════════════════════════════════════════════╗
║ PLAN-BUILD-RUN ► NEXT STEP ║
╚══════════════════════════════════════════════════════════════╝
Then proceed to Step 1.
Context Budget
Reference: skills/shared/context-budget.md for the universal orchestrator rules.
Additionally for this skill:
- Minimize state reads — read only STATE.md lines 1-20 to determine next action
- Delegate execution to the appropriate skill via Skill() or Task()
Core Principle
Do, don't ask. Read STATE.md, determine the next action, and execute it. The user wants hands-off forward progress.
Flow
Step 1: Read State
Read .planning/STATE.md and determine current position:
- Current phase number and name
- Current plan progress
- Phase status (planning, building, reviewing, complete)
Then read .planning/ROADMAP.md to identify the current milestone boundary:
- Find which
## Milestone:section contains the current phase - Determine if the current phase is the last phase in that milestone section
- If this is the last phase and it is verified/complete, warn: "This is the final phase of milestone {name}. After verification, run
$pbr-milestoneto complete it." - If the current phase's
Depends onreferences 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."
If STATE.md doesn't exist, display:
╔══════════════════════════════════════════════════════════════╗
║ ERROR ║
╚══════════════════════════════════════════════════════════════╝
No project state found.
**To fix:** Run `$pbr-begin` first.
Context Budget Guard
Before proceeding to priority evaluation, check for runaway continue chains:
- Read
last_commandfrom STATE.md. Iflast_commandis missing, empty, or the field does not exist, skip directly to the fallback detection — do NOT error or warn. - If
last_commandis present and equals$pbr-continue, this is a chained continue. Check session context for consecutive$pbr-continueinvocations. - Fallback detection — if
last_commandis not available or not present in STATE.md:- Check
.planning/.active-skillfile — if it containscontinue, treat as a chained continue - Check STATE.md
last_actionfield — if it containscontinue, treat as a chained continue - If neither source is available, assume this is the first invocation (do not warn)
- Check
- If this is the 6th consecutive
$pbr-continuein a row, display:
WARNING: Context budget warning: 6 consecutive auto-continues detected.
Recommend running $pbr-pause then resuming in a fresh session.
Then present the user with a choice:
- "Continue" — proceed with the next action
- "Pause" — run
$pbr-pauselogic to save state and stop
This prevents runaway chains that fill the context window without a human checkpoint.
Step 2: Scan for Priority Items
Check the resumption priority hierarchy (same as $pbr-resume):
- UAT Blockers: VERIFICATION.md with
status: gaps_found→ Execute$pbr-plan {N} --gaps - Checkpoint pending:
.checkpoint-manifest.jsonwith pending items → Resume the build - Continue-here file:
.continue-here.mdexists → Follow its next step - Incomplete build: PLAN.md files without SUMMARY.md → Execute
$pbr-build {N} - Unverified phase: All plans complete, no VERIFICATION.md → Execute
$pbr-review {N} - Phase complete, more phases exist: Verification passed → Execute
$pbr-plan {N+1} - Last phase in current milestone complete: Verification passed on the last phase of the current milestone's phase range → Stop. Display: "Milestone complete! Run
$pbr-milestone auditto verify cross-phase integration, then$pbr-milestone completeto archive." - Between milestones: Current milestone is marked complete in STATE.md, but more milestones exist or user needs to create the next one → Stop. Display: "Current milestone is complete. Run
$pbr-milestone newto start the next milestone, or$pbr-milestone auditif not yet audited."
Step 3: Execute
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" }) |
| Build incomplete | Continue build | Skill({ skill: "pbr:build", args: "{N}" }) |
| Review needed | Run review | Skill({ skill: "pbr:review", args: "{N}" }) |
| Next phase needed | Plan next phase | Skill({ skill: "pbr:plan", args: "{N+1}" }) |
| Project not started | Plan phase 1 | Skill({ skill: "pbr:plan", args: "1" }) |
Where {N} is the current phase number determined from STATE.md in Step 1.
Step 4: Report and Chain
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 features.auto_advance is true AND 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→...
Hard Stops
Do NOT auto-continue when:
config.modeis NOTautonomousand a gate confirmation is needed- A checkpoint requires human input (decision, verify, action)
- An error occurred during execution
- The milestone is complete
- Verification found gaps (need user review before advancing)
In these cases, explain why auto-continue stopped and what the user needs to do.
Anti-Patterns
- DO NOT ask the user what to do — determine it from state
- DO NOT skip error handling — if something fails, stop and report
- DO NOT continue past checkpoints that need human input
- DO NOT auto-continue into a new milestone — that needs user initiation
- DO NOT modify STATE.md directly — let the delegated skill handle it
Source
git clone https://github.com/SienkLogic/plan-build-run/blob/main/plugins/codex-pbr/skills/continue/SKILL.mdView on GitHub Overview
continue automatically determines and executes the next logical action in a project plan without prompts. It reads the current state from .planning/STATE.md and milestone boundaries from .planning/ROADMAP.md, then delegates work to the appropriate skill as needed. It also guards against runaway auto-continues and incomplete milestones, stopping at milestones, checkpoints, or verification gaps.
How This Skill Works
It starts by displaying a banner (Step 0) and then reads the current phase and milestone from STATE.md and ROADMAP.md to decide the next action. It uses a context budget guard to detect chained continues and delegates execution to other skills via Skill() or Task() when appropriate. If dependencies aren't satisfied or milestones require verification, it issues warnings and may offer a Continue or Pause choice to the user.
When to Use It
- You want hands-off progress through a project plan, with the system automatically advancing to the next action without prompts.
- You are resuming after an interruption and want to pick up where you left off without manual prompts.
- Automating progression across milestone boundaries while monitoring dependencies between milestones.
- You need automatic checks for milestone verification gaps and want to halt for human verification when needed.
- You want to prevent runaway auto-continues by using the context budget and a Pause option for checkpoints.
Quick Start
- Step 1: Trigger the continue skill to begin automatic progression.
- Step 2: It prints the banner and reads STATE.md and ROADMAP.md to determine the next action.
- Step 3: It executes the next action or delegates to the appropriate skill, stopping at milestones or verification gaps.
Best Practices
- Keep STATE.md and ROADMAP.md up to date so the next action is accurate.
- Monitor chained continues and use the Pause option to insert human checkpoints when decisions are complex.
- Heed cross-milestone dependency warnings to avoid progressing on incomplete work.
- Test auto-progress in a safe session before relying on it in production.
- Log outcomes and verify milestone completion before running post-mipeline steps like milestone finalization.
Example Use Cases
- Auto-advance from planning to building a feature after the current phase completes.
- Detect a cross-milestone dependency: continue halts and warns when a prior milestone is incomplete.
- Final phase of a milestone is complete and verified; continue suggests running $pbr-milestone to finish.
- STATE.md missing triggers an error banner guiding to run $pbr-begin.
- A session hits the 6th consecutive auto-continue and suggests pausing.