mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-10 02:24:35 +08:00
feat: Update workflow architecture documentation and clean up scripts
Major updates: - Enhanced workflow lifecycle with 6-phase development process - Updated README.md with comprehensive CLI command documentation - Updated README_CN.md with Chinese documentation reflecting v2.0 features - Added Qwen CLI commands and improved Gemini/Codex command descriptions - Enhanced brainstorming role commands and workflow session management - Updated integration requirements for all three CLI tools Script cleanup: - Removed unused Python CLI scripts (install_pycli.sh, pycli, pycli.conf) - Removed deprecated path reading scripts (read-paths.sh, read-task-paths.sh) - Removed tech-stack-loader.sh - Kept core scripts: gemini-wrapper, qwen-wrapper, get_modules_by_depth.sh Architecture improvements: - JSON-First data model as single source of truth - Atomic session management with marker files - Multi-agent coordination for complex task execution - Role-based brainstorming with synthesis capabilities 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
150
README.md
150
README.md
@@ -164,9 +164,23 @@ CCW automatically adapts workflow structure based on project complexity:
|
||||
|---------|---------|-------|
|
||||
| `🔍 /gemini:analyze` | Deep codebase analysis | `/gemini:analyze "authentication patterns"` |
|
||||
| `💬 /gemini:chat` | Direct Gemini interaction | `/gemini:chat "explain this architecture"` |
|
||||
| `⚡ /gemini:execute` | Intelligent execution | `/gemini:execute task-001` |
|
||||
| `🎯 /gemini:mode:auto` | Auto template selection | `/gemini:mode:auto "analyze security"` |
|
||||
| `🐛 /gemini:mode:bug-index` | Bug analysis workflow | `/gemini:mode:bug-index "payment fails"` |
|
||||
| `⚡ /gemini:execute` | Intelligent execution with YOLO permissions | `/gemini:execute "implement task-001"` |
|
||||
| `🎯 /gemini:mode:auto` | Auto template selection | `/gemini:mode:auto "analyze security vulnerabilities"` |
|
||||
| `🐛 /gemini:mode:bug-index` | Bug analysis and fix suggestions | `/gemini:mode:bug-index "payment processing fails"` |
|
||||
| `📋 /gemini:mode:plan` | Project planning and architecture | `/gemini:mode:plan "microservices architecture"` |
|
||||
| `🎯 /gemini:mode:plan-precise` | Precise path planning analysis | `/gemini:mode:plan-precise "complex refactoring"` |
|
||||
|
||||
### 🔮 **Qwen CLI Commands** (Architecture & Code Generation)
|
||||
|
||||
| Command | Purpose | Usage |
|
||||
|---------|---------|-------|
|
||||
| `🔍 /qwen:analyze` | Architecture analysis and code quality | `/qwen:analyze "system architecture patterns"` |
|
||||
| `💬 /qwen:chat` | Direct Qwen interaction | `/qwen:chat "design authentication system"` |
|
||||
| `⚡ /qwen:execute` | Intelligent implementation with YOLO permissions | `/qwen:execute "implement user authentication"` |
|
||||
| `🚀 /qwen:mode:auto` | Auto template selection and execution | `/qwen:mode:auto "build microservices API"` |
|
||||
| `🐛 /qwen:mode:bug-index` | Bug analysis and fix suggestions | `/qwen:mode:bug-index "memory leak in service"` |
|
||||
| `📋 /qwen:mode:plan` | Architecture planning and analysis | `/qwen:mode:plan "design scalable database"` |
|
||||
| `🎯 /qwen:mode:plan-precise` | Precise architectural planning | `/qwen:mode:plan-precise "complex system migration"` |
|
||||
|
||||
### 🤖 **Codex CLI Commands** (Development & Implementation)
|
||||
|
||||
@@ -174,9 +188,10 @@ CCW automatically adapts workflow structure based on project complexity:
|
||||
|---------|---------|-------|
|
||||
| `🔍 /codex:analyze` | Development analysis | `/codex:analyze "optimization opportunities"` |
|
||||
| `💬 /codex:chat` | Direct Codex interaction | `/codex:chat "implement JWT auth"` |
|
||||
| `⚡ /codex:execute` | Controlled development | `/codex:execute "refactor user service"` |
|
||||
| `🚀 /codex:mode:auto` | **PRIMARY**: Full autonomous | `/codex:mode:auto "build payment system"` |
|
||||
| `🐛 /codex:mode:bug-index` | Autonomous bug fixing | `/codex:mode:bug-index "fix race condition"` |
|
||||
| `⚡ /codex:execute` | Autonomous implementation with YOLO permissions | `/codex:execute "refactor user service"` |
|
||||
| `🚀 /codex:mode:auto` | **PRIMARY**: Full autonomous development | `/codex:mode:auto "build payment system"` |
|
||||
| `🐛 /codex:mode:bug-index` | Autonomous bug fixing and implementation | `/codex:mode:bug-index "fix race condition"` |
|
||||
| `📋 /codex:mode:plan` | Development planning and implementation | `/codex:mode:plan "implement API endpoints"` |
|
||||
|
||||
### 🎯 **Workflow Management**
|
||||
|
||||
@@ -192,59 +207,105 @@ CCW automatically adapts workflow structure based on project complexity:
|
||||
#### 🎯 Workflow Operations
|
||||
| Command | Function | Usage |
|
||||
|---------|----------|-------|
|
||||
| `💭 /workflow:brainstorm:*` | **NEW**: Multi-perspective planning | `/workflow:brainstorm:system-architect "microservices"` |
|
||||
| `🎨 /workflow:brainstorm:artifacts` | **NEW**: Generate planning documents | `/workflow:brainstorm:artifacts --synthesis` |
|
||||
| `📋 /workflow:plan` | Convert to executable plans | `/workflow:plan --from-brainstorming` |
|
||||
| `✅ /workflow:plan-verify` | **NEW**: Pre-execution validation | `/workflow:plan-verify --dual-analysis` |
|
||||
| `⚡ /workflow:execute` | Implementation phase | `/workflow:execute --autonomous` |
|
||||
| `🧪 /workflow:test-gen` | **NEW**: Generate test workflows | `/workflow:test-gen --coverage=comprehensive` |
|
||||
| `🔍 /workflow:review` | Quality assurance | `/workflow:review --auto-fix` |
|
||||
| `💭 /workflow:brainstorm:*` | Multi-perspective planning with role experts | `/workflow:brainstorm:system-architect "microservices"` |
|
||||
| `🤝 /workflow:brainstorm:synthesis` | Synthesize all brainstorming perspectives | `/workflow:brainstorm:synthesis` |
|
||||
| `🎨 /workflow:brainstorm:artifacts` | Generate structured planning documents | `/workflow:brainstorm:artifacts "topic description"` |
|
||||
| `📋 /workflow:plan` | Convert to executable implementation plans | `/workflow:plan "description" \| file.md \| ISS-001` |
|
||||
| `🔍 /workflow:plan-deep` | Deep technical planning with Gemini analysis | `/workflow:plan-deep "requirements description"` |
|
||||
| `✅ /workflow:plan-verify` | Pre-execution validation using dual analysis | `/workflow:plan-verify` |
|
||||
| `⚡ /workflow:execute` | Coordinate agents for implementation | `/workflow:execute` |
|
||||
| `🔄 /workflow:resume` | Intelligent workflow resumption | `/workflow:resume [--from TASK-ID] [--retry]` |
|
||||
| `📊 /workflow:status` | Generate on-demand views from task data | `/workflow:status [task-id] [format] [validation]` |
|
||||
| `🧪 /workflow:test-gen` | Generate comprehensive test workflows | `/workflow:test-gen WFS-session-id` |
|
||||
| `🔍 /workflow:review` | Execute review phase for quality validation | `/workflow:review` |
|
||||
| `📚 /workflow:docs` | Generate hierarchical documentation | `/workflow:docs "architecture" \| "api" \| "all"` |
|
||||
|
||||
#### 🏷️ Task Management
|
||||
| Command | Function | Usage |
|
||||
|---------|----------|-------|
|
||||
| `➕ /task:create` | Create implementation task | `/task:create "User Authentication"` |
|
||||
| `🔄 /task:breakdown` | Decompose into subtasks | `/task:breakdown IMPL-1 --depth=2` |
|
||||
| `⚡ /task:execute` | Execute specific task | `/task:execute IMPL-1.1 --mode=auto` |
|
||||
| `📋 /task:replan` | Adapt to changes | `/task:replan IMPL-1 --strategy=adjust` |
|
||||
| `➕ /task:create` | Create implementation task with context | `/task:create "User Authentication System"` |
|
||||
| `🔄 /task:breakdown` | Intelligent task decomposition | `/task:breakdown task-id` |
|
||||
| `⚡ /task:execute` | Execute tasks with appropriate agents | `/task:execute task-id` |
|
||||
| `📋 /task:replan` | Replan tasks with detailed input | `/task:replan task-id ["text" \| file.md \| ISS-001]` |
|
||||
|
||||
#### 🧠 Brainstorming Role Commands
|
||||
| Role | Command | Purpose |
|
||||
|------|---------|---------|
|
||||
| 🏗️ **System Architect** | `/workflow:brainstorm:system-architect` | Technical architecture analysis |
|
||||
| 🔒 **Security Expert** | `/workflow:brainstorm:security-expert` | Security and threat analysis |
|
||||
| 📊 **Product Manager** | `/workflow:brainstorm:product-manager` | User needs and business value |
|
||||
| 🎨 **UI Designer** | `/workflow:brainstorm:ui-designer` | User experience and interface |
|
||||
| 📈 **Business Analyst** | `/workflow:brainstorm:business-analyst` | Process optimization analysis |
|
||||
| 🔬 **Innovation Lead** | `/workflow:brainstorm:innovation-lead` | Emerging technology opportunities |
|
||||
| 📋 **Feature Planner** | `/workflow:brainstorm:feature-planner` | Feature development planning |
|
||||
| 🗄️ **Data Architect** | `/workflow:brainstorm:data-architect` | Data modeling and analytics |
|
||||
| 👥 **User Researcher** | `/workflow:brainstorm:user-researcher` | User behavior analysis |
|
||||
| 🚀 **Auto Selection** | `/workflow:brainstorm:auto` | Dynamic role selection |
|
||||
|
||||
---
|
||||
|
||||
## 🎯 Complete Development Workflows
|
||||
|
||||
### 🚀 **Complex Feature Development**
|
||||
### 🚀 **Enhanced Workflow Lifecycle**
|
||||
|
||||
```mermaid
|
||||
graph TD
|
||||
START[🎯 New Feature Request] --> SESSION["/workflow:session:start 'OAuth2 System'"]
|
||||
SESSION --> BRAINSTORM["/workflow:brainstorm --perspectives=system-architect,security-expert"]
|
||||
BRAINSTORM --> PLAN["/workflow:plan --from-brainstorming"]
|
||||
PLAN --> EXECUTE["/workflow:execute --type=complex"]
|
||||
EXECUTE --> REVIEW["/workflow:review --auto-fix"]
|
||||
REVIEW --> DOCS["/update-memory-related"]
|
||||
SESSION --> BRAINSTORM["/workflow:brainstorm:system-architect topic"]
|
||||
BRAINSTORM --> SYNTHESIS["/workflow:brainstorm:synthesis"]
|
||||
SYNTHESIS --> PLAN["/workflow:plan description"]
|
||||
PLAN --> VERIFY["/workflow:plan-verify"]
|
||||
VERIFY --> EXECUTE["/workflow:execute"]
|
||||
EXECUTE --> TEST["/workflow:test-gen WFS-session-id"]
|
||||
TEST --> REVIEW["/workflow:review"]
|
||||
REVIEW --> DOCS["/workflow:docs all"]
|
||||
DOCS --> COMPLETE[✅ Complete]
|
||||
```
|
||||
|
||||
### ⚡ **Workflow Session Management**
|
||||
|
||||
```mermaid
|
||||
graph LR
|
||||
START[📋 Session Start] --> MARKER[🏷️ .active-session marker]
|
||||
MARKER --> JSON[📊 workflow-session.json]
|
||||
JSON --> TASKS[🎯 .task/IMPL-*.json]
|
||||
TASKS --> PAUSE[⏸️ Pause: Remove marker]
|
||||
PAUSE --> RESUME[▶️ Resume: Restore marker]
|
||||
RESUME --> SWITCH[🔄 Switch: Change active session]
|
||||
```
|
||||
|
||||
### 🔥 **Quick Development Examples**
|
||||
|
||||
#### **🚀 Full Stack Feature Implementation**
|
||||
#### **🚀 Complete Feature Development Workflow**
|
||||
```bash
|
||||
# 1. Initialize focused session
|
||||
/workflow:session:start "User Dashboard Feature"
|
||||
|
||||
# 2. Multi-perspective analysis
|
||||
/workflow:brainstorm "dashboard analytics system" \
|
||||
--perspectives=system-architect,ui-designer,data-architect
|
||||
# 2. Multi-perspective brainstorming
|
||||
/workflow:brainstorm:system-architect "dashboard analytics system"
|
||||
/workflow:brainstorm:ui-designer "dashboard user experience"
|
||||
/workflow:brainstorm:data-architect "analytics data flow"
|
||||
|
||||
# 3. Generate executable plan with task decomposition
|
||||
/workflow:plan --from-brainstorming
|
||||
# 3. Synthesize all perspectives
|
||||
/workflow:brainstorm:synthesis
|
||||
|
||||
# 4. Autonomous implementation
|
||||
/codex:mode:auto "Implement user dashboard with analytics, charts, and real-time data"
|
||||
# 4. Create executable implementation plan
|
||||
/workflow:plan "user dashboard with analytics and real-time data"
|
||||
|
||||
# 5. Quality assurance and deployment
|
||||
/workflow:review --auto-fix
|
||||
/update-memory-related
|
||||
# 5. Verify plan before execution
|
||||
/workflow:plan-verify
|
||||
|
||||
# 6. Execute implementation with agent coordination
|
||||
/workflow:execute
|
||||
|
||||
# 7. Generate comprehensive test suite
|
||||
/workflow:test-gen WFS-user-dashboard-feature
|
||||
|
||||
# 8. Quality assurance and review
|
||||
/workflow:review
|
||||
|
||||
# 9. Generate documentation
|
||||
/workflow:docs "all"
|
||||
```
|
||||
|
||||
#### **⚡ Rapid Bug Resolution**
|
||||
@@ -252,17 +313,20 @@ graph TD
|
||||
# Quick bug fix workflow
|
||||
/workflow:session:start "Payment Processing Fix"
|
||||
/gemini:mode:bug-index "Payment validation fails on concurrent requests"
|
||||
/codex:mode:auto "Fix race condition in payment validation with proper locking"
|
||||
/workflow:review --auto-fix
|
||||
/codex:mode:bug-index "Fix race condition in payment validation"
|
||||
/workflow:review
|
||||
```
|
||||
|
||||
#### **📊 Architecture Analysis & Refactoring**
|
||||
```bash
|
||||
# Deep architecture work
|
||||
# Deep architecture workflow
|
||||
/workflow:session:start "API Refactoring Initiative"
|
||||
/gemini:analyze "current API architecture patterns and technical debt"
|
||||
/workflow:plan-deep "microservices transition" --complexity=high --depth=3
|
||||
/codex:mode:auto "Refactor monolith to microservices following the analysis"
|
||||
/workflow:plan-deep "microservices transition strategy"
|
||||
/workflow:plan-verify
|
||||
/qwen:mode:auto "Refactor monolith to microservices architecture"
|
||||
/workflow:test-gen WFS-api-refactoring-initiative
|
||||
/workflow:review
|
||||
```
|
||||
|
||||
---
|
||||
@@ -325,10 +389,12 @@ graph TD
|
||||
- **🧠 Memory**: 512MB minimum, 2GB recommended
|
||||
|
||||
### 🔗 **Integration Requirements**
|
||||
- **🔍 Gemini CLI**: Required for analysis workflows
|
||||
- **🤖 Codex CLI**: Required for autonomous development
|
||||
- **📂 Git Repository**: Required for change tracking
|
||||
- **🔍 Gemini CLI**: Required for analysis and strategic planning workflows
|
||||
- **🤖 Codex CLI**: Required for autonomous development and bug fixing
|
||||
- **🔮 Qwen CLI**: Required for architecture analysis and code generation
|
||||
- **📂 Git Repository**: Required for change tracking and version control
|
||||
- **🎯 Claude Code IDE**: Recommended for optimal experience
|
||||
- **🐍 Python 3.8+**: Required for advanced pycli backend features
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user