Files
Claude-Code-Workflow/docs/commands/claude/workflow.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

9.9 KiB

Workflow Commands

One-Liner

Workflow commands are the execution engine of Claude_dms3 — providing complete workflow support from lightweight tasks to complex projects.

Command List

Lightweight Workflows

Command Function Syntax
lite-lite-lite Ultra-lightweight multi-tool analysis and direct execution /workflow:lite-lite-lite [-y] <task>
lite-plan Lightweight interactive planning workflow /workflow:lite-plan [-y] [-e] "task"
lite-execute Execute tasks based on in-memory plan /workflow:lite-execute [-y] [--in-memory] [task]
lite-fix Lightweight bug diagnosis and fix /workflow:lite-fix [-y] [--hotfix] "bug description"

Standard Workflows

Command Function Syntax
plan 5-phase planning workflow /workflow:plan [-y] "description"|file.md
execute Coordinate agent execution of workflow tasks /workflow:execute [-y] [--resume-session=ID]
replan Interactive workflow replanning /workflow:replan [-y] [--session ID] [task-id] "requirement"

Collaborative Workflows

Command Function Syntax
multi-cli-plan Multi-CLI collaborative planning /workflow:multi-cli-plan [-y] <task> [--max-rounds=N]
brainstorm-with-file Interactive brainstorming /workflow:brainstorm-with-file [-y] [-c] "idea"
analyze-with-file Interactive collaborative analysis /workflow:analyze-with-file [-y] [-c] "topic"
debug-with-file Interactive hypothesis-driven debugging /workflow:debug-with-file [-y] "bug description"
unified-execute-with-file Universal execution engine /workflow:unified-execute-with-file [-y] [-p path] [context]

TDD Workflows

Command Function Syntax
tdd-plan TDD planning workflow /workflow:tdd-plan "feature description"
tdd-verify Verify TDD workflow compliance /workflow:tdd-verify [--session ID]

Test Workflows

Command Function Syntax
test-fix-gen Create test-fix workflow session /workflow:test-fix-gen (session-id|"description"|file.md)
test-gen Create test session from implementation session /workflow:test-gen source-session-id
test-cycle-execute Execute test-fix workflow /workflow:test-cycle-execute [--resume-session=ID]

Review Workflows

Command Function Syntax
review Post-implementation review /workflow:review [--type=type] [--archived] [session-id]
review-module-cycle Standalone multi-dimensional code review /workflow:review-module-cycle <path> [--dimensions=dimensions]
review-session-cycle Session-based review /workflow:review-session-cycle [session-id] [--dimensions=dimensions]
review-cycle-fix Auto-fix review findings /workflow:review-cycle-fix <export-file|review-dir>

Specialized Workflows

Command Function Syntax
clean Smart code cleanup /workflow:clean [-y] [--dry-run] ["focus area"]
init Initialize project state /workflow:init [--regenerate]
plan-verify Verify planning consistency /workflow:plan-verify [--session session-id]

Command Details

lite-lite-lite

Function: Ultra-lightweight multi-tool analysis and direct execution. Simple tasks have no artifacts, complex tasks automatically create planning documents in .workflow/.scratchpad/.

Syntax:

/workflow:lite-lite-lite [-y|--yes] <task description>

Use Cases:

  • Ultra-simple quick tasks
  • Code modifications not needing planning documents
  • Automatic tool selection

Examples:

# Ultra-simple task
/workflow:lite-lite-lite "fix header styles"

# Auto mode
/workflow:lite-lite-lite -y "update README links"

lite-plan

Function: Lightweight interactive planning workflow, supporting in-memory planning, code exploration, and execution to lite-execute.

Syntax:

/workflow:lite-plan [-y|--yes] [-e|--explore] "task description" | file.md

Options:

  • -e, --explore: Execute code exploration first

Examples:

# Basic planning
/workflow:lite-plan "add user avatar feature"

# With exploration
/workflow:lite-plan -e "refactor authentication module"

lite-execute

Function: Execute tasks based on in-memory plan, prompt description, or file content.

Syntax:

/workflow:lite-execute [-y|--yes] [--in-memory] ["task description" | file-path]

Options:

  • --in-memory: Use in-memory plan

Examples:

# Execute task
/workflow:lite-execute "implement avatar upload API"

# Use in-memory plan
/workflow:lite-execute --in-memory

lite-fix

Function: Lightweight bug diagnosis and fix workflow, supporting intelligent severity assessment and optional hotfix mode.

