بنقرة واحدة
blueprint
Guided wizard for project vision via two-tier docs (charter + PRDs) with stateless interview loops.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Guided wizard for project vision via two-tier docs (charter + PRDs) with stateless interview loops.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
Agent-only canonical output templates for rp1 artifacts. Load when producing structured markdown to ensure format consistency and routing metadata.
Ask about rp1 capabilities, discover skills, and get workflow guidance.
Evidence-gated tech debt and bloat detection. Scouts signals, ranks by materiality, validates by refutation, reports up to 5 findings with actions.
Synchronizes user-facing documentation with the current knowledge base through validate -> stale gate -> scan -> approval -> process orchestration.
Orchestrates parallel KB generation using spatial analysis and a map-reduce architecture with incremental and feature-learning modes.
Analyzes systems holistically to provide strategic recommendations balancing cost, quality, performance, complexity, and business objectives with quantified trade-offs.
استنادا إلى تصنيف SOC المهني
| name | blueprint |
| description | Guided wizard for project vision via two-tier docs (charter + PRDs) with stateless interview loops. |
| allowed-tools | Bash(echo *), Bash(rp1 *) |
| metadata | {"category":"planning","is_workflow":true,"workflow":{"run_policy":"fresh","identity_args":[]},"version":"2.0.0","tags":["planning","project","charter","prd","onboarding","core"],"created":"2025-11-30T00:00:00.000Z","updated":"2026-02-26T00:00:00.000Z","author":"cloud-on-prem/rp1","arguments":[{"name":"PRD_NAME","type":"string","required":false,"description":"PRD name to create (omit for default charter + main PRD flow)"},{"name":"EXTRA_CONTEXT","type":"string","required":false,"default":"","description":"Additional context provided by the user"}],"sub_agents":["rp1-dev:charter-interviewer","rp1-dev:blueprint-wizard"]} |
stateDiagram-v2
[*] --> detect
detect --> charter : needs_charter
detect --> prd : charter_exists
charter --> prd : charter_complete
prd --> [*] : done
On each phase transition, report via:
rp1 agent-tools emit \
--workflow blueprint \
--type status_change \
--run-id {RUN_ID} \
--name "{RUN_NAME}" \
--step {CURRENT_STATE} \
--data '{"status": "running"}'
RUN_ID comes from the generated Workflow Bootstrap sectionRUN_NAME: use "Blueprint: {PRD_NAME}" when PRD_NAME is provided, otherwise use "Blueprint: main"State Progression Protocol:
--step with --data '{"status": "running"}' when you enter that state→ [*] transitions): report with --data '{"status": "completed"}' and --close-run when the step's work finishesExample sequence (with charter):
--workflow blueprint --step detect --name "Blueprint: mobile-app" --data '{"status": "running"}' # first emit includes --name
--workflow blueprint --step charter --data '{"status": "running"}' # needs charter, entering charter phase
--workflow blueprint --step prd --data '{"status": "running"}' # charter done, entering prd phase
--workflow blueprint --step prd --data '{"status": "completed"}' --close-run # prd done, workflow complete
Use the pre-resolved projectRoot, kbRoot, and workRoot values from the generated Workflow Bootstrap section. Do not hardcode .rp1/work/ or .rp1/context/ paths.
Doc Hierarchy:
{kbRoot}/charter.md) - Project-level: problem/context, users, business rationale, scope guardrails, success criteria{workRoot}/prds/<name>.md) - Surface-specific: overview, in/out scope, requirements, dependencies, timeline. Inherit from charter, link back, no duplication.Read {kbRoot}/charter.md:
| Condition | Mode | Message |
|---|---|---|
| Not exist | CREATE | "Starting new charter creation. I'll guide you through defining your project vision." |
Exists + has ## Scratch Pad | RESUME | "Resuming interrupted charter session. I'll continue from where you left off." |
| Exists + no scratch pad | UPDATE | "Updating existing charter. I'll ask focused questions about changes you want to make." |
CREATE - Write charter.md:
# Project Charter: [To Be Determined]
**Version**: 1.0.0
**Status**: Draft
**Created**: {YYYY-MM-DD}
## Scratch Pad
<!-- Interview state - will be removed upon completion -->
<!-- Mode: CREATE -->
<!-- Started: {ISO timestamp} -->
<!-- End scratch pad -->
UPDATE - Edit: append scratch pad after last line:
## Scratch Pad
<!-- Interview state - will be removed upon completion -->
<!-- Mode: UPDATE -->
<!-- Started: {ISO timestamp} -->
<!-- End scratch pad -->
RESUME - No init (scratch pad exists).
question_number = 0 loop:
{% dispatch_agent "rp1-dev:charter-interviewer" %} CHARTER_PATH={kbRoot}/charter.md, MODE={mode} {% enddispatch_agent %}
Parse JSON response
Handle by type:
next_question:
question_number = metadata.question_number
topic = map_gap_to_topic(metadata.gaps_remaining[0])
answer = {% ask_user "response.next_question" %}
Edit charter.md (insert before <!-- End scratch pad -->):
### Q{N}: {topic}
**Asked**: {question}
**Answer**: {answer}
continue
success: Write charter sections from response.charter_content Remove "## Scratch Pad" section entirely Update status to "Complete" Register artifact:
rp1 agent-tools emit \
--workflow blueprint \
--type artifact_registered \
--run-id {RUN_ID} \
--step charter \
--data '{"path": ".rp1/context/charter.md", "feature": "blueprint", "storageRoot": "project"}'
Output: "Charter complete! Proceeding to PRD creation..." break -> Step 4
skip:
question_number = metadata.question_number
topic = from message
Edit charter.md:
### Q{N}: {topic}
**Skipped**: {message}
continue
error: Output: "Charter interview encountered an error. Scratch pad state preserved for retry." Preserve scratch pad, EXIT (no PRD)
Topic Map:
| Gap | Topic |
|---|---|
| problem | Problem & Context |
| users | Target Users |
| value_prop | Value Proposition |
| scope | Scope |
| success | Success Criteria |
| (Q1 CREATE) | Brain Dump |
Scratch Pad Edits:
old_string: <!-- End scratch pad --> -> prepend entry## Scratch Pad through <!-- End scratch pad -->, replace w/ emptyPRD_NAME = PRD_NAME || "main"
Create {workRoot}/prds/{PRD_NAME}.md:
# PRD: {PRD_NAME}
**Charter**: [Project Charter]({kbRoot}/charter.md)
**Version**: 1.0.0
**Status**: Draft
**Created**: {YYYY-MM-DD}
## Scratch Pad
<!-- Mode: CREATE -->
<!-- Section: 1 -->
<!-- Started: {timestamp} -->
### Q&A History
<!-- End scratch pad -->
PRD_PATH = {workRoot}/prds/{PRD_NAME}.md
question_count = 0
loop: {% dispatch_agent "rp1-dev:blueprint-wizard" %} PRD_NAME={PRD_NAME}, EXTRA_CONTEXT={EXTRA_CONTEXT}, KB_ROOT={kbRoot}, WORK_ROOT={workRoot} {% enddispatch_agent %}
Parse JSON response
next_question | validate:
answer = {% ask_user "response.next_question" %}
question_count++
Edit PRD (insert before <!-- End scratch pad -->):
#### S{section}: {topic}
**Asked**: {question}
**Answer**: {answer}
continue
section_complete:
Update section marker: <!-- Section: {N} --> -> <!-- Section: {N+1} -->
Write section content to PRD above scratch pad
continue
uncertainty:
guess = {% ask_user "response.message" %}
Add: **Assumption**: {guess}
continue
success:
Write PRD w/ response.prd_content (removes scratch pad)
Register artifact:
bash rp1 agent-tools emit \ --workflow blueprint \ --type artifact_registered \ --run-id {RUN_ID} \ --step prd \ --data '{"path": "prds/{PRD_NAME}.md", "feature": "{PRD_NAME}", "storageRoot": "work_dir"}'
Output: "PRD created at {PRD_PATH}"
break
error: Output: "PRD creation error: {message}" If metadata.missing == "charter": Output: "Please run /blueprint without arguments to create the charter first." break
PRD created!
Created:
- {workRoot}/prds/{PRD_NAME}.md
Next Steps:
- For a single feature: /rp1-dev:build <feature-id>
- For initiative-sized work: /rp1-dev:phase-plan prds/{PRD_NAME}.md
- Add more surfaces: /rp1-dev:blueprint mobile-app
Default (charter + main PRD): /rp1-dev:blueprint
Named PRD (requires charter): /rp1-dev:blueprint mobile-app
/rp1-dev:phase-plan prds/{PRD_NAME}.md - Decompose a large PRD into delivery phases before feature execution/rp1-dev:build <feature-id> - Build a single feature directly when the PRD already maps to one delivery slice