Break down a Fleet GitHub story issue into implementable sub-issues with technical specs. Use when asked to "spec", "break down", or "analyze" a story or issue.
Break down the GitHub story into implementable sub-issues: $ARGUMENTS
gh issue view <number> --json title,body,labels,milestone,assigneesSearch the codebase to understand what exists and what needs to change:
server/fleet/datastore.go for relevant schemaDecompose into atomic, implementable units. Each sub-issue should be:
Common decomposition patterns for Fleet:
For each sub-issue, write:
## Sub-issue N: [Title]
**Depends on:** [sub-issue numbers, or "none"]
**Layer:** [migration | datastore | service | API | frontend | CLI | docs | tests]
**Estimated scope:** [small: <2h | medium: 2-8h | large: >8h]
### What
[1-3 sentences describing the change]
### Why
[How this contributes to the parent story's goal]
### Technical Approach
- [Specific files to create or modify]
- [Key functions, types, or patterns to follow]
- [Reference existing similar implementations]
### Acceptance Criteria
- [ ] [Testable criterion 1]
- [ ] [Testable criterion 2]
- [ ] [Tests pass: specific test commands]
### Open Questions
- [Any ambiguity that needs product/design input]
Show which sub-issues depend on which:
Migration → Datastore → Service → API → Frontend
→ CLI/GitOps
→ Docs
Note which sub-issues can be parallelized.
Create a spec document with:
gh issue list --search "keyword" --limit 10