From 79b3680f8c247989d52dc3b48fcff41c13bb67bc Mon Sep 17 00:00:00 2001 From: catlog22 Date: Fri, 17 Oct 2025 22:37:08 +0800 Subject: [PATCH] docs: simplify task-generate-tdd by removing subtask JSON examples MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .../workflow/tools/task-generate-tdd.md | 51 ------------------- 1 file changed, 51 deletions(-) diff --git a/.claude/commands/workflow/tools/task-generate-tdd.md b/.claude/commands/workflow/tools/task-generate-tdd.md index b93a0c75..196189bc 100644 --- a/.claude/commands/workflow/tools/task-generate-tdd.md +++ b/.claude/commands/workflow/tools/task-generate-tdd.md @@ -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)