mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-05 01:50:27 +08:00
docs: 优化 README 文档并创建命令参考文档
主要变更: 1. 精简 README.md 和 README_CN.md 结构 - 移除冗长的功能描述和安装细节 - 合并理念章节为"核心概念" - 简化安装说明,链接到详细 INSTALL.md - 移除详细命令列表,链接到新的 COMMAND_REFERENCE.md 2. 创建 COMMAND_REFERENCE.md - 完整的命令列表和分类 - 按功能组织(Workflow, CLI, Task, Memory, UI Design, Testing) - 包含所有遗漏的命令(UI 设计、测试工作流等) 3. 创建 COMMAND_SPEC.md - 详细的命令技术规范 - 包含参数、职责、Agent 调用、Skill 调用 - 实际使用示例 - 命令间的工作流集成说明 4. 修正 Critical 级别问题 - 统一仓库 URL 为 Claude-Code-Workflow - 更新 INSTALL.md 中的过时信息 5. 文档引用优化 - 在 README 中添加到 COMMAND_REFERENCE.md 和 COMMAND_SPEC.md 的链接 - 保持中英文文档结构一致 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
133
COMMAND_REFERENCE.md
Normal file
133
COMMAND_REFERENCE.md
Normal file
@@ -0,0 +1,133 @@
|
||||
# Command Reference
|
||||
|
||||
This document provides a comprehensive reference for all commands available in the Claude Code Workflow (CCW) system.
|
||||
|
||||
## Unified CLI Commands (`/cli:*`)
|
||||
|
||||
These commands provide direct access to AI tools for quick analysis and interaction without initiating a full workflow.
|
||||
|
||||
| Command | Description |
|
||||
|---|---|
|
||||
| `/cli:analyze` | Quick codebase analysis using CLI tools (codex/gemini/qwen). |
|
||||
| `/cli:chat` | Simple CLI interaction command for direct codebase analysis. |
|
||||
| `/cli:cli-init`| Initialize CLI tool configurations (Gemini and Qwen) based on workspace analysis. |
|
||||
| `/cli:codex-execute` | Automated task decomposition and execution with Codex using resume mechanism. |
|
||||
| `/cli:discuss-plan` | Orchestrates an iterative, multi-model discussion for planning and analysis without implementation. |
|
||||
| `/cli:execute` | Auto-execution of implementation tasks with YOLO permissions and intelligent context inference. |
|
||||
| `/cli:mode:bug-index` | Bug analysis and fix suggestions using CLI tools. |
|
||||
| `/cli:mode:code-analysis` | Deep code analysis and debugging using CLI tools with specialized template. |
|
||||
| `/cli:mode:plan` | Project planning and architecture analysis using CLI tools. |
|
||||
|
||||
## Workflow Commands (`/workflow:*`)
|
||||
|
||||
These commands orchestrate complex, multi-phase development processes, from planning to execution.
|
||||
|
||||
### Session Management
|
||||
|
||||
| Command | Description |
|
||||
|---|---|
|
||||
| `/workflow:session:start` | Discover existing sessions or start a new workflow session with intelligent session management. |
|
||||
| `/workflow:session:list` | List all workflow sessions with status. |
|
||||
| `/workflow:session:resume` | Resume the most recently paused workflow session. |
|
||||
| `/workflow:session:complete` | Mark the active workflow session as complete and remove active flag. |
|
||||
|
||||
### Core Workflow
|
||||
|
||||
| Command | Description |
|
||||
|---|---|
|
||||
| `/workflow:plan` | Orchestrate 5-phase planning workflow with quality gate, executing commands and passing context between phases. |
|
||||
| `/workflow:execute` | Coordinate agents for existing workflow tasks with automatic discovery. |
|
||||
| `/workflow:resume` | Intelligent workflow session resumption with automatic progress analysis. |
|
||||
| `/workflow:review` | Optional specialized review (security, architecture, docs) for completed implementation. |
|
||||
| `/workflow:status` | Generate on-demand views from JSON task data. |
|
||||
|
||||
### Brainstorming
|
||||
|
||||
| Command | Description |
|
||||
|---|---|
|
||||
| `/workflow:brainstorm:artifacts` | Generate role-specific topic-framework.md dynamically based on selected roles. |
|
||||
| `/workflow:brainstorm:auto-parallel` | Parallel brainstorming automation with dynamic role selection and concurrent execution. |
|
||||
| `/workflow:brainstorm:synthesis` | Generate synthesis-specification.md from topic-framework and role analyses with @ references using conceptual-planning-agent. |
|
||||
| `/workflow:brainstorm:api-designer` | Generate or update api-designer/analysis.md addressing topic-framework discussion points. |
|
||||
| `/workflow:brainstorm:data-architect` | Generate or update data-architect/analysis.md addressing topic-framework discussion points. |
|
||||
| `/workflow:brainstorm:product-manager` | Generate or update product-manager/analysis.md addressing topic-framework discussion points. |
|
||||
| `/workflow:brainstorm:product-owner` | Generate or update product-owner/analysis.md addressing topic-framework discussion points. |
|
||||
| `/workflow:brainstorm:scrum-master` | Generate or update scrum-master/analysis.md addressing topic-framework discussion points. |
|
||||
| `/workflow:brainstorm:subject-matter-expert` | Generate or update subject-matter-expert/analysis.md addressing topic-framework discussion points. |
|
||||
| `/workflow:brainstorm:system-architect` | Generate or update system-architect/analysis.md addressing topic-framework discussion points. |
|
||||
| `/workflow:brainstorm:ui-designer` | Generate or update ui-designer/analysis.md addressing topic-framework discussion points. |
|
||||
| `/workflow:brainstorm:ux-expert` | Generate or update ux-expert/analysis.md addressing topic-framework discussion points. |
|
||||
|
||||
### Quality & Verification
|
||||
|
||||
| Command | Description |
|
||||
|---|---|
|
||||
| `/workflow:concept-clarify` | Identify underspecified areas in brainstorming artifacts through targeted clarification questions before action planning. |
|
||||
| `/workflow:action-plan-verify`| Perform non-destructive cross-artifact consistency and quality analysis of IMPL_PLAN.md and task.json before execution. |
|
||||
|
||||
### Test-Driven Development (TDD)
|
||||
|
||||
| Command | Description |
|
||||
|---|---|
|
||||
| `/workflow:tdd-plan` | Orchestrate TDD workflow planning with Red-Green-Refactor task chains. |
|
||||
| `/workflow:tdd-verify` | Verify TDD workflow compliance and generate quality report. |
|
||||
|
||||
### Test Generation & Execution
|
||||
|
||||
| Command | Description |
|
||||
|---|---|
|
||||
| `/workflow:test-gen` | Create independent test-fix workflow session by analyzing completed implementation. |
|
||||
| `/workflow:test-fix-gen` | Create independent test-fix workflow session from existing implementation (session or prompt-based). |
|
||||
| `/workflow:test-cycle-execute` | Execute test-fix workflow with dynamic task generation and iterative fix cycles. |
|
||||
|
||||
### UI Design Workflow
|
||||
|
||||
| Command | Description |
|
||||
|---|---|
|
||||
| `/workflow:ui-design:explore-auto` | Exploratory UI design workflow with style-centric batch generation. |
|
||||
| `/workflow:ui-design:imitate-auto` | High-speed multi-page UI replication with batch screenshot capture. |
|
||||
| `/workflow:ui-design:batch-generate` | Prompt-driven batch UI generation using target-style-centric parallel execution. |
|
||||
| `/workflow:ui-design:capture` | Batch screenshot capture for UI design workflows using MCP or local fallback. |
|
||||
| `/workflow:ui-design:explore-layers` | Interactive deep UI capture with depth-controlled layer exploration. |
|
||||
| `/workflow:ui-design:style-extract` | Extract design style from reference images or text prompts using Claude's analysis. |
|
||||
| `/workflow:ui-design:layout-extract` | Extract structural layout information from reference images, URLs, or text prompts. |
|
||||
| `/workflow:ui-design:generate` | Assemble UI prototypes by combining layout templates with design tokens (pure assembler). |
|
||||
| `/workflow:ui-design:update` | Update brainstorming artifacts with finalized design system references. |
|
||||
| `/workflow:ui-design:animation-extract` | Extract animation and transition patterns from URLs, CSS, or interactive questioning. |
|
||||
|
||||
### Internal Tools
|
||||
|
||||
These commands are primarily used internally by other workflow commands but can be used manually.
|
||||
|
||||
| Command | Description |
|
||||
|---|---|
|
||||
| `/workflow:tools:concept-enhanced` | Enhanced intelligent analysis with parallel CLI execution and design blueprint generation. |
|
||||
| `/workflow:tools:context-gather` | Intelligently collect project context using general-purpose agent based on task description and package into standardized JSON. |
|
||||
| `/workflow:tools:task-generate` | Generate task JSON files and IMPL_PLAN.md from analysis results with artifacts integration. |
|
||||
| `/workflow:tools:task-generate-agent` | Autonomous task generation using action-planning-agent with discovery and output phases. |
|
||||
| `/workflow:tools:task-generate-tdd` | Generate TDD task chains with Red-Green-Refactor dependencies. |
|
||||
| `/workflow:tools:tdd-coverage-analysis` | Analyze test coverage and TDD cycle execution. |
|
||||
| `/workflow:tools:test-concept-enhanced` | Analyze test requirements and generate test generation strategy using Gemini. |
|
||||
| `/workflow:tools:test-context-gather` | Collect test coverage context and identify files requiring test generation. |
|
||||
| `/workflow:tools:test-task-generate` | Generate test-fix task JSON with iterative test-fix-retest cycle specification. |
|
||||
|
||||
## Task Commands (`/task:*`)
|
||||
|
||||
Commands for managing individual tasks within a workflow session.
|
||||
|
||||
| Command | Description |
|
||||
|---|---|
|
||||
| `/task:create` | Create implementation tasks with automatic context awareness. |
|
||||
| `/task:breakdown` | Intelligent task decomposition with context-aware subtask generation. |
|
||||
| `/task:execute` | Execute tasks with appropriate agents and context-aware orchestration. |
|
||||
| `/task:replan` | Replan individual tasks with detailed user input and change tracking. |
|
||||
|
||||
## Memory and Versioning Commands
|
||||
|
||||
| Command | Description |
|
||||
|---|---|
|
||||
| `/memory:update-full` | Complete project-wide CLAUDE.md documentation update. |
|
||||
| `/memory:update-related` | Context-aware CLAUDE.md documentation updates based on recent changes. |
|
||||
| `/version` | Display version information and check for updates. |
|
||||
| `/enhance-prompt` | Context-aware prompt enhancement using session memory and codebase analysis. |
|
||||
|
||||
476
COMMAND_SPEC.md
Normal file
476
COMMAND_SPEC.md
Normal file
@@ -0,0 +1,476 @@
|
||||
|
||||
# Claude Code Workflow (CCW) - Command Specification
|
||||
|
||||
**Version**: 4.6.0
|
||||
**Generated**: 2025年10月18日星期六
|
||||
|
||||
## 1. Introduction
|
||||
|
||||
This document provides a detailed technical specification for every command available in the Claude Code Workflow (CCW) system. It is intended for advanced users and developers who wish to understand the inner workings of CCW, customize commands, or build new workflows.
|
||||
|
||||
For a user-friendly overview, please see [COMMAND_REFERENCE.md](COMMAND_REFERENCE.md).
|
||||
|
||||
## 2. Command Categories
|
||||
|
||||
Commands are organized into the following categories:
|
||||
|
||||
- **Workflow Commands**: High-level orchestration for multi-phase development processes.
|
||||
- **CLI Commands**: Direct access to AI tools for analysis and interaction.
|
||||
- **Task Commands**: Management of individual work units within a workflow.
|
||||
- **Memory Commands**: Context and documentation management.
|
||||
- **UI Design Commands**: Specialized workflow for UI/UX design and prototyping.
|
||||
- **Testing Commands**: TDD and test generation workflows.
|
||||
|
||||
---
|
||||
|
||||
## 3. Workflow Commands
|
||||
|
||||
High-level orchestrators for complex, multi-phase development processes.
|
||||
|
||||
### **/workflow:plan**
|
||||
|
||||
- **Syntax**: `/workflow:plan [--agent] [--cli-execute] "text description"|file.md`
|
||||
- **Parameters**:
|
||||
- `--agent` (Optional, Flag): Use the `task-generate-agent` for autonomous task generation.
|
||||
- `--cli-execute` (Optional, Flag): Generate tasks with commands ready for CLI execution (e.g., using Codex).
|
||||
- `description|file.md` (Required, String): A description of the planning goal or a path to a markdown file containing the requirements.
|
||||
- **Responsibilities**: Orchestrates a 5-phase planning workflow that includes session start, context gathering, intelligent analysis, concept clarification (quality gate), and task generation.
|
||||
- **Agent Calls**: Delegates analysis to `@cli-execution-agent` and task generation to `@action-planning-agent`.
|
||||
- **Skill Invocation**: Does not directly invoke a skill, but the underlying agents may.
|
||||
- **Integration**: This is a primary entry point for starting a development workflow. It is followed by `/workflow:execute`.
|
||||
- **Example**:
|
||||
```bash
|
||||
/workflow:plan "Create a simple Express API that returns Hello World"
|
||||
```
|
||||
|
||||
### **/workflow:execute**
|
||||
|
||||
- **Syntax**: `/workflow:execute [--resume-session="session-id"]`
|
||||
- **Parameters**:
|
||||
- `--resume-session` (Optional, String): The ID of a paused session to resume.
|
||||
- **Responsibilities**: Discovers and executes all pending tasks in the active (or specified) workflow session. It handles dependency resolution and orchestrates agents to perform the work.
|
||||
- **Agent Calls**: Dynamically calls the agent specified in each task's `meta.agent` field (e.g., `@code-developer`, `@test-fix-agent`).
|
||||
- **Integration**: The primary command for implementing a plan generated by `/workflow:plan`.
|
||||
- **Example**:
|
||||
```bash
|
||||
# Execute tasks in the currently active session
|
||||
/workflow:execute
|
||||
```
|
||||
|
||||
### **/workflow:resume**
|
||||
|
||||
- **Syntax**: `/workflow:resume "session-id"`
|
||||
- **Parameters**:
|
||||
- `session-id` (Required, String): The ID of the workflow session to resume.
|
||||
- **Responsibilities**: A two-phase orchestrator that first analyzes the status of a paused session and then resumes it by calling `/workflow:execute --resume-session`.
|
||||
- **Agent Calls**: None directly. It orchestrates `/workflow:status` and `/workflow:execute`.
|
||||
- **Integration**: Used to continue a previously paused or interrupted workflow.
|
||||
- **Example**:
|
||||
```bash
|
||||
/workflow:resume "WFS-user-login-feature"
|
||||
```
|
||||
|
||||
### **/workflow:review**
|
||||
|
||||
- **Syntax**: `/workflow:review [--type=security|architecture|action-items|quality] [session-id]`
|
||||
- **Parameters**:
|
||||
- `--type` (Optional, String): The type of review to perform. Defaults to `quality`.
|
||||
- `session-id` (Optional, String): The session to review. Defaults to the active session.
|
||||
- **Responsibilities**: Performs a specialized, post-implementation review. This is optional, as the default quality gate is passing tests.
|
||||
- **Agent Calls**: Uses `gemini-wrapper` or `qwen-wrapper` for analysis based on the review type.
|
||||
- **Integration**: Used after `/workflow:execute` to perform audits before deployment.
|
||||
- **Example**:
|
||||
```bash
|
||||
/workflow:review --type=security
|
||||
```
|
||||
|
||||
### **/workflow:status**
|
||||
|
||||
- **Syntax**: `/workflow:status [task-id]`
|
||||
- **Parameters**:
|
||||
- `task-id` (Optional, String): If provided, shows details for a specific task.
|
||||
- **Responsibilities**: Generates and displays an on-demand view of the current workflow's status by reading task JSON data. Does not modify any state.
|
||||
- **Agent Calls**: None.
|
||||
- **Integration**: A read-only command used to check progress at any point.
|
||||
- **Example**:
|
||||
```bash
|
||||
/workflow:status
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 4. Session Management Commands
|
||||
|
||||
Commands for creating, listing, and managing workflow sessions.
|
||||
|
||||
### **/workflow:session:start**
|
||||
- **Syntax**: `/workflow:session:start [--auto|--new] [description]`
|
||||
- **Parameters**:
|
||||
- `--auto` (Flag): Intelligently reuses an active session if relevant, otherwise creates a new one.
|
||||
- `--new` (Flag): Forces the creation of a new session.
|
||||
- `description` (Optional, String): A description for the new session's goal.
|
||||
- **Responsibilities**: Manages session creation and activation. It can discover existing sessions, create new ones, and set the active session marker.
|
||||
- **Agent Calls**: None.
|
||||
- **Example**:
|
||||
```bash
|
||||
/workflow:session:start "My New Feature"
|
||||
```
|
||||
|
||||
### **/workflow:session:list**
|
||||
- **Syntax**: `/workflow:session:list`
|
||||
- **Parameters**: None.
|
||||
- **Responsibilities**: Lists all workflow sessions found in the `.workflow/` directory, showing their status (active, paused, completed).
|
||||
- **Agent Calls**: None.
|
||||
- **Example**:
|
||||
```bash
|
||||
/workflow:session:list
|
||||
```
|
||||
|
||||
### **/workflow:session:resume**
|
||||
- **Syntax**: `/workflow:session:resume`
|
||||
- **Parameters**: None.
|
||||
- **Responsibilities**: Finds the most recently paused session and marks it as active.
|
||||
- **Agent Calls**: None.
|
||||
- **Example**:
|
||||
```bash
|
||||
/workflow:session:resume
|
||||
```
|
||||
|
||||
### **/workflow:session:complete**
|
||||
- **Syntax**: `/workflow:session:complete [--detailed]`
|
||||
- **Parameters**:
|
||||
- `--detailed` (Flag): Shows a more detailed completion summary.
|
||||
- **Responsibilities**: Marks the currently active session as "completed", records timestamps, and removes the `.active-*` marker file.
|
||||
- **Agent Calls**: None.
|
||||
- **Example**:
|
||||
```bash
|
||||
/workflow:session:complete
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 5. CLI Commands
|
||||
|
||||
Direct access to AI tools for analysis and code interaction without a full workflow structure.
|
||||
|
||||
### **/cli:analyze**
|
||||
- **Syntax**: `/cli:analyze [--agent] [--tool codex|gemini|qwen] [--enhance] <analysis target>`
|
||||
- **Responsibilities**: Performs read-only codebase analysis. Can operate in standard mode (direct tool call) or agent mode (`@cli-execution-agent`) for automated context discovery.
|
||||
- **Agent Calls**: `@cli-execution-agent` (if `--agent` is used).
|
||||
- **Example**:
|
||||
```bash
|
||||
/cli:analyze "authentication patterns"
|
||||
```
|
||||
|
||||
### **/cli:chat**
|
||||
- **Syntax**: `/cli:chat [--agent] [--tool codex|gemini|qwen] [--enhance] <inquiry>`
|
||||
- **Responsibilities**: Provides a direct Q&A interface with AI tools for codebase questions. Read-only.
|
||||
- **Agent Calls**: `@cli-execution-agent` (if `--agent` is used).
|
||||
- **Example**:
|
||||
```bash
|
||||
/cli:chat "how does the caching layer work?"
|
||||
```
|
||||
|
||||
### **/cli:cli-init**
|
||||
- **Syntax**: `/cli:cli-init [--tool gemini|qwen|all] [--output path] [--preview]`
|
||||
- **Responsibilities**: Initializes configuration for CLI tools (`.gemini/`, `.qwen/`) by analyzing the workspace and creating optimized `.geminiignore` and `.qwenignore` files.
|
||||
- **Agent Calls**: None.
|
||||
- **Example**:
|
||||
```bash
|
||||
/cli:cli-init
|
||||
```
|
||||
|
||||
### **/cli:codex-execute**
|
||||
- **Syntax**: `/cli:codex-execute [--verify-git] <description|task-id>`
|
||||
- **Responsibilities**: Orchestrates automated task decomposition and sequential execution using Codex. It uses the `resume --last` mechanism for context continuity between subtasks.
|
||||
- **Agent Calls**: None directly, but orchestrates `codex` CLI tool.
|
||||
- **Example**:
|
||||
```bash
|
||||
/cli:codex-execute "implement user authentication system"
|
||||
```
|
||||
|
||||
### **/cli:discuss-plan**
|
||||
- **Syntax**: `/cli:discuss-plan [--topic '...'] [--task-id '...'] [--rounds N] <input>`
|
||||
- **Responsibilities**: Orchestrates an iterative, multi-model (Gemini, Codex, Claude) discussion to perform deep analysis and planning without modifying code.
|
||||
- **Agent Calls**: None directly, but orchestrates `gemini-wrapper` and `codex` CLI tools.
|
||||
- **Example**:
|
||||
```bash
|
||||
/cli:discuss-plan --topic "Design a new caching layer"
|
||||
```
|
||||
|
||||
### **/cli:execute**
|
||||
- **Syntax**: `/cli:execute [--agent] [--tool codex|gemini|qwen] [--enhance] <description|task-id>`
|
||||
- **Responsibilities**: Executes implementation tasks with auto-approval (`YOLO` mode). **MODIFIES CODE**.
|
||||
- **Agent Calls**: `@cli-execution-agent` (if `--agent` is used).
|
||||
- **Example**:
|
||||
```bash
|
||||
/cli:execute "implement JWT authentication with middleware"
|
||||
```
|
||||
|
||||
### **/cli:mode:bug-index**
|
||||
- **Syntax**: `/cli:mode:bug-index [--agent] [--tool ...] [--enhance] [--cd path] <bug description>`
|
||||
- **Responsibilities**: Performs systematic bug analysis using the `bug-fix.md` template. Read-only.
|
||||
- **Agent Calls**: `@cli-execution-agent` (if `--agent` is used).
|
||||
- **Example**:
|
||||
```bash
|
||||
/cli:mode:bug-index "null pointer error in login flow"
|
||||
```
|
||||
|
||||
### **/cli:mode:code-analysis**
|
||||
- **Syntax**: `/cli:mode:code-analysis [--agent] [--tool ...] [--enhance] [--cd path] <analysis target>`
|
||||
- **Responsibilities**: Performs deep code analysis and execution path tracing using the `code-analysis.md` template. Read-only.
|
||||
- **Agent Calls**: `@cli-execution-agent` (if `--agent` is used).
|
||||
- **Example**:
|
||||
```bash
|
||||
/cli:mode:code-analysis "trace authentication execution flow"
|
||||
```
|
||||
|
||||
### **/cli:mode:plan**
|
||||
- **Syntax**: `/cli:mode:plan [--agent] [--tool ...] [--enhance] [--cd path] <topic>`
|
||||
- **Responsibilities**: Performs comprehensive planning and architecture analysis using the `plan.md` template. Read-only.
|
||||
- **Agent Calls**: `@cli-execution-agent` (if `--agent` is used).
|
||||
- **Example**:
|
||||
```bash
|
||||
/cli:mode:plan "design user dashboard architecture"
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 6. Task Commands
|
||||
|
||||
Commands for managing individual tasks within a workflow session.
|
||||
|
||||
### **/task:create**
|
||||
- **Syntax**: `/task:create "task title"`
|
||||
- **Parameters**:
|
||||
- `title` (Required, String): The title of the task.
|
||||
- **Responsibilities**: Creates a new task JSON file within the active session, auto-generating an ID and inheriting context.
|
||||
- **Agent Calls**: Suggests an agent (e.g., `@code-developer`) based on task type but does not call it.
|
||||
- **Example**:
|
||||
```bash
|
||||
/task:create "Build authentication module"
|
||||
```
|
||||
|
||||
### **/task:breakdown**
|
||||
- **Syntax**: `/task:breakdown <task-id>`
|
||||
- **Parameters**:
|
||||
- `task-id` (Required, String): The ID of the parent task to break down.
|
||||
- **Responsibilities**: Manually decomposes a complex parent task into smaller, executable subtasks. Enforces a 10-task limit and file cohesion.
|
||||
- **Agent Calls**: None.
|
||||
- **Example**:
|
||||
```bash
|
||||
/task:breakdown IMPL-1
|
||||
```
|
||||
|
||||
### **/task:execute**
|
||||
- **Syntax**: `/task:execute <task-id>`
|
||||
- **Parameters**:
|
||||
- `task-id` (Required, String): The ID of the task to execute.
|
||||
- **Responsibilities**: Executes a single task or a parent task (by executing its subtasks) using the assigned agent.
|
||||
- **Agent Calls**: Calls the agent specified in the task's `meta.agent` field.
|
||||
- **Example**:
|
||||
```bash
|
||||
/task:execute IMPL-1.1
|
||||
```
|
||||
|
||||
### **/task:replan**
|
||||
- **Syntax**: `/task:replan <task-id> ["text"|file.md] | --batch [report.md]`
|
||||
- **Parameters**:
|
||||
- `task-id` (String): The ID of the task to replan.
|
||||
- `input` (String): Text or a file path with the new specifications.
|
||||
- `--batch` (Flag): Enables batch processing from a verification report.
|
||||
- **Responsibilities**: Updates a task's specification, creating a versioned backup of the previous state.
|
||||
- **Agent Calls**: None.
|
||||
- **Example**:
|
||||
```bash
|
||||
/task:replan IMPL-1 "Add OAuth2 authentication support"
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 7. Memory and Versioning Commands
|
||||
|
||||
### **/memory:update-full**
|
||||
- **Syntax**: `/memory:update-full [--tool gemini|qwen|codex] [--path <directory>]`
|
||||
- **Responsibilities**: Orchestrates a complete, project-wide update of all `CLAUDE.md` documentation files.
|
||||
- **Agent Calls**: None directly, but orchestrates CLI tools (`gemini-wrapper`, etc.).
|
||||
- **Example**:
|
||||
```bash
|
||||
/memory:update-full
|
||||
```
|
||||
|
||||
### **/memory:update-related**
|
||||
- **Syntax**: `/memory:update-related [--tool gemini|qwen|codex]`
|
||||
- **Responsibilities**: Performs a context-aware update of `CLAUDE.md` files for modules affected by recent git changes.
|
||||
- **Agent Calls**: None directly, but orchestrates CLI tools.
|
||||
- **Example**:
|
||||
```bash
|
||||
/memory:update-related
|
||||
```
|
||||
|
||||
### **/version**
|
||||
- **Syntax**: `/version`
|
||||
- **Parameters**: None.
|
||||
- **Responsibilities**: Displays local and global installation versions and checks for updates from GitHub.
|
||||
- **Agent Calls**: None.
|
||||
- **Example**:
|
||||
```bash
|
||||
/version
|
||||
```
|
||||
|
||||
### **/enhance-prompt**
|
||||
- **Syntax**: `/enhance-prompt <user input>`
|
||||
- **Responsibilities**: A system-level skill that enhances a user's prompt by adding context from session memory and codebase analysis. It is typically triggered automatically by other commands that include the `--enhance` flag.
|
||||
- **Skill Invocation**: This is a core skill, invoked when `--enhance` is used.
|
||||
- **Agent Calls**: None.
|
||||
- **Example (as part of another command)**:
|
||||
```bash
|
||||
/cli:execute --enhance "fix the login button"
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 8. UI Design Commands
|
||||
|
||||
Specialized workflow for UI/UX design, from style extraction to prototype generation.
|
||||
|
||||
### **/workflow:ui-design:explore-auto**
|
||||
- **Syntax**: `/workflow:ui-design:explore-auto [--prompt "..."] [--images "..."] [--targets "..."] ...`
|
||||
- **Responsibilities**: Fully autonomous, multi-phase workflow that orchestrates style extraction, layout extraction, and prototype generation.
|
||||
- **Agent Calls**: `@ui-design-agent`.
|
||||
- **Example**:
|
||||
```bash
|
||||
/workflow:ui-design:explore-auto --prompt "Modern blog: home, article, author"
|
||||
```
|
||||
|
||||
### **/workflow:ui-design:imitate-auto**
|
||||
- **Syntax**: `/workflow:ui-design:imitate-auto --url-map "<map>" [--capture-mode <batch|deep>] ...`
|
||||
- **Responsibilities**: High-speed, multi-page UI replication workflow that captures screenshots and orchestrates the full design pipeline.
|
||||
- **Agent Calls**: `@ui-design-agent`.
|
||||
- **Example**:
|
||||
```bash
|
||||
/workflow:ui-design:imitate-auto --url-map "home:https://linear.app, features:https://linear.app/features"
|
||||
```
|
||||
|
||||
### **/workflow:ui-design:batch-generate**
|
||||
- **Syntax**: `/workflow:ui-design:batch-generate [--prompt "..."] [--targets "..."] ...`
|
||||
- **Responsibilities**: Prompt-driven batch UI generation with parallel execution for multiple targets and styles.
|
||||
- **Agent Calls**: `@ui-design-agent`.
|
||||
- **Example**:
|
||||
```bash
|
||||
/workflow:ui-design:batch-generate --prompt "Dashboard with metric cards and charts"
|
||||
```
|
||||
|
||||
### **/workflow:ui-design:capture**
|
||||
- **Syntax**: `/workflow:ui-design:capture --url-map "target:url,..." ...`
|
||||
- **Responsibilities**: Batch screenshot capture tool with MCP-first strategy and local fallbacks.
|
||||
- **Agent Calls**: None directly, uses MCP tools.
|
||||
- **Example**:
|
||||
```bash
|
||||
/workflow:ui-design:capture --url-map "home:https://linear.app"
|
||||
```
|
||||
|
||||
### **/workflow:ui-design:explore-layers**
|
||||
- **Syntax**: `/workflow:ui-design:explore-layers --url <url> --depth <1-5> ...`
|
||||
- **Responsibilities**: Performs a deep, interactive UI capture of a single URL, exploring layers from the full page down to the Shadow DOM.
|
||||
- **Agent Calls**: None directly, uses MCP tools.
|
||||
- **Example**:
|
||||
```bash
|
||||
/workflow:ui-design:explore-layers --url https://linear.app --depth 3
|
||||
```
|
||||
|
||||
### **/workflow:ui-design:style-extract**
|
||||
- **Syntax**: `/workflow:ui-design:style-extract [--images "..."] [--prompt "..."] ...`
|
||||
- **Responsibilities**: Extracts design styles from images or text prompts and generates production-ready design systems (`design-tokens.json`, `style-guide.md`).
|
||||
- **Agent Calls**: `@ui-design-agent`.
|
||||
- **Example**:
|
||||
```bash
|
||||
/workflow:ui-design:style-extract --images "design-refs/*.png" --variants 3
|
||||
```
|
||||
|
||||
### **/workflow:ui-design:layout-extract**
|
||||
- **Syntax**: `/workflow:ui-design:layout-extract [--images "..."] [--urls "..."] ...`
|
||||
- **Responsibilities**: Extracts structural layout information (HTML structure, CSS layout rules) separately from visual style.
|
||||
- **Agent Calls**: `@ui-design-agent`.
|
||||
- **Example**:
|
||||
```bash
|
||||
/workflow:ui-design:layout-extract --urls "home:https://linear.app" --mode imitate
|
||||
```
|
||||
|
||||
### **/workflow:ui-design:generate**
|
||||
- **Syntax**: `/workflow:ui-design:generate [--base-path <path>] ...`
|
||||
- **Responsibilities**: A pure assembler that combines pre-extracted layout templates with design tokens to generate final UI prototypes.
|
||||
- **Agent Calls**: `@ui-design-agent`.
|
||||
- **Example**:
|
||||
```bash
|
||||
/workflow:ui-design:generate --session WFS-design-run
|
||||
```
|
||||
|
||||
### **/workflow:ui-design:update**
|
||||
- **Syntax**: `/workflow:ui-design:update --session <session_id> ...`
|
||||
- **Responsibilities**: Synchronizes the finalized design system references into the core brainstorming artifacts (`synthesis-specification.md`) to make them available for the planning phase.
|
||||
- **Agent Calls**: None.
|
||||
- **Example**:
|
||||
```bash
|
||||
/workflow:ui-design:update --session WFS-my-app
|
||||
```
|
||||
|
||||
### **/workflow:ui-design:animation-extract**
|
||||
- **Syntax**: `/workflow:ui-design:animation-extract [--urls "<list>"] [--mode <auto|interactive>] ...`
|
||||
- **Responsibilities**: Extracts animation and transition patterns from URLs (auto mode) or through interactive questioning to generate animation tokens.
|
||||
- **Agent Calls**: `@ui-design-agent` (for interactive mode).
|
||||
- **Example**:
|
||||
```bash
|
||||
/workflow:ui-design:animation-extract --urls "home:https://linear.app" --mode auto
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 9. Testing Commands
|
||||
|
||||
Workflows for Test-Driven Development (TDD) and post-implementation test generation.
|
||||
|
||||
### **/workflow:tdd-plan**
|
||||
- **Syntax**: `/workflow:tdd-plan [--agent] "feature description"|file.md`
|
||||
- **Responsibilities**: Orchestrates a 7-phase TDD planning workflow, creating tasks with Red-Green-Refactor cycles.
|
||||
- **Agent Calls**: Orchestrates sub-commands which may call agents.
|
||||
- **Example**:
|
||||
```bash
|
||||
/workflow:tdd-plan "Implement a secure login endpoint"
|
||||
```
|
||||
|
||||
### **/workflow:tdd-verify**
|
||||
- **Syntax**: `/workflow:tdd-verify [session-id]`
|
||||
- **Responsibilities**: Verifies TDD workflow compliance by analyzing task chains, test coverage, and cycle execution.
|
||||
- **Agent Calls**: None directly, orchestrates `gemini-wrapper`.
|
||||
- **Example**:
|
||||
```bash
|
||||
/workflow:tdd-verify WFS-login-tdd
|
||||
```
|
||||
|
||||
### **/workflow:test-gen**
|
||||
- **Syntax**: `/workflow:test-gen [--use-codex] [--cli-execute] <source-session-id>`
|
||||
- **Responsibilities**: Creates an independent test-fix workflow by analyzing a completed implementation session.
|
||||
- **Agent Calls**: Orchestrates sub-commands that call `@code-developer` and `@test-fix-agent`.
|
||||
- **Example**:
|
||||
```bash
|
||||
/workflow:test-gen WFS-user-auth-v2
|
||||
```
|
||||
|
||||
### **/workflow:test-fix-gen**
|
||||
- **Syntax**: `/workflow:test-fix-gen [--use-codex] [--cli-execute] (<source-session-id> | "description" | /path/to/file.md)`
|
||||
- **Responsibilities**: Creates an independent test-fix workflow from either a completed session or a feature description.
|
||||
- **Agent Calls**: Orchestrates sub-commands that call `@code-developer` and `@test-fix-agent`.
|
||||
- **Example**:
|
||||
```bash
|
||||
/workflow:test-fix-gen "Test the user authentication API endpoints"
|
||||
```
|
||||
|
||||
### **/workflow:test-cycle-execute**
|
||||
- **Syntax**: `/workflow:test-cycle-execute [--resume-session="session-id"] [--max-iterations=N]`
|
||||
- **Responsibilities**: Executes a dynamic test-fix workflow, creating intermediate fix tasks based on test results and analysis.
|
||||
- **Agent Calls**: `@code-developer`, `@test-fix-agent`.
|
||||
- **Example**:
|
||||
```bash
|
||||
/workflow:test-cycle-execute --resume-session="WFS-test-user-auth"
|
||||
```
|
||||
25
INSTALL.md
25
INSTALL.md
@@ -9,16 +9,16 @@ Interactive installation guide for Claude Code with Agent workflow coordination
|
||||
### All Platforms - Remote PowerShell Installation
|
||||
```powershell
|
||||
# Interactive remote installation from feature branch (latest)
|
||||
iex (iwr -useb https://raw.githubusercontent.com/catlog22/Dmsflow/main/install-remote.ps1)
|
||||
iex (iwr -useb https://raw.githubusercontent.com/catlog22/Claude-Code-Workflow/main/install-remote.ps1)
|
||||
|
||||
# Global installation with unified file output system
|
||||
iex (iwr -useb https://raw.githubusercontent.com/catlog22/Dmsflow/main/install-remote.ps1) -Global
|
||||
iex (iwr -useb https://raw.githubusercontent.com/catlog22/Claude-Code-Workflow/main/install-remote.ps1) -Global
|
||||
|
||||
# Force overwrite (non-interactive) - includes all new workflow file generation features
|
||||
iex (iwr -useb https://raw.githubusercontent.com/catlog22/Dmsflow/main/install-remote.ps1) -Force -NonInteractive
|
||||
iex (iwr -useb https://raw.githubusercontent.com/catlog22/Claude-Code-Workflow/main/install-remote.ps1) -Force -NonInteractive
|
||||
|
||||
# One-click backup all existing files (no confirmations needed)
|
||||
iex (iwr -useb https://raw.githubusercontent.com/catlog22/Dmsflow/main/install-remote.ps1) -BackupAll
|
||||
iex (iwr -useb https://raw.githubusercontent.com/catlog22/Claude-Code-Workflow/main/install-remote.ps1) -BackupAll
|
||||
```
|
||||
|
||||
**What the remote installer does:**
|
||||
@@ -37,8 +37,7 @@ iex (iwr -useb https://raw.githubusercontent.com/catlog22/Dmsflow/main/install-r
|
||||
### All Platforms (PowerShell)
|
||||
```powershell
|
||||
# Clone the repository with latest features
|
||||
git clone -b main https://github.com/catlog22/Claude-CCW.git
|
||||
cd Dmsflow
|
||||
cd Claude-Code-Workflow
|
||||
|
||||
# Windows PowerShell 5.1+ or PowerShell Core (Global installation only)
|
||||
.\Install-Claude.ps1
|
||||
@@ -57,22 +56,22 @@ All parameters can be passed to the remote installer:
|
||||
|
||||
```powershell
|
||||
# Global installation
|
||||
iex (iwr -useb https://raw.githubusercontent.com/catlog22/Dmsflow/main/install-remote.ps1) -Global
|
||||
iex (iwr -useb https://raw.githubusercontent.com/catlog22/Claude-Code-Workflow/main/install-remote.ps1) -Global
|
||||
|
||||
# Install to specific directory
|
||||
iex (iwr -useb https://raw.githubusercontent.com/catlog22/Dmsflow/main/install-remote.ps1) -Directory "C:\MyProject"
|
||||
iex (iwr -useb https://raw.githubusercontent.com/catlog22/Claude-Code-Workflow/main/install-remote.ps1) -Directory "C:\MyProject"
|
||||
|
||||
# Force overwrite without prompts
|
||||
iex (iwr -useb https://raw.githubusercontent.com/catlog22/Dmsflow/main/install-remote.ps1) -Force -NonInteractive
|
||||
iex (iwr -useb https://raw.githubusercontent.com/catlog22/Claude-Code-Workflow/main/install-remote.ps1) -Force -NonInteractive
|
||||
|
||||
# Install from specific branch
|
||||
iex (iwr -useb https://raw.githubusercontent.com/catlog22/Dmsflow/main/install-remote.ps1) -Branch "dev"
|
||||
iex (iwr -useb https://raw.githubusercontent.com/catlog22/Claude-Code-Workflow/main/install-remote.ps1) -Branch "dev"
|
||||
|
||||
# Skip backups (overwrite without backup - not recommended)
|
||||
iex (iwr -useb https://raw.githubusercontent.com/catlog22/Dmsflow/main/install-remote.ps1) -NoBackup
|
||||
iex (iwr -useb https://raw.githubusercontent.com/catlog22/Claude-Code-Workflow/main/install-remote.ps1) -NoBackup
|
||||
|
||||
# Explicit automatic backup all existing files (default behavior since v1.1.0)
|
||||
iex (iwr -useb https://raw.githubusercontent.com/catlog22/Dmsflow/main/install-remote.ps1) -BackupAll
|
||||
iex (iwr -useb https://raw.githubusercontent.com/catlog22/Claude-Code-Workflow/main/install-remote.ps1) -BackupAll
|
||||
```
|
||||
|
||||
### Local Installation Options
|
||||
@@ -164,7 +163,7 @@ Install PowerShell Core:
|
||||
### ⚡ Super Quick (One-Liner)
|
||||
```powershell
|
||||
# Complete installation in one command
|
||||
iex (iwr -useb https://raw.githubusercontent.com/catlog22/Dmsflow/main/install-remote.ps1) -Global
|
||||
iex (iwr -useb https://raw.githubusercontent.com/catlog22/Claude-Code-Workflow/main/install-remote.ps1) -Global
|
||||
|
||||
# Done! 🎉
|
||||
# Start using Claude Code with Agent workflows!
|
||||
|
||||
@@ -9,16 +9,16 @@ Claude Code Agent 工作流协调和分布式内存系统的交互式安装指
|
||||
### 所有平台 - 远程 PowerShell 安装
|
||||
```powershell
|
||||
# 从功能分支进行交互式远程安装(最新版本)
|
||||
iex (iwr -useb https://raw.githubusercontent.com/catlog22/Dmsflow/main/install-remote.ps1)
|
||||
iex (iwr -useb https://raw.githubusercontent.com/catlog22/Claude-Code-Workflow/main/install-remote.ps1)
|
||||
|
||||
# 包含统一文件输出系统的全局安装
|
||||
iex (iwr -useb https://raw.githubusercontent.com/catlog22/Dmsflow/main/install-remote.ps1) -Global
|
||||
iex (iwr -useb https://raw.githubusercontent.com/catlog22/Claude-Code-Workflow/main/install-remote.ps1) -Global
|
||||
|
||||
# 强制覆盖(非交互式)- 包含所有新的工作流文件生成功能
|
||||
iex (iwr -useb https://raw.githubusercontent.com/catlog22/Dmsflow/main/install-remote.ps1) -Force -NonInteractive
|
||||
iex (iwr -useb https://raw.githubusercontent.com/catlog22/Claude-Code-Workflow/main/install-remote.ps1) -Force -NonInteractive
|
||||
|
||||
# 一键备份所有现有文件(无需确认)
|
||||
iex (iwr -useb https://raw.githubusercontent.com/catlog22/Dmsflow/main/install-remote.ps1) -BackupAll
|
||||
iex (iwr -useb https://raw.githubusercontent.com/catlog22/Claude-Code-Workflow/main/install-remote.ps1) -BackupAll
|
||||
```
|
||||
|
||||
**远程安装器的功能:**
|
||||
@@ -37,8 +37,7 @@ iex (iwr -useb https://raw.githubusercontent.com/catlog22/Dmsflow/main/install-r
|
||||
### 所有平台(PowerShell)
|
||||
```powershell
|
||||
# 克隆包含最新功能的仓库
|
||||
git clone -b main https://github.com/catlog22/Claude-CCW.git
|
||||
cd Dmsflow
|
||||
cd Claude-Code-Workflow
|
||||
|
||||
# Windows PowerShell 5.1+ 或 PowerShell Core(仅支持全局安装)
|
||||
.\Install-Claude.ps1
|
||||
@@ -57,19 +56,19 @@ pwsh ./Install-Claude.ps1
|
||||
|
||||
```powershell
|
||||
# 全局安装
|
||||
iex (iwr -useb https://raw.githubusercontent.com/catlog22/Dmsflow/main/install-remote.ps1) -Global
|
||||
iex (iwr -useb https://raw.githubusercontent.com/catlog22/Claude-Code-Workflow/main/install-remote.ps1) -Global
|
||||
|
||||
# 安装到指定目录
|
||||
iex (iwr -useb https://raw.githubusercontent.com/catlog22/Dmsflow/main/install-remote.ps1) -Directory "C:\MyProject"
|
||||
iex (iwr -useb https://raw.githubusercontent.com/catlog22/Claude-Code-Workflow/main/install-remote.ps1) -Directory "C:\MyProject"
|
||||
|
||||
# 强制覆盖而不提示
|
||||
iex (iwr -useb https://raw.githubusercontent.com/catlog22/Dmsflow/main/install-remote.ps1) -Force -NonInteractive
|
||||
iex (iwr -useb https://raw.githubusercontent.com/catlog22/Claude-Code-Workflow/main/install-remote.ps1) -Force -NonInteractive
|
||||
|
||||
# 从特定分支安装
|
||||
iex (iwr -useb https://raw.githubusercontent.com/catlog22/Dmsflow/main/install-remote.ps1) -Branch "dev"
|
||||
iex (iwr -useb https://raw.githubusercontent.com/catlog22/Claude-Code-Workflow/main/install-remote.ps1) -Branch "dev"
|
||||
|
||||
# 跳过备份(更快)
|
||||
iex (iwr -useb https://raw.githubusercontent.com/catlog22/Dmsflow/main/install-remote.ps1) -NoBackup
|
||||
iex (iwr -useb https://raw.githubusercontent.com/catlog22/Claude-Code-Workflow/main/install-remote.ps1) -NoBackup
|
||||
```
|
||||
|
||||
### 本地安装选项
|
||||
@@ -140,7 +139,7 @@ iex (iwr -useb https://raw.githubusercontent.com/catlog22/Dmsflow/main/install-r
|
||||
### ⚡ 超快速(一键)
|
||||
```powershell
|
||||
# 一条命令完成安装
|
||||
iex (iwr -useb https://raw.githubusercontent.com/catlog22/Dmsflow/main/install-remote.ps1) -Global
|
||||
iex (iwr -useb https://raw.githubusercontent.com/catlog22/Claude-Code-Workflow/main/install-remote.ps1) -Global
|
||||
|
||||
# 完成!🎉
|
||||
# 开始使用 Claude Code Agent 工作流!
|
||||
|
||||
1052
README_CN.md
1052
README_CN.md
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user