From rp1-dev
Executes plan-build-[review] workflow for small/medium code changes with persistent artifacts, AFK mode, plan confirmation, git commit/push options.
npx claudepluginhub rp1-run/rp1This skill is limited to using the following tools:
Quick-iteration workflow for focused changes. Three-phase execution: plan -> build -> [review].
Executes quick-iteration workflow for small/medium code changes: plan phase, build implementation, optional review, git commit/push. Supports AFK mode and plan confirmation.
Executes tech plans via dependency-aware task batching, TDD, incremental commits, section code reviews, and PR creation. Use after planning phases.
Executes implementation plans from docs/plan/: implements tasks with code and tests, runs parallel quality reviews, validates, and ships pull requests.
Share bugs, ideas, or general feedback.
Quick-iteration workflow for focused changes. Three-phase execution: plan -> build -> [review].
Extract these parameters from the user's input:
| Parameter | Required | Default | Description |
|---|---|---|---|
DEVELOPMENT_REQUEST | Yes | - | The freeform development request text |
AFK | No | false | Non-interactive mode. Set true if user says "afk", "no prompts", or "unattended" |
CONFIRM_PLAN | No | false | Enable plan review checkpoint and post-implementation review. Set true if user says "confirm", "review plan", or "confirm-plan" |
REVIEW | No | false | Enable task-reviewer validation after implementation. Set true if user says "review", "verify", or "check" |
GIT_COMMIT | No | false | Commit changes. Set true if user says "commit" |
GIT_PUSH | No | false | Push branch to remote. Set true if user says "push" |
Environment values (resolve via shell):
RP1_ROOT: !rp1 agent-tools rp1-root-dir (extract data.root from JSON response)If RP1_VERSION < 0.3.3 then STOP execution with message:
Your rp1 CLI needs to be updated.
Please run `/rp1-base:self-update` to update, then retry this command.
Or in the terminal: `rp1 update`
CRITICAL OVERRIDE: When AFK=true, treat CONFIRM_PLAN as false regardless of its passed value. AFK mode means zero user interaction - skip ALL AskUserQuestion calls throughout this workflow.
Effective values when AFK=true:
CONFIRM_PLAN -> false (forced)stateDiagram-v2
[*] --> plan
plan --> build : plan_ready
build --> review : build_complete
review --> [*] : done
On each phase transition, report via:
rp1 agent-tools work update \
--project "$(pwd)" \
--feature {FEATURE_ID} \
--workflow build-fast \
--run-id {RUN_ID} \
--step {CURRENT_STATE} \
--status started
RUN_ID as a UUID at workflow startState Progression Protocol:
--step with --status started when you enter that state→ [*] transitions): report --status completed when the step's work finishesExample sequence:
--step plan --status started # entering plan phase
--step build --status started # plan done, entering build phase
--step review --status started # build done, entering review phase
--step review --status completed # review done, workflow complete
Spawn agent:
{% dispatch_agent "rp1-dev:build-fast-planner" %} DEVELOPMENT_REQUEST={DEVELOPMENT_REQUEST}, RP1_ROOT={{$RP1_ROOT}}, WORKFLOW=build-fast, RUN_ID={RUN_ID} {% enddispatch_agent %}
Parse response: Extract scope, plan_summary, files_affected, reasoning, artifact_path, task_count, task_ids.
If planner fails or returns an error: Retry the planner once. If it fails again, use a general-purpose agent with the same prompt to generate the plan and artifact. Never skip planning — always produce an artifact before §PHASE-2.
If scope = "Large":
Output the planner's redirect_message and STOP.
SKIP ENTIRELY if: AFK=true OR CONFIRM_PLAN=false
When skipped: Do NOT call AskUserQuestion. Proceed directly to §PHASE-2.
Present the plan review to the user:
Scope: {scope} Estimated Effort: {estimated_effort from plan} Artifact: {artifact_path}
Tasks: {list tasks from artifact}
Files: {files_affected}
{% ask_user "Proceed with plan?", options: "Continue", "Revise", "Stop" %}
On "Revise": Prompt for feedback, re-invoke §PHASE-1 with feedback appended to DEVELOPMENT_REQUEST. On "Stop": Output "Build fast cancelled. Artifact preserved at {artifact_path}" and STOP.
CRITICAL: You are an orchestrator. You MUST delegate implementation to task-builder via the Task tool. Do NOT write, edit, or create source code files yourself. Do NOT implement the plan directly. Your only job is to spawn agents and parse their responses.
You MUST spawn task-builder here. Do not implement the tasks yourself.
{% dispatch_agent "rp1-dev:task-builder" %} QUICK_BUILD_PATH={artifact_path} TASK_IDS={task_ids} GIT_COMMIT={GIT_COMMIT} RP1_ROOT={{$RP1_ROOT}} WORKFLOW=build-fast RUN_ID={RUN_ID} {% enddispatch_agent %}
Parse response: Verify "Builder Complete" in output.
Skip if: REVIEW=false
You MUST use subagent_type: rp1-dev:task-reviewer — do not use general-purpose or any other agent type.
{% dispatch_agent "rp1-dev:task-reviewer" %} QUICK_BUILD_PATH={artifact_path} TASK_IDS={task_ids} GIT_COMMIT={GIT_COMMIT} RP1_ROOT={{$RP1_ROOT}} WORKFLOW=build-fast RUN_ID={RUN_ID} {% enddispatch_agent %}
Parse response: Extract status (SUCCESS or FAILURE).
If status = "FAILURE":
issues and summary from reviewer response{% dispatch_agent "rp1-dev:task-builder" %} QUICK_BUILD_PATH={artifact_path} TASK_IDS={task_ids} GIT_COMMIT={GIT_COMMIT} RP1_ROOT={{$RP1_ROOT}} PREVIOUS_FEEDBACK={reviewer summary and issues} WORKFLOW=build-fast RUN_ID={RUN_ID} {% enddispatch_agent %}
Skip if: GIT_PUSH=false
git push -u origin {branch}
SKIP ENTIRELY if: AFK=true OR CONFIRM_PLAN=false
When skipped: Do NOT call AskUserQuestion. Proceed directly to §OUTPUT.
Present the post-implementation checkpoint to the user:
Branch: {branch} Artifact: {artifact_path}
Review the changes.
{% ask_user "Continue or make additional changes?", options: "Done", "Add/Edit" %}
On "Add/Edit": Prompt for additional request, re-invoke §PHASE-2 with new request appended. On "Done": Continue to output.
Register the artifact in the database:
rp1 agent-tools work artifact \
--project "$(pwd)" \
--feature {FEATURE_ID} \
--run-id {RUN_ID} \
--path {artifact_path}
## Build Fast Complete
**Request**: {brief summary of DEVELOPMENT_REQUEST}
**Scope**: {scope}
**Artifact**: {artifact_path}
**Branch**: {branch}
**Tasks**: {task_count} tasks ({task_ids})
**Changes**:
{list files modified from builder output}
**Quality**: {format/lint/test status from builder}
**Review**: {PASSED | SKIPPED | FAILED+RETRIED} (based on REVIEW flag)
MANDATORY — violations cause eval failure:
DO:
rp1 agent-tools work artifact in §OUTPUT — this is REQUIREDDO NOT (hard constraints — never violate these):
Single-pass per phase. Parse args -> plan -> [checkpoint] -> execute via task-builder -> [review] -> [checkpoint] -> STOP.