docs: simplify task-generate-tdd by removing subtask JSON examples

Remove redundant container and subtask JSON schema examples from TDD task
generation documentation. The command already defaults to task merging with
subtasks only created when complexity requires (>2500 lines or >6 files),
making these detailed schemas unnecessary for standard usage.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
catlog22
2025-10-17 22:37:08 +08:00
parent 9db53a24cd
commit 79b3680f8c

View File

@@ -230,57 +230,6 @@ For each feature, generate task(s) with ID format:
}
```
**Complex Feature Container (IMPL-N.json)** - Only when subtasks needed:
```json
{
"id": "IMPL-N",
"title": "Complex feature with TDD",
"status": "container", // Container status
"meta": {
"type": "feature",
"agent": "@code-developer",
"tdd_workflow": true
},
"context": {
"requirements": ["Complex feature requiring >2500 lines", "Split into subtasks"],
"focus_paths": ["src/feature/"],
"acceptance": ["All subtasks complete TDD cycles"],
"depends_on": []
}
}
```
**Complex Feature Subtask (IMPL-N.M.json)**:
```json
{
"id": "IMPL-N.M",
"title": "Sub-feature with TDD",
"status": "pending",
"meta": {
"type": "feature",
"agent": "@code-developer",
"tdd_workflow": true,
"max_iterations": 3,
"use_codex": false
},
"context": {
"requirements": ["Sub-feature description with TDD phases"],
"tdd_cycles": [{"cycle": 1, "feature": "...", "test_focus": "...", "expected_failure": "..."}],
"focus_paths": ["src/feature/sub/", "tests/feature/sub/"],
"acceptance": ["Tests pass", "Code refactored"],
"parent": "IMPL-N", // Parent task reference
"depends_on": []
},
"flow_control": {
"implementation_approach": [ // Same 3-phase structure as simple task
{"step": 1, "title": "RED Phase", "tdd_phase": "red", "description": "..."},
{"step": 2, "title": "GREEN Phase", "tdd_phase": "green", "description": "..."},
{"step": 3, "title": "REFACTOR Phase", "tdd_phase": "refactor", "description": "..."}
]
}
}
```
**Key JSON Fields Summary**:
- `meta.tdd_workflow`: Must be `true`
- `meta.max_iterations`: Green phase fix cycle limit (default: 3)