بنقرة واحدة
phase-plan
Decompose a completed PRD or oversized requirements artifact into durable delivery phases.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Decompose a completed PRD or oversized requirements artifact into durable delivery phases.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | phase-plan |
| description | Decompose a completed PRD or oversized requirements artifact into durable delivery phases. |
| allowed-tools | Bash(echo *), Bash(rp1 *) |
| metadata | {"category":"development","is_workflow":true,"workflow":{"run_policy":"fresh","identity_args":[]},"version":"1.0.0","tags":["planning","feature","workflow"],"created":"2026-04-15T00:00:00.000Z","updated":"2026-04-15T00:00:00.000Z","author":"cloud-on-prem/rp1","arguments":[{"name":"SOURCE","type":"string","required":true,"description":"Planning source path or identifier (PRD or oversized feature requirements)"},{"name":"UPDATE_CONTEXT","type":"string","required":false,"default":"","description":"Optional context for revising an existing phase plan"},{"name":"AFK","type":"boolean","required":false,"default":false,"description":"Non-interactive mode","aliases":["afk","no prompts","unattended"]}],"sub_agents":["rp1-dev:phase-planner"]} |
YOU ARE A PURE ORCHESTRATOR. Spawn phase-planner, parse its JSON response, track workflow state, and register the generated artifact. Do not write or edit planning artifacts yourself.
Command Contract: /phase-plan <source> [--afk]
Use the pre-resolved projectRoot, kbRoot, and workRoot values from the generated Workflow Bootstrap section. Do not hardcode .rp1/work/ or .rp1/context/ paths.
SOURCE is the user-provided planning source path or identifier. It must resolve to either:
{workRoot}/prds/*.md{workRoot}/features/*/requirements.mdUPDATE_CONTEXT is optional revision guidance for refreshing an existing phase plan.
This workflow is single-pass. It does not emit waiting_for_user for source ambiguity. If SOURCE is ambiguous, the planner must return terminal status="error" JSON so the user can rerun /phase-plan with an explicit source path.
stateDiagram-v2
[*] --> analyze
analyze --> publish : plan_ready
publish --> completed : published
analyze --> failed : error
publish --> failed : error
completed --> [*]
failed --> [*]
First emit (entering analyze) includes --name:
rp1 agent-tools emit \
--workflow phase-plan \
--type status_change \
--run-id {RUN_ID} \
--step analyze \
--name "Phase Plan: {source summary}" \
--data '{"status": "running"}'
Subsequent transitions omit --name:
rp1 agent-tools emit \
--workflow phase-plan \
--type status_change \
--run-id {RUN_ID} \
--step {STATE} \
--data '{"status": "running"}'
Terminal states:
rp1 agent-tools emit \
--workflow phase-plan \
--type status_change \
--run-id {RUN_ID} \
--step {STATE} \
--data '{"status": "completed"}'
On failure:
rp1 agent-tools emit \
--workflow phase-plan \
--type status_change \
--run-id {RUN_ID} \
--step failed \
--data '{"status": "failed"}'
Emit the analyze state, then invoke the planner:
{% dispatch_agent "rp1-dev:phase-planner" %} SOURCE={SOURCE}, UPDATE_CONTEXT={UPDATE_CONTEXT}, AFK_MODE={AFK}, KB_ROOT={kbRoot}, WORK_ROOT={workRoot}, RUN_ID={RUN_ID} {% enddispatch_agent %}
Parse the JSON response. Accept only this completion contract:
{
"status": "success",
"source_kind": "prd | feature-requirements",
"source_path": ".rp1/work/...",
"source_relative_path": "prds/... | features/.../requirements.md",
"artifact_path": ".rp1/work/...",
"artifact_relative_path": "prds/... | features/.../phase-plan.md",
"phase_count": 2,
"phase_ids": ["P1", "P2"],
"afk_decisions": []
}
If the agent returns status=error, omits any required field, or references files outside the source artifact and the source-adjacent phase plan, emit failed and stop.
For status="error" responses, treat this as a terminal workflow result, not an interactive pause. Surface the planner's message. If the response includes candidate_paths, list them and tell the user to rerun /phase-plan with one explicit source path.
After a valid success response, transition to publish:
rp1 agent-tools emit \
--workflow phase-plan \
--type status_change \
--run-id {RUN_ID} \
--step publish \
--data '{"status": "running"}'
Register the generated phase plan so Arcade and downstream workflows can discover it:
rp1 agent-tools emit \
--workflow phase-plan \
--type artifact_registered \
--run-id {RUN_ID} \
--step publish \
--data '{"path": "{artifact_relative_path}", "source": "{source_relative_path}", "sourceKind": "{source_kind}", "storageRoot": "work_dir"}'
Do not register the source artifact update separately. File watching handles backlink freshness on the source document.
Emit the terminal status:
rp1 agent-tools emit \
--workflow phase-plan \
--type status_change \
--run-id {RUN_ID} \
--step completed \
--data '{"status": "completed"}'
Output:
## Phase Plan Complete
**Source**: {source_path}
**Phase Plan**: {artifact_path}
**Source Kind**: {source_kind}
**Phases**: {phase_ids joined by ", "}
When the planner returns status="error", output:
## Phase Plan Failed
**Reason**: {message}
**Candidates**:
- {candidate_paths[0]}
- {candidate_paths[1]}
**Next**: Re-run `/phase-plan` with one explicit source path from the list above.
Omit the Candidates block when candidate_paths is absent or empty.
/phase-plan is explicit. Do not trigger it automatically from unrelated workflows.tracker.md or milestone-*.md artifacts for new work.artifact_registered before the publish step.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.