一键导入
rai-story-plan
Decompose story into atomic tasks with TDD verification. Use after story design.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Decompose story into atomic tasks with TDD verification. Use after story design.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Interactive adapter setup for Jira and Confluence. Detects available backends, discovers projects/spaces, generates validated YAML config. 3-4 questions max.
Evaluate design proportionality using Beck's four rules. Use after implementation.
Root cause analysis using the method best suited to the bug. Phase 3 of bugfix pipeline.
Push branch, create MR, verify artifacts complete. Phase 7 of bugfix pipeline.
Execute fix tasks with TDD and all validation gates. Phase 5 of bugfix pipeline.
Decompose fix into atomic TDD tasks. Phase 4 of bugfix pipeline.
| name | rai-story-plan |
| description | Decompose story into atomic tasks with TDD verification. Use after story design. |
| allowed-tools | ["Read","Grep","Glob","Bash(rai:*)"] |
| license | MIT |
| metadata | {"raise.work_cycle":"story","raise.frequency":"per-story","raise.fase":"5","raise.prerequisites":"project-backlog","raise.next":"story-implement","raise.gate":"gate-plan","raise.adaptable":"true","raise.version":"2.3.0","raise.visibility":"public","raise.inputs":"- design_md: file_path, optional, previous_skill\n- story_md: file_path, required, story-start\n","raise.outputs":"- plan_md: file_path, next_skill\n","raise.aspects":"introspection","raise.introspection":{"phase":"story.plan","context_source":"design doc","affected_modules":[],"max_tier1_queries":3,"max_jit_queries":2,"tier1_queries":["decomposition patterns for {complexity} stories","TDD patterns for {affected_modules}","estimation calibration for {size} stories"]}} |
Decompose a story into atomic executable tasks with dependencies, verification criteria, and a deterministic execution order.
When to use: After /rai-story-design has grounded integration decisions (or directly for simple stories).
Prerequisite: Design document at work/epics/e{N}-{name}/stories/s{N}.{M}-design.md (optional for simple stories).
Inputs: Story with acceptance criteria, design document (if exists).
Before starting Step 1, you MUST execute the PRIME protocol:
.raise/rai/learnings/rai-story-design/{work_id}/record.yaml. Enrich story-design's record with downstream: {plan_derivable: bool, tasks_clear: bool}.rai graph query. If graph is unavailable, note and continue.ls work/epics/e*/stories/{story_id}-design.md 2>/dev/null || echo "INFO: No design"
JIT: Before verifying design completeness, query graph for complexity assessment patterns →
aspects/introspection.md § JIT Protocol
| Condition | Action |
|---|---|
| Design exists | Load and reference |
| No design + simple story | Continue |
| No design + complex story | Run /rai-story-design first |
Divide story into atomic, individually verifiable tasks. One commit per task.
| Story Size | Tasks | Rationale |
|---|---|---|
| XS (1-2 SP) | 1-2 | Single-pass implementation |
| S (3-5 SP) | 2-3 | Avoid over-decomposition |
| M (5-8 SP) | 3-5 | Balance granularity and overhead |
| L (8+ SP) | 5-8 | Consider splitting the story |
Per task:
story.md Gherkin scenario (if exists).raise/manifest.yaml (test_command, lint_command, type_check_command). Never use file-specific paths (e.g. pyright src/module/file.py) — the project config already defines the correct scope including tests/. If manifest commands are absent, use language defaults (see /rai-story-implement Step 3).Always include as final task: Manual integration test — validate end-to-end with running software.
Each task is atomic and verifiable. Final integration test included.JIT: Before ordering dependencies, query graph for risk-first ordering patterns →
aspects/introspection.md § JIT Protocol
Create work/epics/e{N}-{name}/stories/s{N}.{M}-plan.md with:
| Item | Destination |
|---|---|
| Implementation plan | work/epics/e{N}-{name}/stories/s{N}.{M}-plan.md |
| Next | /rai-story-implement |
gates/gate-plan.md/rai-story-design/rai-story-implement