specweave 0.3.13 → 0.4.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/CLAUDE.md +17 -1
- package/README.md +1 -1
- package/bin/install-all.sh +9 -2
- package/bin/install-hooks.sh +57 -0
- package/dist/cli/commands/init.d.ts.map +1 -1
- package/dist/cli/commands/init.js +55 -0
- package/dist/cli/commands/init.js.map +1 -1
- package/dist/core/agent-model-manager.d.ts +52 -0
- package/dist/core/agent-model-manager.d.ts.map +1 -0
- package/dist/core/agent-model-manager.js +120 -0
- package/dist/core/agent-model-manager.js.map +1 -0
- package/dist/core/cost-tracker.d.ts +108 -0
- package/dist/core/cost-tracker.d.ts.map +1 -0
- package/dist/core/cost-tracker.js +281 -0
- package/dist/core/cost-tracker.js.map +1 -0
- package/dist/core/model-selector.d.ts +57 -0
- package/dist/core/model-selector.d.ts.map +1 -0
- package/dist/core/model-selector.js +115 -0
- package/dist/core/model-selector.js.map +1 -0
- package/dist/core/phase-detector.d.ts +62 -0
- package/dist/core/phase-detector.d.ts.map +1 -0
- package/dist/core/phase-detector.js +229 -0
- package/dist/core/phase-detector.js.map +1 -0
- package/dist/types/cost-tracking.d.ts +43 -0
- package/dist/types/cost-tracking.d.ts.map +1 -0
- package/dist/types/cost-tracking.js +8 -0
- package/dist/types/cost-tracking.js.map +1 -0
- package/dist/types/model-selection.d.ts +53 -0
- package/dist/types/model-selection.d.ts.map +1 -0
- package/dist/types/model-selection.js +12 -0
- package/dist/types/model-selection.js.map +1 -0
- package/dist/utils/cost-reporter.d.ts +58 -0
- package/dist/utils/cost-reporter.d.ts.map +1 -0
- package/dist/utils/cost-reporter.js +224 -0
- package/dist/utils/cost-reporter.js.map +1 -0
- package/dist/utils/pricing-constants.d.ts +70 -0
- package/dist/utils/pricing-constants.d.ts.map +1 -0
- package/dist/utils/pricing-constants.js +71 -0
- package/dist/utils/pricing-constants.js.map +1 -0
- package/package.json +1 -1
- package/src/agents/architect/AGENT.md +3 -0
- package/src/agents/code-reviewer.md +156 -0
- package/src/agents/data-scientist/AGENT.md +181 -0
- package/src/agents/database-optimizer/AGENT.md +147 -0
- package/src/agents/devops/AGENT.md +3 -0
- package/src/agents/diagrams-architect/AGENT.md +3 -0
- package/src/agents/docs-writer/AGENT.md +3 -0
- package/src/agents/kubernetes-architect/AGENT.md +142 -0
- package/src/agents/ml-engineer/AGENT.md +150 -0
- package/src/agents/mlops-engineer/AGENT.md +201 -0
- package/src/agents/network-engineer/AGENT.md +149 -0
- package/src/agents/observability-engineer/AGENT.md +213 -0
- package/src/agents/payment-integration/AGENT.md +35 -0
- package/src/agents/performance/AGENT.md +3 -0
- package/src/agents/performance-engineer/AGENT.md +153 -0
- package/src/agents/pm/AGENT.md +3 -0
- package/src/agents/qa-lead/AGENT.md +3 -0
- package/src/agents/security/AGENT.md +3 -0
- package/src/agents/sre/AGENT.md +3 -0
- package/src/agents/tdd-orchestrator/AGENT.md +169 -0
- package/src/agents/tech-lead/AGENT.md +3 -0
- package/src/commands/specweave.costs.md +261 -0
- package/src/commands/specweave.ml-pipeline.md +292 -0
- package/src/commands/specweave.monitor-setup.md +501 -0
- package/src/commands/specweave.slo-implement.md +1055 -0
- package/src/commands/specweave.sync-github.md +1 -1
- package/src/commands/specweave.tdd-cycle.md +199 -0
- package/src/commands/specweave.tdd-green.md +842 -0
- package/src/commands/specweave.tdd-red.md +135 -0
- package/src/commands/specweave.tdd-refactor.md +165 -0
- package/src/skills/SKILLS-INDEX.md +18 -10
- package/src/skills/billing-automation/SKILL.md +559 -0
- package/src/skills/distributed-tracing/SKILL.md +438 -0
- package/src/skills/e2e-playwright/README.md +1 -1
- package/src/skills/e2e-playwright/package.json +1 -1
- package/src/skills/gitops-workflow/SKILL.md +285 -0
- package/src/skills/gitops-workflow/references/argocd-setup.md +134 -0
- package/src/skills/gitops-workflow/references/sync-policies.md +131 -0
- package/src/skills/grafana-dashboards/SKILL.md +369 -0
- package/src/skills/helm-chart-scaffolding/SKILL.md +544 -0
- package/src/skills/helm-chart-scaffolding/assets/Chart.yaml.template +42 -0
- package/src/skills/helm-chart-scaffolding/assets/values.yaml.template +185 -0
- package/src/skills/helm-chart-scaffolding/references/chart-structure.md +500 -0
- package/src/skills/helm-chart-scaffolding/scripts/validate-chart.sh +244 -0
- package/src/skills/k8s-manifest-generator/SKILL.md +511 -0
- package/src/skills/k8s-manifest-generator/assets/configmap-template.yaml +296 -0
- package/src/skills/k8s-manifest-generator/assets/deployment-template.yaml +203 -0
- package/src/skills/k8s-manifest-generator/assets/service-template.yaml +171 -0
- package/src/skills/k8s-manifest-generator/references/deployment-spec.md +753 -0
- package/src/skills/k8s-manifest-generator/references/service-spec.md +724 -0
- package/src/skills/k8s-security-policies/SKILL.md +334 -0
- package/src/skills/k8s-security-policies/assets/network-policy-template.yaml +177 -0
- package/src/skills/k8s-security-policies/references/rbac-patterns.md +187 -0
- package/src/skills/ml-pipeline-workflow/SKILL.md +245 -0
- package/src/skills/paypal-integration/SKILL.md +467 -0
- package/src/skills/pci-compliance/SKILL.md +466 -0
- package/src/skills/prometheus-configuration/SKILL.md +392 -0
- package/src/skills/slo-implementation/SKILL.md +329 -0
- package/src/skills/stripe-integration/SKILL.md +442 -0
- package/src/skills/tdd-workflow/SKILL.md +378 -0
- package/src/templates/README.md.template +1 -1
- package/src/skills/bmad-method-expert/SKILL.md +0 -626
- package/src/skills/bmad-method-expert/scripts/analyze-project.js +0 -318
- package/src/skills/bmad-method-expert/scripts/check-setup.js +0 -208
- package/src/skills/bmad-method-expert/scripts/generate-template.js +0 -1149
- package/src/skills/bmad-method-expert/scripts/validate-documents.js +0 -340
- package/src/skills/context-optimizer/SKILL.md +0 -588
- package/src/skills/figma-designer/SKILL.md +0 -149
- package/src/skills/figma-implementer/SKILL.md +0 -148
- package/src/skills/figma-mcp-connector/SKILL.md +0 -136
- package/src/skills/figma-to-code/SKILL.md +0 -128
- package/src/skills/spec-kit-expert/SKILL.md +0 -1010
|
@@ -0,0 +1,378 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: tdd-workflow
|
|
3
|
+
description: Test-Driven Development workflow coordinator. Detects TDD intent and offers guided red-green-refactor cycle. Activates for TDD, test-driven, red-green-refactor, write tests first, test-first development, Kent Beck, TDD cycle.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# TDD Workflow - Discovery & Coordination Skill
|
|
7
|
+
|
|
8
|
+
## Purpose
|
|
9
|
+
|
|
10
|
+
This skill acts as a **discovery hub** for Test-Driven Development (TDD) in SpecWeave. It:
|
|
11
|
+
- ✅ Detects when users want to implement features with TDD
|
|
12
|
+
- ✅ Asks user preference for TDD workflow enforcement
|
|
13
|
+
- ✅ Routes to appropriate TDD tools (commands vs agent)
|
|
14
|
+
- ✅ Provides TDD education and best practices
|
|
15
|
+
|
|
16
|
+
**NOT a full TDD implementation** - delegates to:
|
|
17
|
+
- `tdd-orchestrator` agent (deep TDD expertise)
|
|
18
|
+
- `/specweave.tdd-cycle` command (enforced red-green-refactor)
|
|
19
|
+
- Individual phase commands (`/specweave.tdd-red`, `/specweave.tdd-green`, `/specweave.tdd-refactor`)
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## When to Activate
|
|
24
|
+
|
|
25
|
+
**Automatic activation when user mentions**:
|
|
26
|
+
- "implement with TDD"
|
|
27
|
+
- "use test-driven development"
|
|
28
|
+
- "red-green-refactor"
|
|
29
|
+
- "write tests first"
|
|
30
|
+
- "test-first approach"
|
|
31
|
+
- "Kent Beck style"
|
|
32
|
+
- "TDD discipline"
|
|
33
|
+
|
|
34
|
+
**Example triggers**:
|
|
35
|
+
```
|
|
36
|
+
User: "Implement authentication with TDD"
|
|
37
|
+
User: "Use test-driven development for this feature"
|
|
38
|
+
User: "Let's do red-green-refactor for the payment module"
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## Workflow
|
|
44
|
+
|
|
45
|
+
### Step 1: Detect TDD Intent
|
|
46
|
+
|
|
47
|
+
When activated, confirm user's TDD intent:
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
"I detected you want to use Test-Driven Development (TDD).
|
|
51
|
+
|
|
52
|
+
TDD follows the red-green-refactor cycle:
|
|
53
|
+
🔴 RED: Write a failing test first
|
|
54
|
+
🟢 GREEN: Write minimal code to make it pass
|
|
55
|
+
🔵 REFACTOR: Improve code while keeping tests green
|
|
56
|
+
|
|
57
|
+
Would you like to:"
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### Step 2: Offer TDD Options
|
|
61
|
+
|
|
62
|
+
**Use AskUserQuestion tool** to present choices:
|
|
63
|
+
|
|
64
|
+
```typescript
|
|
65
|
+
Question: "How would you like to implement TDD for this feature?"
|
|
66
|
+
Options:
|
|
67
|
+
1. "Guided TDD Workflow (/specweave.tdd-cycle)"
|
|
68
|
+
Description: "Full red-green-refactor cycle with gates between phases.
|
|
69
|
+
Can't proceed to GREEN without RED test. Most rigorous."
|
|
70
|
+
|
|
71
|
+
2. "Expert TDD Agent (tdd-orchestrator)"
|
|
72
|
+
Description: "Deep TDD expertise with flexible workflow.
|
|
73
|
+
Best for complex scenarios, property-based testing, legacy code."
|
|
74
|
+
|
|
75
|
+
3. "Manual TDD (I'll guide myself)"
|
|
76
|
+
Description: "I'll implement TDD discipline myself.
|
|
77
|
+
You provide TDD advice when needed."
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
### Step 3: Route Based on Choice
|
|
81
|
+
|
|
82
|
+
**Option 1: Guided TDD Workflow**
|
|
83
|
+
```bash
|
|
84
|
+
Invoke: /specweave.tdd-cycle
|
|
85
|
+
|
|
86
|
+
This command orchestrates:
|
|
87
|
+
1. /specweave.tdd-red - Write failing test (blocks until red)
|
|
88
|
+
2. /specweave.tdd-green - Implement minimal code (blocks until green)
|
|
89
|
+
3. /specweave.tdd-refactor - Refactor safely (tests must stay green)
|
|
90
|
+
|
|
91
|
+
Benefits:
|
|
92
|
+
- Enforces discipline (gates prevent skipping phases)
|
|
93
|
+
- Perfect for beginners or teams learning TDD
|
|
94
|
+
- Integrates with SpecWeave increment workflow
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
**Option 2: Expert TDD Agent**
|
|
98
|
+
```bash
|
|
99
|
+
Invoke: tdd-orchestrator agent (via Task tool)
|
|
100
|
+
|
|
101
|
+
This agent provides:
|
|
102
|
+
- Multi-agent TDD workflow coordination
|
|
103
|
+
- Property-based testing (QuickCheck, Hypothesis)
|
|
104
|
+
- Mutation testing for test quality
|
|
105
|
+
- Legacy code refactoring with safety nets
|
|
106
|
+
- BDD/ATDD integration
|
|
107
|
+
- AI-assisted test generation
|
|
108
|
+
|
|
109
|
+
Benefits:
|
|
110
|
+
- Flexible workflow (not rigid gates)
|
|
111
|
+
- Advanced techniques (property-based, mutation)
|
|
112
|
+
- Best for experienced TDD practitioners
|
|
113
|
+
- Handles complex scenarios
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
**Option 3: Manual TDD**
|
|
117
|
+
```bash
|
|
118
|
+
Provide TDD best practices:
|
|
119
|
+
|
|
120
|
+
"I'll implement your feature while following TDD principles.
|
|
121
|
+
I'll ensure:
|
|
122
|
+
- Tests written before implementation
|
|
123
|
+
- Minimal code to pass tests
|
|
124
|
+
- Refactoring with test coverage
|
|
125
|
+
- Clear red→green→refactor progression
|
|
126
|
+
|
|
127
|
+
I'll notify you at each phase transition."
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
---
|
|
131
|
+
|
|
132
|
+
## TDD Best Practices (Reference)
|
|
133
|
+
|
|
134
|
+
### Red Phase 🔴
|
|
135
|
+
- Write the simplest test that fails
|
|
136
|
+
- Test should compile but fail on assertion
|
|
137
|
+
- Focus on WHAT, not HOW
|
|
138
|
+
- One test at a time
|
|
139
|
+
|
|
140
|
+
### Green Phase 🟢
|
|
141
|
+
- Write minimal code to pass the test
|
|
142
|
+
- Embrace "fake it till you make it"
|
|
143
|
+
- Hardcoded values acceptable initially
|
|
144
|
+
- Get to green FAST
|
|
145
|
+
|
|
146
|
+
### Refactor Phase 🔵
|
|
147
|
+
- Improve code structure
|
|
148
|
+
- Extract methods, remove duplication
|
|
149
|
+
- Tests must stay green
|
|
150
|
+
- Commit after each refactor
|
|
151
|
+
|
|
152
|
+
### TDD Anti-Patterns to Avoid
|
|
153
|
+
- ❌ Writing implementation before test
|
|
154
|
+
- ❌ Writing multiple tests before implementation
|
|
155
|
+
- ❌ Over-engineering in GREEN phase
|
|
156
|
+
- ❌ Refactoring without tests passing
|
|
157
|
+
- ❌ Skipping refactor phase
|
|
158
|
+
|
|
159
|
+
---
|
|
160
|
+
|
|
161
|
+
## Integration with SpecWeave
|
|
162
|
+
|
|
163
|
+
**In Increment Workflow**:
|
|
164
|
+
```
|
|
165
|
+
/specweave.inc "Authentication feature" → spec.md created
|
|
166
|
+
↓
|
|
167
|
+
User: "Implement with TDD"
|
|
168
|
+
↓
|
|
169
|
+
tdd-workflow skill activates → offers options
|
|
170
|
+
↓
|
|
171
|
+
User chooses: Guided TDD Workflow
|
|
172
|
+
↓
|
|
173
|
+
/specweave.tdd-cycle invoked
|
|
174
|
+
↓
|
|
175
|
+
Phase 1: RED - tests.md updated with failing tests
|
|
176
|
+
Phase 2: GREEN - tasks.md implementation
|
|
177
|
+
Phase 3: REFACTOR - code improvements
|
|
178
|
+
↓
|
|
179
|
+
Increment tasks completed with TDD discipline
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
**With spec-driven-debugging**:
|
|
183
|
+
```
|
|
184
|
+
Bug found → spec-driven-debugging activates
|
|
185
|
+
↓
|
|
186
|
+
Fix proposal includes: "Add regression test first (TDD RED phase)"
|
|
187
|
+
↓
|
|
188
|
+
tdd-workflow can coordinate test-first bug fixes
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
---
|
|
192
|
+
|
|
193
|
+
## Commands Reference
|
|
194
|
+
|
|
195
|
+
### Full Cycle
|
|
196
|
+
- `/specweave.tdd-cycle` - Complete red-green-refactor orchestration
|
|
197
|
+
|
|
198
|
+
### Individual Phases
|
|
199
|
+
- `/specweave.tdd-red` - RED phase only (write failing test)
|
|
200
|
+
- `/specweave.tdd-green` - GREEN phase only (make test pass)
|
|
201
|
+
- `/specweave.tdd-refactor` - REFACTOR phase only (improve code)
|
|
202
|
+
|
|
203
|
+
### When to Use Each
|
|
204
|
+
|
|
205
|
+
**Use /specweave.tdd-cycle when**:
|
|
206
|
+
- ✅ Starting new feature from scratch
|
|
207
|
+
- ✅ Learning TDD or teaching team
|
|
208
|
+
- ✅ Want enforced discipline (gates)
|
|
209
|
+
- ✅ Working in increment-based workflow
|
|
210
|
+
|
|
211
|
+
**Use individual commands when**:
|
|
212
|
+
- ✅ Already in middle of TDD cycle
|
|
213
|
+
- ✅ Need to repeat a phase (e.g., multiple refactors)
|
|
214
|
+
- ✅ Want finer control over cycle
|
|
215
|
+
- ✅ Integrating with other workflows
|
|
216
|
+
|
|
217
|
+
**Use tdd-orchestrator agent when**:
|
|
218
|
+
- ✅ Complex scenarios (property-based testing)
|
|
219
|
+
- ✅ Legacy code refactoring
|
|
220
|
+
- ✅ Multi-agent coordination needed
|
|
221
|
+
- ✅ Advanced TDD techniques required
|
|
222
|
+
|
|
223
|
+
---
|
|
224
|
+
|
|
225
|
+
## Example Interactions
|
|
226
|
+
|
|
227
|
+
### Example 1: Beginner TDD User
|
|
228
|
+
|
|
229
|
+
**User**: "I want to implement user registration with TDD"
|
|
230
|
+
|
|
231
|
+
**tdd-workflow**:
|
|
232
|
+
```
|
|
233
|
+
Great! TDD (Test-Driven Development) follows red-green-refactor:
|
|
234
|
+
🔴 RED: Write failing test
|
|
235
|
+
🟢 GREEN: Make it pass
|
|
236
|
+
🔵 REFACTOR: Improve code
|
|
237
|
+
|
|
238
|
+
[Presents AskUserQuestion with 3 options]
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
**User selects**: "Guided TDD Workflow"
|
|
242
|
+
|
|
243
|
+
**tdd-workflow**:
|
|
244
|
+
```
|
|
245
|
+
Perfect! I'm invoking /specweave.tdd-cycle to orchestrate your TDD workflow.
|
|
246
|
+
|
|
247
|
+
🔴 Starting RED phase...
|
|
248
|
+
Write a failing test for user registration. Let me create the test skeleton:
|
|
249
|
+
|
|
250
|
+
[Creates test file with failing test]
|
|
251
|
+
|
|
252
|
+
✅ Test written and failing. Run: npm test
|
|
253
|
+
❌ Expected failure confirmed.
|
|
254
|
+
|
|
255
|
+
Ready to proceed to GREEN phase? (type 'yes' or run /specweave.tdd-green)
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
---
|
|
259
|
+
|
|
260
|
+
### Example 2: Experienced TDD User
|
|
261
|
+
|
|
262
|
+
**User**: "Refactor auth module with TDD safety nets"
|
|
263
|
+
|
|
264
|
+
**tdd-workflow**:
|
|
265
|
+
```
|
|
266
|
+
I see you want to refactor with TDD discipline.
|
|
267
|
+
|
|
268
|
+
[Presents AskUserQuestion]
|
|
269
|
+
```
|
|
270
|
+
|
|
271
|
+
**User selects**: "Expert TDD Agent"
|
|
272
|
+
|
|
273
|
+
**tdd-workflow**:
|
|
274
|
+
```
|
|
275
|
+
Invoking tdd-orchestrator agent for advanced refactoring support...
|
|
276
|
+
|
|
277
|
+
[tdd-orchestrator agent takes over with:]
|
|
278
|
+
- Characterization tests for legacy code
|
|
279
|
+
- Golden master testing
|
|
280
|
+
- Seam identification
|
|
281
|
+
- Incremental refactoring with safety nets
|
|
282
|
+
```
|
|
283
|
+
|
|
284
|
+
---
|
|
285
|
+
|
|
286
|
+
### Example 3: Mid-Cycle TDD
|
|
287
|
+
|
|
288
|
+
**User**: "I'm in GREEN phase, tests passing, ready to refactor"
|
|
289
|
+
|
|
290
|
+
**tdd-workflow**:
|
|
291
|
+
```
|
|
292
|
+
Great! Tests are passing. Time for REFACTOR phase.
|
|
293
|
+
|
|
294
|
+
You can:
|
|
295
|
+
1. Run /specweave.tdd-refactor (guided refactoring)
|
|
296
|
+
2. Refactor manually (I'll verify tests stay green)
|
|
297
|
+
|
|
298
|
+
Which would you prefer?
|
|
299
|
+
```
|
|
300
|
+
|
|
301
|
+
**User**: "I'll refactor manually"
|
|
302
|
+
|
|
303
|
+
**tdd-workflow**:
|
|
304
|
+
```
|
|
305
|
+
Perfect! I'll monitor your refactoring:
|
|
306
|
+
|
|
307
|
+
✅ Tests passing before refactor
|
|
308
|
+
[User refactors code]
|
|
309
|
+
✅ Tests still passing after refactor
|
|
310
|
+
✅ TDD cycle maintained
|
|
311
|
+
|
|
312
|
+
Ready for next feature? Run /specweave.tdd-cycle or continue manually.
|
|
313
|
+
```
|
|
314
|
+
|
|
315
|
+
---
|
|
316
|
+
|
|
317
|
+
## Configuration
|
|
318
|
+
|
|
319
|
+
**Optional**: Customize TDD preferences in `.specweave/config.yaml`:
|
|
320
|
+
|
|
321
|
+
```yaml
|
|
322
|
+
tdd:
|
|
323
|
+
default_workflow: "cycle" # Options: "cycle", "agent", "manual"
|
|
324
|
+
auto_activate: true # Auto-offer TDD on new features
|
|
325
|
+
gates_enabled: true # Enforce phase gates in cycle mode
|
|
326
|
+
mutation_testing: false # Enable mutation testing (requires setup)
|
|
327
|
+
```
|
|
328
|
+
|
|
329
|
+
---
|
|
330
|
+
|
|
331
|
+
## Success Criteria
|
|
332
|
+
|
|
333
|
+
**This skill succeeds when**:
|
|
334
|
+
- ✅ Users are offered TDD workflow when appropriate
|
|
335
|
+
- ✅ TDD choice is explicit (not assumed)
|
|
336
|
+
- ✅ Clear routing to appropriate tool (command vs agent)
|
|
337
|
+
- ✅ TDD education embedded in workflow
|
|
338
|
+
- ✅ Flexible enough for beginners and experts
|
|
339
|
+
- ✅ Integrates seamlessly with SpecWeave increments
|
|
340
|
+
|
|
341
|
+
---
|
|
342
|
+
|
|
343
|
+
## Related Skills & Agents
|
|
344
|
+
|
|
345
|
+
**Skills**:
|
|
346
|
+
- `spec-driven-debugging` - Bug fixes can use TDD approach
|
|
347
|
+
- `increment-planner` - Increments can specify TDD as methodology
|
|
348
|
+
- `e2e-playwright` - E2E tests can follow TDD for acceptance tests
|
|
349
|
+
|
|
350
|
+
**Agents**:
|
|
351
|
+
- `tdd-orchestrator` - Deep TDD expertise (invoked by this skill)
|
|
352
|
+
- `qa-lead` - Test strategy overlaps with TDD principles
|
|
353
|
+
|
|
354
|
+
**Commands**:
|
|
355
|
+
- `/specweave.tdd-cycle` - Full red-green-refactor orchestration
|
|
356
|
+
- `/specweave.tdd-red`, `/specweave.tdd-green`, `/specweave.tdd-refactor` - Individual phases
|
|
357
|
+
|
|
358
|
+
---
|
|
359
|
+
|
|
360
|
+
## Summary
|
|
361
|
+
|
|
362
|
+
**tdd-workflow** is a lightweight discovery skill that:
|
|
363
|
+
|
|
364
|
+
1. ✅ **Detects** TDD intent from user messages
|
|
365
|
+
2. ✅ **Asks** user preference for TDD enforcement level
|
|
366
|
+
3. ✅ **Routes** to appropriate tool (guided commands vs expert agent)
|
|
367
|
+
4. ✅ **Educates** on TDD principles and best practices
|
|
368
|
+
5. ✅ **Integrates** with SpecWeave increment workflow
|
|
369
|
+
|
|
370
|
+
**Not a replacement for**:
|
|
371
|
+
- `tdd-orchestrator` agent (deep expertise)
|
|
372
|
+
- `/specweave.tdd-*` commands (workflow enforcement)
|
|
373
|
+
|
|
374
|
+
**Instead, it's the entry point** that helps users choose the right TDD tool for their context.
|
|
375
|
+
|
|
376
|
+
---
|
|
377
|
+
|
|
378
|
+
**Keywords**: TDD, test-driven development, red-green-refactor, test-first, Kent Beck, TDD cycle, property-based testing, mutation testing, refactoring, test discipline
|
|
@@ -142,7 +142,7 @@ SpecWeave works with:
|
|
|
142
142
|
## 📚 Learn More
|
|
143
143
|
|
|
144
144
|
- **Documentation**: https://spec-weave.com
|
|
145
|
-
- **GitHub**: https://github.com/
|
|
145
|
+
- **GitHub**: https://github.com/anton-abyzov/specweave
|
|
146
146
|
- **Quick Reference**: See `CLAUDE.md` in your project
|
|
147
147
|
- **Examples**: Check `.specweave/docs/` after creating your first increment
|
|
148
148
|
|