From af2c1668e41659b65d242adba555d8d2a595364f Mon Sep 17 00:00:00 2001 From: catlog22 Date: Fri, 17 Oct 2025 19:05:30 +0800 Subject: [PATCH] refactor: rename test-execute to test-cycle-execute for clarity MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Renamed /workflow:test-execute to /workflow:test-cycle-execute to better communicate the iterative cycle nature of the command (test → diagnose → fix → retest). Changes: - Renamed test-execute.md to test-cycle-execute.md - Updated command metadata and document title - Updated 9 internal references within the command file - Updated reference in test-fix-gen.md related commands section 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- ...{test-execute.md => test-cycle-execute.md} | 22 +++++++++---------- .claude/commands/workflow/test-fix-gen.md | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) rename .claude/commands/workflow/{test-execute.md => test-cycle-execute.md} (97%) diff --git a/.claude/commands/workflow/test-execute.md b/.claude/commands/workflow/test-cycle-execute.md similarity index 97% rename from .claude/commands/workflow/test-execute.md rename to .claude/commands/workflow/test-cycle-execute.md index 5c0f70ad..a1a68a2b 100644 --- a/.claude/commands/workflow/test-execute.md +++ b/.claude/commands/workflow/test-cycle-execute.md @@ -1,11 +1,11 @@ --- -name: test-execute +name: test-cycle-execute description: Execute test-fix workflow with dynamic task generation and iterative fix cycles argument-hint: "[--resume-session=\"session-id\"] [--max-iterations=N]" allowed-tools: SlashCommand(*), TodoWrite(*), Read(*), Bash(*), Task(*) --- -# Workflow Test-Execute Command +# Workflow Test-Cycle-Execute Command ## Overview Orchestrates dynamic test-fix workflow execution through iterative cycles of testing, analysis, and fixing. **Unlike standard execute, this command dynamically generates intermediate tasks** during execution based on test results and CLI analysis, enabling adaptive problem-solving. @@ -55,7 +55,7 @@ Orchestrates dynamic test-fix workflow execution through iterative cycles of tes **Clear division of labor between orchestrator and agents:** -| Responsibility | test-execute (Orchestrator) | @test-fix-agent (Executor) | +| Responsibility | test-cycle-execute (Orchestrator) | @test-fix-agent (Executor) | |----------------|----------------------------|---------------------------| | Manage iteration loop | ✅ Controls loop flow | ❌ Executes single task | | Run CLI analysis (Gemini/Qwen) | ✅ Runs between agent tasks | ❌ Not involved | @@ -80,7 +80,7 @@ Orchestrates dynamic test-fix workflow execution through iterative cycles of tes **Resume Mode**: Load existing iteration context from `.process/iteration-state.json` ### Phase 2: Task Execution Loop -**Main execution loop with dynamic task generation (executed by test-execute orchestrator):** +**Main execution loop with dynamic task generation (executed by test-cycle-execute orchestrator):** **Execution Order**: The workflow begins by executing IMPL-001 (test generation) first. Upon successful completion, IMPL-002 (test-fix cycle) is initiated, starting the iterative test-fix loop. @@ -110,7 +110,7 @@ For each task in queue: #### Iteration Structure ``` -Iteration N (managed by test-execute orchestrator): +Iteration N (managed by test-cycle-execute orchestrator): ├── 1. Test Execution │ ├── [Orchestrator] Launch @test-fix-agent with test task │ ├── [Agent] Run test suite @@ -377,7 +377,7 @@ TodoWrite({ ## Agent Context Package -**Generated by test-execute orchestrator before launching agents.** +**Generated by test-cycle-execute orchestrator before launching agents.** The orchestrator assembles this context package from: - Task JSON file (IMPL-*.json) @@ -609,13 +609,13 @@ mv temp.json iteration-state.json ### Basic Usage ```bash # Execute test-fix workflow -/workflow:test-execute +/workflow:test-cycle-execute # Resume interrupted session -/workflow:test-execute --resume-session="WFS-test-user-auth" +/workflow:test-cycle-execute --resume-session="WFS-test-user-auth" # Set custom iteration limit -/workflow:test-execute --max-iterations=10 +/workflow:test-cycle-execute --max-iterations=10 ``` ### Integration with Planning @@ -624,13 +624,13 @@ mv temp.json iteration-state.json /workflow:test-fix-gen WFS-user-auth # 2. Execute with dynamic iteration -/workflow:test-execute +/workflow:test-cycle-execute # 3. Monitor progress /workflow:status # 4. Resume if interrupted -/workflow:test-execute --resume-session="WFS-test-user-auth" +/workflow:test-cycle-execute --resume-session="WFS-test-user-auth" ``` ## Best Practices diff --git a/.claude/commands/workflow/test-fix-gen.md b/.claude/commands/workflow/test-fix-gen.md index a2a71b75..a1008e34 100644 --- a/.claude/commands/workflow/test-fix-gen.md +++ b/.claude/commands/workflow/test-fix-gen.md @@ -336,6 +336,6 @@ See `/workflow:tools:test-task-generate` for detailed specifications. - `/workflow:tools:test-context-gather` - Phase 2 (coverage analysis) - `/workflow:tools:test-concept-enhanced` - Phase 3 (Gemini test analysis) - `/workflow:tools:test-task-generate` - Phase 4 (task generation) -- `/workflow:test-execute` - Execute test-fix workflow with dynamic iteration +- `/workflow:test-cycle-execute` - Execute test-fix workflow with dynamic iteration - `/workflow:execute` - Execute standard workflow tasks - `/workflow:status` - Check progress