mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-03-01 15:03:57 +08:00
- Fix incorrect package names (@ccw/cli, @anthropic/claude-code-workflow) to claude-code-workflow - Add workflow examples page with 8 practical artifact samples - Optimize sidebar navigation with emoji icons and second-level grouping - Add usage examples to commands and skills documentation - Update qa/issues.md with current status - Sync Chinese documentation changes
9.3 KiB
9.3 KiB
Claude Commands
One-Liner
Claude Commands is the core command system of Claude_dms3 — invoking various workflows, tools, and collaboration features through slash commands.
Core Concepts
| Category | Command Count | Description |
|---|---|---|
| Core Orchestration | 2 | Main workflow orchestrators (ccw, ccw-coordinator) |
| Workflow | 20+ | Planning, execution, review, TDD, testing workflows |
| Session Management | 6 | Session creation, listing, resuming, completion |
| Issue Workflow | 7 | Issue discovery, planning, queue, execution |
| Memory | 8 | Memory capture, update, document generation |
| CLI Tools | 2 | CLI initialization, Codex review |
| UI Design | 10 | UI design prototype generation, style extraction |
Command Categories
1. Core Orchestration Commands
| Command | Function | Difficulty |
|---|---|---|
/ccw |
Main workflow orchestrator - intent analysis -> workflow selection -> command chain execution | Intermediate |
/ccw-coordinator |
Command orchestration tool - chained command execution and state persistence | Intermediate |
2. Workflow Commands
| Command | Function | Difficulty |
|---|---|---|
/workflow:lite-lite-lite |
Ultra-lightweight multi-tool analysis and direct execution | Intermediate |
/workflow:lite-plan |
Lightweight interactive planning workflow | Intermediate |
/workflow:lite-execute |
Execute tasks based on in-memory plan | Intermediate |
/workflow:lite-fix |
Lightweight bug diagnosis and fix | Intermediate |
/workflow:plan |
5-phase planning workflow | Intermediate |
/workflow:execute |
Coordinate agent execution of workflow tasks | Intermediate |
/workflow:replan |
Interactive workflow replanning | Intermediate |
/workflow:multi-cli-plan |
Multi-CLI collaborative planning | Intermediate |
/workflow:review |
Post-implementation review | Intermediate |
/workflow:clean |
Smart code cleanup | Intermediate |
/workflow:init |
Initialize project state | Intermediate |
/workflow:brainstorm-with-file |
Interactive brainstorming | Intermediate |
/workflow:analyze-with-file |
Interactive collaborative analysis | Beginner |
/workflow:debug-with-file |
Interactive hypothesis-driven debugging | Intermediate |
/workflow:unified-execute-with-file |
Universal execution engine | Intermediate |
3. Session Management Commands
| Command | Function | Difficulty |
|---|---|---|
/workflow:session:start |
Discover existing sessions or start new workflow session | Intermediate |
/workflow:session:list |
List all workflow sessions | Beginner |
/workflow:session:resume |
Resume most recently paused workflow session | Intermediate |
/workflow:session:complete |
Mark active workflow session as completed | Intermediate |
/workflow:session:solidify |
Crystallize session learnings into project guidelines | Intermediate |
4. Issue Workflow Commands
| Command | Function | Difficulty |
|---|---|---|
/issue:new |
Create structured issue from GitHub URL or text description | Intermediate |
/issue:discover |
Discover potential issues from multiple perspectives | Intermediate |
/issue:discover-by-prompt |
Discover issues via user prompt | Intermediate |
/issue:plan |
Batch plan issue solutions | Intermediate |
/issue:queue |
Form execution queue | Intermediate |
/issue:execute |
Execute queue | Intermediate |
/issue:convert-to-plan |
Convert planning artifact to issue solution | Intermediate |
5. Memory Commands
| Command | Function | Difficulty |
|---|---|---|
/memory:compact |
Compress current session memory to structured text | Intermediate |
/memory:tips |
Quick note-taking | Beginner |
/memory:load |
Load task context via CLI project analysis | Intermediate |
/memory:update-full |
Update all CLAUDE.md files | Intermediate |
/memory:update-related |
Update CLAUDE.md for git-changed modules | Intermediate |
/memory:docs-full-cli |
Generate full project documentation using CLI | Intermediate |
/memory:docs-related-cli |
Generate documentation for git-changed modules | Intermediate |
/memory:style-skill-memory |
Generate SKILL memory package from style reference | Intermediate |
6. CLI Tool Commands
| Command | Function | Difficulty |
|---|---|---|
/cli:cli-init |
Generate configuration directory and settings files | Intermediate |
/cli:codex-review |
Interactive code review using Codex CLI | Intermediate |
7. UI Design Commands
| Command | Function | Difficulty |
|---|---|---|
/workflow:ui-design:explore-auto |
Interactive exploratory UI design workflow | Intermediate |
/workflow:ui-design:imitate-auto |
Direct code/image input UI design | Intermediate |
/workflow:ui-design:style-extract |
Extract design styles from reference images or prompts | Intermediate |
/workflow:ui-design:layout-extract |
Extract layout information from reference images | Intermediate |
/workflow:ui-design:animation-extract |
Extract animation and transition patterns | Intermediate |
/workflow:ui-design:codify-style |
Extract styles from code and generate shareable reference package | Intermediate |
/workflow:ui-design:generate |
Combine layout templates with design tokens to generate prototypes | Intermediate |
Auto Mode
Most commands support the --yes or -y flag to enable auto mode and skip confirmation steps.
# Standard mode - requires confirmation
/ccw "implement user authentication"
# Auto mode - execute directly without confirmation
/ccw "implement user authentication" --yes
Usage Examples
Quick Analysis
# Analyze codebase structure
/ccw "Analyze the authentication module architecture"
# Quick bug diagnosis
/ccw "Diagnose why the login timeout issue occurs"
Planning & Implementation
# Create implementation plan
/workflow:plan "Add OAuth2 authentication with Google and GitHub providers"
# Execute with auto mode
/workflow:execute --yes
Code Review
# Review current changes
/cli:codex-review
# Focus on specific area
/cli:codex-review "Focus on security vulnerabilities in auth module"
Session Management
# List all sessions
/workflow:session:list
# Resume a paused session
/workflow:session:resume "WFS-001"
# Mark session as complete
/workflow:session:complete "WFS-001"
Issue Workflow
# Discover issues from codebase
/issue:discover
# Create plan for specific issue
/issue:plan "ISSUE-001"
# Execute the fix
/issue:execute --commit
Memory Management
# Capture current session learnings
/memory:capture "Key insights from authentication refactoring"
# List all memories
/memory:list
# Search memories
/memory:search "authentication patterns"
CLI Tool Invocation
# Initialize CLI configuration
/cli:cli-init
# Run Gemini analysis
ccw cli -p "Analyze code patterns in src/auth" --tool gemini --mode analysis
# Run with specific rule template
ccw cli -p "Review code quality" --tool gemini --mode analysis --rule analysis-review-code-quality
UI Design Workflow
# Extract styles from reference image
/workflow:ui-design:style-extract --input "path/to/reference.png"
# Generate prototype
/workflow:ui-design:generate --layout "dashboard" --tokens "design-tokens.json"
Tips
-
Use Auto Mode Sparingly: Only use
--yesor-yfor routine tasks. Keep manual confirmation for complex decisions. -
Session Persistence: Always complete sessions with
/workflow:session:completeto preserve learnings. -
Memory Capture: Regularly capture important insights with
/memory:captureto build project knowledge. -
CLI Tool Selection: Let
/ccwauto-select the appropriate tool, or explicitly specify with--tool gemini|qwen|codex.