# Changelog All notable changes to Claude Code Workflow (CCW) will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [3.1.0] - 2025-10-02 ### ๐Ÿงช TDD Workflow Support This release introduces comprehensive Test-Driven Development (TDD) workflow support with Red-Green-Refactor cycle enforcement. #### Added **TDD Workflow Commands**: - **`/workflow:tdd-plan`**: 5-phase TDD planning orchestrator - Creates structured TDD workflow with TEST โ†’ IMPL โ†’ REFACTOR task chains - Enforces Red-Green-Refactor methodology through task dependencies - Supports both manual and agent modes (`--agent` flag) - Validates TDD structure (chains, dependencies, meta fields) - Outputs: `TDD_PLAN.md`, `IMPL_PLAN.md`, `TODO_LIST.md` - **`/workflow:tdd-verify`**: 4-phase TDD compliance verification - Validates task chain structure (TEST-N.M โ†’ IMPL-N.M โ†’ REFACTOR-N.M) - Analyzes test coverage metrics (line, branch, function coverage) - Verifies Red-Green-Refactor cycle execution - Generates comprehensive compliance report with scoring (0-100) - Outputs: `TDD_COMPLIANCE_REPORT.md` **TDD Tool Commands**: - **`/workflow:tools:task-generate-tdd`**: TDD task chain generator - Uses Gemini AI to analyze requirements and create TDD breakdowns - Generates TEST, IMPL, REFACTOR tasks with proper dependencies - Creates task JSONs with `meta.tdd_phase` field ("red"/"green"/"refactor") - Assigns specialized agents (`@code-review-test-agent`, `@code-developer`) - Maximum 10 features (30 total tasks) per workflow - **`/workflow:tools:tdd-coverage-analysis`**: Test coverage and cycle analysis - Extracts test files from TEST tasks - Runs test suite with coverage (supports npm, pytest, cargo, go test) - Parses coverage metrics (line, branch, function) - Verifies TDD cycle execution through task summaries - Outputs: `test-results.json`, `coverage-report.json`, `tdd-cycle-report.md` **TDD Architecture**: - **Task ID Format**: `TEST-N.M`, `IMPL-N.M`, `REFACTOR-N.M` - N = feature number (1-10) - M = sub-task number (1-N) - **Dependency System**: - `IMPL-N.M` depends on `TEST-N.M` - `REFACTOR-N.M` depends on `IMPL-N.M` - Enforces execution order: Red โ†’ Green โ†’ Refactor - **Meta Fields**: - `meta.tdd_phase`: "red" | "green" | "refactor" - `meta.agent`: "@code-review-test-agent" | "@code-developer" **Compliance Scoring**: ``` Base Score: 100 points Deductions: - Missing TEST task: -30 points per feature - Missing IMPL task: -30 points per feature - Missing REFACTOR task: -10 points per feature - Wrong dependency: -15 points per error - Wrong agent: -5 points per error - Wrong tdd_phase: -5 points per error - Test didn't fail initially: -10 points per feature - Tests didn't pass after IMPL: -20 points per feature - Tests broke during REFACTOR: -15 points per feature ``` #### Changed **Documentation Updates**: - Updated README.md with TDD workflow section - Added TDD Quick Start guide - Updated command reference with TDD commands - Version badge updated to v3.1.0 **Integration**: - TDD commands work alongside standard workflow commands - Compatible with `/workflow:execute`, `/workflow:status`, `/workflow:resume` - Uses same session management and artifact system #### Benefits **TDD Best Practices**: - โœ… Enforced test-first development through task dependencies - โœ… Automated Red-Green-Refactor cycle verification - โœ… Comprehensive test coverage analysis - โœ… Quality scoring and compliance reporting - โœ… AI-powered task breakdown with TDD focus **Developer Experience**: - ๐Ÿš€ Quick TDD workflow creation with single command - ๐Ÿ“Š Detailed compliance reports with actionable recommendations - ๐Ÿ”„ Seamless integration with existing workflow system - ๐Ÿงช Multi-framework test support (Jest, Pytest, Cargo, Go) --- ## [3.0.1] - 2025-10-01 ### ๐Ÿ”ง Command Updates #### Changed - **Brainstorming Roles**: Removed `test-strategist` and `user-researcher` roles - `test-strategist` functionality integrated into automated test generation (`/workflow:test-gen`) - `user-researcher` functionality consolidated into `ux-expert` role - **Available Roles**: Updated to 8 core roles for focused, efficient brainstorming - ๐Ÿ—๏ธ System Architect - ๐Ÿ—„๏ธ Data Architect - ๐ŸŽ“ Subject Matter Expert - ๐Ÿ“Š Product Manager - ๐Ÿ“‹ Product Owner - ๐Ÿƒ Scrum Master - ๐ŸŽจ UI Designer - ๐Ÿ’ซ UX Expert ### ๐Ÿ“š Documentation #### Improved - **README Optimization**: Streamlined README.md and README_CN.md by 81% (from ~750 lines to ~140 lines) - **Better Structure**: Reorganized content with clearer sections and improved navigation - **Quick Start Guide**: Added immediate usability guide for new users - **Simplified Command Reference**: Consolidated command tables for easier reference - **Maintained Essential Information**: Preserved all installation steps, badges, links, and critical functionality #### Benefits - **Faster Onboarding**: New users can get started in minutes with the Quick Start section - **Reduced Cognitive Load**: Less verbose documentation with focused, actionable information - **Consistent Bilingual Structure**: English and Chinese versions now have identical organization - **Professional Presentation**: Cleaner, more modern documentation format --- ## [3.0.0] - 2025-09-30 ### ๐Ÿš€ Major Release - Unified CLI Command Structure This is a **breaking change release** introducing a unified CLI command structure. #### Added - **Unified CLI Commands**: New `/cli:*` command set consolidating all tool interactions - **Tool Selection Flag**: Use `--tool ` to select AI tools - **Command Verification**: Comprehensive workflow guide and command validation - **MCP Tools Integration** *(Experimental)*: Enhanced codebase analysis through Model Context Protocol #### Changed - **BREAKING**: Tool-specific commands (`/gemini:*`, `/qwen:*`, `/codex:*`) deprecated - **Command Structure**: All CLI commands now use unified `/cli:*` prefix - **Default Tool**: Commands default to `gemini` when `--tool` flag not specified #### Migration | Old Command (v2) | New Command (v3.0.0) | |---|---| | `/gemini:analyze "..."` | `/cli:analyze "..."` | | `/qwen:analyze "..."` | `/cli:analyze "..." --tool qwen` | | `/codex:chat "..."` | `/cli:chat "..." --tool codex` | --- ## [2.0.0] - 2025-09-28 ### ๐Ÿš€ Major Release - Architectural Evolution This is a **breaking change release** with significant architectural improvements and new capabilities. ### Added #### ๐Ÿ—๏ธ Four-Layer Architecture - **Interface Layer**: CLI Commands with Gemini/Codex/Qwen Wrappers - **Session Layer**: Atomic session management with `.active-[session]` markers - **Task/Data Layer**: JSON-first model with `.task/impl-*.json` hierarchy - **Orchestration Layer**: Multi-agent coordination and dependency resolution #### ๐Ÿ”„ Enhanced Workflow Lifecycle - **6-Phase Development Process**: Brainstorm โ†’ Plan โ†’ Verify โ†’ Execute โ†’ Test โ†’ Review - **Quality Gates**: Validation at each phase transition - **Multi-perspective Planning**: Role-based brainstorming with synthesis #### ๐Ÿงช Automated Test Generation - **Implementation Analysis**: Scans completed IMPL-* tasks - **Multi-layered Testing**: Unit, Integration, E2E, Performance, Security - **Specialized Agents**: Dedicated test agents for different test types - **Dependency Mapping**: Test execution follows implementation chains #### โœ… Plan Verification System - **Dual-Engine Validation**: Gemini (strategic) + Codex (technical) analysis - **Cross-Validation**: Conflict detection between vision and constraints - **Pre-execution Recommendations**: Actionable improvement suggestions #### ๐Ÿง  Smart Tech Stack Detection - **Intelligent Loading**: Only for development and code review tasks - **Multi-Language Support**: TypeScript, React, Python, Java, Go, JavaScript - **Performance Optimized**: Skips detection for non-relevant tasks - **Context-Aware Development**: Applies appropriate tech stack principles #### ๐Ÿ”ฎ Qwen CLI Integration - **Architecture Analysis**: System design patterns and code quality - **Code Generation**: Implementation scaffolding and components - **Intelligent Modes**: Auto template selection and precise planning - **Full Command Suite**: analyze, chat, execute, mode:auto, mode:bug-index, mode:plan #### ๐Ÿท๏ธ Issue Management Commands - `/workflow:issue:create` - Create new project issues with priority/type - `/workflow:issue:list` - List and filter issues by status/assignment - `/workflow:issue:update` - Update existing issue status and assignments - `/workflow:issue:close` - Close completed issues with resolution #### ๐Ÿ“‹ Enhanced Workflow Commands - `/workflow:plan-verify` - Pre-execution validation using dual analysis - `/workflow:test-gen` - Generate comprehensive test workflows - `/workflow:brainstorm:artifacts` - Generate structured planning documents - `/workflow:plan-deep` - Deep technical planning with Gemini analysis #### ๐Ÿ”ง Technical Improvements - **Enhanced Scripts**: Improved gemini-wrapper and qwen-wrapper - **Cross-Platform**: Windows path compatibility with proper quoting - **Directory Navigation**: Intelligent context optimization - **Flow Control**: Sequential execution with context accumulation - **Agent Enhancements**: Smart context assessment and error handling ### Changed #### ๐Ÿ“š Documentation Overhaul - **README.md**: Updated to v2.0 with four-layer architecture - **README_CN.md**: Chinese documentation aligned with v2.0 features - **Unified Structure**: Consistent sections across language versions - **Command Standardization**: Unified syntax and naming conventions #### ๐Ÿ”„ Command Syntax Updates - **Session Commands**: `/workflow:session list` โ†’ `/workflow:session:list` - **File Naming**: Standardized to lowercase `.task/impl-*.json` - **Session Markers**: Unified format `.active-[session]` #### ๐Ÿ—๏ธ Architecture Improvements - **JSON-First Data Model**: Single source of truth for all workflow state - **Atomic Session Management**: Marker-based with zero-overhead switching - **Task Hierarchy**: Standardized structure with intelligent decomposition ### Removed #### โš ๏ธ BREAKING CHANGES - **Python CLI Backend**: Removed all `pycli` references and components - **Deprecated Scripts**: - `install_pycli.sh` - `pycli` and `pycli.conf` - `tech-stack-loader.sh` - Legacy path reading scripts - **Obsolete Documentation**: Python backend references in READMEs - **v1.3 Release Documentation**: Removed erroneous v1.3.0 release files and tags ### Fixed #### ๐Ÿ› Bug Fixes & Consistency - **Duplicate Content**: Removed duplicate "Automated Test Generation" sections - **Script Entries**: Fixed duplicate get_modules_by_depth.sh references - **File Path Inconsistencies**: Standardized case sensitivity - **Command Syntax**: Unified command naming across documentation - **Cross-Language Alignment**: Synchronized English and Chinese versions ### Security #### ๐Ÿ”’ Security Enhancements - **Approval Modes**: Enhanced control over automatic execution - **YOLO Permissions**: Clear documentation of autonomous execution risks - **Context Isolation**: Improved session management for concurrent workflows --- ## [Unreleased] - 2025-09-07 ### ๐ŸŽฏ Command Streamlining & Workflow Optimization #### Command Name Updates - **RENAMED**: `/update_dms` โ†’ `/update-memory` for consistency with kebab-case naming convention - **Updated**: All documentation and references to reflect new command name #### Command Structure Optimization - **REMOVED**: Redundant `context.md` and `sync.md` commands (4 files total) - `task/context.md` - Functionality integrated into core task commands - `task/sync.md` - Replaced by automatic synchronization - `workflow/context.md` - Merged into workflow session management - `workflow/sync.md` - Built-in synchronization in workflow system - **CONSOLIDATED**: `context.md` created as unified context management command - **Enhanced**: Session status file management with automatic creation across all workflow commands #### Documentation Cleanup - **REMOVED**: 10 legacy documentation files including: - `COMMAND_STRUCTURE_DESIGN.md` - `REFACTORING_COMPLETE.md` - `RELEASE_NOTES_v2.0.md` - `ROADMAP.md` - `TASK_EXECUTION_PLAN_SCHEMA.md` - `UNIFIED_TASK_MANAGEMENT.md` - `WORKFLOW_DOCUMENT_SYSTEM.md` - `WORKFLOW_UPDATE_SUMMARY.md` - `gemini-execute-implementation-summary.md` - `test_gemini_input.txt` - **Result**: Cleaner repository structure with 60% reduction in maintenance overhead --- ## Migration Guides ### From v1.x to v2.0 **โš ๏ธ Breaking Changes**: This is a major version with breaking changes. 1. **Update CLI Configuration**: ```bash # Required Gemini CLI settings echo '{"contextFileName": "CLAUDE.md"}' > ~/.gemini/settings.json ``` 2. **Clean Legacy Components**: ```bash # Remove Python CLI references rm -f .claude/scripts/pycli* rm -f .claude/scripts/install_pycli.sh ``` 3. **Update Command Syntax**: ```bash # Old: /workflow:session list # New: /workflow:session:list ``` 4. **Verify Installation**: ```bash /workflow:session:list ``` ### Configuration Requirements **Required Dependencies**: - Git (version control) - Node.js (for Gemini CLI) - Python 3.8+ (for Codex CLI) - Qwen CLI (for architecture analysis) **System Requirements**: - OS: Windows 10+, Ubuntu 18.04+, macOS 10.15+ - Memory: 512MB minimum, 2GB recommended - Storage: ~50MB core + project data --- ## Support & Resources - **Repository**: https://github.com/catlog22/Claude-Code-Workflow - **Issues**: https://github.com/catlog22/Claude-Code-Workflow/issues - **Wiki**: https://github.com/catlog22/Claude-Code-Workflow/wiki - **Discussions**: https://github.com/catlog22/Claude-Code-Workflow/discussions --- *This changelog follows [Keep a Changelog](https://keepachangelog.com/) format and [Semantic Versioning](https://semver.org/) principles.*