musubi-sdd 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.ja.md +531 -0
- package/README.md +531 -0
- package/bin/musubi-init.js +321 -0
- package/bin/musubi.js +359 -0
- package/package.json +55 -0
- package/src/agents/registry.js +242 -0
- package/src/templates/agents/claude-code/CLAUDE.md +232 -0
- package/src/templates/agents/claude-code/commands/sdd-design.md +673 -0
- package/src/templates/agents/claude-code/commands/sdd-implement.md +777 -0
- package/src/templates/agents/claude-code/commands/sdd-requirements.md +438 -0
- package/src/templates/agents/claude-code/commands/sdd-steering.md +334 -0
- package/src/templates/agents/claude-code/commands/sdd-tasks.md +582 -0
- package/src/templates/agents/claude-code/commands/sdd-validate.md +710 -0
- package/src/templates/agents/claude-code/skills/ai-ml-engineer/SKILL.md +3055 -0
- package/src/templates/agents/claude-code/skills/api-designer/SKILL.md +1364 -0
- package/src/templates/agents/claude-code/skills/bug-hunter/SKILL.md +482 -0
- package/src/templates/agents/claude-code/skills/change-impact-analyzer/SKILL.md +397 -0
- package/src/templates/agents/claude-code/skills/cloud-architect/SKILL.md +1468 -0
- package/src/templates/agents/claude-code/skills/code-reviewer/SKILL.md +906 -0
- package/src/templates/agents/claude-code/skills/constitution-enforcer/SKILL.md +466 -0
- package/src/templates/agents/claude-code/skills/database-administrator/SKILL.md +3522 -0
- package/src/templates/agents/claude-code/skills/database-schema-designer/SKILL.md +1158 -0
- package/src/templates/agents/claude-code/skills/devops-engineer/SKILL.md +647 -0
- package/src/templates/agents/claude-code/skills/orchestrator/SKILL.md +574 -0
- package/src/templates/agents/claude-code/skills/performance-optimizer/SKILL.md +464 -0
- package/src/templates/agents/claude-code/skills/project-manager/SKILL.md +769 -0
- package/src/templates/agents/claude-code/skills/quality-assurance/SKILL.md +1059 -0
- package/src/templates/agents/claude-code/skills/release-coordinator/SKILL.md +653 -0
- package/src/templates/agents/claude-code/skills/requirements-analyst/SKILL.md +1287 -0
- package/src/templates/agents/claude-code/skills/security-auditor/SKILL.md +1107 -0
- package/src/templates/agents/claude-code/skills/site-reliability-engineer/SKILL.md +404 -0
- package/src/templates/agents/claude-code/skills/software-developer/SKILL.md +1254 -0
- package/src/templates/agents/claude-code/skills/steering/SKILL.md +383 -0
- package/src/templates/agents/claude-code/skills/system-architect/SKILL.md +1288 -0
- package/src/templates/agents/claude-code/skills/technical-writer/SKILL.md +712 -0
- package/src/templates/agents/claude-code/skills/test-engineer/SKILL.md +1262 -0
- package/src/templates/agents/claude-code/skills/traceability-auditor/SKILL.md +298 -0
- package/src/templates/agents/claude-code/skills/ui-ux-designer/SKILL.md +1009 -0
- package/src/templates/agents/codex/AGENTS.md +138 -0
- package/src/templates/agents/codex/commands/sdd-design.md +673 -0
- package/src/templates/agents/codex/commands/sdd-implement.md +777 -0
- package/src/templates/agents/codex/commands/sdd-requirements.md +438 -0
- package/src/templates/agents/codex/commands/sdd-steering.md +334 -0
- package/src/templates/agents/codex/commands/sdd-tasks.md +582 -0
- package/src/templates/agents/codex/commands/sdd-validate.md +710 -0
- package/src/templates/agents/cursor/AGENTS.md +138 -0
- package/src/templates/agents/cursor/commands/sdd-design.md +673 -0
- package/src/templates/agents/cursor/commands/sdd-implement.md +777 -0
- package/src/templates/agents/cursor/commands/sdd-requirements.md +438 -0
- package/src/templates/agents/cursor/commands/sdd-steering.md +334 -0
- package/src/templates/agents/cursor/commands/sdd-tasks.md +582 -0
- package/src/templates/agents/cursor/commands/sdd-validate.md +710 -0
- package/src/templates/agents/gemini-cli/GEMINI.md +128 -0
- package/src/templates/agents/gemini-cli/commands/sdd-design.toml +359 -0
- package/src/templates/agents/gemini-cli/commands/sdd-implement.toml +484 -0
- package/src/templates/agents/gemini-cli/commands/sdd-requirements.toml +291 -0
- package/src/templates/agents/gemini-cli/commands/sdd-steering.toml +209 -0
- package/src/templates/agents/gemini-cli/commands/sdd-tasks.toml +441 -0
- package/src/templates/agents/gemini-cli/commands/sdd-validate.toml +553 -0
- package/src/templates/agents/github-copilot/AGENTS.md +138 -0
- package/src/templates/agents/github-copilot/commands/sdd-design.md +673 -0
- package/src/templates/agents/github-copilot/commands/sdd-implement.md +777 -0
- package/src/templates/agents/github-copilot/commands/sdd-requirements.md +438 -0
- package/src/templates/agents/github-copilot/commands/sdd-steering.md +334 -0
- package/src/templates/agents/github-copilot/commands/sdd-tasks.md +582 -0
- package/src/templates/agents/github-copilot/commands/sdd-validate.md +710 -0
- package/src/templates/agents/qwen-code/QWEN.md +128 -0
- package/src/templates/agents/qwen-code/commands/sdd-design.md +673 -0
- package/src/templates/agents/qwen-code/commands/sdd-implement.md +777 -0
- package/src/templates/agents/qwen-code/commands/sdd-requirements.md +438 -0
- package/src/templates/agents/qwen-code/commands/sdd-steering.md +334 -0
- package/src/templates/agents/qwen-code/commands/sdd-tasks.md +582 -0
- package/src/templates/agents/qwen-code/commands/sdd-validate.md +710 -0
- package/src/templates/agents/windsurf/AGENTS.md +138 -0
- package/src/templates/agents/windsurf/commands/sdd-design.md +673 -0
- package/src/templates/agents/windsurf/commands/sdd-implement.md +777 -0
- package/src/templates/agents/windsurf/commands/sdd-requirements.md +438 -0
- package/src/templates/agents/windsurf/commands/sdd-steering.md +334 -0
- package/src/templates/agents/windsurf/commands/sdd-tasks.md +582 -0
- package/src/templates/agents/windsurf/commands/sdd-validate.md +710 -0
- package/src/templates/shared/constitution/constitution.md +408 -0
- package/src/templates/shared/constitution/ears-format.md +613 -0
- package/src/templates/shared/constitution/workflow.md +653 -0
- package/src/templates/shared/documents/design.md +737 -0
- package/src/templates/shared/documents/requirements.md +329 -0
- package/src/templates/shared/documents/research.md +494 -0
- package/src/templates/shared/documents/tasks.md +781 -0
- package/src/templates/shared/steering/product.md +544 -0
- package/src/templates/shared/steering/structure.md +405 -0
- package/src/templates/shared/steering/tech.md +537 -0
|
@@ -0,0 +1,582 @@
|
|
|
1
|
+
# SDD Tasks Command
|
|
2
|
+
|
|
3
|
+
Break down design into actionable implementation tasks.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Instructions for Claude
|
|
8
|
+
|
|
9
|
+
You are executing the `/sdd-tasks [feature-name]` command to create a task breakdown document.
|
|
10
|
+
|
|
11
|
+
### Command Format
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
/sdd-tasks authentication
|
|
15
|
+
/sdd-tasks payment-processing
|
|
16
|
+
/sdd-tasks user-dashboard
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
### Your Task
|
|
20
|
+
|
|
21
|
+
Generate a comprehensive task breakdown that transforms the design into actionable implementation tasks with full requirements traceability.
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## Process
|
|
26
|
+
|
|
27
|
+
### 1. Read Context
|
|
28
|
+
|
|
29
|
+
**CRITICAL**: Read these files first:
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
# Design and Requirements
|
|
33
|
+
storage/specs/{{feature-name}}-design.md
|
|
34
|
+
storage/specs/{{feature-name}}-requirements.md
|
|
35
|
+
|
|
36
|
+
# Steering Context
|
|
37
|
+
steering/structure.md
|
|
38
|
+
steering/tech.md
|
|
39
|
+
steering/product.md
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
### 2. Verify Prerequisites
|
|
45
|
+
|
|
46
|
+
**Check design file exists**:
|
|
47
|
+
```markdown
|
|
48
|
+
❌ **Error**: Design document not found
|
|
49
|
+
|
|
50
|
+
Expected: storage/specs/{{feature-name}}-design.md
|
|
51
|
+
|
|
52
|
+
Please run `/sdd-design {{feature-name}}` first.
|
|
53
|
+
|
|
54
|
+
Tasks cannot be created without design (Article V: Traceability).
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
**Check requirements file exists**:
|
|
58
|
+
```markdown
|
|
59
|
+
❌ **Error**: Requirements document not found
|
|
60
|
+
|
|
61
|
+
Expected: storage/specs/{{feature-name}}-requirements.md
|
|
62
|
+
|
|
63
|
+
Task breakdown requires requirements for traceability.
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
### 3. Generate Task Breakdown
|
|
69
|
+
|
|
70
|
+
Use template from `templates/tasks.md`.
|
|
71
|
+
|
|
72
|
+
#### Task Structure
|
|
73
|
+
|
|
74
|
+
Each task follows this format:
|
|
75
|
+
|
|
76
|
+
```markdown
|
|
77
|
+
### TASK-XXX: [Task Title]
|
|
78
|
+
|
|
79
|
+
**Priority**: P0/P1/P2/P3
|
|
80
|
+
**Story Points**: [1/2/3/5/8/13]
|
|
81
|
+
**Estimated Hours**: [N]
|
|
82
|
+
**Assignee**: [Unassigned initially]
|
|
83
|
+
**Status**: Not Started
|
|
84
|
+
|
|
85
|
+
**Description**:
|
|
86
|
+
[Clear description of what needs to be done]
|
|
87
|
+
|
|
88
|
+
**Requirements Coverage**:
|
|
89
|
+
- REQ-XXX-NNN: [Requirement title]
|
|
90
|
+
- REQ-XXX-NNN: [Requirement title]
|
|
91
|
+
|
|
92
|
+
**Acceptance Criteria**:
|
|
93
|
+
- [ ] [Testable criterion 1]
|
|
94
|
+
- [ ] [Testable criterion 2]
|
|
95
|
+
- [ ] [Testable criterion 3]
|
|
96
|
+
|
|
97
|
+
**Dependencies**:
|
|
98
|
+
- TASK-XXX: [Dependency description]
|
|
99
|
+
|
|
100
|
+
**Test-First Checklist** (Article III):
|
|
101
|
+
- [ ] Tests written BEFORE implementation
|
|
102
|
+
- [ ] Red: Failing test committed
|
|
103
|
+
- [ ] Green: Minimal implementation passes test
|
|
104
|
+
- [ ] Blue: Refactored with confidence
|
|
105
|
+
|
|
106
|
+
**Implementation Notes**:
|
|
107
|
+
[File paths, code snippets, technical details]
|
|
108
|
+
|
|
109
|
+
**Validation**:
|
|
110
|
+
```bash
|
|
111
|
+
# Commands to verify task completion
|
|
112
|
+
npm test src/{{file}}.test.ts
|
|
113
|
+
```
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
---
|
|
117
|
+
|
|
118
|
+
### 4. Create Task Hierarchy
|
|
119
|
+
|
|
120
|
+
#### Task Categories (always include):
|
|
121
|
+
|
|
122
|
+
**P0 Tasks (Critical - Launch Blockers)**:
|
|
123
|
+
1. **TASK-001: Set Up Project Structure (Library-First)**
|
|
124
|
+
- Create `lib/{{feature}}/` directory
|
|
125
|
+
- Set up library structure per Article I
|
|
126
|
+
- Create CLI interface per Article II
|
|
127
|
+
|
|
128
|
+
2. **TASK-002: Write Tests for REQ-XXX-001**
|
|
129
|
+
- Red phase (failing tests)
|
|
130
|
+
- Test all acceptance criteria
|
|
131
|
+
|
|
132
|
+
3. **TASK-003: Implement [Component] (REQ-XXX-001)**
|
|
133
|
+
- Green phase (minimal implementation)
|
|
134
|
+
- Pass all tests from TASK-002
|
|
135
|
+
|
|
136
|
+
4. **TASK-004: Refactor [Component]**
|
|
137
|
+
- Blue phase (improve design)
|
|
138
|
+
- SOLID principles
|
|
139
|
+
- Tests still pass
|
|
140
|
+
|
|
141
|
+
5. **TASK-005: Implement Database Repository**
|
|
142
|
+
- Create schema
|
|
143
|
+
- Migrations
|
|
144
|
+
- Integration tests (real database, Article IX)
|
|
145
|
+
|
|
146
|
+
6. **TASK-006: Implement CLI Interface**
|
|
147
|
+
- CLI commands per Article II
|
|
148
|
+
- Help text
|
|
149
|
+
- Error handling
|
|
150
|
+
|
|
151
|
+
7. **TASK-007: Implement API Endpoints**
|
|
152
|
+
- REST/GraphQL endpoints
|
|
153
|
+
- Input validation
|
|
154
|
+
- Error handling
|
|
155
|
+
|
|
156
|
+
**P1 Tasks (High - Required for Launch)**:
|
|
157
|
+
8. **TASK-008: Write Integration Tests**
|
|
158
|
+
- Real services (Article IX)
|
|
159
|
+
- API endpoint tests
|
|
160
|
+
- Coverage ≥ 80%
|
|
161
|
+
|
|
162
|
+
9. **TASK-009: Implement Caching**
|
|
163
|
+
- Redis/memory cache
|
|
164
|
+
- Cache invalidation
|
|
165
|
+
|
|
166
|
+
10. **TASK-010: Security Audit**
|
|
167
|
+
- OWASP Top 10
|
|
168
|
+
- Input validation
|
|
169
|
+
- Authentication/authorization
|
|
170
|
+
|
|
171
|
+
**P2 Tasks (Medium - Nice to Have)**:
|
|
172
|
+
11. **TASK-011: Add Pagination**
|
|
173
|
+
12. **TASK-012: Add Monitoring**
|
|
174
|
+
|
|
175
|
+
**P3 Tasks (Low - Future)**:
|
|
176
|
+
13. **TASK-013: Performance Optimization**
|
|
177
|
+
|
|
178
|
+
---
|
|
179
|
+
|
|
180
|
+
### 5. Follow Test-First Mandate (Article III)
|
|
181
|
+
|
|
182
|
+
**CRITICAL**: For EVERY implementation task, create 3 separate tasks:
|
|
183
|
+
|
|
184
|
+
```markdown
|
|
185
|
+
### TASK-002: Write Tests for REQ-AUTH-001 (RED)
|
|
186
|
+
|
|
187
|
+
**Priority**: P0
|
|
188
|
+
**Story Points**: 2
|
|
189
|
+
**Estimated Hours**: 3
|
|
190
|
+
|
|
191
|
+
**Description**:
|
|
192
|
+
Write failing tests for REQ-AUTH-001 user login functionality.
|
|
193
|
+
|
|
194
|
+
**Test-First Phase**: ❤️ RED (Failing Tests)
|
|
195
|
+
|
|
196
|
+
**Acceptance Criteria**:
|
|
197
|
+
- [ ] Test file created: `lib/auth/tests/service.test.ts`
|
|
198
|
+
- [ ] Tests for all acceptance criteria from REQ-AUTH-001
|
|
199
|
+
- [ ] Tests FAIL (red phase)
|
|
200
|
+
- [ ] Tests reference requirement ID: `describe('REQ-AUTH-001: ...')`
|
|
201
|
+
- [ ] Git commit: `test: add failing tests for REQ-AUTH-001`
|
|
202
|
+
|
|
203
|
+
**Implementation Notes**:
|
|
204
|
+
```typescript
|
|
205
|
+
// lib/auth/tests/service.test.ts
|
|
206
|
+
describe('REQ-AUTH-001: User Login', () => {
|
|
207
|
+
it('should authenticate user with valid credentials', async () => {
|
|
208
|
+
const service = new AuthService(mockRepository);
|
|
209
|
+
const result = await service.login({
|
|
210
|
+
email: 'user@example.com',
|
|
211
|
+
password: 'password123'
|
|
212
|
+
});
|
|
213
|
+
expect(result).toHaveProperty('sessionToken');
|
|
214
|
+
});
|
|
215
|
+
});
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
---
|
|
219
|
+
|
|
220
|
+
### TASK-003: Implement AuthService.login (GREEN)
|
|
221
|
+
|
|
222
|
+
**Priority**: P0
|
|
223
|
+
**Story Points**: 5
|
|
224
|
+
**Estimated Hours**: 8
|
|
225
|
+
|
|
226
|
+
**Description**:
|
|
227
|
+
Implement minimal code to pass tests from TASK-002.
|
|
228
|
+
|
|
229
|
+
**Test-First Phase**: 💚 GREEN (Passing Tests)
|
|
230
|
+
|
|
231
|
+
**Requirements Coverage**:
|
|
232
|
+
- REQ-AUTH-001: User login functionality
|
|
233
|
+
|
|
234
|
+
**Acceptance Criteria**:
|
|
235
|
+
- [ ] AuthService class implemented
|
|
236
|
+
- [ ] login() method implemented
|
|
237
|
+
- [ ] All tests from TASK-002 PASS
|
|
238
|
+
- [ ] Code comments reference REQ-AUTH-001
|
|
239
|
+
- [ ] Git commit: `feat: implement REQ-AUTH-001 (user login)`
|
|
240
|
+
|
|
241
|
+
**Dependencies**:
|
|
242
|
+
- TASK-002: Tests must exist first
|
|
243
|
+
|
|
244
|
+
**Implementation Notes**:
|
|
245
|
+
```typescript
|
|
246
|
+
// lib/auth/src/service.ts
|
|
247
|
+
export class AuthService {
|
|
248
|
+
/**
|
|
249
|
+
* REQ-AUTH-001: Authenticate user with credentials
|
|
250
|
+
*/
|
|
251
|
+
async login(credentials: LoginRequest): Promise<LoginResponse> {
|
|
252
|
+
// Minimal implementation to pass tests
|
|
253
|
+
const user = await this.repository.findByEmail(credentials.email);
|
|
254
|
+
if (!user || !await this.verifyPassword(credentials.password, user.passwordHash)) {
|
|
255
|
+
throw new UnauthorizedError('Invalid credentials');
|
|
256
|
+
}
|
|
257
|
+
const session = await this.createSession(user.id);
|
|
258
|
+
return { sessionToken: session.token };
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
---
|
|
264
|
+
|
|
265
|
+
### TASK-004: Refactor AuthService (BLUE)
|
|
266
|
+
|
|
267
|
+
**Priority**: P0
|
|
268
|
+
**Story Points**: 2
|
|
269
|
+
**Estimated Hours**: 3
|
|
270
|
+
|
|
271
|
+
**Description**:
|
|
272
|
+
Refactor AuthService for better design while keeping tests green.
|
|
273
|
+
|
|
274
|
+
**Test-First Phase**: 💙 BLUE (Refactoring)
|
|
275
|
+
|
|
276
|
+
**Acceptance Criteria**:
|
|
277
|
+
- [ ] Code follows SOLID principles
|
|
278
|
+
- [ ] No code duplication
|
|
279
|
+
- [ ] Proper error handling
|
|
280
|
+
- [ ] All tests STILL PASS
|
|
281
|
+
- [ ] Code review passed
|
|
282
|
+
- [ ] Git commit: `refactor: improve auth service design`
|
|
283
|
+
|
|
284
|
+
**Dependencies**:
|
|
285
|
+
- TASK-003: Implementation must be complete
|
|
286
|
+
|
|
287
|
+
**Implementation Notes**:
|
|
288
|
+
- Extract password verification to separate class
|
|
289
|
+
- Improve error messages
|
|
290
|
+
- Add logging
|
|
291
|
+
- Add input validation
|
|
292
|
+
```
|
|
293
|
+
|
|
294
|
+
---
|
|
295
|
+
|
|
296
|
+
### 6. Map Tasks to Requirements (Article V)
|
|
297
|
+
|
|
298
|
+
Create **Requirements Coverage Matrix**:
|
|
299
|
+
|
|
300
|
+
```markdown
|
|
301
|
+
## Requirements Coverage Matrix
|
|
302
|
+
|
|
303
|
+
| Requirement ID | Priority | Tasks | Test Coverage | Status |
|
|
304
|
+
|----------------|----------|-------|---------------|--------|
|
|
305
|
+
| REQ-AUTH-001 | P0 | TASK-002, TASK-003, TASK-004 | 95% | Not Started |
|
|
306
|
+
| REQ-AUTH-002 | P0 | TASK-005, TASK-006 | 90% | Not Started |
|
|
307
|
+
| REQ-AUTH-003 | P0 | TASK-007 | 90% | Not Started |
|
|
308
|
+
| REQ-PERF-001 | P1 | TASK-009 | 80% | Not Started |
|
|
309
|
+
| REQ-SEC-001 | P1 | TASK-010 | 100% | Not Started |
|
|
310
|
+
|
|
311
|
+
**Coverage Summary**:
|
|
312
|
+
- Total Requirements: [N]
|
|
313
|
+
- Requirements with Tasks: [N] ([%]%)
|
|
314
|
+
- **Coverage Goal**: 100% ✅
|
|
315
|
+
```
|
|
316
|
+
|
|
317
|
+
**Validation**:
|
|
318
|
+
- [ ] All requirements have corresponding tasks
|
|
319
|
+
- [ ] All P0 requirements have P0 tasks
|
|
320
|
+
- [ ] No orphan tasks (tasks without requirements)
|
|
321
|
+
|
|
322
|
+
---
|
|
323
|
+
|
|
324
|
+
### 7. Create Task Dependencies Graph
|
|
325
|
+
|
|
326
|
+
Show task execution order:
|
|
327
|
+
|
|
328
|
+
```markdown
|
|
329
|
+
## Task Dependencies Graph
|
|
330
|
+
|
|
331
|
+
```
|
|
332
|
+
TASK-001 (Project Structure)
|
|
333
|
+
├── TASK-002 (Tests - RED)
|
|
334
|
+
│ └── TASK-003 (Implementation - GREEN)
|
|
335
|
+
│ ├── TASK-004 (Refactor - BLUE)
|
|
336
|
+
│ ├── TASK-006 (CLI)
|
|
337
|
+
│ └── TASK-007 (API)
|
|
338
|
+
│ └── TASK-008 (Integration Tests)
|
|
339
|
+
│ └── TASK-010 (Security)
|
|
340
|
+
└── TASK-005 (Repository)
|
|
341
|
+
└── TASK-003 (Implementation)
|
|
342
|
+
```
|
|
343
|
+
|
|
344
|
+
**Critical Path**: TASK-001 → TASK-002 → TASK-003 → TASK-007 → TASK-008
|
|
345
|
+
```
|
|
346
|
+
|
|
347
|
+
---
|
|
348
|
+
|
|
349
|
+
### 8. Sprint Planning
|
|
350
|
+
|
|
351
|
+
Break tasks into sprints:
|
|
352
|
+
|
|
353
|
+
```markdown
|
|
354
|
+
## Sprint Planning
|
|
355
|
+
|
|
356
|
+
### Sprint 1 (P0 Core Functionality)
|
|
357
|
+
**Goal**: Implement core {{feature}} functionality
|
|
358
|
+
|
|
359
|
+
**Tasks**:
|
|
360
|
+
- TASK-001: Project structure (3 points)
|
|
361
|
+
- TASK-002: Tests for REQ-001 (2 points)
|
|
362
|
+
- TASK-003: Implement REQ-001 (5 points)
|
|
363
|
+
- TASK-004: Refactor (2 points)
|
|
364
|
+
- TASK-005: Database repository (5 points)
|
|
365
|
+
- TASK-006: CLI interface (3 points)
|
|
366
|
+
- TASK-007: API endpoints (5 points)
|
|
367
|
+
|
|
368
|
+
**Total**: 25 story points
|
|
369
|
+
**Capacity**: 30 points/sprint
|
|
370
|
+
**Risk**: Medium (database complexity)
|
|
371
|
+
|
|
372
|
+
---
|
|
373
|
+
|
|
374
|
+
### Sprint 2 (P1 Production Readiness)
|
|
375
|
+
**Goal**: Make {{feature}} production-ready
|
|
376
|
+
|
|
377
|
+
**Tasks**:
|
|
378
|
+
- TASK-008: Integration tests (5 points)
|
|
379
|
+
- TASK-009: Caching (3 points)
|
|
380
|
+
- TASK-010: Security audit (3 points)
|
|
381
|
+
|
|
382
|
+
**Total**: 11 story points
|
|
383
|
+
**Capacity**: 30 points/sprint
|
|
384
|
+
**Risk**: Low
|
|
385
|
+
```
|
|
386
|
+
|
|
387
|
+
---
|
|
388
|
+
|
|
389
|
+
### 9. Estimate Effort
|
|
390
|
+
|
|
391
|
+
Use **Fibonacci sequence** for story points:
|
|
392
|
+
- 1 point = Trivial (1-2 hours)
|
|
393
|
+
- 2 points = Small (2-4 hours)
|
|
394
|
+
- 3 points = Medium (4-8 hours)
|
|
395
|
+
- 5 points = Large (1-2 days)
|
|
396
|
+
- 8 points = Very large (2-3 days)
|
|
397
|
+
- 13 points = Huge (3-5 days) - consider splitting
|
|
398
|
+
|
|
399
|
+
**Estimation Guidelines**:
|
|
400
|
+
- Include time for testing
|
|
401
|
+
- Include time for code review
|
|
402
|
+
- Include time for refactoring
|
|
403
|
+
- Include buffer for unknowns
|
|
404
|
+
|
|
405
|
+
---
|
|
406
|
+
|
|
407
|
+
### 10. Add Constitutional Compliance Checklist
|
|
408
|
+
|
|
409
|
+
At end of document:
|
|
410
|
+
|
|
411
|
+
```markdown
|
|
412
|
+
## Constitutional Compliance Validation
|
|
413
|
+
|
|
414
|
+
Before marking feature complete, verify:
|
|
415
|
+
|
|
416
|
+
### Article I: Library-First ✅
|
|
417
|
+
- [ ] All features implemented in `lib/{{feature}}/`
|
|
418
|
+
- [ ] Library has independent test suite
|
|
419
|
+
- [ ] Library exports public API
|
|
420
|
+
|
|
421
|
+
### Article II: CLI Interface ✅
|
|
422
|
+
- [ ] CLI interface implemented
|
|
423
|
+
- [ ] All major operations exposed
|
|
424
|
+
- [ ] Help text provided
|
|
425
|
+
|
|
426
|
+
### Article III: Test-First ✅
|
|
427
|
+
- [ ] Tests written BEFORE implementation
|
|
428
|
+
- [ ] Git history shows Red-Green-Blue cycle
|
|
429
|
+
- [ ] All tests passing
|
|
430
|
+
|
|
431
|
+
### Article V: Traceability ✅
|
|
432
|
+
- [ ] All requirements mapped to tasks
|
|
433
|
+
- [ ] All tasks mapped to code
|
|
434
|
+
- [ ] All code mapped to tests
|
|
435
|
+
- [ ] 100% coverage achieved
|
|
436
|
+
|
|
437
|
+
### Article IX: Integration Testing ✅
|
|
438
|
+
- [ ] Integration tests use real database
|
|
439
|
+
- [ ] Integration tests use real cache
|
|
440
|
+
- [ ] Mocks justified (if used)
|
|
441
|
+
|
|
442
|
+
**Validation Commands**:
|
|
443
|
+
```bash
|
|
444
|
+
@traceability-auditor validate requirements.md tasks.md src/
|
|
445
|
+
@constitution-enforcer validate src/
|
|
446
|
+
@code-reviewer review src/
|
|
447
|
+
```
|
|
448
|
+
```
|
|
449
|
+
|
|
450
|
+
---
|
|
451
|
+
|
|
452
|
+
### 11. Save Task Breakdown (Bilingual)
|
|
453
|
+
|
|
454
|
+
**IMPORTANT**: Create BOTH English and Japanese versions.
|
|
455
|
+
|
|
456
|
+
**English version (Primary/Reference)**:
|
|
457
|
+
`storage/specs/{{feature-name}}-tasks.md`
|
|
458
|
+
|
|
459
|
+
**Japanese version (Translation)**:
|
|
460
|
+
`storage/specs/{{feature-name}}-tasks.ja.md`
|
|
461
|
+
|
|
462
|
+
**File Naming**:
|
|
463
|
+
- Match requirements and design files
|
|
464
|
+
- Add `.ja` before `.md` for Japanese version
|
|
465
|
+
|
|
466
|
+
**Generation Order**:
|
|
467
|
+
1. Generate English version FIRST
|
|
468
|
+
2. Then generate Japanese translation
|
|
469
|
+
3. Keep task IDs (TASK-XXX) identical in both versions
|
|
470
|
+
4. Keep requirement IDs (REQ-XXX-NNN) in English in Japanese version
|
|
471
|
+
5. Translate task descriptions and acceptance criteria
|
|
472
|
+
|
|
473
|
+
---
|
|
474
|
+
|
|
475
|
+
### 12. Generate Summary
|
|
476
|
+
|
|
477
|
+
```markdown
|
|
478
|
+
## ✅ Task Breakdown Complete
|
|
479
|
+
|
|
480
|
+
**Feature**: {{FEATURE_NAME}}
|
|
481
|
+
**Files**:
|
|
482
|
+
- English: storage/specs/{{feature-name}}-tasks.md
|
|
483
|
+
- Japanese: storage/specs/{{feature-name}}-tasks.ja.md
|
|
484
|
+
|
|
485
|
+
### Summary:
|
|
486
|
+
- **Total Tasks**: [N]
|
|
487
|
+
- P0 (Critical): [N] tasks, [N] story points
|
|
488
|
+
- P1 (High): [N] tasks, [N] story points
|
|
489
|
+
- P2 (Medium): [N] tasks, [N] story points
|
|
490
|
+
- P3 (Low): [N] tasks, [N] story points
|
|
491
|
+
|
|
492
|
+
### Sprint Allocation:
|
|
493
|
+
- Sprint 1: [N] tasks ([N] points)
|
|
494
|
+
- Sprint 2: [N] tasks ([N] points)
|
|
495
|
+
- Sprint 3: [N] tasks ([N] points)
|
|
496
|
+
|
|
497
|
+
### Requirements Coverage:
|
|
498
|
+
- Total Requirements: [N]
|
|
499
|
+
- Requirements with Tasks: [N] (100% ✅)
|
|
500
|
+
|
|
501
|
+
### Test-First Tasks:
|
|
502
|
+
- RED (Test) tasks: [N]
|
|
503
|
+
- GREEN (Implement) tasks: [N]
|
|
504
|
+
- BLUE (Refactor) tasks: [N]
|
|
505
|
+
|
|
506
|
+
### Estimated Effort:
|
|
507
|
+
- Total Story Points: [N]
|
|
508
|
+
- Total Hours: [N]
|
|
509
|
+
- Team Capacity: [N] points/sprint
|
|
510
|
+
- Estimated Duration: [N] sprints
|
|
511
|
+
|
|
512
|
+
### Constitutional Compliance:
|
|
513
|
+
- ✅ Article I: Library-first structure planned
|
|
514
|
+
- ✅ Article II: CLI tasks included
|
|
515
|
+
- ✅ Article III: Test-first tasks (Red-Green-Blue)
|
|
516
|
+
- ✅ Article V: 100% requirements coverage
|
|
517
|
+
- ✅ Article IX: Integration test tasks with real services
|
|
518
|
+
|
|
519
|
+
### Critical Path:
|
|
520
|
+
TASK-001 → TASK-002 → TASK-003 → TASK-007 → TASK-008
|
|
521
|
+
|
|
522
|
+
### Next Steps:
|
|
523
|
+
1. Review task breakdown with team
|
|
524
|
+
2. Allocate tasks to developers
|
|
525
|
+
3. Begin Sprint 1 implementation
|
|
526
|
+
4. OR use orchestrator: `@orchestrator implement {{feature-name}}`
|
|
527
|
+
```
|
|
528
|
+
|
|
529
|
+
---
|
|
530
|
+
|
|
531
|
+
## Tool Usage
|
|
532
|
+
|
|
533
|
+
### Required:
|
|
534
|
+
- **Read**: Design, requirements, steering files
|
|
535
|
+
- **Write**: Task breakdown document
|
|
536
|
+
|
|
537
|
+
### Optional:
|
|
538
|
+
- **AskUserQuestion**: Get team capacity, sprint length
|
|
539
|
+
|
|
540
|
+
---
|
|
541
|
+
|
|
542
|
+
## Validation Checklist
|
|
543
|
+
|
|
544
|
+
Before completing:
|
|
545
|
+
|
|
546
|
+
- [ ] All requirements have corresponding tasks
|
|
547
|
+
- [ ] Test-First tasks (Red-Green-Blue) for all implementations
|
|
548
|
+
- [ ] Task dependencies identified
|
|
549
|
+
- [ ] Story points estimated
|
|
550
|
+
- [ ] Sprint allocation complete
|
|
551
|
+
- [ ] Requirements coverage matrix 100%
|
|
552
|
+
- [ ] Constitutional compliance checklist included
|
|
553
|
+
- [ ] Document saved to storage/specs/
|
|
554
|
+
- [ ] Summary presented
|
|
555
|
+
|
|
556
|
+
---
|
|
557
|
+
|
|
558
|
+
## Edge Cases
|
|
559
|
+
|
|
560
|
+
### Missing Design
|
|
561
|
+
|
|
562
|
+
```markdown
|
|
563
|
+
❌ **Error**: Design document not found
|
|
564
|
+
|
|
565
|
+
Expected: storage/specs/{{feature-name}}-design.md
|
|
566
|
+
|
|
567
|
+
Please run `/sdd-design {{feature-name}}` first.
|
|
568
|
+
```
|
|
569
|
+
|
|
570
|
+
### No Requirements
|
|
571
|
+
|
|
572
|
+
```markdown
|
|
573
|
+
❌ **Error**: Requirements document not found
|
|
574
|
+
|
|
575
|
+
Expected: storage/specs/{{feature-name}}-requirements.md
|
|
576
|
+
|
|
577
|
+
Task breakdown requires requirements for traceability.
|
|
578
|
+
```
|
|
579
|
+
|
|
580
|
+
---
|
|
581
|
+
|
|
582
|
+
**Execution**: Begin task breakdown generation now for the specified feature.
|