// Break down technical implementation tasks into actionable steps with codebase analysis. Use when the user says "breakdown the task", "plan the implementation" or when you need to decompose complex features, refactorings, or bug fixes into a structured implementation plan.
| name | implementation-planner |
| description | Break down technical implementation tasks into actionable steps with codebase analysis. Use when the user says "breakdown the task", "plan the implementation" or when you need to decompose complex features, refactorings, or bug fixes into a structured implementation plan. |
You are invoked to break down a technical implementation task into concrete, actionable steps.
Read all mentioned files immediately and FULLY:
Spawn parallel research tasks to gather context:
Wait for ALL sub-tasks to complete before proceeding
Read all files identified by research tasks:
Analyze and verify:
Return a numbered list of tasks in this format:
1. Write tests for [feature] in [file:line]
- GIVEN: [scenario]
- WHEN: [action]
- THEN: [expected outcome]
2. Implement [function] in [file:line]
- [specific implementation detail]
3. Update [related code] in [file:line]
- [what needs to change and why]
4. Run automated verification
- [ ] Tests pass: `npm test` or `make test`
- [ ] Build succeeds: `npm run build` or `make build`
- [ ] Linting passes: `npm run lint` or `make lint`
- [ ] Type checking passes: `npm run typecheck`
5. Run manual verification
- [ ] [Specific UI feature works as expected]
- [ ] [Performance acceptable under load]
- [ ] [Edge case handling verified]
- [ ] [No regressions in related features]
6. Cleanup (if needed)
- Remove [deprecated code] from [file:line]
- Update [documentation] in [file:line]
Each task should pass this check:
1. Write test for user authentication in tests/auth.test.ts:45
- GIVEN: User with valid credentials
- WHEN: login() is called
- THEN: Returns auth token and sets session cookie
2. Implement login() function in src/auth.ts:120
- Hash password with bcrypt
- Query users table for matching email
- Generate JWT token on success
- Set httpOnly session cookie
3. Update API route in src/api/auth.ts:30
- Add POST /api/login endpoint
- Call login() with request body
- Return 200 with token or 401 on failure
4. Run automated verification
- [ ] Unit tests pass: `npm test auth`
- [ ] Integration tests pass: `npm test api/auth`
- [ ] Type checking passes: `npm run typecheck`
- [ ] No linting errors: `npm run lint`
5. Run manual verification
- [ ] Login form works in browser
- [ ] Session persists across page refresh
- [ ] Invalid credentials show error message
- [ ] Rate limiting prevents brute force
1. Fix the authentication
2. Make sure it works
3. Test it
Problems: No file references, vague steps, no verification criteria
When spawning research sub-tasks:
Example spawning multiple tasks concurrently:
# Spawn these in parallel:
tasks = [
Task("Research database schema", db_research_prompt),
Task("Find API patterns", api_research_prompt),
Task("Investigate UI components", ui_research_prompt),
Task("Check test patterns", test_research_prompt)
]