mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-14 02:42:04 +08:00
refactor: rename test-execute to test-cycle-execute for clarity
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 <noreply@anthropic.com>
This commit is contained in:
@@ -1,11 +1,11 @@
|
|||||||
---
|
---
|
||||||
name: test-execute
|
name: test-cycle-execute
|
||||||
description: Execute test-fix workflow with dynamic task generation and iterative fix cycles
|
description: Execute test-fix workflow with dynamic task generation and iterative fix cycles
|
||||||
argument-hint: "[--resume-session=\"session-id\"] [--max-iterations=N]"
|
argument-hint: "[--resume-session=\"session-id\"] [--max-iterations=N]"
|
||||||
allowed-tools: SlashCommand(*), TodoWrite(*), Read(*), Bash(*), Task(*)
|
allowed-tools: SlashCommand(*), TodoWrite(*), Read(*), Bash(*), Task(*)
|
||||||
---
|
---
|
||||||
|
|
||||||
# Workflow Test-Execute Command
|
# Workflow Test-Cycle-Execute Command
|
||||||
|
|
||||||
## Overview
|
## 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.
|
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:**
|
**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 |
|
| Manage iteration loop | ✅ Controls loop flow | ❌ Executes single task |
|
||||||
| Run CLI analysis (Gemini/Qwen) | ✅ Runs between agent tasks | ❌ Not involved |
|
| 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`
|
**Resume Mode**: Load existing iteration context from `.process/iteration-state.json`
|
||||||
|
|
||||||
### Phase 2: Task Execution Loop
|
### 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.
|
**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 Structure
|
||||||
```
|
```
|
||||||
Iteration N (managed by test-execute orchestrator):
|
Iteration N (managed by test-cycle-execute orchestrator):
|
||||||
├── 1. Test Execution
|
├── 1. Test Execution
|
||||||
│ ├── [Orchestrator] Launch @test-fix-agent with test task
|
│ ├── [Orchestrator] Launch @test-fix-agent with test task
|
||||||
│ ├── [Agent] Run test suite
|
│ ├── [Agent] Run test suite
|
||||||
@@ -377,7 +377,7 @@ TodoWrite({
|
|||||||
|
|
||||||
## Agent Context Package
|
## 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:
|
The orchestrator assembles this context package from:
|
||||||
- Task JSON file (IMPL-*.json)
|
- Task JSON file (IMPL-*.json)
|
||||||
@@ -609,13 +609,13 @@ mv temp.json iteration-state.json
|
|||||||
### Basic Usage
|
### Basic Usage
|
||||||
```bash
|
```bash
|
||||||
# Execute test-fix workflow
|
# Execute test-fix workflow
|
||||||
/workflow:test-execute
|
/workflow:test-cycle-execute
|
||||||
|
|
||||||
# Resume interrupted session
|
# 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
|
# Set custom iteration limit
|
||||||
/workflow:test-execute --max-iterations=10
|
/workflow:test-cycle-execute --max-iterations=10
|
||||||
```
|
```
|
||||||
|
|
||||||
### Integration with Planning
|
### Integration with Planning
|
||||||
@@ -624,13 +624,13 @@ mv temp.json iteration-state.json
|
|||||||
/workflow:test-fix-gen WFS-user-auth
|
/workflow:test-fix-gen WFS-user-auth
|
||||||
|
|
||||||
# 2. Execute with dynamic iteration
|
# 2. Execute with dynamic iteration
|
||||||
/workflow:test-execute
|
/workflow:test-cycle-execute
|
||||||
|
|
||||||
# 3. Monitor progress
|
# 3. Monitor progress
|
||||||
/workflow:status
|
/workflow:status
|
||||||
|
|
||||||
# 4. Resume if interrupted
|
# 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
|
## Best Practices
|
||||||
@@ -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-context-gather` - Phase 2 (coverage analysis)
|
||||||
- `/workflow:tools:test-concept-enhanced` - Phase 3 (Gemini test analysis)
|
- `/workflow:tools:test-concept-enhanced` - Phase 3 (Gemini test analysis)
|
||||||
- `/workflow:tools:test-task-generate` - Phase 4 (task generation)
|
- `/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:execute` - Execute standard workflow tasks
|
||||||
- `/workflow:status` - Check progress
|
- `/workflow:status` - Check progress
|
||||||
|
|||||||
Reference in New Issue
Block a user