Syntax:

/workflow:lite-fix [-y|--yes] [--hotfix] "bug description or issue reference"

Options:

  • --hotfix: Hotfix mode (quick fix for production incidents)

Examples:

# Bug fix
/workflow:lite-fix "login returns 500 error"

# Hotfix
/workflow:lite-fix --hotfix "payment gateway timeout"

plan

Function: 5-phase planning workflow, outputting IMPL_PLAN.md and task JSON.

Syntax:

/workflow:plan [-y|--yes] "text description" | file.md

Phases:

  1. Session initialization
  2. Context collection
  3. Specification loading
  4. Task generation
  5. Verification/replanning

Examples:

# Plan from description
/workflow:plan "implement user notification system"

# Plan from file
/workflow:plan requirements.md

execute

Function: Coordinate agent execution of workflow tasks, supporting automatic session discovery, parallel task processing, and state tracking.

Syntax:

/workflow:execute [-y|--yes] [--resume-session="session-id"]

Examples:

# Execute current session
/workflow:execute

# Resume and execute session
/workflow:execute --resume-session=WFS-2024-01-15

replan

Function: Interactive workflow replanning, supporting session-level artifact updates and scope clarification.

Syntax:

/workflow:replan [-y|--yes] [--session session-id] [task-id] "requirement" | file.md [--interactive]

Examples:

# Replan entire session
/workflow:replan --session=WFS-xxx "add user permission checks"

# Replan specific task
/workflow:replan TASK-001 "change to use RBAC"

multi-cli-plan

Function: Multi-CLI collaborative planning workflow, using ACE context collection and iterative cross-validation.

Syntax:

/workflow:multi-cli-plan [-y|--yes] <task description> [--max-rounds=3] [--tools=gemini,codex] [--mode=parallel|serial]

Options:

  • --max-rounds=N: Maximum discussion rounds
  • --tools=tools: CLI tools to use
  • --mode=mode: Parallel or serial mode

Examples:

# Multi-CLI planning
/workflow:multi-cli-plan "design microservice architecture"

# Specify tools and rounds
/workflow:multi-cli-plan --tools=gemini,codex --max-rounds=5 "database migration plan"

brainstorm-with-file

Function: Interactive brainstorming, multi-CLI collaboration, idea expansion, and documented thinking evolution.

Syntax:

/workflow:brainstorm-with-file [-y|--yes] [-c|--continue] [-m|--mode creative|structured] "idea or topic"

Options:

  • -c, --continue: Continue existing session
  • -m, --mode=mode: creative or structured

Examples:

# Creative brainstorming
/workflow:brainstorm-with-file --mode creative "user growth strategies"

# Structured brainstorming
/workflow:brainstorm-with-file --mode structured "API versioning approach"

analyze-with-file

Function: Interactive collaborative analysis with documented discussion, CLI-assisted exploration, and evolving understanding.

Syntax:

/workflow:analyze-with-file [-y|--yes] [-c|--continue] "topic or question"

Examples:

# Analyze topic
/workflow:analyze-with-file "authentication architecture design"

# Continue discussion
/workflow:analyze-with-file -c

debug-with-file

Function: Interactive hypothesis-driven debugging with documented exploration, understanding evolution, and Gemini-assisted correction.

Syntax:

/workflow:debug-with-file [-y|--yes] "bug description or error message"

Examples:

# Debug bug
/workflow:debug-with-file "WebSocket connection randomly disconnects"

# Debug error
/workflow:debug-with-file "TypeError: Cannot read property 'id'"

unified-execute-with-file

Function: Universal execution engine consuming any planning/brainstorming/analysis output, supporting minimal progress tracking, multi-agent coordination, and incremental execution.

Syntax:

/workflow:unified-execute-with-file [-y|--yes] [-p|--plan <path>] [-m|--mode sequential|parallel] ["execution context"]

Examples:

# Execute plan
/workflow:unified-execute-with-file -p plan.md

# Parallel execution
/workflow:unified-execute-with-file -m parallel

Workflow Diagram

graph TD
    A[Task Input] --> B{Task Complexity}
    B -->|Simple| C[Lite Workflow]
    B -->|Standard| D[Plan Workflow]
    B -->|Complex| E[Multi-CLI Workflow]

    C --> F[Direct Execution]
    D --> G[Plan] --> H[Execute]
    E --> I[Multi-CLI Discussion] --> G

    F --> J[Complete]
    H --> J
    I --> J