Create an epic planning document by analyzing Jira tickets and codebase
Generates a comprehensive epic planning document by analyzing Jira tickets and codebase patterns.
/plugin marketplace add Jeffallan/claude-skills/plugin install fullstack-dev-skills@fullstack-dev-skills<epic-key>project/planning/Epic Key: $ARGUMENTS
This command creates a comprehensive planning document (Overview Document) for an epic:
/create-epic-plan <epic-key> → Creates Overview Document (YOU ARE HERE)
↓
/create-implementation-plan <overview-doc-url> → Creates Implementation Plan
↓
/execute-ticket <ticket-key> → Executes individual tickets
Fetch the epic from Jira using {Epic_Key}
Extract from epic:
{Epic_Title} - The epic title/name{Jira_Project} - The Jira project URLDetermine Confluence location:
/Epics/In Progress/{Epic_Key}/FAILURE CONDITION - Missing Information:
If epic cannot be found or has no linked tickets:
STOP and prompt the user:
I was unable to retrieve epic {Epic_Key}.
Issue: [epic not found / no linked tickets / access denied]
Please provide:
1. Confirm the epic key is correct
2. Jira Project URL: [paste link]
3. Confluence publish location: [paste link or confirm default]
DO NOT PROCEED until confirmed.
MANDATORY CHECKPOINT - Epic Confirmation:
Please confirm before I proceed:
Epic Key: {Epic_Key}
Epic Title: {Epic_Title}
Linked Tickets: [count] tickets found
Publish Location: [Confluence path]
Is this correct? (Yes / No / Correct)
DO NOT PROCEED without explicit user confirmation.
Read all Jira tickets linked to epic {Epic_Key}
Parent = {Epic_Key} to find all child ticketsExplore the codebase using parallel agents
Launch these agents in parallel to analyze different aspects of the codebase:
| Agent | Task | Output for Section 11 |
|---|---|---|
Explore | Find all files/modules affected by this epic based on ticket requirements | → Affected Modules |
Explore | Discover API patterns, middleware conventions, response formats | → Patterns Discovered (API) |
Explore | Discover component patterns, naming conventions, state management | → Patterns Discovered (Components) |
Explore | Find test file locations, testing framework, fixture patterns | → Test Locations & Conventions |
Explore | Find similar features that can serve as implementation references | → Reference Implementations |
Agent Prompts:
Agent 1 - Affected Modules:
"Find all directories and files that will be affected by implementing [epic summary].
List the key modules, their purposes, and how they relate to the epic requirements."
Agent 2 - API Patterns:
"Analyze the API layer in packages/server/. Document the route structure,
middleware patterns, authentication approach, response formats, and error handling conventions."
Agent 3 - Component Patterns:
"Analyze the frontend components in packages/web/src/components/. Document naming
conventions, folder structure, state management patterns, and common UI patterns used."
Agent 4 - Test Patterns:
"Analyze the test structure in tests/ and e2e/. Document the testing framework,
file naming conventions, available test utilities, fixture patterns, and mock approaches."
Agent 5 - Reference Implementations:
"Find existing features similar to [epic summary] that can serve as templates.
List the files and explain what patterns from each can be reused."
Wait for all agents to complete, then synthesize findings into Section 11.
Document unknowns:
Create a comprehensive planning document with these sections:
List all technical changes with risk assessment. For each change:
| Component | Type | Description | Risk Score | Dependencies |
|---|---|---|---|---|
| [file/component] | [New/Enhancement/Refactor/Fix] | [summary] | [Low/Med/High] | [blockers] |
Definition of done for this epic:
Capture findings from codebase exploration to inform the implementation plan:
Affected Modules:
packages/server/routes/ - API endpoints affectedPatterns Discovered:
Reference Implementations:
packages/web/src/components/events/ for CRUD component patterns"Test Locations & Conventions:
tests/unit/ - pattern: [feature].test.tstests/integration/ - pattern: [endpoint].test.tse2e/ - pattern: [flow].spec.tsEpic: {Epic_Key} - {Epic_Title} Jira Project: {Jira_Project}
| Key | Summary | Type | Story Points |
|---|---|---|---|
| TICKET-123 | Ticket summary | Task/Bug/Story | X |
Use JQL Parent = {Epic_Key} to fetch current ticket list.
Evaluate each technical change across 7 dimensions (score 1-3 each):
| Dimension | Low (1) | Medium (2) | High (3) |
|---|---|---|---|
| Scope | ≤3 files, isolated change | 4-10 files, single feature | 10+ files, cross-cutting |
| Dependencies | All prerequisites exist | Some foundation work needed | Requires significant groundwork |
| Blocking Factor | Independent work | Soft dependency for 1-2 tickets | Hard blocker for multiple streams |
| Stability | Well-defined, existing patterns | Some unknowns, new patterns | Novel approach, high uncertainty |
| UX Impact | Backend/internal only | Secondary flows affected | Core user journey affected |
| Testing Complexity | Simple assertions, existing fixtures | New mocks/fixtures needed, async flows | Complex integration, E2E required, hard to isolate |
| Reversibility | Easily reverted, no data changes | Moderate effort to rollback | Database migrations, breaking API changes, one-way door |
Risk Levels:
MANDATORY CHECKPOINT - Document Review:
Before publishing, present the complete planning document to the user:
## Planning Document Preview for {Epic_Key}
[Full planning document content]
---
Gaps/Unknowns Identified:
- [List any missing information]
- [Technical decisions needing input]
- [High-risk changes requiring spikes]
Ready to publish this planning document to Confluence? (Yes / No / Modify)
DO NOT PUBLISH without explicit user approval.
Publish to Confluence at: /epics/In Progress/{Epic_Key}/
Verify the document was published successfully
Get the published document URL ({Overview_Document})
| Condition | Action |
|---|---|
| Epic key not found | Error message, ask user to verify epic key |
| No linked tickets | Warn user, ask if they want to continue with minimal document |
| Confluence location invalid | Ask user for correct location |
| Missing Jira/Confluence access | Provide instructions for credential setup |
| Codebase exploration inconclusive | Document unknowns, proceed with available information |
When complete, you MUST provide:
## Epic Planning Complete!
**Overview Document:** {Overview_Document}
### Summary
- Epic: {Epic_Key} - {Epic_Title}
- Tickets Analyzed: [count]
- Technical Changes: [count]
- Risk Profile: [X low, Y medium, Z high]
- Test Coverage Target: 90% branch coverage
### Open Questions
1. [Question needing clarification]
2. [Technical decision needing input]
### Next Step
Run the following command to generate the implementation plan:
/create-implementation-plan {Overview_Document}
CRITICAL: The Overview Document URL is required for the next step in the workflow chain.
Before creating the planning document: