From 52fce757f8b1eee59dcfa52bbd0701c4294d7386 Mon Sep 17 00:00:00 2001 From: catlog22 Date: Sat, 8 Nov 2025 17:17:09 +0800 Subject: [PATCH] refactor: update tdd-plan to use --cli-execute parameter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Change --agent flag to --cli-execute for consistency - Make Agent Mode the default execution mode - Update CLI Mode to use --cli-execute flag - Align with agent-driven task generation architecture - Update Phase 5 command documentation - Update Related Commands section This completes the migration to agent-driven architecture for both /workflow:plan and /workflow:tdd-plan commands. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .claude/commands/workflow/tdd-plan.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.claude/commands/workflow/tdd-plan.md b/.claude/commands/workflow/tdd-plan.md index 8c1c361a..efdeb912 100644 --- a/.claude/commands/workflow/tdd-plan.md +++ b/.claude/commands/workflow/tdd-plan.md @@ -1,7 +1,7 @@ --- name: tdd-plan description: TDD workflow planning with Red-Green-Refactor task chain generation, test-first development structure, and cycle tracking -argument-hint: "[--agent] \"feature description\"|file.md" +argument-hint: "[--cli-execute] \"feature description\"|file.md" allowed-tools: SlashCommand(*), TodoWrite(*), Read(*), Bash(*) --- @@ -12,8 +12,8 @@ allowed-tools: SlashCommand(*), TodoWrite(*), Read(*), Bash(*) **This command is a pure orchestrator**: Execute 5 slash commands in sequence, parse outputs, pass context, and ensure complete TDD workflow creation. **Execution Modes**: -- **Manual Mode** (default): Use `/workflow:tools:task-generate-tdd` -- **Agent Mode** (`--agent`): Use `/workflow:tools:task-generate-tdd --agent` +- **Agent Mode** (default): Use `/workflow:tools:task-generate-tdd` (autonomous agent-driven) +- **CLI Mode** (`--cli-execute`): Use `/workflow:tools:task-generate-tdd --cli-execute` (Gemini/Qwen) ## Core Rules @@ -129,8 +129,8 @@ TEST_FOCUS: [Test scenarios] ### Phase 5: TDD Task Generation **Command**: -- Manual: `/workflow:tools:task-generate-tdd --session [sessionId]` -- Agent: `/workflow:tools:task-generate-tdd --session [sessionId] --agent` +- Agent Mode (default): `/workflow:tools:task-generate-tdd --session [sessionId]` +- CLI Mode (`--cli-execute`): `/workflow:tools:task-generate-tdd --session [sessionId] --cli-execute` **Parse**: Extract feature count, task count (not chain count - tasks now contain internal TDD cycles) @@ -373,8 +373,8 @@ Supports action-planning-agent for more autonomous TDD planning with: - `/workflow:tools:test-context-gather` - Phase 3: Analyze existing test patterns and coverage - `/workflow:tools:conflict-resolution` - Phase 4: Detect and resolve conflicts (auto-triggered if conflict_risk ≥ medium) - `/compact` - Phase 4: Memory optimization (if context approaching limits) -- `/workflow:tools:task-generate-tdd` - Phase 5: Generate TDD task chains with Red-Green-Refactor cycles -- `/workflow:tools:task-generate-tdd --agent` - Phase 5: Generate TDD tasks with agent-driven approach (when `--agent` flag used) +- `/workflow:tools:task-generate-tdd` - Phase 5: Generate TDD tasks with agent-driven approach (default, autonomous) +- `/workflow:tools:task-generate-tdd --cli-execute` - Phase 5: Generate TDD tasks with CLI tools (Gemini/Qwen, when `--cli-execute` flag used) **Follow-up Commands**: - `/workflow:action-plan-verify` - Recommended: Verify TDD plan quality and structure before execution