Task decomposition with TDD - creates numbered checklists from plans
Transforms strategic plans into granular, numbered task checklists with test-first requirements. Use this after planning to break down features into executable, test-driven tasks with specific file references and commit guidance.
/plugin marketplace add barnabasJ/claude/plugin install essentials@essentials-marketplacefeature-nameTransforms strategic plans into granular, numbered task checklists with test-first requirements. Each task includes specific file references, documentation links, and commit guidance. Creates the executable checklist for the execute phase.
Part of the four-phase workflow: research → plan → breakdown → execute
./notes/plans/[feature-name].mdSearch ./notes/knowledge/ for:
Use TodoWrite with tasks:
Read ./notes/plans/[feature-name].md and extract:
Task sizing guidelines:
| Size | Duration | Example |
|---|---|---|
| XS | 15-30 min | Config change, add attribute |
| S | 30-60 min | Simple feature with tests |
| M | 1-2 hours | Resource with multiple actions |
| L | 2-4 hours | Multi-file integration |
| XL | 4+ hours | Split into smaller tasks |
Each task should be:
Task format:
X. [ ] **Task Name**
Prerequisites: [if any]
X.1. [ ] Substep with file reference - File: `path/to/file.ex:line-numbers` -
📖 [Documentation](url)
X.2. [ ] Write failing test - File: `test/path/to/test.exs`
X.3. [ ] Implement feature
X.4. [ ] Run tests: `mix test path/to/test`
X.5. [ ] Verify all tests pass
📝 Commit: `type(scope): description`
Include for each task:
Every task follows Red-Green-Refactor:
Task-level gates:
Phase-level gates:
System-level gates:
Write to ./notes/breakdowns/[feature-name].md
Document in ./notes/knowledge/:
| Agent | When to Use |
|---|---|
| architecture-agent | Task placement, module organization |
| qa-reviewer | Test coverage, validation strategy |
| research-agent | Technical details from research |
Location: ./notes/breakdowns/[feature-name].md
Document structure:
# [Feature] Implementation Breakdown
**Date**: YYYY-MM-DD **Status**: Ready for Execution **Plan**:
./notes/plans/[feature-name].md
## Overview
[Brief description]
## Tasks
### Phase 1: [Phase Name]
1. [ ] **Task Name** ...
### Phase 2: [Phase Name]
2. [ ] **Task Name** ...
## Testing Strategy
- TDD workflow for each task
- Quality gates between phases
## Success Criteria
- [ ] All tests pass
- [ ] Acceptance criteria met
🚨 Do:
🚨 Don't:
Input: /breakdown user-authentication
Output excerpt:
### Phase 1: User Resource
1. [ ] **Add User Resource with Auth Attributes**
1.1. [ ] Create user resource - File: `lib/app/accounts/user.ex`
- Follow pattern: `lib/app/accounts/organization.ex:15-40` - 📖 [Ash Resource Guide](https://hexdocs.pm/ash/resources.html)
1.2. [ ] Write user creation test - File: `test/app/accounts/user_test.exs`
1.3. [ ] Add email and password attributes
1.4. [ ] Add email validation
1.5. [ ] Run tests: `mix test test/app/accounts/user_test.exs`
1.6. [ ] Verify all tests pass
📝 Commit: `feat(accounts): add user resource with auth attributes`
### Phase 2: OAuth Integration
2. [ ] **Configure OAuth Providers**
Prerequisites: Task 1 complete
2.1. [ ] Add ueberauth dependencies to mix.exs - 📖
[Ueberauth Docs](https://hexdocs.pm/ueberauth)
2.2. [ ] Write OAuth callback test
2.3. [ ] Create OAuth controller - File: `lib/app_web/controllers/auth_controller.ex`
2.4. [ ] Configure providers in config/
2.5. [ ] Run tests: `mix test test/app_web/controllers/auth_controller_test.exs`
2.6. [ ] Verify all tests pass
📝 Commit: `feat(auth): configure OAuth providers`