aiag-cli 2.2.3 → 2.3.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/README.md +72 -37
- package/dist/cli.js +30 -2
- package/dist/cli.js.map +1 -1
- package/dist/commands/feature.d.ts +11 -0
- package/dist/commands/feature.d.ts.map +1 -0
- package/dist/commands/feature.js +153 -0
- package/dist/commands/feature.js.map +1 -0
- package/dist/commands/init.d.ts +1 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +29 -78
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/prd.d.ts +12 -0
- package/dist/commands/prd.d.ts.map +1 -0
- package/dist/commands/prd.js +179 -0
- package/dist/commands/prd.js.map +1 -0
- package/dist/prompts/index.d.ts +2 -0
- package/dist/prompts/index.d.ts.map +1 -1
- package/dist/prompts/index.js +2 -0
- package/dist/prompts/index.js.map +1 -1
- package/dist/prompts/prd.d.ts +28 -0
- package/dist/prompts/prd.d.ts.map +1 -0
- package/dist/prompts/prd.js +105 -0
- package/dist/prompts/prd.js.map +1 -0
- package/dist/skills/index.d.ts +12 -0
- package/dist/skills/index.d.ts.map +1 -0
- package/dist/skills/index.js +12 -0
- package/dist/skills/index.js.map +1 -0
- package/dist/skills/installer.d.ts +38 -0
- package/dist/skills/installer.d.ts.map +1 -0
- package/dist/skills/installer.js +153 -0
- package/dist/skills/installer.js.map +1 -0
- package/dist/skills/loader.d.ts +34 -0
- package/dist/skills/loader.d.ts.map +1 -0
- package/dist/skills/loader.js +134 -0
- package/dist/skills/loader.js.map +1 -0
- package/dist/skills/runner.d.ts +14 -0
- package/dist/skills/runner.d.ts.map +1 -0
- package/dist/skills/runner.js +238 -0
- package/dist/skills/runner.js.map +1 -0
- package/dist/types.d.ts +127 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/prd.d.ts +21 -0
- package/dist/utils/prd.d.ts.map +1 -1
- package/dist/utils/prd.js +69 -0
- package/dist/utils/prd.js.map +1 -1
- package/dist/utils/taskmasterConverter.d.ts +72 -0
- package/dist/utils/taskmasterConverter.d.ts.map +1 -0
- package/dist/utils/taskmasterConverter.js +401 -0
- package/dist/utils/taskmasterConverter.js.map +1 -0
- package/dist/utils/taskmasterParser.d.ts +35 -0
- package/dist/utils/taskmasterParser.d.ts.map +1 -0
- package/dist/utils/taskmasterParser.js +259 -0
- package/dist/utils/taskmasterParser.js.map +1 -0
- package/package.json +1 -1
- package/templates/skills/prd-taskmaster/.taskmaster/docs/prd.md +2571 -0
- package/templates/skills/prd-taskmaster/.taskmaster/scripts/execution-state.py +87 -0
- package/templates/skills/prd-taskmaster/.taskmaster/scripts/learn-accuracy.py +113 -0
- package/templates/skills/prd-taskmaster/.taskmaster/scripts/rollback.sh +71 -0
- package/templates/skills/prd-taskmaster/.taskmaster/scripts/security-audit.py +130 -0
- package/templates/skills/prd-taskmaster/.taskmaster/scripts/track-time.py +133 -0
- package/templates/skills/prd-taskmaster/LICENSE +21 -0
- package/templates/skills/prd-taskmaster/README.md +608 -0
- package/templates/skills/prd-taskmaster/SKILL.md +1258 -0
- package/templates/skills/prd-taskmaster/reference/taskmaster-integration-guide.md +645 -0
- package/templates/skills/prd-taskmaster/reference/validation-checklist.md +394 -0
- package/templates/skills/prd-taskmaster/scripts/setup-taskmaster.sh +112 -0
- package/templates/skills/prd-taskmaster/templates/CLAUDE.md.template +635 -0
- package/templates/skills/prd-taskmaster/templates/taskmaster-prd-comprehensive.md +983 -0
- package/templates/skills/prd-taskmaster/templates/taskmaster-prd-minimal.md +103 -0
|
@@ -0,0 +1,635 @@
|
|
|
1
|
+
# Project: {{PROJECT_NAME}}
|
|
2
|
+
|
|
3
|
+
> **Taskmaster-Managed Project with TDD-First Development**
|
|
4
|
+
|
|
5
|
+
## Project Overview
|
|
6
|
+
|
|
7
|
+
This project uses **taskmaster** for AI-assisted task breakdown and follows a **Test-Driven Development (TDD)** approach by default.
|
|
8
|
+
|
|
9
|
+
**Key Documents:**
|
|
10
|
+
- PRD: `.taskmaster/docs/prd.md` - Comprehensive product requirements
|
|
11
|
+
- Tasks: `.taskmaster/tasks/` - AI-generated task breakdown
|
|
12
|
+
- Architecture: `.taskmaster/docs/architecture.md` - System design (if applicable)
|
|
13
|
+
|
|
14
|
+
**Development Philosophy:**
|
|
15
|
+
> "Planning is 95% of the work. Tests are 95% of planning. Write tests first, implement second, validate always."
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## Tool-Specific Setup
|
|
20
|
+
|
|
21
|
+
### Using with Claude Code CLI
|
|
22
|
+
|
|
23
|
+
This file is named `CLAUDE.md` and will be automatically read by Claude Code when working in this project directory.
|
|
24
|
+
|
|
25
|
+
**No additional setup needed!** Claude Code reads this file by default.
|
|
26
|
+
|
|
27
|
+
### Using with Codex
|
|
28
|
+
|
|
29
|
+
If you're using Codex instead of Claude Code, you should copy this file to `codex.md`:
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
# From your project root:
|
|
33
|
+
cp CLAUDE.md codex.md
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
**Why both files?**
|
|
37
|
+
- Claude Code reads `CLAUDE.md` by default
|
|
38
|
+
- Codex reads `codex.md` by default (when initialized with `/init`)
|
|
39
|
+
- Both files should have identical content
|
|
40
|
+
- Update both when making workflow changes
|
|
41
|
+
|
|
42
|
+
**Keeping them in sync:**
|
|
43
|
+
```bash
|
|
44
|
+
# After updating CLAUDE.md:
|
|
45
|
+
cp CLAUDE.md codex.md
|
|
46
|
+
git add CLAUDE.md codex.md
|
|
47
|
+
git commit -m "Update workflow documentation"
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
## Development Workflow: TDD-First Approach
|
|
53
|
+
|
|
54
|
+
### MANDATORY: Test-Driven Development
|
|
55
|
+
|
|
56
|
+
**Every feature, every task, every change follows TDD:**
|
|
57
|
+
|
|
58
|
+
```
|
|
59
|
+
RED → GREEN → REFACTOR
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
1. **RED** - Write a failing test that defines desired behavior
|
|
63
|
+
2. **GREEN** - Implement minimal code to make the test pass
|
|
64
|
+
3. **REFACTOR** - Improve code quality while keeping tests green
|
|
65
|
+
|
|
66
|
+
### TDD Cycle in Practice
|
|
67
|
+
|
|
68
|
+
**For each task:**
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
# 1. RED: Write failing test first
|
|
72
|
+
# Example: For a user authentication feature
|
|
73
|
+
write_test("test_user_can_login_with_valid_credentials")
|
|
74
|
+
run_tests() # Should FAIL (red)
|
|
75
|
+
|
|
76
|
+
# 2. GREEN: Implement minimal code
|
|
77
|
+
implement_feature("user_login")
|
|
78
|
+
run_tests() # Should PASS (green)
|
|
79
|
+
|
|
80
|
+
# 3. REFACTOR: Improve code quality
|
|
81
|
+
refactor_code("improve_login_performance")
|
|
82
|
+
run_tests() # Should still PASS (green)
|
|
83
|
+
|
|
84
|
+
# 4. VALIDATE: Use blind-validator agent
|
|
85
|
+
/blind-validator .taskmaster/docs/prd.md
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
### Never Skip Tests
|
|
89
|
+
|
|
90
|
+
**IMPORTANT:** Do NOT implement features without tests. If you catch yourself:
|
|
91
|
+
- Writing implementation code before tests → STOP
|
|
92
|
+
- Skipping tests "to move faster" → STOP
|
|
93
|
+
- Planning to "add tests later" → STOP
|
|
94
|
+
|
|
95
|
+
**Always write tests first.**
|
|
96
|
+
|
|
97
|
+
---
|
|
98
|
+
|
|
99
|
+
## Taskmaster Integration
|
|
100
|
+
|
|
101
|
+
### Working with Taskmaster Tasks
|
|
102
|
+
|
|
103
|
+
**Task Location:** `.taskmaster/tasks/`
|
|
104
|
+
|
|
105
|
+
**Reading Tasks:**
|
|
106
|
+
```bash
|
|
107
|
+
# View all tasks
|
|
108
|
+
taskmaster list
|
|
109
|
+
|
|
110
|
+
# View specific task
|
|
111
|
+
taskmaster show <task-id>
|
|
112
|
+
|
|
113
|
+
# View task dependencies
|
|
114
|
+
taskmaster deps <task-id>
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
**Task Workflow:**
|
|
118
|
+
|
|
119
|
+
1. **Read the task** - Understand requirements, acceptance criteria, dependencies
|
|
120
|
+
2. **Read the PRD** - Reference relevant PRD sections
|
|
121
|
+
3. **Write tests** - Based on acceptance criteria
|
|
122
|
+
4. **Implement** - Minimal code to pass tests
|
|
123
|
+
5. **Validate** - Use blind-validator agent
|
|
124
|
+
6. **Mark complete** - Only when tests pass and validation succeeds
|
|
125
|
+
|
|
126
|
+
### Task Dependencies
|
|
127
|
+
|
|
128
|
+
**Before starting a task:**
|
|
129
|
+
- Check dependencies: `taskmaster deps <task-id>`
|
|
130
|
+
- Ensure dependent tasks are complete
|
|
131
|
+
- If blocked, work on independent tasks in parallel
|
|
132
|
+
|
|
133
|
+
**Parallel vs Sequential Tasks:**
|
|
134
|
+
|
|
135
|
+
✅ **Parallel** (can run simultaneously):
|
|
136
|
+
```
|
|
137
|
+
Task A: Implement user model
|
|
138
|
+
Task B: Implement product model
|
|
139
|
+
Task C: Design authentication flow
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
❌ **Sequential** (must run in order):
|
|
143
|
+
```
|
|
144
|
+
Task 1: Create database schema → Task 2: Implement models → Task 3: Write API endpoints
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
### Marking Tasks Complete
|
|
148
|
+
|
|
149
|
+
**Only mark complete when:**
|
|
150
|
+
- ✅ All tests pass
|
|
151
|
+
- ✅ Blind-validator agent confirms compliance with PRD
|
|
152
|
+
- ✅ Acceptance criteria met
|
|
153
|
+
- ✅ Code is refactored and clean
|
|
154
|
+
- ✅ Documentation updated (if required)
|
|
155
|
+
|
|
156
|
+
```bash
|
|
157
|
+
# After validation passes:
|
|
158
|
+
taskmaster complete <task-id>
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
---
|
|
162
|
+
|
|
163
|
+
## Agent Usage Guidelines
|
|
164
|
+
|
|
165
|
+
### When to Use Agents
|
|
166
|
+
|
|
167
|
+
**Use agents to:**
|
|
168
|
+
- **Reduce main context consumption** - Large codebases, extensive searches
|
|
169
|
+
- **Validate independently** - Blind validation without implementation details
|
|
170
|
+
- **Parallelize research** - Multiple exploration paths simultaneously
|
|
171
|
+
- **Specialized analysis** - Deep dives into specific areas
|
|
172
|
+
|
|
173
|
+
**Don't use agents for:**
|
|
174
|
+
- Simple file reads (use Read tool directly)
|
|
175
|
+
- Quick searches (use Grep/Glob directly)
|
|
176
|
+
- Single-step tasks (overhead not worth it)
|
|
177
|
+
|
|
178
|
+
### Agent Types for Taskmaster Workflow
|
|
179
|
+
|
|
180
|
+
#### 1. Blind-Validator Agent
|
|
181
|
+
|
|
182
|
+
**Purpose:** Validate implementation against PRD without seeing code
|
|
183
|
+
|
|
184
|
+
**When to use:**
|
|
185
|
+
- After implementing a feature
|
|
186
|
+
- Before marking task complete
|
|
187
|
+
- When you want unbiased validation
|
|
188
|
+
|
|
189
|
+
**How to use:**
|
|
190
|
+
```bash
|
|
191
|
+
# After implementation:
|
|
192
|
+
/blind-validator .taskmaster/docs/prd.md
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
**What it checks:**
|
|
196
|
+
- ✅ Requirements met per PRD
|
|
197
|
+
- ✅ Acceptance criteria satisfied
|
|
198
|
+
- ✅ No deviation from spec
|
|
199
|
+
- ✅ Edge cases handled
|
|
200
|
+
|
|
201
|
+
#### 2. Explore Agent
|
|
202
|
+
|
|
203
|
+
**Purpose:** Fast codebase exploration for understanding context
|
|
204
|
+
|
|
205
|
+
**When to use:**
|
|
206
|
+
- Starting a new task in unfamiliar codebase
|
|
207
|
+
- Understanding integration points
|
|
208
|
+
- Finding related code patterns
|
|
209
|
+
|
|
210
|
+
**How to use:**
|
|
211
|
+
```bash
|
|
212
|
+
# Use Task tool with Explore agent
|
|
213
|
+
# "Explore authentication implementation patterns in the codebase"
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
**Thoroughness levels:**
|
|
217
|
+
- `quick` - Basic search (< 30 seconds)
|
|
218
|
+
- `medium` - Moderate exploration (1-2 minutes)
|
|
219
|
+
- `very thorough` - Comprehensive analysis (3-5 minutes)
|
|
220
|
+
|
|
221
|
+
#### 3. General-Purpose Agent
|
|
222
|
+
|
|
223
|
+
**Purpose:** Complex multi-step research and analysis
|
|
224
|
+
|
|
225
|
+
**When to use:**
|
|
226
|
+
- Multi-step research tasks
|
|
227
|
+
- Complex codebase analysis
|
|
228
|
+
- When single search won't suffice
|
|
229
|
+
|
|
230
|
+
**How to use:**
|
|
231
|
+
```bash
|
|
232
|
+
# Use Task tool with general-purpose agent
|
|
233
|
+
# "Analyze how error handling works across the API layer"
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
#### 4. Research Squadron (Parallel Agents)
|
|
237
|
+
|
|
238
|
+
**Purpose:** Deploy multiple agents for comprehensive exploration
|
|
239
|
+
|
|
240
|
+
**When to use:**
|
|
241
|
+
- Need to explore multiple areas simultaneously
|
|
242
|
+
- Want comprehensive coverage quickly
|
|
243
|
+
- Starting work on large feature
|
|
244
|
+
|
|
245
|
+
**How to use:**
|
|
246
|
+
```bash
|
|
247
|
+
/agents:research-squadron "authentication patterns"
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
### Agent Best Practices
|
|
251
|
+
|
|
252
|
+
1. **Use agents proactively** - Don't wait to be blocked
|
|
253
|
+
2. **Specify thoroughness** - Match effort to task complexity
|
|
254
|
+
3. **Trust agent output** - Agents are specialized, their results are reliable
|
|
255
|
+
4. **Parallelize when possible** - Launch multiple agents in single message
|
|
256
|
+
5. **Review agent reports** - Synthesize findings before implementing
|
|
257
|
+
|
|
258
|
+
---
|
|
259
|
+
|
|
260
|
+
## Parallel Task Execution
|
|
261
|
+
|
|
262
|
+
### Identifying Independent Tasks
|
|
263
|
+
|
|
264
|
+
**Independent tasks can run in parallel:**
|
|
265
|
+
|
|
266
|
+
✅ **Example:**
|
|
267
|
+
```
|
|
268
|
+
- Task A: Implement user authentication
|
|
269
|
+
- Task B: Implement product catalog
|
|
270
|
+
- Task C: Set up CI/CD pipeline
|
|
271
|
+
```
|
|
272
|
+
|
|
273
|
+
These are independent - work on them concurrently.
|
|
274
|
+
|
|
275
|
+
❌ **Dependent tasks must be sequential:**
|
|
276
|
+
```
|
|
277
|
+
- Task 1: Design database schema
|
|
278
|
+
- Task 2: Implement models (depends on Task 1)
|
|
279
|
+
- Task 3: Write API (depends on Task 2)
|
|
280
|
+
```
|
|
281
|
+
|
|
282
|
+
### Using TodoWrite for Parallel Work
|
|
283
|
+
|
|
284
|
+
**Track multiple concurrent tasks:**
|
|
285
|
+
|
|
286
|
+
```markdown
|
|
287
|
+
1. [in_progress] Implement user model with tests
|
|
288
|
+
2. [in_progress] Implement product model with tests
|
|
289
|
+
3. [pending] Set up authentication API
|
|
290
|
+
4. [pending] Write integration tests
|
|
291
|
+
```
|
|
292
|
+
|
|
293
|
+
**Only ONE task should be `in_progress` at a time unless:**
|
|
294
|
+
- Tasks are truly independent
|
|
295
|
+
- You're using agents for some tasks
|
|
296
|
+
- Parallel tool calls are being executed
|
|
297
|
+
|
|
298
|
+
### Parallel Tool Calls
|
|
299
|
+
|
|
300
|
+
**Execute multiple tools simultaneously when independent:**
|
|
301
|
+
|
|
302
|
+
```bash
|
|
303
|
+
# Good: Independent reads
|
|
304
|
+
Read file_a.py
|
|
305
|
+
Read file_b.py
|
|
306
|
+
Read file_c.py
|
|
307
|
+
|
|
308
|
+
# Good: Independent searches
|
|
309
|
+
Grep "pattern_a"
|
|
310
|
+
Grep "pattern_b"
|
|
311
|
+
Glob "*.tsx"
|
|
312
|
+
|
|
313
|
+
# Bad: Dependent operations
|
|
314
|
+
Read schema.sql
|
|
315
|
+
Write model.py (depends on schema)
|
|
316
|
+
```
|
|
317
|
+
|
|
318
|
+
**Always parallelize when possible** - faster execution, better efficiency.
|
|
319
|
+
|
|
320
|
+
---
|
|
321
|
+
|
|
322
|
+
## Validation & Quality Gates
|
|
323
|
+
|
|
324
|
+
### Continuous Validation
|
|
325
|
+
|
|
326
|
+
**At every step:**
|
|
327
|
+
|
|
328
|
+
1. **Before implementation** - Write tests (red)
|
|
329
|
+
2. **During implementation** - Run tests frequently
|
|
330
|
+
3. **After implementation** - All tests pass (green)
|
|
331
|
+
4. **Before task completion** - Blind-validator agent
|
|
332
|
+
5. **Before commit** - Full test suite passes
|
|
333
|
+
|
|
334
|
+
### Quality Checklist
|
|
335
|
+
|
|
336
|
+
**For each task, verify:**
|
|
337
|
+
|
|
338
|
+
- [ ] Tests written first (TDD)
|
|
339
|
+
- [ ] All tests pass
|
|
340
|
+
- [ ] Acceptance criteria met
|
|
341
|
+
- [ ] PRD requirements satisfied
|
|
342
|
+
- [ ] Blind-validator passes
|
|
343
|
+
- [ ] Code is refactored and clean
|
|
344
|
+
- [ ] No console errors or warnings
|
|
345
|
+
- [ ] Documentation updated (if needed)
|
|
346
|
+
- [ ] Ready for code review
|
|
347
|
+
|
|
348
|
+
### Using Blind-Validator
|
|
349
|
+
|
|
350
|
+
**Purpose:** Validate against requirements WITHOUT seeing implementation details
|
|
351
|
+
|
|
352
|
+
**Why this matters:**
|
|
353
|
+
- Prevents implementation bias
|
|
354
|
+
- Ensures objective validation
|
|
355
|
+
- Catches requirement gaps
|
|
356
|
+
- Verifies acceptance criteria
|
|
357
|
+
|
|
358
|
+
**How to use:**
|
|
359
|
+
```bash
|
|
360
|
+
# After implementing a feature:
|
|
361
|
+
/blind-validator .taskmaster/docs/prd.md
|
|
362
|
+
|
|
363
|
+
# Agent will:
|
|
364
|
+
# 1. Read the PRD requirements
|
|
365
|
+
# 2. Test the implementation (without reading code)
|
|
366
|
+
# 3. Verify acceptance criteria
|
|
367
|
+
# 4. Report pass/fail with details
|
|
368
|
+
```
|
|
369
|
+
|
|
370
|
+
**Only mark task complete after blind-validator passes.**
|
|
371
|
+
|
|
372
|
+
---
|
|
373
|
+
|
|
374
|
+
## Tool Preferences & Guidelines
|
|
375
|
+
|
|
376
|
+
### When to Use Each Tool
|
|
377
|
+
|
|
378
|
+
#### Task Tool (Agents)
|
|
379
|
+
|
|
380
|
+
**Use for:**
|
|
381
|
+
- Large codebase exploration
|
|
382
|
+
- Multi-step research
|
|
383
|
+
- Validation (blind-validator)
|
|
384
|
+
- Parallel exploration (research-squadron)
|
|
385
|
+
- Complex analysis requiring multiple steps
|
|
386
|
+
|
|
387
|
+
**Don't use for:**
|
|
388
|
+
- Simple file reads
|
|
389
|
+
- Single grep/glob patterns
|
|
390
|
+
- Straightforward implementations
|
|
391
|
+
|
|
392
|
+
#### Direct Tools (Read, Write, Edit, Grep, Glob, Bash)
|
|
393
|
+
|
|
394
|
+
**Use for:**
|
|
395
|
+
- Reading specific known files
|
|
396
|
+
- Searching for specific patterns
|
|
397
|
+
- Implementing code changes
|
|
398
|
+
- Running tests
|
|
399
|
+
- Quick verifications
|
|
400
|
+
|
|
401
|
+
#### Parallel Tool Calls
|
|
402
|
+
|
|
403
|
+
**Always use when:**
|
|
404
|
+
- Reading multiple independent files
|
|
405
|
+
- Searching multiple patterns
|
|
406
|
+
- Running independent commands
|
|
407
|
+
- No dependencies between operations
|
|
408
|
+
|
|
409
|
+
### Context Optimization
|
|
410
|
+
|
|
411
|
+
**Strategies:**
|
|
412
|
+
|
|
413
|
+
1. **Use agents for exploration** - Keep main context for implementation
|
|
414
|
+
2. **Read files once** - Cache information, don't re-read
|
|
415
|
+
3. **Use PROJECT_INDEX.json** - If available, leverage it
|
|
416
|
+
4. **Minimize context** - Only read what's needed
|
|
417
|
+
5. **Agent parallelization** - Multiple agents = distributed context
|
|
418
|
+
|
|
419
|
+
**Example efficient workflow:**
|
|
420
|
+
|
|
421
|
+
```bash
|
|
422
|
+
# 1. Use Explore agent to understand codebase (saves main context)
|
|
423
|
+
Task: "Find authentication patterns" (Explore agent)
|
|
424
|
+
|
|
425
|
+
# 2. Synthesize findings in main context (minimal)
|
|
426
|
+
# 3. Write tests (main context)
|
|
427
|
+
# 4. Implement feature (main context)
|
|
428
|
+
# 5. Use blind-validator to validate (saves main context)
|
|
429
|
+
/blind-validator .taskmaster/docs/prd.md
|
|
430
|
+
```
|
|
431
|
+
|
|
432
|
+
---
|
|
433
|
+
|
|
434
|
+
## Commit & Version Control
|
|
435
|
+
|
|
436
|
+
### Commit Standards
|
|
437
|
+
|
|
438
|
+
**Follow git best practices:**
|
|
439
|
+
|
|
440
|
+
1. **Never commit untested code** (from CLAUDE.md rules)
|
|
441
|
+
2. **Stay on feature branch** until work complete
|
|
442
|
+
3. **Write descriptive commit messages**
|
|
443
|
+
4. **Include test results in commit message** (if significant)
|
|
444
|
+
|
|
445
|
+
### Commit Message Format
|
|
446
|
+
|
|
447
|
+
```
|
|
448
|
+
<type>: <short description>
|
|
449
|
+
|
|
450
|
+
<detailed description>
|
|
451
|
+
|
|
452
|
+
Tests: <test results>
|
|
453
|
+
|
|
454
|
+
🤖 Generated with [Claude Code](https://claude.com/claude-code)
|
|
455
|
+
|
|
456
|
+
Co-Authored-By: Claude <noreply@anthropic.com>
|
|
457
|
+
```
|
|
458
|
+
|
|
459
|
+
**Types:**
|
|
460
|
+
- `feat` - New feature
|
|
461
|
+
- `fix` - Bug fix
|
|
462
|
+
- `test` - Add/update tests
|
|
463
|
+
- `refactor` - Code refactoring
|
|
464
|
+
- `docs` - Documentation
|
|
465
|
+
- `chore` - Maintenance
|
|
466
|
+
|
|
467
|
+
### Branch Strategy
|
|
468
|
+
|
|
469
|
+
**For taskmaster workflow:**
|
|
470
|
+
|
|
471
|
+
```bash
|
|
472
|
+
# Feature branch for each major task/feature
|
|
473
|
+
git checkout -b feature/user-authentication
|
|
474
|
+
|
|
475
|
+
# Stay on feature branch until:
|
|
476
|
+
# - All tests pass
|
|
477
|
+
# - Blind-validator passes
|
|
478
|
+
# - Task marked complete
|
|
479
|
+
# - Code reviewed (if applicable)
|
|
480
|
+
|
|
481
|
+
# Then merge to main
|
|
482
|
+
git checkout main
|
|
483
|
+
git merge feature/user-authentication
|
|
484
|
+
```
|
|
485
|
+
|
|
486
|
+
---
|
|
487
|
+
|
|
488
|
+
## Project-Specific Context
|
|
489
|
+
|
|
490
|
+
### Tech Stack
|
|
491
|
+
|
|
492
|
+
{{TECH_STACK}}
|
|
493
|
+
|
|
494
|
+
### Architecture Overview
|
|
495
|
+
|
|
496
|
+
{{ARCHITECTURE_OVERVIEW}}
|
|
497
|
+
|
|
498
|
+
### Key Dependencies
|
|
499
|
+
|
|
500
|
+
{{KEY_DEPENDENCIES}}
|
|
501
|
+
|
|
502
|
+
### Testing Framework
|
|
503
|
+
|
|
504
|
+
{{TESTING_FRAMEWORK}}
|
|
505
|
+
|
|
506
|
+
### Development Environment
|
|
507
|
+
|
|
508
|
+
{{DEV_ENVIRONMENT}}
|
|
509
|
+
|
|
510
|
+
---
|
|
511
|
+
|
|
512
|
+
## Quick Reference
|
|
513
|
+
|
|
514
|
+
### Daily Workflow
|
|
515
|
+
|
|
516
|
+
```bash
|
|
517
|
+
# 1. Check tasks
|
|
518
|
+
taskmaster list
|
|
519
|
+
|
|
520
|
+
# 2. Pick a task (check dependencies)
|
|
521
|
+
taskmaster show <task-id>
|
|
522
|
+
taskmaster deps <task-id>
|
|
523
|
+
|
|
524
|
+
# 3. Read PRD for context
|
|
525
|
+
cat .taskmaster/docs/prd.md
|
|
526
|
+
|
|
527
|
+
# 4. Write failing test (RED)
|
|
528
|
+
# ... write test ...
|
|
529
|
+
npm test # or appropriate test command
|
|
530
|
+
|
|
531
|
+
# 5. Implement feature (GREEN)
|
|
532
|
+
# ... implement ...
|
|
533
|
+
npm test
|
|
534
|
+
|
|
535
|
+
# 6. Refactor (REFACTOR)
|
|
536
|
+
# ... improve code ...
|
|
537
|
+
npm test
|
|
538
|
+
|
|
539
|
+
# 7. Validate (VALIDATE)
|
|
540
|
+
/blind-validator .taskmaster/docs/prd.md
|
|
541
|
+
|
|
542
|
+
# 8. Mark complete (only if validation passes)
|
|
543
|
+
taskmaster complete <task-id>
|
|
544
|
+
|
|
545
|
+
# 9. Commit
|
|
546
|
+
git add .
|
|
547
|
+
git commit -m "feat: implement <feature>
|
|
548
|
+
|
|
549
|
+
Tests: All pass
|
|
550
|
+
Validation: blind-validator passed"
|
|
551
|
+
```
|
|
552
|
+
|
|
553
|
+
### Common Commands
|
|
554
|
+
|
|
555
|
+
```bash
|
|
556
|
+
# Taskmaster
|
|
557
|
+
taskmaster list # List all tasks
|
|
558
|
+
taskmaster show <id> # Show task details
|
|
559
|
+
taskmaster deps <id> # Show dependencies
|
|
560
|
+
taskmaster complete <id> # Mark complete
|
|
561
|
+
|
|
562
|
+
# Validation
|
|
563
|
+
/blind-validator .taskmaster/docs/prd.md
|
|
564
|
+
/agents:research-squadron <query>
|
|
565
|
+
|
|
566
|
+
# Testing
|
|
567
|
+
{{TEST_COMMAND}} # Run tests
|
|
568
|
+
|
|
569
|
+
# Git
|
|
570
|
+
git status
|
|
571
|
+
git add .
|
|
572
|
+
git commit -m "message"
|
|
573
|
+
```
|
|
574
|
+
|
|
575
|
+
---
|
|
576
|
+
|
|
577
|
+
## Best Practices Summary
|
|
578
|
+
|
|
579
|
+
### Always Do
|
|
580
|
+
|
|
581
|
+
✅ Write tests before implementation (TDD)
|
|
582
|
+
✅ Use blind-validator before marking complete
|
|
583
|
+
✅ Check task dependencies before starting
|
|
584
|
+
✅ Parallelize independent tasks
|
|
585
|
+
✅ Use agents for complex exploration
|
|
586
|
+
✅ Run tests frequently
|
|
587
|
+
✅ Commit only tested code
|
|
588
|
+
✅ Stay on feature branch until complete
|
|
589
|
+
✅ Refactor with confidence (tests protect you)
|
|
590
|
+
|
|
591
|
+
### Never Do
|
|
592
|
+
|
|
593
|
+
❌ Skip tests to "move faster"
|
|
594
|
+
❌ Implement before writing tests
|
|
595
|
+
❌ Mark task complete without validation
|
|
596
|
+
❌ Commit untested code
|
|
597
|
+
❌ Start dependent tasks before prerequisites
|
|
598
|
+
❌ Use agents for simple tasks
|
|
599
|
+
❌ Ignore PRD requirements
|
|
600
|
+
❌ Force push to main/master
|
|
601
|
+
|
|
602
|
+
---
|
|
603
|
+
|
|
604
|
+
## Need Help?
|
|
605
|
+
|
|
606
|
+
### Resources
|
|
607
|
+
|
|
608
|
+
- **PRD:** `.taskmaster/docs/prd.md` - Full requirements
|
|
609
|
+
- **Tasks:** `.taskmaster/tasks/` - Task breakdown
|
|
610
|
+
- **Docs:** `.taskmaster/docs/` - Additional documentation
|
|
611
|
+
|
|
612
|
+
### Troubleshooting
|
|
613
|
+
|
|
614
|
+
**Tests failing?**
|
|
615
|
+
- Read error messages carefully
|
|
616
|
+
- Check PRD for requirements
|
|
617
|
+
- Verify acceptance criteria
|
|
618
|
+
- Use blind-validator for objective assessment
|
|
619
|
+
|
|
620
|
+
**Blocked on task?**
|
|
621
|
+
- Check dependencies: `taskmaster deps <id>`
|
|
622
|
+
- Work on independent tasks instead
|
|
623
|
+
- Use Explore agent to understand blockers
|
|
624
|
+
|
|
625
|
+
**Not sure what to do?**
|
|
626
|
+
- Read the PRD
|
|
627
|
+
- Check task acceptance criteria
|
|
628
|
+
- Use agents to explore options
|
|
629
|
+
- Ask for clarification (open discussion)
|
|
630
|
+
|
|
631
|
+
---
|
|
632
|
+
|
|
633
|
+
**Remember:** Test first, implement second, validate always. TDD is not optional - it's how we ensure quality and maintain velocity over time.
|
|
634
|
+
|
|
635
|
+
**Happy coding!** 🚀
|