mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-03-01 15:03:57 +08:00
Add TDD Structure Validation and Verification Phases with Comprehensive Reporting
- Introduced Phase 6: TDD Structure Validation to ensure compliance with TDD workflow standards, including task structure validation, dependency checks, and user configuration verification. - Implemented Phase 7: TDD Verification for full compliance checks, including task chain structure validation, coverage analysis, and TDD cycle verification. - Generated detailed TDD compliance reports with quality gate recommendations based on objective criteria. - Added documentation for new commands and workflows in the Claude Commands index.
This commit is contained in:
@@ -31,8 +31,8 @@
|
||||
| **team-coordinate** | Universal team coordinator (dynamic roles) | `/team-coordinate` |
|
||||
| **team-lifecycle** | Full lifecycle team | `/team-lifecycle` |
|
||||
| **team-planex** | Plan-and-execute team | `/team-planex` |
|
||||
| **workflow-plan** | Unified planning skill | `/workflow:plan` |
|
||||
| **workflow-execute** | Agent-coordinated execution | `/workflow:execute` |
|
||||
| **workflow-plan** | Unified planning skill | `/workflow-plan` |
|
||||
| **workflow-execute** | Agent-coordinated execution | `/workflow-execute` |
|
||||
| **memory-capture** | Memory capture | `/memory-capture` |
|
||||
| **review-code** | Multi-dimensional code review | `/review-code` |
|
||||
| **brainstorm** | Brainstorming | `/brainstorm` |
|
||||
@@ -176,14 +176,14 @@ memory/
|
||||
|
||||
```bash
|
||||
# Quick task
|
||||
/workflow:lite-plan "Fix login bug"
|
||||
/workflow-lite-plan "Fix login bug"
|
||||
|
||||
# Full development
|
||||
/workflow:plan "Add user notifications"
|
||||
/workflow:execute
|
||||
/workflow-plan "Add user notifications"
|
||||
/workflow-execute
|
||||
|
||||
# TDD development
|
||||
/workflow:tdd "Implement payment processing"
|
||||
/workflow-tdd "Implement payment processing"
|
||||
```
|
||||
|
||||
### 3. Use Memory Management
|
||||
@@ -231,7 +231,7 @@ memory/
|
||||
2. **Workflow Selection**:
|
||||
- Super simple → `workflow-lite-plan`
|
||||
- Complex features → `workflow-plan` → `workflow-execute`
|
||||
- TDD → `workflow-tdd`
|
||||
- TDD → `workflow-tdd-plan`
|
||||
- Test fixes → `workflow-test-fix`
|
||||
|
||||
3. **Memory Management**:
|
||||
|
||||
@@ -17,11 +17,11 @@
|
||||
|
||||
| Skill | Function | Trigger |
|
||||
|-------|----------|---------|
|
||||
| `workflow-plan` | Unified planning skill (4-stage workflow) | `/workflow:plan` |
|
||||
| `workflow-execute` | Agent-coordinated execution | `/workflow:execute` |
|
||||
| `workflow-lite-plan` | Lightweight quick planning | `/workflow:lite-plan` |
|
||||
| `workflow-multi-cli-plan` | Multi-CLI collaborative planning | `/workflow:multi-cli-plan` |
|
||||
| `workflow-tdd` | TDD workflow | `/workflow:tdd` |
|
||||
| `workflow-plan` | Unified planning skill (4-stage workflow) | `/workflow-plan` |
|
||||
| `workflow-execute` | Agent-coordinated execution | `/workflow-execute` |
|
||||
| `workflow-lite-plan` | Lightweight quick planning | `/workflow-lite-plan` |
|
||||
| `workflow-multi-cli-plan` | Multi-CLI collaborative planning | `/workflow-multi-cli-plan` |
|
||||
| `workflow-tdd-plan` | TDD workflow | `/workflow-tdd` |
|
||||
| `workflow-test-fix` | Test-fix workflow | `/workflow:test-fix` |
|
||||
| `workflow-skill-designer` | Skill design workflow | `/workflow:skill-designer` |
|
||||
| `workflow-wave-plan` | Wave batch planning | `/workflow:wave-plan` |
|
||||
@@ -34,8 +34,8 @@
|
||||
|
||||
**Trigger**:
|
||||
```shell
|
||||
/workflow:plan <task-description>
|
||||
/workflow:plan-verify --session <session-id>
|
||||
/workflow-plan <task-description>
|
||||
/workflow-plan-verify --session <session-id>
|
||||
/workflow:replan --session <session-id> [task-id] "requirements"
|
||||
```
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
**Mode Detection**:
|
||||
```javascript
|
||||
// Skill trigger determines mode
|
||||
skillName === 'workflow:plan-verify' → 'verify'
|
||||
skillName === 'workflow-plan-verify' → 'verify'
|
||||
skillName === 'workflow:replan' → 'replan'
|
||||
default → 'plan'
|
||||
```
|
||||
@@ -107,10 +107,10 @@ Plan Confirmation (User Decision Gate):
|
||||
|
||||
**Trigger**:
|
||||
```shell
|
||||
/workflow:execute
|
||||
/workflow:execute --resume-session="WFS-auth"
|
||||
/workflow:execute --yes
|
||||
/workflow:execute -y --with-commit
|
||||
/workflow-execute
|
||||
/workflow-execute --resume-session="WFS-auth"
|
||||
/workflow-execute --yes
|
||||
/workflow-execute -y --with-commit
|
||||
```
|
||||
|
||||
**Features**:
|
||||
@@ -189,7 +189,7 @@ Phase 5: Completion
|
||||
|
||||
**Trigger**:
|
||||
```shell
|
||||
/workflow:lite-plan <simple-task>
|
||||
/workflow-lite-plan <simple-task>
|
||||
```
|
||||
|
||||
**Features**:
|
||||
@@ -211,7 +211,7 @@ Phase 5: Completion
|
||||
|
||||
**Trigger**:
|
||||
```shell
|
||||
/workflow:multi-cli-plan <task>
|
||||
/workflow-multi-cli-plan <task>
|
||||
```
|
||||
|
||||
**Features**:
|
||||
@@ -226,13 +226,13 @@ Phase 5: Completion
|
||||
|
||||
---
|
||||
|
||||
### workflow-tdd
|
||||
### workflow-tdd-plan
|
||||
|
||||
**One-Liner**: TDD workflow — Test-driven development process
|
||||
|
||||
**Trigger**:
|
||||
```shell
|
||||
/workflow:tdd <feature-description>
|
||||
/workflow-tdd <feature-description>
|
||||
```
|
||||
|
||||
**Features**:
|
||||
@@ -334,7 +334,7 @@ Wave 2: Issue 6-10 → Parallel planning → Parallel execution
|
||||
1. **Choose the right workflow**:
|
||||
- Super simple tasks → `workflow-lite-plan`
|
||||
- Complex features → `workflow-plan` → `workflow-execute`
|
||||
- TDD development → `workflow-tdd`
|
||||
- TDD development → `workflow-tdd-plan`
|
||||
- Test fixes → `workflow-test-fix`
|
||||
- Skill creation → `workflow-skill-designer`
|
||||
|
||||
|
||||
@@ -627,7 +627,7 @@ Skill(skill="team-ultra-analyze")
|
||||
|
||||
**Purpose**: Unified planning skill with 4-phase workflow
|
||||
|
||||
**Triggers**: `workflow:plan`, `workflow:plan-verify`, `workflow:replan`
|
||||
**Triggers**: `workflow-plan`, `workflow-plan-verify`, `workflow:replan`
|
||||
|
||||
**Description**: Plan verification and interactive replanning.
|
||||
|
||||
@@ -655,7 +655,7 @@ Skill(skill="workflow-plan")
|
||||
|
||||
**Purpose**: Lightweight planning and execution skill
|
||||
|
||||
**Triggers**: `workflow:lite-plan`, `workflow:lite-execute`
|
||||
**Triggers**: `workflow-lite-plan`, `workflow:lite-execute`
|
||||
|
||||
**Description**: Route to lite-plan or lite-execute with prompt enhancement.
|
||||
|
||||
@@ -677,7 +677,7 @@ Skill(skill="workflow-lite-plan")
|
||||
|
||||
**Purpose**: Multi-CLI collaborative planning and execution skill
|
||||
|
||||
**Triggers**: `workflow:multi-cli-plan`, `workflow:lite-execute`
|
||||
**Triggers**: `workflow-multi-cli-plan`, `workflow:lite-execute`
|
||||
|
||||
**Description**: Route to multi-cli-plan or lite-execute with prompt enhancement.
|
||||
|
||||
@@ -699,7 +699,7 @@ Skill(skill="workflow-multi-cli-plan")
|
||||
|
||||
**Purpose**: Coordinate agent execution for workflow tasks
|
||||
|
||||
**Triggers**: `workflow:execute`
|
||||
**Triggers**: `workflow-execute`
|
||||
|
||||
**Description**: Automatic session discovery, parallel task processing, and status tracking.
|
||||
|
||||
@@ -716,11 +716,11 @@ Skill(skill="workflow-execute")
|
||||
|
||||
---
|
||||
|
||||
### workflow-tdd
|
||||
### workflow-tdd-plan
|
||||
|
||||
**Purpose**: Unified TDD workflow skill
|
||||
|
||||
**Triggers**: `workflow:tdd-plan`, `workflow:tdd-verify`
|
||||
**Triggers**: `workflow-tdd-plan`, `workflow-tdd-verify`
|
||||
|
||||
**Description**: 6-phase TDD planning with Red-Green-Refactor task chain generation.
|
||||
|
||||
@@ -740,7 +740,7 @@ Skill(skill="workflow-execute")
|
||||
**Pattern**: Red-Green-Refactor
|
||||
|
||||
```bash
|
||||
Skill(skill="workflow-tdd")
|
||||
Skill(skill="workflow-tdd-plan")
|
||||
```
|
||||
|
||||
---
|
||||
@@ -749,7 +749,7 @@ Skill(skill="workflow-tdd")
|
||||
|
||||
**Purpose**: Unified test-fix pipeline
|
||||
|
||||
**Triggers**: `workflow:test-fix-gen`, `workflow:test-cycle-execute`, `test fix workflow`
|
||||
**Triggers**: `workflow-test-fix`, `workflow-test-fix`, `test fix workflow`
|
||||
|
||||
**Description**: Combines test generation with iterative test-cycle execution.
|
||||
|
||||
@@ -851,9 +851,9 @@ Skill(skill="workflow-execute")
|
||||
**Use Case**: Test-driven development with Red-Green-Refactor cycle
|
||||
|
||||
```bash
|
||||
Skill(skill="workflow-tdd", args="--mode tdd-plan")
|
||||
Skill(skill="workflow-tdd-plan", args="--mode tdd-plan")
|
||||
Skill(skill="workflow-execute")
|
||||
Skill(skill="workflow-tdd", args="--mode tdd-verify")
|
||||
Skill(skill="workflow-tdd-plan", args="--mode tdd-verify")
|
||||
```
|
||||
|
||||
---
|
||||
@@ -1028,7 +1028,7 @@ Skill(skill="skill-tuning")
|
||||
| Category | Skills |
|
||||
|----------|--------|
|
||||
| Session Commands | workflow session start, resume, list, complete, solidify, sync |
|
||||
| Dependent Skills | workflow-plan, workflow-tdd, workflow-test-fix |
|
||||
| Dependent Skills | workflow-plan, workflow-tdd-plan, workflow-test-fix |
|
||||
|
||||
### Issue Management
|
||||
|
||||
@@ -1055,12 +1055,12 @@ Quick reference for skill triggers:
|
||||
| `brainstorm`, `头脑风暴` | brainstorm |
|
||||
| `review code`, `code review`, `审查代码` | review-code |
|
||||
| `manage issue` | issue-manage |
|
||||
| `workflow:plan` | workflow-plan |
|
||||
| `workflow:execute` | workflow-execute |
|
||||
| `workflow:lite-plan` | workflow-lite-plan |
|
||||
| `workflow:multi-cli-plan` | workflow-multi-cli-plan |
|
||||
| `workflow:tdd-plan` | workflow-tdd |
|
||||
| `workflow:test-fix-gen` | workflow-test-fix |
|
||||
| `workflow-plan` | workflow-plan |
|
||||
| `workflow-execute` | workflow-execute |
|
||||
| `workflow-lite-plan` | workflow-lite-plan |
|
||||
| `workflow-multi-cli-plan` | workflow-multi-cli-plan |
|
||||
| `workflow-tdd-plan` | workflow-tdd-plan |
|
||||
| `workflow-test-fix` | workflow-test-fix |
|
||||
| `team lifecycle` | team-lifecycle-v4 |
|
||||
| `team brainstorm` | team-brainstorm |
|
||||
| `team frontend` | team-frontend |
|
||||
|
||||
@@ -54,12 +54,12 @@ Skills are reusable, domain-specific capabilities that CCW can execute. Each ski
|
||||
|
||||
| Skill | Triggers | Description |
|
||||
|-------|----------|-------------|
|
||||
| [workflow-plan](./core-skills.md#workflow-plan) | `workflow:plan` | 4-phase planning with verification |
|
||||
| [workflow-lite-plan](./core-skills.md#workflow-lite-plan) | `workflow:lite-plan` | Lightweight planning |
|
||||
| [workflow-multi-cli-plan](./core-skills.md#workflow-multi-cli-plan) | `workflow:multi-cli-plan` | Multi-CLI collaborative planning |
|
||||
| [workflow-execute](./core-skills.md#workflow-execute) | `workflow:execute` | Task execution coordination |
|
||||
| [workflow-tdd](./core-skills.md#workflow-tdd) | `workflow:tdd-plan` | TDD with Red-Green-Refactor |
|
||||
| [workflow-test-fix](./core-skills.md#workflow-test-fix) | `workflow:test-fix-gen` | Test-fix pipeline |
|
||||
| [workflow-plan](./core-skills.md#workflow-plan) | `workflow-plan` | 4-phase planning with verification |
|
||||
| [workflow-lite-plan](./core-skills.md#workflow-lite-plan) | `workflow-lite-plan` | Lightweight planning |
|
||||
| [workflow-multi-cli-plan](./core-skills.md#workflow-multi-cli-plan) | `workflow-multi-cli-plan` | Multi-CLI collaborative planning |
|
||||
| [workflow-execute](./core-skills.md#workflow-execute) | `workflow-execute` | Task execution coordination |
|
||||
| [workflow-tdd-plan](./core-skills.md#workflow-tdd-plan) | `workflow-tdd-plan` | TDD with Red-Green-Refactor |
|
||||
| [workflow-test-fix](./core-skills.md#workflow-test-fix) | `workflow-test-fix` | Test-fix pipeline |
|
||||
| [workflow-skill-designer](./core-skills.md#workflow-skill-designer) | `design workflow skill` | Meta-skill for workflow creation |
|
||||
|
||||
## Workflow Combinations
|
||||
@@ -84,9 +84,9 @@ Skill(skill="workflow-execute")
|
||||
|
||||
#### Test-Driven Development
|
||||
```bash
|
||||
Skill(skill="workflow-tdd", args="--mode tdd-plan")
|
||||
Skill(skill="workflow-tdd-plan", args="--mode tdd-plan")
|
||||
Skill(skill="workflow-execute")
|
||||
Skill(skill="workflow-tdd", args="--mode tdd-verify")
|
||||
Skill(skill="workflow-tdd-plan", args="--mode tdd-verify")
|
||||
```
|
||||
|
||||
## Using Skills
|
||||
@@ -180,13 +180,13 @@ ccw brainstorm
|
||||
# - Data refresh intervals
|
||||
|
||||
# Step 2: Plan implementation
|
||||
ccw workflow:plan "Build user dashboard with configurable widgets"
|
||||
ccw workflow-plan "Build user dashboard with configurable widgets"
|
||||
# Outputs: IMPL-001.json with task breakdown
|
||||
|
||||
# Step 3: Execute with team
|
||||
ccw team lifecycle
|
||||
# Or use quick iteration:
|
||||
ccw workflow:lite-plan && ccw workflow:execute
|
||||
ccw workflow-lite-plan && ccw workflow-execute
|
||||
|
||||
# Step 4: Review and refine
|
||||
ccw review-code
|
||||
@@ -206,7 +206,7 @@ ccw workflow:debug-with-file
|
||||
# Creates hypothesis, instruments code, analyzes logs
|
||||
|
||||
# Step 3: Apply fix
|
||||
ccw workflow:execute --task "Fix N+1 query in user endpoint"
|
||||
ccw workflow-execute --task "Fix N+1 query in user endpoint"
|
||||
```
|
||||
|
||||
### Example 3: Code Migration
|
||||
@@ -249,7 +249,7 @@ ccw review-cycle --max-iterations 3
|
||||
|
||||
### Tips for Best Results
|
||||
|
||||
1. **Start Small**: Begin with `workflow:lite-plan` for simple tasks
|
||||
1. **Start Small**: Begin with `workflow-lite-plan` for simple tasks
|
||||
2. **Use Memory**: Capture insights with `memory:capture` for future reference
|
||||
3. **Verify Plans**: Always review generated plans before execution
|
||||
4. **Iterate**: Use `review-cycle` for continuous improvement
|
||||
@@ -264,7 +264,7 @@ Skills use these proven patterns:
|
||||
| Orchestrator + Workers | team-lifecycle-v4 |
|
||||
| Generator-Critic Loop | team-iterdev |
|
||||
| Wave Pipeline | team-planex |
|
||||
| Red-Green-Refactor | workflow-tdd |
|
||||
| Red-Green-Refactor | workflow-tdd-plan |
|
||||
|
||||
::: info See Also
|
||||
- [Core Skills Reference](./core-skills.md) - Detailed skill documentation
|
||||
|
||||
@@ -22,12 +22,12 @@ Quick reference guide for all **32 CCW built-in skills**.
|
||||
|
||||
| Skill | Trigger | Purpose |
|
||||
|-------|---------|---------|
|
||||
| **workflow-plan** | `workflow:plan`, `workflow:plan-verify`, `workflow:replan` | 4-phase planning workflow with verification and interactive replanning |
|
||||
| **workflow-lite-plan** | `workflow:lite-plan`, `workflow:lite-execute` | Lightweight planning and execution skill |
|
||||
| **workflow-multi-cli-plan** | `workflow:multi-cli-plan` | Multi-CLI collaborative planning with ACE context engine |
|
||||
| **workflow-execute** | `workflow:execute` | Coordinate agent execution for workflow tasks |
|
||||
| **workflow-tdd** | `workflow:tdd-plan`, `workflow:tdd-verify` | TDD workflow with Red-Green-Refactor task chain |
|
||||
| **workflow-test-fix** | `workflow:test-fix-gen`, `workflow:test-cycle-execute` | Unified test-fix pipeline with adaptive strategy |
|
||||
| **workflow-plan** | `workflow-plan`, `workflow-plan-verify`, `workflow:replan` | 4-phase planning workflow with verification and interactive replanning |
|
||||
| **workflow-lite-plan** | `workflow-lite-plan`, `workflow:lite-execute` | Lightweight planning and execution skill |
|
||||
| **workflow-multi-cli-plan** | `workflow-multi-cli-plan` | Multi-CLI collaborative planning with ACE context engine |
|
||||
| **workflow-execute** | `workflow-execute` | Coordinate agent execution for workflow tasks |
|
||||
| **workflow-tdd-plan** | `workflow-tdd-plan`, `workflow-tdd-verify` | TDD workflow with Red-Green-Refactor task chain |
|
||||
| **workflow-test-fix** | `workflow-test-fix`, `workflow-test-fix` | Unified test-fix pipeline with adaptive strategy |
|
||||
| **workflow-skill-designer** | `design workflow skill`, `create workflow skill` | Meta-skill for designing orchestrator+phases structured workflow skills |
|
||||
|
||||
## Team Skills
|
||||
@@ -87,7 +87,7 @@ Skill(skill="workflow-plan", args="--mode verify")
|
||||
/ccw "team planex: OAuth2 implementation"
|
||||
|
||||
# Direct skill triggers (in some contexts)
|
||||
workflow:plan
|
||||
workflow-plan
|
||||
team lifecycle
|
||||
```
|
||||
|
||||
@@ -98,12 +98,12 @@ team lifecycle
|
||||
| `brainstorm`, `头脑风暴` | brainstorm |
|
||||
| `review code`, `code review`, `审查代码` | review-code |
|
||||
| `workflow:review-cycle` | review-cycle |
|
||||
| `workflow:plan` | workflow-plan |
|
||||
| `workflow:lite-plan` | workflow-lite-plan |
|
||||
| `workflow:multi-cli-plan` | workflow-multi-cli-plan |
|
||||
| `workflow:execute` | workflow-execute |
|
||||
| `workflow:tdd-plan` | workflow-tdd |
|
||||
| `workflow:test-fix-gen` | workflow-test-fix |
|
||||
| `workflow-plan` | workflow-plan |
|
||||
| `workflow-lite-plan` | workflow-lite-plan |
|
||||
| `workflow-multi-cli-plan` | workflow-multi-cli-plan |
|
||||
| `workflow-execute` | workflow-execute |
|
||||
| `workflow-tdd-plan` | workflow-tdd-plan |
|
||||
| `workflow-test-fix` | workflow-test-fix |
|
||||
| `team lifecycle` | team-lifecycle-v4 (or v5) |
|
||||
| `team planex` | team-planex |
|
||||
| `team iterdev` | team-iterdev |
|
||||
@@ -156,9 +156,9 @@ The latest team-lifecycle-v5 uses the team-worker agent with dynamic role assign
|
||||
| Orchestrator + Workers | team-lifecycle-v4, team-testing, team-quality-assurance |
|
||||
| Generator-Critic Loop | team-iterdev |
|
||||
| Wave Pipeline | team-planex |
|
||||
| Red-Green-Refactor | workflow-tdd |
|
||||
| Red-Green-Refactor | workflow-tdd-plan |
|
||||
| Pure Orchestrator | workflow-plan, workflow-lite-plan |
|
||||
| Progressive Phase Loading | workflow-plan, workflow-tdd, team-lifecycle-v5 |
|
||||
| Progressive Phase Loading | workflow-plan, workflow-tdd-plan, team-lifecycle-v5 |
|
||||
|
||||
::: info See Also
|
||||
- [Core Skills Detail](./core-skills.md) - Detailed skill documentation
|
||||
|
||||
Reference in New Issue
Block a user