CC Workflow Tools is a Claude Code plugin that provides a spec-driven development workflow with Test-Driven Development (TDD) methodology. It implements a structured, opinionated approach to feature development that emphasizes:
The plugin solves the problem of inconsistent feature development by enforcing a rigorous workflow that ensures:
Key Philosophy:
| Command | Description | Usage |
|---|---|---|
/cc_workflow_tools:spec |
Create a new feature specification | /spec <feature_name> "<description>" |
/cc_workflow_tools:execute-wf |
Execute complete workflow from spec to implementation | /execute-wf <spec_file_path> |
/cc_workflow_tools:bug |
Fix a bug using TDD methodology | /bug <description> [--auto] |
/cc_workflow_tools:fix-tests |
Run tests and fix failures with commit context | /fix-tests [--limit N] |
/cc_workflow_tools:init |
Initialize project with specs/ directory | /init |
/cc_workflow_tools:setup-project |
Scaffold new repository with ecosystem integration | /setup-project [--reference ../repo] |
| Command | Description |
|---|---|
/spec:design-validation |
Q&A-driven validation strategy design for a spec |
/spec:build-validation-tool |
Build reusable validation tools in the plugin |
| Command | Description |
|---|---|
/execute-wf:spec-simplify |
Apply YAGNI principles to simplify specs |
/execute-wf:spec-tests |
Generate test specifications from spec |
/execute-wf:spec-review-design |
Review design patterns and architecture |
/execute-wf:spec-review-implementation |
Review implementation decisions and clarity |
/execute-wf:implement-phase |
Implement a spec phase using TDD |
/execute-wf:check-work |
Validate acceptance criteria |
/execute-wf:take-recommendations |
Apply specific review recommendations by section |
The /spec command creates comprehensive technical specifications that serve as the foundation for implementation.
specs/ directoryspecs/YYYY-MM-DD_HH-mm_<feature_name>.md## Phase 1: [Name] (for command compatibility)[COMPLETED: git-sha]/spec:design-validation# Feature Specification
## Overview & Objectives
[Problem statement and goals]
## Current State Analysis
[What exists vs. what's needed]
## Architecture Design
[Conceptual description, mermaid diagrams - NO CODE]
## Configuration & Deployment Changes
- Environment Variables
- Dependencies
- Deployment Files to Update
- Secrets
## Phase 1: [Name]
- Description
- Core Functionality
- Dependencies
- Unit Test Requirements
- Acceptance Criteria
## Phase 2: [Name]
[...]
## Phase N: Clean the House
- Remove dead code
- Update README.md and CLAUDE.md
- Resolve TODOs
The /execute-wf command runs the complete automated workflow from reviewed spec to implemented feature.
Phase 1: Review (review-executor agent)
Phase 2: Implementation (feature-writer agent)
Purpose: Remove unnecessary complexity before implementation
Checklist Areas:
Auto-Apply Categories:
Needs User Approval:
Purpose: Create test guides for TDD implementation
Output: specs/tests_YYYY-MM-DD_<feature_name>.md
For Each Phase:
Purpose: Design improvements and architectural alignment
Sections:
Purpose: Implementation clarity and technical decisions
Format: Table with Options, Benefits, Tradeoffs, Complexity
Sections (continuing numbering): 5, 6, 7…
Purpose: Apply specific recommendations from reviews
Usage: /execute-wf:take-recommendations sections: 1, 3, 5
Process:
Purpose: TDD-based phase implementation
7-Step Pattern Per Phase:
[COMPLETED: git-sha])Modes:
--auto): Proceeds without pausingPurpose: Validate implementation against acceptance criteria
Analysis Phases:
Model: Opus (green) Role: Creates technical specifications from architectural designs
Responsibilities:
/implement-phase compatibilityInvoked By:
/spec commandModel: Sonnet (yellow) Role: Research validation tools and strategies
Responsibilities:
Key Capability: Multi-tool orchestration for true E2E validation using real data
Model: Opus (cyan) Role: Feature feasibility analysis and solution design
Responsibilities:
Output: Options with pros/cons, recommended solution, implementation roadmap
Model: Sonnet (purple) Role: Orchestrates the spec review phase
Execution Pattern:
Key Feature: Intelligent filtering - auto-applies safe recommendations, pauses for architectural decisions
Model: Opus (pink) Role: Comprehensive test generation following TDD
Critical First Step: Check for repository-specific test documentation in /tests
Process:
Test Quality Standards:
Model: Sonnet (blue) Role: Implements feature phases from reviewed specs
Execution Model: Internal loop processing all phases in single invocation
Workflow:
Task Routing:
/execute-wf:implement-phase --auto/execute-wf:check-workTermination:
Location: specs/
Naming: YYYY-MM-DD_HH-mm_<feature_name>.md
Evolution:
/spec - initial comprehensive specspec-simplify - YAGNI appliedspec-review-design - Pythonic improvementsspec-review-implementation - decisions madeimplement-phase - [COMPLETED: sha] addedLocation: specs/
Naming: tests_YYYY-MM-DD_<feature_name>.md
Created By: spec-tests
Contains:
Used During: Implementation phase only
Structure:
Dependencies: Phase N blocks Phase N+1; Last phase blocks Validation
Used For: Tracking review decisions
Commit Patterns:
flowchart TB
subgraph Init["Initialization"]
I1["/init"] --> I2["specs/ directory created"]
end
subgraph SpecCreation["Spec Creation"]
S1["/spec feature description"] --> S2["Analyze codebase"]
S2 --> S3["Create spec file"]
S3 --> S4["/spec:design-validation"]
S4 --> S5["Q&A validation needs"]
S5 --> S6["validation-researcher agent"]
S6 --> S7["Add validation phase to spec"]
end
subgraph ExecuteWF["Execute Workflow"]
E1["/execute-wf spec.md"] --> E2["Check prerequisites"]
E2 --> E3["review-executor agent"]
subgraph ReviewPhase["Review Phase"]
R1["spec-simplify --auto-apply"]
R2["spec-tests"]
R3["spec-review-design --auto-apply"]
R4["spec-review-implementation --auto-apply"]
R1 --> R2 --> R3 --> R4
end
E3 --> R1
R4 --> E4["Create beads epic + tasks"]
E4 --> E5["feature-writer agent"]
subgraph ImplPhase["Implementation Phase"]
P1["Query beads ready task"]
P2["implement-phase --auto"]
P3["TDD: tests -> code -> commit"]
P4["Mark phase COMPLETED"]
P5["check-work validation"]
P1 --> P2 --> P3 --> P4
P4 -->|"More phases"| P1
P4 -->|"All done"| P5
end
E5 --> P1
P5 --> E6["Close epic"]
end
I2 --> S1
S7 --> E1
E6 --> Done["Feature Complete"]
flowchart TB
Start(["/spec feature_name description"]) --> A1["Analyze existing codebase"]
A1 --> A2["Check specs/ for existing patterns"]
A1 --> A3["Examine src/ structure"]
A2 --> B1["Generate spec file"]
A3 --> B1
B1 --> C1["Write Overview & Objectives"]
C1 --> C2["Write Current State Analysis"]
C2 --> C3["Write Architecture Design"]
C3 --> C4["Write Config & Deployment Changes"]
C4 --> C5["Write Implementation Phases"]
subgraph PhaseStructure["Phase Structure"]
P1["Phase 1: Core functionality"]
P2["Phase 2: Build on Phase 1"]
P3["Phase N: Additional features"]
PF["Final Phase: Clean the House"]
P1 --> P2 --> P3 --> PF
end
C5 --> P1
PF --> D1["/spec:design-validation"]
subgraph ValidationDesign["Validation Design"]
V1["Read spec & infer needs"]
V2["Ask deployment/validation questions"]
V3["Propose validation requirements"]
V4["Invoke validation-researcher"]
V5["Present tool recommendations"]
V6["Add validation phase to spec"]
V1 --> V2 --> V3 --> V4 --> V5 --> V6
end
D1 --> V1
V6 --> Save["Save to specs/YYYY-MM-DD_HH-mm_feature.md"]
Save --> Done([Spec Complete])
flowchart TB
Start(["/execute-wf spec.md"]) --> Check["Check prerequisites"]
Check --> Parse["Parse spec file + extra instructions"]
Parse --> InitBeads["Initialize beads if needed"]
InitBeads --> ReviewAgent["Invoke review-executor agent"]
subgraph ReviewPhase["Review Phase (review-executor)"]
RS["spec-simplify --auto-apply"]
RT["spec-tests"]
RD["spec-review-design --auto-apply"]
RI["spec-review-implementation --auto-apply"]
RS -->|"Apply via take-recommendations"| RT
RT -->|"Create test spec"| RD
RD -->|"Apply via take-recommendations"| RI
RI -->|"Apply via take-recommendations"| ReviewDone["Review Summary"]
end
ReviewAgent --> RS
ReviewDone --> ExtractPhases["Extract phases from reviewed spec"]
ExtractPhases --> CreateEpic["Create beads epic"]
CreateEpic --> CreateTasks["Create phase tasks + validation task"]
CreateTasks --> SetDeps["Set task dependencies"]
SetDeps --> ImplAgent["Invoke feature-writer agent"]
subgraph ImplPhase["Implementation Phase (feature-writer)"]
Query["bd ready --json"]
Update["bd update --status in_progress"]
Implement["implement-phase --auto"]
subgraph TDD["TDD Cycle"]
T1["Write failing tests"]
T2["Implement code"]
T3["Verify tests pass"]
T4["Commit"]
T1 --> T2 --> T3 --> T4
end
Close["bd close task"]
Query --> Update --> Implement
Implement --> TDD
TDD --> Close
Close -->|"More tasks"| Query
Close -->|"Validation task"| Validate
Validate["check-work"]
Validate --> CloseVal["Close validation task"]
end
ImplAgent --> Query
CloseVal --> CloseEpic["Close epic"]
CloseEpic --> Done([Feature Complete])
stateDiagram-v2
[*] --> Created: /spec command
Created: Initial Spec
Created: - Full architecture
Created: - All phases defined
Created: - Validation phase added
Created --> Simplified: spec-simplify
Simplified: Simplified Spec
Simplified: - YAGNI applied
Simplified: - Over-engineering removed
Simplified: - Future-proofing cut
Simplified --> TestSpecCreated: spec-tests
TestSpecCreated: + Test Spec Created
TestSpecCreated: - Test guides per phase
TestSpecCreated: - Fixtures defined
TestSpecCreated --> DesignReviewed: spec-review-design
DesignReviewed: Design Reviewed
DesignReviewed: - Pythonic patterns
DesignReviewed: - Reuse opportunities
DesignReviewed: - Library recommendations
DesignReviewed --> ImplReviewed: spec-review-implementation
ImplReviewed: Implementation Reviewed
ImplReviewed: - Technical decisions made
ImplReviewed: - Coverage gaps filled
ImplReviewed: - Phases aligned
ImplReviewed --> Phase1Complete: implement-phase (Phase 1)
Phase1Complete: Phase 1 Implemented
Phase1Complete: - [COMPLETED: abc123]
Phase1Complete --> PhaseNComplete: implement-phase (remaining)
PhaseNComplete: All Phases Complete
PhaseNComplete: - All [COMPLETED: sha]
PhaseNComplete: - Tests passing
PhaseNComplete --> Validated: check-work
Validated: Validated
Validated: - Acceptance criteria met
Validated: - Integration tested
Validated --> [*]: Feature Complete
note right of Created
Each phase has:
- Description
- Core Functionality
- Dependencies
- Unit Test Requirements
- Acceptance Criteria
end note
note right of TestSpecCreated
Test spec structure:
- Phase X Test Guide
- Existing Tests to Modify
- New Tests to Create
- Implementation Notes
end note
Purpose: Expert at designing validation strategies for deployments
Knowledge Areas:
Key Capability: Multi-tool orchestration for true end-to-end validation
Purpose: Expert at setting up new repositories in existing ecosystems
Knowledge Areas:
Templates Provided:
Location: plugins/cc_workflow_tools/shared_docs/PATTERNS.md
Purpose: Codifies development patterns for consistency
Checklist Categories:
Pattern Violation Response: