| name | decompose-epics |
| description | Decompose a Technical Specification into implementable Epics with technical plans. Use when asked to break down features, create epics, or plan implementation. |
Epic Decomposition Skill
Decompose a specification into 2-5 implementable Epics using the template and guidelines below.
Instructions
- Read the template from
skills/default/decompose-epics/epic-template.md
- Analyze the specification content
- Inspect each target repository listed in the prompt before proposing Epics
- Identify 2-5 cohesive capability areas
- Create a detailed implementation plan for each
- Map dependencies between Epics
- Validate against the quality checklist
Repository Grounding
You must ground the Epic plan in the actual target repository before naming implementation files or components.
For each target repository listed in the prompt:
- Inspect the repository structure using the available repository, GitHub, or filesystem tools.
- Determine the language, framework, build system, and test layout from real files.
- Read repository guidance when present, including
AGENTS.md, CLAUDE.md, .claude/AGENTS.md, .claude/CLAUDE.md, README.md, CONTRIBUTING.md, Makefile, pyproject.toml, package.json, go.mod, docs/, and repo-local skills or agent instructions.
- Search for existing modules, workflow nodes, routers, clients, tests, and helpers related to the requested feature.
- Identify repository standards for architecture, naming, testing, packaging, documentation, and local agent workflow from guidance files and existing implementation patterns.
- Use existing paths, naming conventions, abstractions, and repository standards whenever possible.
Prefer targeted codebase exploration. Start with repository-level guidance and structure files, then look at code and tests directly related to the requested feature. Broaden the search when needed to understand the change safely. Avoid exhaustively reading unrelated packages or repeating the same repository survey for each Epic. Do not inspect project-management metadata such as unrelated branches, open issues, pull requests, milestones, or release boards unless the specification explicitly asks for them.
Implementation plans must reference real repository paths discovered during inspection. If a file is new, place it in an existing directory that matches the repository's conventions. Do not invent generic paths such as pkg/..., src/..., or framework-specific directories unless the repository inspection shows that those paths exist.
Implementation plans must also follow repository standards discovered during inspection. Do not propose a new framework, test runner, directory layout, service boundary, agent convention, or documentation style when the repository already establishes a relevant standard. If the requested change requires deviating from a repository standard, call out the reason explicitly in the plan.
Use existing paths together with nearby code patterns to avoid guessing where the change belongs. When a new file is needed, prefer the nearest established source and test layout. If the right location is unclear after checking the relevant area, note the uncertainty instead of broadening into unrelated repo areas.
If repository inspection is unavailable or fails, do not guess implementation paths. Surface the repository grounding failure clearly so downstream planning does not proceed from invented architecture.
Decomposition Rules
- Cohesive: Each Epic represents a single, deployable capability.
- Independent: Minimize dependencies between Epics.
- Vertical Slices: Prefer end-to-end slices over horizontal layers.
- Sized Right: Each Epic should be 1-3 sprints of work.
- Clear Boundaries: No overlap between Epics.
Epic Naming Convention
Use format: [Verb] [Noun] [Qualifier]
Examples:
- "Implement User Authentication System"
- "Create Dashboard Analytics Module"
- "Build Notification Delivery Pipeline"
Ordering Principles
- Foundation First: Infrastructure/setup Epics before feature Epics
- Dependencies: Dependent Epics come after their dependencies
- Value Delivery: Higher-value Epics earlier when possible
- Risk Reduction: Technical risk Epics early to fail fast
Quality Checklist
Before returning the Epic breakdown:
Output Format
For each Epic, use this format:
---
EPIC: [Epic Title]
PLAN:
[Full epic content following skills/default/decompose-epics/epic-template.md]
---
Repeat for each Epic (2-5 total).
IMPORTANT: Return ONLY the Epic content. Do not include any planning text, explanations of what you're doing, or meta-commentary. Start directly with the first Epic.