mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-03-12 17:21:19 +08:00
refactor: update workflow commands to use /workflow:spec:setup for initialization
This commit is contained in:
@@ -289,7 +289,7 @@
|
||||
},
|
||||
{
|
||||
"name": "init-guidelines",
|
||||
"command": "/workflow:init-guidelines",
|
||||
"command": "/workflow:spec:setup -guidelines",
|
||||
"description": "Interactive wizard to fill specs/*.md based on project analysis",
|
||||
"arguments": "[--reset]",
|
||||
"category": "workflow",
|
||||
@@ -300,7 +300,7 @@
|
||||
},
|
||||
{
|
||||
"name": "init-specs",
|
||||
"command": "/workflow:init-specs",
|
||||
"command": "/workflow:spec:setup -specs",
|
||||
"description": "Interactive wizard to create individual specs or personal constraints with scope selection",
|
||||
"arguments": "[--scope <global|project>] [--dimension <specs|personal>] [--category <general|exploration|planning|execution>]",
|
||||
"category": "workflow",
|
||||
@@ -311,7 +311,7 @@
|
||||
},
|
||||
{
|
||||
"name": "init",
|
||||
"command": "/workflow:init",
|
||||
"command": "/workflow:spec:setup ",
|
||||
"description": "Initialize project-level state with intelligent project analysis using cli-explore-agent",
|
||||
"arguments": "[--regenerate] [--skip-specs]",
|
||||
"category": "workflow",
|
||||
|
||||
@@ -276,7 +276,7 @@
|
||||
},
|
||||
{
|
||||
"name": "init-guidelines",
|
||||
"command": "/workflow:init-guidelines",
|
||||
"command": "/workflow:spec:setup -guidelines",
|
||||
"description": "Interactive wizard to fill specs/*.md based on project analysis",
|
||||
"arguments": "[--reset]",
|
||||
"category": "workflow",
|
||||
@@ -287,7 +287,7 @@
|
||||
},
|
||||
{
|
||||
"name": "init-specs",
|
||||
"command": "/workflow:init-specs",
|
||||
"command": "/workflow:spec:setup -specs",
|
||||
"description": "Interactive wizard to create individual specs or personal constraints with scope selection",
|
||||
"arguments": "[--scope <global|project>] [--dimension <specs|personal>] [--category <general|exploration|planning|execution>]",
|
||||
"category": "workflow",
|
||||
@@ -298,7 +298,7 @@
|
||||
},
|
||||
{
|
||||
"name": "init",
|
||||
"command": "/workflow:init",
|
||||
"command": "/workflow:spec:setup ",
|
||||
"description": "Initialize project-level state with intelligent project analysis using cli-explore-agent",
|
||||
"arguments": "[--regenerate] [--skip-specs]",
|
||||
"category": "workflow",
|
||||
|
||||
@@ -298,7 +298,7 @@
|
||||
},
|
||||
{
|
||||
"name": "init-guidelines",
|
||||
"command": "/workflow:init-guidelines",
|
||||
"command": "/workflow:spec:setup -guidelines",
|
||||
"description": "Interactive wizard to fill specs/*.md based on project analysis",
|
||||
"arguments": "[--reset]",
|
||||
"category": "workflow",
|
||||
@@ -309,7 +309,7 @@
|
||||
},
|
||||
{
|
||||
"name": "init-specs",
|
||||
"command": "/workflow:init-specs",
|
||||
"command": "/workflow:spec:setup -specs",
|
||||
"description": "Interactive wizard to create individual specs or personal constraints with scope selection",
|
||||
"arguments": "[--scope <global|project>] [--dimension <specs|personal>] [--category <general|exploration|planning|execution>]",
|
||||
"category": "workflow",
|
||||
@@ -320,7 +320,7 @@
|
||||
},
|
||||
{
|
||||
"name": "init",
|
||||
"command": "/workflow:init",
|
||||
"command": "/workflow:spec:setup ",
|
||||
"description": "Initialize project-level state with intelligent project analysis using cli-explore-agent",
|
||||
"arguments": "[--regenerate] [--skip-specs]",
|
||||
"category": "workflow",
|
||||
|
||||
@@ -145,7 +145,7 @@
|
||||
},
|
||||
{
|
||||
"name": "init-guidelines",
|
||||
"command": "/workflow:init-guidelines",
|
||||
"command": "/workflow:spec:setup -guidelines",
|
||||
"description": "Interactive wizard to fill specs/*.md based on project analysis",
|
||||
"arguments": "[--reset]",
|
||||
"category": "workflow",
|
||||
@@ -156,7 +156,7 @@
|
||||
},
|
||||
{
|
||||
"name": "init-specs",
|
||||
"command": "/workflow:init-specs",
|
||||
"command": "/workflow:spec:setup -specs",
|
||||
"description": "Interactive wizard to create individual specs or personal constraints with scope selection",
|
||||
"arguments": "[--scope <global|project>] [--dimension <specs|personal>] [--category <general|exploration|planning|execution>]",
|
||||
"category": "workflow",
|
||||
@@ -167,7 +167,7 @@
|
||||
},
|
||||
{
|
||||
"name": "init",
|
||||
"command": "/workflow:init",
|
||||
"command": "/workflow:spec:setup ",
|
||||
"description": "Initialize project-level state with intelligent project analysis using cli-explore-agent",
|
||||
"arguments": "[--regenerate] [--skip-specs]",
|
||||
"category": "workflow",
|
||||
|
||||
@@ -148,7 +148,7 @@ AskUserQuestion({
|
||||
|----------|------------|
|
||||
| Unknown --role value | Error with role registry list |
|
||||
| Role file not found | Error with expected path (roles/{name}/role.md) |
|
||||
| project-tech.json missing | Coordinator invokes /workflow:init |
|
||||
| project-tech.json missing | Coordinator invokes /workflow:spec:setup |
|
||||
| Phase verification fails with gaps | Coordinator triggers gap closure loop (max 3 iterations) |
|
||||
| Max gap closure iterations (3) | Report to user, ask for guidance |
|
||||
| Worker crash | Respawn worker, reassign task |
|
||||
|
||||
@@ -284,7 +284,7 @@ Delegate to `commands/monitor.md`:
|
||||
|
||||
| Scenario | Resolution |
|
||||
|----------|------------|
|
||||
| project-tech.json missing | Invoke /workflow:init automatically |
|
||||
| project-tech.json missing | Invoke /workflow:spec:setup automatically |
|
||||
| User cancels roadmap discussion | Save session state, exit gracefully |
|
||||
| Planner fails | Retry once, then ask user for guidance |
|
||||
| Executor fails on plan | Mark plan as failed, continue with next |
|
||||
|
||||
@@ -85,7 +85,7 @@
|
||||
"init_prerequisite": {
|
||||
"required_files": [".workflow/project-tech.json"],
|
||||
"optional_files": [".workflow/specs/*.md"],
|
||||
"init_command": "/workflow:init"
|
||||
"init_command": "/workflow:spec:setup "
|
||||
},
|
||||
"_metadata": {
|
||||
"created_at": "2026-02-24",
|
||||
|
||||
@@ -102,6 +102,6 @@
|
||||
},
|
||||
"empty": {
|
||||
"title": "No Project Overview",
|
||||
"message": "Run /workflow:init to initialize project analysis"
|
||||
"message": "Run /workflow:spec:setup to initialize project analysis"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -102,6 +102,6 @@
|
||||
},
|
||||
"empty": {
|
||||
"title": "暂无项目概览",
|
||||
"message": "运行 /workflow:init 初始化项目分析"
|
||||
"message": "运行 /workflow:spec:setup 初始化项目分析"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
| [`/workflow-multi-cli-plan`](./workflow.md#multi-cli-plan) | 多 CLI 协作规划 | Intermediate |
|
||||
| [`/workflow:review`](./workflow.md#review) | 实现后审查 | Intermediate |
|
||||
| [`/workflow:clean`](./workflow.md#clean) | 智能代码清理 | Intermediate |
|
||||
| [`/workflow:init`](./workflow.md#init) | 初始化项目状态 | Intermediate |
|
||||
| [`/workflow:spec:setup `](./workflow.md#init) | 初始化项目状态 | Intermediate |
|
||||
| [`/workflow:brainstorm-with-file`](./workflow.md#brainstorm-with-file) | 交互式头脑风暴 | Intermediate |
|
||||
| [`/workflow:analyze-with-file`](./workflow.md#analyze-with-file) | 交互式协作分析 | Beginner |
|
||||
| [`/workflow:debug-with-file`](./workflow.md#debug-with-file) | 交互式假设驱动调试 | Intermediate |
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
| [`/workflow-multi-cli-plan`](./workflow.md#multi-cli-plan) | Multi-CLI collaborative planning | Intermediate |
|
||||
| [`/workflow:review`](./workflow.md#review) | Post-implementation review | Intermediate |
|
||||
| [`/workflow:clean`](./workflow.md#clean) | Smart code cleanup | Intermediate |
|
||||
| [`/workflow:init`](./workflow.md#init) | Initialize project state | Intermediate |
|
||||
| [`/workflow:spec:setup `](./workflow.md#init) | Initialize project state | Intermediate |
|
||||
| [`/workflow:brainstorm-with-file`](./workflow.md#brainstorm-with-file) | Interactive brainstorming | Intermediate |
|
||||
| [`/workflow:analyze-with-file`](./workflow.md#analyze-with-file) | Interactive collaborative analysis | Beginner |
|
||||
| [`/workflow:debug-with-file`](./workflow.md#debug-with-file) | Interactive hypothesis-driven debugging | Intermediate |
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
| Command | Function | Syntax |
|
||||
|---------|----------|--------|
|
||||
| [`clean`](#clean) | Smart code cleanup | `/workflow:clean [-y] [--dry-run] ["focus area"]` |
|
||||
| [`init`](#init) | Initialize project state | `/workflow:init [--regenerate]` |
|
||||
| [`init`](#init) | Initialize project state | `/workflow:spec:setup [--regenerate]` |
|
||||
| [`plan-verify`](#plan-verify) | Verify planning consistency | `/workflow-plan-verify [--session session-id]` |
|
||||
|
||||
## Command Details
|
||||
|
||||
@@ -81,7 +81,7 @@ This creates a new workflow session. All subsequent operations will be performed
|
||||
### 2.2.2 Initialize Project Specs
|
||||
|
||||
```
|
||||
/workflow:init
|
||||
/workflow:spec:setup
|
||||
```
|
||||
|
||||
This creates the `project-tech.json` file, recording your project's technology stack information.
|
||||
@@ -89,7 +89,7 @@ This creates the `project-tech.json` file, recording your project's technology s
|
||||
### 2.2.3 Populate Project Specs
|
||||
|
||||
```
|
||||
/workflow:init-guidelines
|
||||
/workflow:spec:setup -guidelines
|
||||
```
|
||||
|
||||
Interactively populate project specifications, including coding style, architectural decisions, and other information.
|
||||
@@ -282,7 +282,7 @@ npm install
|
||||
/workflow:session:start
|
||||
|
||||
# 5. Initialize project
|
||||
/workflow:init
|
||||
/workflow:spec:setup
|
||||
```
|
||||
|
||||
### Common Commands
|
||||
|
||||
@@ -50,7 +50,7 @@ Create a simple workflow in under 5 minutes:
|
||||
# Prompt: "Fix the login timeout issue" # Execute without confirmation prompts
|
||||
|
||||
# Or use specific workflow commands
|
||||
/workflow:init # Initialize project state
|
||||
/workflow:spec:setup # Initialize project state
|
||||
/workflow-plan
|
||||
# Prompt: "Add OAuth2 authentication" # Create implementation plan
|
||||
/workflow-execute # Execute planned tasks
|
||||
|
||||
@@ -74,7 +74,7 @@ To check available CCW commands, you can list them:
|
||||
Available CCW Commands:
|
||||
- /ccw - Main workflow orchestrator
|
||||
- /ccw-coordinator - External CLI orchestration
|
||||
- /workflow:init - Initialize project configuration
|
||||
- /workflow:spec:setup - Initialize project configuration
|
||||
- /workflow:status - Generate project views
|
||||
- /issue:discover - Discover and plan issues
|
||||
- /brainstorm - Multi-perspective brainstorming
|
||||
@@ -145,7 +145,7 @@ Create `CLAUDE.md` in your project root to define project-specific instructions:
|
||||
Initialize CCW in your project:
|
||||
|
||||
```
|
||||
/workflow:init
|
||||
/workflow:spec:setup
|
||||
```
|
||||
|
||||
This creates `.workflow/project-tech.json` with your project's technology stack.
|
||||
@@ -343,7 +343,7 @@ After installation, try these commands to verify everything works:
|
||||
|
||||
```
|
||||
# 1. Initialize in your project
|
||||
/workflow:init
|
||||
/workflow:spec:setup
|
||||
|
||||
# 2. Try a simple analysis using the CLI tool
|
||||
Bash: ccw cli -p "Analyze the project structure" --tool gemini --mode analysis
|
||||
@@ -369,7 +369,7 @@ What would you like to accomplish? Please describe your task.
|
||||
|
||||
**Using workflow init:**
|
||||
```
|
||||
You: /workflow:init
|
||||
You: /workflow:spec:setup
|
||||
✔ Created .workflow/project-tech.json
|
||||
✔ Project configuration complete
|
||||
```
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
| [`/workflow-multi-cli-plan`](./workflow.md#multi-cli-plan) | 多 CLI 协作规划 | Intermediate |
|
||||
| [`/workflow:review`](./workflow.md#review) | 实现后审查 | Intermediate |
|
||||
| [`/workflow:clean`](./workflow.md#clean) | 智能代码清理 | Intermediate |
|
||||
| [`/workflow:init`](./workflow.md#init) | 初始化项目状态 | Intermediate |
|
||||
| [`/workflow:spec:setup `](./workflow.md#init) | 初始化项目状态 | Intermediate |
|
||||
| [`/workflow:brainstorm-with-file`](./workflow.md#brainstorm-with-file) | 交互式头脑风暴 | Intermediate |
|
||||
| [`/workflow:analyze-with-file`](./workflow.md#analyze-with-file) | 交互式协作分析 | Beginner |
|
||||
| [`/workflow:debug-with-file`](./workflow.md#debug-with-file) | 交互式假设驱动调试 | Intermediate |
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
| 命令 | 功能 | 语法 |
|
||||
| --- | --- | --- |
|
||||
| [`clean`](#clean) | 智能代码清理 | `/workflow:clean [-y] [--dry-run] ["焦点区域"]` |
|
||||
| [`init`](#init) | 初始化项目状态 | `/workflow:init [--regenerate]` |
|
||||
| [`init`](#init) | 初始化项目状态 | `/workflow:spec:setup [--regenerate]` |
|
||||
| [`plan-verify`](#plan-verify) | 验证规划一致性 | `/workflow-plan-verify [--session session-id]` |
|
||||
|
||||
## 命令详解
|
||||
|
||||
@@ -67,7 +67,7 @@ API Keys 也可以在项目级别配置 `.claude/settings.json`,项目级配
|
||||
### 2.2.2 初始化项目规范
|
||||
|
||||
```
|
||||
/workflow:init
|
||||
/workflow:spec:setup
|
||||
```
|
||||
|
||||
这会创建 `project-tech.json` 文件,记录项目的技术栈信息。
|
||||
@@ -75,7 +75,7 @@ API Keys 也可以在项目级别配置 `.claude/settings.json`,项目级配
|
||||
### 2.2.3 填充项目规范
|
||||
|
||||
```
|
||||
/workflow:init-guidelines
|
||||
/workflow:spec:setup -guidelines
|
||||
```
|
||||
|
||||
交互式填充项目规范,包括编码风格、架构决策等信息。
|
||||
@@ -272,7 +272,7 @@ npm install
|
||||
/workflow:session:start
|
||||
|
||||
# 5. 初始化项目
|
||||
/workflow:init
|
||||
/workflow:spec:setup
|
||||
```
|
||||
|
||||
### 常用命令
|
||||
|
||||
Reference in New Issue
Block a user