ワンクリックで
rai-epic-run
Run the full epic lifecycle with delegation gates. Use to orchestrate an epic.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Run the full epic lifecycle with delegation gates. Use to orchestrate an epic.
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-epic-run |
| description | Run the full epic lifecycle with delegation gates. Use to orchestrate an epic. |
| allowed-tools | ["Read","Grep","Glob","Bash","Agent","Skill"] |
| license | MIT |
| metadata | {"raise.work_cycle":"epic","raise.frequency":"per-epic","raise.fase":"","raise.prerequisites":"","raise.next":"","raise.gate":"","raise.adaptable":"true","raise.version":"2.0.0","raise.visibility":"public","raise.inputs":"- epic_id: string, required, argument (e.g. \"E325\")\n- epic_slug: string, optional, argument (inferred from scope or prompted)\n","raise.outputs":"- merge_commit: string, git\n- retrospective: file_path (work/epics/e{N}-{name}/retrospective.md)\n"} |
Execute the epic lifecycle phases (start → design → AR → plan → close), pausing at delegation gates and at story iteration for human-driven /rai-story-run execution. Resumes automatically from the last completed phase.
When to use: Starting or resuming any epic. Replaces manual sequential skill and story invocation.
When to skip: Single-phase work (e.g., only closing an already-completed epic). Individual skills remain independently invocable.
Resolve the epic path from epic_id. Check artifacts in reverse order — take the most advanced phase:
| Check | Condition | Resume at |
|---|---|---|
| 4 | ### Progress Tracking exists AND all rows Status = "Done" | close |
| 3 | ### Progress Tracking exists AND any row Status != "Done" | stories |
| 2 | scope.md exists, no ### Progress Tracking heading | plan |
| 1 | epic directory exists, no scope.md | design |
| 0 | (nothing) | start |
Present: "Phase detection: resuming at {phase}" with context (e.g., "3/5 stories done, 2 remaining").
Phase identified. Epic path resolved.Load developer profile from ~/.rai/developer.yaml. Resolve delegation level:
| Source | Resolution |
|---|---|
delegation.overrides.rai-epic-run | Per-skill override (highest priority) |
delegation.default_level | Explicit default |
experience_level ShuHaRi | Shu→REVIEW, Ha→NOTIFY, Ri→AUTO |
| No profile | Default to REVIEW |
Present: "Delegation: {level}"
Delegation level resolved.Run each epic skill from the detected phase forward. Show ── Phase {N}/6: {skill_name} ── between phases.
| Phase | Skill | Gate after? |
|---|---|---|
| 1 | /rai-epic-start {epic_id} | — |
| 2 | /rai-epic-design {epic_id} | POST-DESIGN |
| 3 | /rai-architecture-review {epic_id} epic | POST-AR |
| 4 | /rai-epic-plan {epic_id} | POST-PLAN |
| 5 | Story iteration (see Step 3) | — |
| 6 | /rai-epic-close {epic_id} | — |
Full execution rule: For each phase, you MUST:
The orchestrator delegates — it does not summarize, compress, or shortcut individual skill behavior. A skill invoked through the orchestrator must produce the same output as when invoked standalone.
Skill fails → STOP immediately. Report which phase failed and why. Developer re-invokes `/rai-epic-run` after fixing — phase detection resumes automatically.When reaching phase 5 (story iteration), read the ### Progress Tracking table from scope.md:
Quality rule — epic-run NEVER executes story-run. Each
/rai-story-runmust run in a fresh session/context so it can fork its heavy phases via Agent tool with full context budget. Running story-run inside epic-run would accumulate context across stories, degrading quality in later stories — the exact problem Checkpoint & Fork (ADR-043) was designed to eliminate. We never operate at known lower quality levels.
Present the pending stories and STOP:
## Stories Ready for Execution
| # | Story | Size | Status |
|:-:|-------|:----:|--------|
| 1 | S{N}.1 — {name} | S | Pending |
| 2 | S{N}.2 — {name} | M | Pending |
**Next:** Run each story independently with `/rai-story-run {story_id}`
**Resume:** Re-invoke `/rai-epic-run {epic_id}` when all stories are Done → resumes at close
STOP here. Do not proceed to phase 6. Do not invoke story-run.
The developer runs each story in a separate session with fresh context.
When all stories are Done, re-invoking /rai-epic-run detects phase=close and proceeds.
After phase 2 (design), phase 3 (AR), and phase 4 (plan), apply the delegation gate:
| Level | Behavior |
|---|---|
| REVIEW | Present summary. Wait for explicit approval. |
| NOTIFY | Present summary. Continue unless user intervenes. |
| AUTO | Continue immediately. AR SIMPLIFY verdict stops regardless. |
Post-design summary: Story count, sizes, key architectural decisions. Post-AR summary: Verdict (PASS/PASS WITH QUESTIONS/SIMPLIFY), proportionality findings, systemic heuristics (H13-H16). Post-plan summary: Milestones, story sequence, estimated timeline.
If AR verdict is SIMPLIFY, STOP regardless of delegation level. Design must be revised before planning.
Story iteration is a mandatory STOP — stories run in separate sessions (see Step 3).
Gate applied. Approval received (REVIEW) or notification shown (NOTIFY/AUTO).After all phases, present summary: phases executed, stories completed/total, delegation level, merge target. Confirm epic merged and branch cleaned up.
All phases complete. Epic merged.| Item | Destination |
|---|---|
| All epic + story artifacts | work/epics/e{N}-{name}/ |
| Merge commit | Development branch |
| Patterns | .raise/rai/memory/patterns.jsonl |
| Next | Next epic or release |
### Progress Tracking heading used as plan presence marker/rai-epic-start, /rai-epic-design, /rai-architecture-review, /rai-epic-plan, /rai-epic-close/rai-story-run (S325.6)~/.rai/developer.yaml, S325.2s325.7-design.md (decisions D1-D2-D3-D4)