Files
Claude-Code-Workflow/docs/commands/claude/core-orchestration.md
catlog22 c3ddf7e322 docs: add VitePress documentation site
- Add docs directory with VitePress configuration
- Add GitHub Actions workflow for docs build and deploy
- Support bilingual (English/Chinese) documentation
- Include search, custom theme, and responsive design
2026-02-28 16:14:09 +08:00

4.9 KiB

Core Orchestration Commands

One-Liner

Core orchestration commands are the workflow brain of Claude_dms3 — analyzing task intent, selecting appropriate workflows, and automatically executing command chains.

Command List

Command Function Syntax
/ccw Main workflow orchestrator - intent analysis -> workflow selection -> command chain execution /ccw "task description"
/ccw-coordinator Command orchestration tool - chained command execution and state persistence /ccw-coordinator "task description"

Command Details

/ccw

Function: Main workflow orchestrator - intent analysis -> workflow selection -> command chain execution

Syntax:

/ccw "task description"

Options:

  • --yes / -y: Auto mode, skip confirmation steps

Workflow:

graph TD
    A[User Input] --> B[Analyze Intent]
    B --> C{Clarity Score}
    C -->|>=2| D[Select Workflow Directly]
    C -->|<2| E[Clarify Requirements]
    E --> D
    D --> F[Build Command Chain]
    F --> G{User Confirm?}
    G -->|Yes| H[Execute Command Chain]
    G -->|Cancel| I[End]
    H --> J{More Steps?}
    J -->|Yes| F
    J -->|No| K[Complete]

Task Type Detection:

Type Trigger Keywords Workflow
Bug Fix urgent, production, critical + fix, bug lite-fix
Brainstorming brainstorm, ideation brainstorm-with-file
Debug Document debug document, hypothesis debug-with-file
Collaborative Analysis analyze document analyze-with-file
Collaborative Planning collaborative plan collaborative-plan-with-file
Requirements Roadmap roadmap req-plan-with-file
Integration Test integration test integration-test-cycle
Refactoring refactor refactor-cycle
Team Workflow team + keywords corresponding team workflow
TDD tdd, test-first tdd-plan -> execute
Test Fix test fix, failing test test-fix-gen -> test-cycle-execute

Examples:

# Basic usage - auto-select workflow
/ccw "implement user authentication"

# Bug fix
/ccw "fix login failure bug"

# TDD development
/ccw "implement payment using TDD"

# Team collaboration
/ccw "team-planex implement user notification system"

/ccw-coordinator

Function: Command orchestration tool - analyze tasks, recommend command chains, sequential execution, state persistence

Syntax:

/ccw-coordinator "task description"

Minimal Execution Units:

Unit Name Command Chain Output
Quick Implementation lite-plan -> lite-execute Working code
Multi-CLI Planning multi-cli-plan -> lite-execute Working code
Bug Fix lite-plan (--bugfix) -> lite-execute Fixed code
Full Plan+Execute plan -> execute Working code
Verified Plan+Execute plan -> plan-verify -> execute Working code
TDD Plan+Execute tdd-plan -> execute Working code
Test Gen+Execute test-gen -> execute Generated tests
Review Cycle review-session-cycle -> review-cycle-fix Fixed code
Issue Workflow discover -> plan -> queue -> execute Completed issue

Workflow:

graph TD
    A[Task Analysis] --> B[Discover Commands]
    B --> C[Recommend Command Chain]
    C --> D{User Confirm?}
    D -->|Yes| E[Sequential Execute]
    D -->|Modify| F[Adjust Command Chain]
    F --> D
    E --> G[Persist State]
    G --> H{More Steps?}
    H -->|Yes| B
    H -->|No| I[Complete]

Examples:

# Auto-orchestrate bug fix
/ccw-coordinator "production login failure"

# Auto-orchestrate feature implementation
/ccw-coordinator "add user avatar upload"

Auto Mode

Both commands support the --yes flag for auto mode:

# Auto mode - skip all confirmations
/ccw "implement user authentication" --yes
/ccw-coordinator "fix login bug" --yes

Auto mode behavior:

  • Skip requirement clarification
  • Skip user confirmation
  • Execute command chain directly
Skill Function
workflow-lite-plan Lightweight planning workflow
workflow-plan Full planning workflow
workflow-execute Execution workflow
workflow-tdd TDD workflow
review-cycle Code review cycle

Comparison

Feature /ccw /ccw-coordinator
Execution Location Main process External CLI + background tasks
State Persistence No Yes
Hook Callbacks Not supported Supported
Complex Workflows Simple chains Supports parallel, dependencies
Use Cases Daily development Complex projects, team collaboration