ワンクリックで
rai-epic-design
Design epic scope, stories, and architecture. Use for work spanning 3-10 features.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Design epic scope, stories, and architecture. Use for work spanning 3-10 features.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
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.
SOC 職業分類に基づく
| name | rai-epic-design |
| description | Design epic scope, stories, and architecture. Use for work spanning 3-10 features. |
| allowed-tools | ["Read","Edit","Write","Grep","Glob","Bash(rai:*)"] |
| license | MIT |
| metadata | {"raise.work_cycle":"epic","raise.frequency":"per-epic","raise.fase":"3","raise.prerequisites":"project-backlog","raise.next":"epic-plan","raise.gate":"","raise.adaptable":"true","raise.version":"2.3.0","raise.visibility":"public","raise.inputs":"- brief: file_path, optional, previous_skill\n- scope: file_path, required, previous_skill\n","raise.outputs":"- scope: file_path, next_skill\n- design: file_path, optional, next_skill\n","raise.aspects":"introspection","raise.introspection":{"phase":"epic.design","context_source":"problem brief or strategic objective","affected_modules":[],"max_tier1_queries":3,"max_jit_queries":5,"tier1_queries":["patterns for {affected_modules} architecture decisions","risks and failure modes in {domain} epics","prior epic designs with similar scope ({story_count} stories)"]}} |
Design an epic that bridges strategic objectives to executable stories, making key architectural decisions and defining bounded scope for incremental delivery.
When to use: Starting work spanning 3-10 stories. Design is the gemba walk at epic scale — go see what exists, challenge assumptions, prevent waste.
When to skip: Single-story work → /rai-story-design. Bug fixes → issue tracker. High uncertainty → /rai-research first.
Inputs: Business objective, project backlog, constraints. Optionally: Problem Brief from /rai-problem-shape or Epic Brief from /rai-epic-start.
Before starting Step 1, you MUST execute the PRIME protocol:
rai graph query. If graph is unavailable, note and continue.Check for Epic Brief (work/epics/e{N}-{name}/brief.md) or Problem Brief (work/problem-briefs/*.md). If found, use hypothesis and boundaries as starting input.
Define what this epic accomplishes:
Scoping heuristic: defer what doesn't block the objective; separate what needs its own ADRs.
Objective explainable to non-technical stakeholder in 60 seconds. Scope boundaries explicit.JIT: Before defining scope boundaries, query graph for prior designs with similar scope →
aspects/introspection.md § JIT Protocol
Go to the actual codebase. Read what exists before designing what's next.
rai graph context mod-<name> # graph view
grep -r "similar_pattern" packages/ # real code
| Finding | Action |
|---|---|
| Similar component exists | Reuse or extend — do NOT propose a duplicate story |
| Established pattern found | Follow it — consistency > novelty |
| Over-engineered existing code | Consider a simplification story instead of building on top |
Create ADRs when: multiple valid approaches with significant impact, new technology adoption, decisions other epics depend on. Skip when patterns are established or details are easily changed.
JIT: Before making architectural decisions, query graph for patterns and known risks →
aspects/introspection.md § JIT Protocol
If significant uncertainty: /rai-research (timebox 2-4 hours), then create ADRs.
ADR template: .raise/templates/architecture/adr.md. One decision per ADR.
Decompose epic into 3-10 independently deliverable stories. Apply lean principles:
Per story: ID (S{N}.{seq}), name, 1-line description, T-shirt size (XS/S/M/L), dependencies.
JIT: Before finalizing decomposition, query graph for sizing patterns in similar epics →
aspects/introspection.md § JIT Protocol
Target: each story delivers demonstrable value, 1-5 days duration. No dependency cycles. External blockers identified.
Waste check: For each proposed story, ask: "What happens if we don't build this?" If the epic still achieves its objective, the story is not essential — defer it.
Each story passes "independently deliverable" test. Dependency graph is acyclic. No story duplicates existing functionality.Done: All stories complete + epic-specific measurable criteria + architecture docs updated + retrospective completed.
Risks: Top 3 with likelihood/impact/mitigation.
Done criteria are measurable. Top risks have mitigations.JIT: Before assessing risks, query graph for known risks from related epics →
aspects/introspection.md § JIT Protocol
Create TWO documents using templates:
scope.md (WHAT + WHY): objective, stories, boundaries, done criteria → templates/scope.mddesign.md (HOW): gemba findings, target components, key contracts → templates/design.mdBoth documents are required. For simple epics, design.md is short (gemba findings + approach), not absent.
Capture deferred items in dev/parking-lot.md with origin, priority, and promotion conditions.
| Item | Destination |
|---|---|
| Scope document | work/epics/e{N}-{name}/scope.md |
| Design document | work/epics/e{N}-{name}/design.md (if architecture) |
| ADRs | dev/decisions/adr-*.md (0-3 typical) |
| Parking lot | dev/parking-lot.md |
| Next | /rai-epic-plan |
/rai-epic-start)/rai-story-designrai-epic-start/templates/brief.mdtemplates/scope.mdtemplates/design.md.raise/templates/architecture/adr.md/rai-epic-plan/rai-story-design/rai-epic-close