mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-03-01 15:03:57 +08:00
Add TDD Structure Validation and Verification Phases with Comprehensive Reporting
- Introduced Phase 6: TDD Structure Validation to ensure compliance with TDD workflow standards, including task structure validation, dependency checks, and user configuration verification. - Implemented Phase 7: TDD Verification for full compliance checks, including task chain structure validation, coverage analysis, and TDD cycle verification. - Generated detailed TDD compliance reports with quality gate recommendations based on objective criteria. - Added documentation for new commands and workflows in the Claude Commands index.
This commit is contained in:
@@ -301,7 +301,7 @@ Document known constraints that affect planning:
|
||||
|
||||
[Continue for all major feature groups]
|
||||
|
||||
**Note**: Detailed task breakdown into executable work items is handled by `/workflow:plan` → `IMPL_PLAN.md`
|
||||
**Note**: Detailed task breakdown into executable work items is handled by `/workflow-plan` → `IMPL_PLAN.md`
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ Core requirements, objectives, technical approach summary (2-3 paragraphs max).
|
||||
|
||||
**Quality Gates**:
|
||||
- concept-verify: ✅ Passed (0 ambiguities remaining) | ⏭️ Skipped (user decision) | ⏳ Pending
|
||||
- plan-verify: ⏳ Pending (recommended before /workflow:execute)
|
||||
- plan-verify: ⏳ Pending (recommended before /workflow-execute)
|
||||
|
||||
**Context Package Summary**:
|
||||
- **Focus Paths**: {list key directories from context-package.json}
|
||||
|
||||
@@ -711,7 +711,7 @@ All workflows use the same file structure definition regardless of complexity. *
|
||||
│ ├── [.chat/] # CLI interaction sessions (created when analysis is run)
|
||||
│ │ ├── chat-*.md # Saved chat sessions
|
||||
│ │ └── analysis-*.md # Analysis results
|
||||
│ ├── [.process/] # Planning analysis results (created by /workflow:plan)
|
||||
│ ├── [.process/] # Planning analysis results (created by /workflow-plan)
|
||||
│ │ └── ANALYSIS_RESULTS.md # Analysis results and planning artifacts
|
||||
│ ├── IMPL_PLAN.md # Planning document (REQUIRED)
|
||||
│ ├── TODO_LIST.md # Progress tracking (REQUIRED)
|
||||
@@ -783,7 +783,7 @@ All workflows use the same file structure definition regardless of complexity. *
|
||||
**Examples**:
|
||||
|
||||
*Workflow Commands (lightweight):*
|
||||
- `/workflow:lite-plan "feature idea"` (exploratory) → `.scratchpad/lite-plan-feature-idea-20250105-143110.md`
|
||||
- `/workflow-lite-plan "feature idea"` (exploratory) → `.scratchpad/lite-plan-feature-idea-20250105-143110.md`
|
||||
- `/workflow:lite-fix "bug description"` (bug fixing) → `.scratchpad/lite-fix-bug-20250105-143130.md`
|
||||
|
||||
> **Note**: Direct CLI commands (`/cli:analyze`, `/cli:execute`, etc.) have been replaced by semantic invocation and workflow commands.
|
||||
|
||||
@@ -455,7 +455,7 @@ function buildCliCommand(task, cliTool, cliPrompt) {
|
||||
|
||||
**Auto-Check Workflow Context**:
|
||||
- Verify session context paths are provided in agent prompt
|
||||
- If missing, request session context from workflow:execute
|
||||
- If missing, request session context from workflow-execute
|
||||
- Never assume default paths without explicit session context
|
||||
|
||||
### 5. Problem-Solving
|
||||
|
||||
@@ -22,7 +22,7 @@ Interactive orchestration tool: analyze task → discover commands → recommend
|
||||
| `workflow-execute` | execute |
|
||||
| `workflow-multi-cli-plan` | multi-cli-plan |
|
||||
| `workflow-test-fix` | test-fix-gen, test-cycle-execute |
|
||||
| `workflow-tdd` | tdd-plan, tdd-verify |
|
||||
| `workflow-tdd-plan` | tdd-plan, tdd-verify |
|
||||
| `review-cycle` | review-session-cycle, review-module-cycle, review-cycle-fix |
|
||||
| `brainstorm` | auto-parallel, artifacts, role-analysis, synthesis |
|
||||
| `workflow:collaborative-plan-with-file` | understanding agent → parallel agents → plan-note.md |
|
||||
@@ -257,7 +257,7 @@ Each command has input/output ports (tags) for pipeline composition:
|
||||
// workflow-execute (execute),
|
||||
// workflow-multi-cli-plan (multi-cli-plan),
|
||||
// workflow-test-fix (test-fix-gen, test-cycle-execute),
|
||||
// workflow-tdd (tdd-plan, tdd-verify),
|
||||
// workflow-tdd-plan (tdd-plan, tdd-verify),
|
||||
// review-cycle (review-session-cycle, review-module-cycle, review-cycle-fix)
|
||||
// command: debug, test-gen, review, workflow:brainstorm-with-file,
|
||||
// workflow:debug-with-file, workflow:analyze-with-file, issue:*
|
||||
@@ -646,9 +646,9 @@ Pipeline (管道视图):
|
||||
需求 → lite-plan → 计划 → lite-execute → 代码 → test-cycle-execute → 测试通过
|
||||
|
||||
Commands (命令列表):
|
||||
1. /workflow:lite-plan
|
||||
1. /workflow-lite-plan
|
||||
2. /workflow:lite-execute
|
||||
3. /workflow:test-cycle-execute
|
||||
3. /workflow-test-fix
|
||||
|
||||
Proceed? [Confirm / Show Details / Adjust / Cancel]
|
||||
```
|
||||
@@ -737,7 +737,7 @@ async function executeCommandChain(chain, analysis) {
|
||||
// Execute CLI command in background and stop
|
||||
// Format: ccw cli -p "PROMPT" --tool <tool> --mode <mode>
|
||||
// Note: -y is a command parameter INSIDE the prompt, not a ccw cli parameter
|
||||
// Example prompt: "/workflow:plan -y \"task description here\""
|
||||
// Example prompt: "/workflow-plan -y \"task description here\""
|
||||
try {
|
||||
const taskId = Bash(
|
||||
`ccw cli -p "${escapePrompt(prompt)}" --tool claude --mode write`,
|
||||
@@ -1000,7 +1000,7 @@ function parseOutput(output) {
|
||||
"command_chain": [
|
||||
{
|
||||
"index": 0,
|
||||
"command": "/workflow:plan",
|
||||
"command": "/workflow-plan",
|
||||
"name": "plan",
|
||||
"description": "Detailed planning",
|
||||
"argumentHint": "[--explore] \"task\"",
|
||||
@@ -1008,7 +1008,7 @@ function parseOutput(output) {
|
||||
},
|
||||
{
|
||||
"index": 1,
|
||||
"command": "/workflow:execute",
|
||||
"command": "/workflow-execute",
|
||||
"name": "execute",
|
||||
"description": "Execute with state resume",
|
||||
"argumentHint": "[--resume-session=\"WFS-xxx\"]",
|
||||
@@ -1016,7 +1016,7 @@ function parseOutput(output) {
|
||||
},
|
||||
{
|
||||
"index": 2,
|
||||
"command": "/workflow:test-cycle-execute",
|
||||
"command": "/workflow-test-fix",
|
||||
"name": "test-cycle-execute",
|
||||
"status": "pending"
|
||||
}
|
||||
@@ -1024,7 +1024,7 @@ function parseOutput(output) {
|
||||
"execution_results": [
|
||||
{
|
||||
"index": 0,
|
||||
"command": "/workflow:plan",
|
||||
"command": "/workflow-plan",
|
||||
"status": "completed",
|
||||
"task_id": "task-001",
|
||||
"session_id": "WFS-plan-20250124",
|
||||
@@ -1034,7 +1034,7 @@ function parseOutput(output) {
|
||||
},
|
||||
{
|
||||
"index": 1,
|
||||
"command": "/workflow:execute",
|
||||
"command": "/workflow-execute",
|
||||
"status": "in-progress",
|
||||
"task_id": "task-002",
|
||||
"session_id": null,
|
||||
@@ -1046,13 +1046,13 @@ function parseOutput(output) {
|
||||
"prompts_used": [
|
||||
{
|
||||
"index": 0,
|
||||
"command": "/workflow:plan",
|
||||
"prompt": "/workflow:plan -y \"Implement user registration...\"\n\nTask: Implement user registration..."
|
||||
"command": "/workflow-plan",
|
||||
"prompt": "/workflow-plan -y \"Implement user registration...\"\n\nTask: Implement user registration..."
|
||||
},
|
||||
{
|
||||
"index": 1,
|
||||
"command": "/workflow:execute",
|
||||
"prompt": "/workflow:execute -y --resume-session=\"WFS-plan-20250124\"\n\nTask: Implement user registration\n\nPrevious results:\n- /workflow:plan: WFS-plan-20250124 (IMPL_PLAN.md)"
|
||||
"command": "/workflow-execute",
|
||||
"prompt": "/workflow-execute -y --resume-session=\"WFS-plan-20250124\"\n\nTask: Implement user registration\n\nPrevious results:\n- /workflow-plan: WFS-plan-20250124 (IMPL_PLAN.md)"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1131,40 +1131,40 @@ Task: <task_description>
|
||||
| `-y` | Auto-confirm flag (inside prompt) | Always include for automation |
|
||||
| `<command_parameters>` | Command-specific parameters | Task description, session ID, flags |
|
||||
| `<task_description>` | Brief task description | "Implement user authentication", "Fix memory leak" |
|
||||
| `<optional_previous_results>` | Context from previous commands | "Previous results:\n- /workflow:plan: WFS-xxx" |
|
||||
| `<optional_previous_results>` | Context from previous commands | "Previous results:\n- /workflow-plan: WFS-xxx" |
|
||||
|
||||
### Command Parameter Patterns
|
||||
|
||||
| Command Type | Parameter Pattern | Example |
|
||||
|--------------|------------------|---------|
|
||||
| **Planning** | `"task description"` | `/workflow:plan -y "Implement OAuth2"` |
|
||||
| **Execution (with plan)** | `--resume-session="WFS-xxx"` | `/workflow:execute -y --resume-session="WFS-plan-001"` |
|
||||
| **Planning** | `"task description"` | `/workflow-plan -y "Implement OAuth2"` |
|
||||
| **Execution (with plan)** | `--resume-session="WFS-xxx"` | `/workflow-execute -y --resume-session="WFS-plan-001"` |
|
||||
| **Execution (standalone)** | `--in-memory` or `"task"` | `/workflow:lite-execute -y --in-memory` |
|
||||
| **Session-based** | `--session="WFS-xxx"` | `/workflow:test-fix-gen -y --session="WFS-impl-001"` |
|
||||
| **Fix/Debug** | `--bugfix "problem description"` | `/workflow:lite-plan -y --bugfix "Fix timeout bug"` |
|
||||
| **Session-based** | `--session="WFS-xxx"` | `/workflow-test-fix -y --session="WFS-impl-001"` |
|
||||
| **Fix/Debug** | `--bugfix "problem description"` | `/workflow-lite-plan -y --bugfix "Fix timeout bug"` |
|
||||
|
||||
### Complete Examples
|
||||
|
||||
**Planning Command**:
|
||||
```bash
|
||||
ccw cli -p '/workflow:plan -y "Implement user registration with email validation"
|
||||
ccw cli -p '/workflow-plan -y "Implement user registration with email validation"
|
||||
|
||||
Task: Implement user registration' --tool claude --mode write
|
||||
```
|
||||
|
||||
**Execution with Context**:
|
||||
```bash
|
||||
ccw cli -p '/workflow:execute -y --resume-session="WFS-plan-20250124"
|
||||
ccw cli -p '/workflow-execute -y --resume-session="WFS-plan-20250124"
|
||||
|
||||
Task: Implement user registration
|
||||
|
||||
Previous results:
|
||||
- /workflow:plan: WFS-plan-20250124 (IMPL_PLAN.md)' --tool claude --mode write
|
||||
- /workflow-plan: WFS-plan-20250124 (IMPL_PLAN.md)' --tool claude --mode write
|
||||
```
|
||||
|
||||
**Standalone Lite Execution**:
|
||||
```bash
|
||||
ccw cli -p '/workflow:lite-plan -y --bugfix "Fix login timeout in auth module"
|
||||
ccw cli -p '/workflow-lite-plan -y --bugfix "Fix login timeout in auth module"
|
||||
|
||||
Task: Fix login timeout' --tool claude --mode write
|
||||
```
|
||||
@@ -1232,17 +1232,17 @@ Task: <description>
|
||||
**Examples**:
|
||||
```bash
|
||||
# Planning command
|
||||
ccw cli -p '/workflow:plan -y "Implement user registration feature"
|
||||
ccw cli -p '/workflow-plan -y "Implement user registration feature"
|
||||
|
||||
Task: Implement user registration' --tool claude --mode write
|
||||
|
||||
# Execution command (with session reference)
|
||||
ccw cli -p '/workflow:execute -y --resume-session="WFS-plan-20250124"
|
||||
ccw cli -p '/workflow-execute -y --resume-session="WFS-plan-20250124"
|
||||
|
||||
Task: Implement user registration
|
||||
|
||||
Previous results:
|
||||
- /workflow:plan: WFS-plan-20250124' --tool claude --mode write
|
||||
- /workflow-plan: WFS-plan-20250124' --tool claude --mode write
|
||||
|
||||
# Lite execution (in-memory from previous plan)
|
||||
ccw cli -p '/workflow:lite-execute -y --in-memory
|
||||
@@ -1261,7 +1261,7 @@ Task: Implement user registration' --tool claude --mode write
|
||||
|
||||
```javascript
|
||||
// Example: Execute command and stop
|
||||
const prompt = '/workflow:plan -y "Implement user authentication"\n\nTask: Implement user auth system';
|
||||
const prompt = '/workflow-plan -y "Implement user authentication"\n\nTask: Implement user auth system';
|
||||
const taskId = Bash(`ccw cli -p "${prompt}" --tool claude --mode write`, { run_in_background: true }).task_id;
|
||||
state.execution_results.push({ status: 'in-progress', task_id: taskId, ... });
|
||||
Write(`${stateDir}/state.json`, JSON.stringify(state, null, 2));
|
||||
@@ -1283,7 +1283,7 @@ break; // ⚠️ STOP HERE - DO NOT use TaskOutput polling
|
||||
| `workflow-execute` | execute |
|
||||
| `workflow-multi-cli-plan` | multi-cli-plan |
|
||||
| `workflow-test-fix` | test-fix-gen, test-cycle-execute |
|
||||
| `workflow-tdd` | tdd-plan, tdd-verify |
|
||||
| `workflow-tdd-plan` | tdd-plan, tdd-verify |
|
||||
| `review-cycle` | review-session-cycle, review-module-cycle, review-cycle-fix |
|
||||
| `brainstorm` | auto-parallel, artifacts, role-analysis, synthesis |
|
||||
| `team-planex` | planner + executor wave pipeline |
|
||||
|
||||
@@ -18,7 +18,7 @@ Main process orchestrator: intent analysis → workflow selection → command ch
|
||||
| `workflow-lite-plan` | explore → plan → confirm → execute |
|
||||
| `workflow-plan` | session → context → convention → gen → verify/replan |
|
||||
| `workflow-execute` | session discovery → task processing → commit |
|
||||
| `workflow-tdd` | 6-phase TDD plan → verify |
|
||||
| `workflow-tdd-plan` | 6-phase TDD plan → verify |
|
||||
| `workflow-test-fix` | session → context → analysis → gen → cycle |
|
||||
| `workflow-multi-cli-plan` | ACE context → CLI discussion → plan → execute |
|
||||
| `review-cycle` | session/module review → fix orchestration |
|
||||
@@ -53,7 +53,7 @@ Main process orchestrator: intent analysis → workflow selection → command ch
|
||||
|---------|-------|------|
|
||||
| 轻量 Plan+Execute | `workflow-lite-plan` | 内部完成 plan→execute |
|
||||
| 标准 Planning | `workflow-plan` → `workflow-execute` | plan 和 execute 是独立 Skill |
|
||||
| TDD Planning | `workflow-tdd` → `workflow-execute` | tdd-plan 和 execute 是独立 Skill |
|
||||
| TDD Planning | `workflow-tdd-plan` → `workflow-execute` | tdd-plan 和 execute 是独立 Skill |
|
||||
| 测试流水线 | `workflow-test-fix` | 内部完成 gen→cycle |
|
||||
| 代码审查 | `review-cycle` | 内部完成 review→fix |
|
||||
| 多CLI协作 | `workflow-multi-cli-plan` | ACE context → CLI discussion → plan → execute |
|
||||
@@ -339,7 +339,7 @@ function buildCommandChain(workflow, analysis) {
|
||||
],
|
||||
|
||||
'tdd': [
|
||||
{ cmd: 'workflow-tdd', args: `"${analysis.goal}"` },
|
||||
{ cmd: 'workflow-tdd-plan', args: `"${analysis.goal}"` },
|
||||
{ cmd: 'workflow-execute', args: '' }
|
||||
],
|
||||
|
||||
@@ -649,7 +649,7 @@ Phase 5: Execute Command Chain
|
||||
| "重构 auth 模块" | refactor | 3 | workflow:refactor-cycle |
|
||||
| "multi-cli plan: API设计" | multi-cli-plan | 3 | workflow-multi-cli-plan → workflow-test-fix |
|
||||
| "OAuth2 system" | feature (high) | 3 | workflow-plan → workflow-execute → review-cycle → workflow-test-fix |
|
||||
| "Implement with TDD" | tdd | 3 | workflow-tdd → workflow-execute |
|
||||
| "Implement with TDD" | tdd | 3 | workflow-tdd-plan → workflow-execute |
|
||||
| "Uncertain: real-time" | exploration | 4 | brainstorm → workflow-plan → workflow-execute → workflow-test-fix |
|
||||
| "team planex: 用户系统" | team-planex | Team | team-planex |
|
||||
| "迭代开发团队: 支付模块" | team-iterdev | Team | team-iterdev |
|
||||
|
||||
@@ -107,24 +107,24 @@ async function selectCommandCategory() {
|
||||
async function selectCommand(category) {
|
||||
const commandOptions = {
|
||||
'Planning': [
|
||||
{ label: "/workflow:lite-plan", description: "Lightweight merged-mode planning" },
|
||||
{ label: "/workflow:plan", description: "Full planning with architecture design" },
|
||||
{ label: "/workflow:multi-cli-plan", description: "Multi-CLI collaborative planning (Gemini+Codex+Claude)" },
|
||||
{ label: "/workflow:tdd-plan", description: "TDD workflow planning with Red-Green-Refactor" },
|
||||
{ label: "/workflow-lite-plan", description: "Lightweight merged-mode planning" },
|
||||
{ label: "/workflow-plan", description: "Full planning with architecture design" },
|
||||
{ label: "/workflow-multi-cli-plan", description: "Multi-CLI collaborative planning (Gemini+Codex+Claude)" },
|
||||
{ label: "/workflow-tdd-plan", description: "TDD workflow planning with Red-Green-Refactor" },
|
||||
{ label: "/workflow:quick-plan-with-file", description: "Rapid planning with minimal docs" },
|
||||
{ label: "/workflow:plan-verify", description: "Verify plan against requirements" },
|
||||
{ label: "/workflow-plan-verify", description: "Verify plan against requirements" },
|
||||
{ label: "/workflow:replan", description: "Update plan and execute changes" }
|
||||
],
|
||||
'Execution': [
|
||||
{ label: "/workflow:lite-execute", description: "Execute from in-memory plan" },
|
||||
{ label: "/workflow:execute", description: "Execute from planning session" },
|
||||
{ label: "/workflow-execute", description: "Execute from planning session" },
|
||||
{ label: "/workflow:unified-execute-with-file", description: "Universal execution engine" }
|
||||
],
|
||||
'Testing': [
|
||||
{ label: "/workflow:test-fix-gen", description: "Generate test tasks for specific issues" },
|
||||
{ label: "/workflow:test-cycle-execute", description: "Execute iterative test-fix cycle (>=95% pass)" },
|
||||
{ label: "/workflow-test-fix", description: "Generate test tasks for specific issues" },
|
||||
{ label: "/workflow-test-fix", description: "Execute iterative test-fix cycle (>=95% pass)" },
|
||||
{ label: "/workflow:test-gen", description: "Generate comprehensive test suite" },
|
||||
{ label: "/workflow:tdd-verify", description: "Verify TDD workflow compliance" }
|
||||
{ label: "/workflow-tdd-verify", description: "Verify TDD workflow compliance" }
|
||||
],
|
||||
'Review': [
|
||||
{ label: "/workflow:review-session-cycle", description: "Session-based multi-dimensional code review" },
|
||||
@@ -133,7 +133,7 @@ async function selectCommand(category) {
|
||||
{ label: "/workflow:review", description: "Post-implementation review" }
|
||||
],
|
||||
'Bug Fix': [
|
||||
{ label: "/workflow:lite-plan", description: "Lightweight bug diagnosis and fix (with --bugfix flag)" },
|
||||
{ label: "/workflow-lite-plan", description: "Lightweight bug diagnosis and fix (with --bugfix flag)" },
|
||||
{ label: "/workflow:debug-with-file", description: "Hypothesis-driven debugging with documentation" }
|
||||
],
|
||||
'Brainstorm': [
|
||||
@@ -303,10 +303,10 @@ async function defineSteps(templateDesign) {
|
||||
"description": "Quick implementation with testing",
|
||||
"level": 2,
|
||||
"steps": [
|
||||
{ "cmd": "/workflow:lite-plan", "args": "\"{{goal}}\"", "unit": "quick-implementation", "execution": { "type": "slash-command", "mode": "mainprocess" }, "contextHint": "Create lightweight implementation plan" },
|
||||
{ "cmd": "/workflow-lite-plan", "args": "\"{{goal}}\"", "unit": "quick-implementation", "execution": { "type": "slash-command", "mode": "mainprocess" }, "contextHint": "Create lightweight implementation plan" },
|
||||
{ "cmd": "/workflow:lite-execute", "args": "--in-memory", "unit": "quick-implementation", "execution": { "type": "slash-command", "mode": "mainprocess" }, "contextHint": "Execute implementation based on plan" },
|
||||
{ "cmd": "/workflow:test-fix-gen", "unit": "test-validation", "execution": { "type": "slash-command", "mode": "mainprocess" }, "contextHint": "Generate test tasks" },
|
||||
{ "cmd": "/workflow:test-cycle-execute", "unit": "test-validation", "execution": { "type": "slash-command", "mode": "async" }, "contextHint": "Execute test-fix cycle until pass rate >= 95%" }
|
||||
{ "cmd": "/workflow-test-fix", "unit": "test-validation", "execution": { "type": "slash-command", "mode": "mainprocess" }, "contextHint": "Generate test tasks" },
|
||||
{ "cmd": "/workflow-test-fix", "unit": "test-validation", "execution": { "type": "slash-command", "mode": "async" }, "contextHint": "Execute test-fix cycle until pass rate >= 95%" }
|
||||
]
|
||||
}
|
||||
```
|
||||
@@ -318,13 +318,13 @@ async function defineSteps(templateDesign) {
|
||||
"description": "Full workflow with verification, review, and testing",
|
||||
"level": 3,
|
||||
"steps": [
|
||||
{ "cmd": "/workflow:plan", "args": "\"{{goal}}\"", "unit": "verified-planning-execution", "execution": { "type": "slash-command", "mode": "mainprocess" }, "contextHint": "Create detailed implementation plan" },
|
||||
{ "cmd": "/workflow:plan-verify", "unit": "verified-planning-execution", "execution": { "type": "slash-command", "mode": "mainprocess" }, "contextHint": "Verify plan against requirements" },
|
||||
{ "cmd": "/workflow:execute", "unit": "verified-planning-execution", "execution": { "type": "slash-command", "mode": "async" }, "contextHint": "Execute implementation" },
|
||||
{ "cmd": "/workflow-plan", "args": "\"{{goal}}\"", "unit": "verified-planning-execution", "execution": { "type": "slash-command", "mode": "mainprocess" }, "contextHint": "Create detailed implementation plan" },
|
||||
{ "cmd": "/workflow-plan-verify", "unit": "verified-planning-execution", "execution": { "type": "slash-command", "mode": "mainprocess" }, "contextHint": "Verify plan against requirements" },
|
||||
{ "cmd": "/workflow-execute", "unit": "verified-planning-execution", "execution": { "type": "slash-command", "mode": "async" }, "contextHint": "Execute implementation" },
|
||||
{ "cmd": "/workflow:review-session-cycle", "unit": "code-review", "execution": { "type": "slash-command", "mode": "mainprocess" }, "contextHint": "Multi-dimensional code review" },
|
||||
{ "cmd": "/workflow:review-cycle-fix", "unit": "code-review", "execution": { "type": "slash-command", "mode": "mainprocess" }, "contextHint": "Fix review findings" },
|
||||
{ "cmd": "/workflow:test-fix-gen", "unit": "test-validation", "execution": { "type": "slash-command", "mode": "mainprocess" }, "contextHint": "Generate test tasks" },
|
||||
{ "cmd": "/workflow:test-cycle-execute", "unit": "test-validation", "execution": { "type": "slash-command", "mode": "async" }, "contextHint": "Execute test-fix cycle" }
|
||||
{ "cmd": "/workflow-test-fix", "unit": "test-validation", "execution": { "type": "slash-command", "mode": "mainprocess" }, "contextHint": "Generate test tasks" },
|
||||
{ "cmd": "/workflow-test-fix", "unit": "test-validation", "execution": { "type": "slash-command", "mode": "async" }, "contextHint": "Execute test-fix cycle" }
|
||||
]
|
||||
}
|
||||
```
|
||||
@@ -336,10 +336,10 @@ async function defineSteps(templateDesign) {
|
||||
"description": "Bug diagnosis and fix with testing",
|
||||
"level": 2,
|
||||
"steps": [
|
||||
{ "cmd": "/workflow:lite-plan", "args": "--bugfix \"{{goal}}\"", "unit": "bug-fix", "execution": { "type": "slash-command", "mode": "mainprocess" }, "contextHint": "Diagnose and plan bug fix" },
|
||||
{ "cmd": "/workflow-lite-plan", "args": "--bugfix \"{{goal}}\"", "unit": "bug-fix", "execution": { "type": "slash-command", "mode": "mainprocess" }, "contextHint": "Diagnose and plan bug fix" },
|
||||
{ "cmd": "/workflow:lite-execute", "args": "--in-memory", "unit": "bug-fix", "execution": { "type": "slash-command", "mode": "mainprocess" }, "contextHint": "Execute bug fix" },
|
||||
{ "cmd": "/workflow:test-fix-gen", "unit": "test-validation", "execution": { "type": "slash-command", "mode": "mainprocess" }, "contextHint": "Generate regression tests" },
|
||||
{ "cmd": "/workflow:test-cycle-execute", "unit": "test-validation", "execution": { "type": "slash-command", "mode": "async" }, "contextHint": "Verify fix with tests" }
|
||||
{ "cmd": "/workflow-test-fix", "unit": "test-validation", "execution": { "type": "slash-command", "mode": "mainprocess" }, "contextHint": "Generate regression tests" },
|
||||
{ "cmd": "/workflow-test-fix", "unit": "test-validation", "execution": { "type": "slash-command", "mode": "async" }, "contextHint": "Verify fix with tests" }
|
||||
]
|
||||
}
|
||||
```
|
||||
@@ -351,7 +351,7 @@ async function defineSteps(templateDesign) {
|
||||
"description": "Urgent production bug fix (no tests)",
|
||||
"level": 2,
|
||||
"steps": [
|
||||
{ "cmd": "/workflow:lite-plan", "args": "--hotfix \"{{goal}}\"", "unit": "standalone", "execution": { "type": "slash-command", "mode": "mainprocess" }, "contextHint": "Emergency hotfix mode" }
|
||||
{ "cmd": "/workflow-lite-plan", "args": "--hotfix \"{{goal}}\"", "unit": "standalone", "execution": { "type": "slash-command", "mode": "mainprocess" }, "contextHint": "Emergency hotfix mode" }
|
||||
]
|
||||
}
|
||||
```
|
||||
@@ -363,9 +363,9 @@ async function defineSteps(templateDesign) {
|
||||
"description": "Test-driven development with Red-Green-Refactor",
|
||||
"level": 3,
|
||||
"steps": [
|
||||
{ "cmd": "/workflow:tdd-plan", "args": "\"{{goal}}\"", "unit": "tdd-planning-execution", "execution": { "type": "slash-command", "mode": "mainprocess" }, "contextHint": "Create TDD task chain" },
|
||||
{ "cmd": "/workflow:execute", "unit": "tdd-planning-execution", "execution": { "type": "slash-command", "mode": "async" }, "contextHint": "Execute TDD cycle" },
|
||||
{ "cmd": "/workflow:tdd-verify", "unit": "standalone", "execution": { "type": "slash-command", "mode": "mainprocess" }, "contextHint": "Verify TDD compliance" }
|
||||
{ "cmd": "/workflow-tdd-plan", "args": "\"{{goal}}\"", "unit": "tdd-planning-execution", "execution": { "type": "slash-command", "mode": "mainprocess" }, "contextHint": "Create TDD task chain" },
|
||||
{ "cmd": "/workflow-execute", "unit": "tdd-planning-execution", "execution": { "type": "slash-command", "mode": "async" }, "contextHint": "Execute TDD cycle" },
|
||||
{ "cmd": "/workflow-tdd-verify", "unit": "standalone", "execution": { "type": "slash-command", "mode": "mainprocess" }, "contextHint": "Verify TDD compliance" }
|
||||
]
|
||||
}
|
||||
```
|
||||
@@ -379,8 +379,8 @@ async function defineSteps(templateDesign) {
|
||||
"steps": [
|
||||
{ "cmd": "/workflow:review-session-cycle", "unit": "code-review", "execution": { "type": "slash-command", "mode": "mainprocess" }, "contextHint": "Multi-dimensional code review" },
|
||||
{ "cmd": "/workflow:review-cycle-fix", "unit": "code-review", "execution": { "type": "slash-command", "mode": "mainprocess" }, "contextHint": "Fix review findings" },
|
||||
{ "cmd": "/workflow:test-fix-gen", "unit": "test-validation", "execution": { "type": "slash-command", "mode": "mainprocess" }, "contextHint": "Generate tests for fixes" },
|
||||
{ "cmd": "/workflow:test-cycle-execute", "unit": "test-validation", "execution": { "type": "slash-command", "mode": "async" }, "contextHint": "Verify fixes pass tests" }
|
||||
{ "cmd": "/workflow-test-fix", "unit": "test-validation", "execution": { "type": "slash-command", "mode": "mainprocess" }, "contextHint": "Generate tests for fixes" },
|
||||
{ "cmd": "/workflow-test-fix", "unit": "test-validation", "execution": { "type": "slash-command", "mode": "async" }, "contextHint": "Verify fixes pass tests" }
|
||||
]
|
||||
}
|
||||
```
|
||||
@@ -392,8 +392,8 @@ async function defineSteps(templateDesign) {
|
||||
"description": "Fix failing tests",
|
||||
"level": 3,
|
||||
"steps": [
|
||||
{ "cmd": "/workflow:test-fix-gen", "args": "\"{{goal}}\"", "unit": "test-validation", "execution": { "type": "slash-command", "mode": "mainprocess" }, "contextHint": "Generate test fix tasks" },
|
||||
{ "cmd": "/workflow:test-cycle-execute", "unit": "test-validation", "execution": { "type": "slash-command", "mode": "async" }, "contextHint": "Execute test-fix cycle" }
|
||||
{ "cmd": "/workflow-test-fix", "args": "\"{{goal}}\"", "unit": "test-validation", "execution": { "type": "slash-command", "mode": "mainprocess" }, "contextHint": "Generate test fix tasks" },
|
||||
{ "cmd": "/workflow-test-fix", "unit": "test-validation", "execution": { "type": "slash-command", "mode": "async" }, "contextHint": "Execute test-fix cycle" }
|
||||
]
|
||||
}
|
||||
```
|
||||
@@ -420,7 +420,7 @@ async function defineSteps(templateDesign) {
|
||||
"description": "Bridge lightweight planning to issue workflow",
|
||||
"level": 2,
|
||||
"steps": [
|
||||
{ "cmd": "/workflow:lite-plan", "args": "\"{{goal}}\"", "unit": "rapid-to-issue", "execution": { "type": "slash-command", "mode": "mainprocess" }, "contextHint": "Create lightweight plan" },
|
||||
{ "cmd": "/workflow-lite-plan", "args": "\"{{goal}}\"", "unit": "rapid-to-issue", "execution": { "type": "slash-command", "mode": "mainprocess" }, "contextHint": "Create lightweight plan" },
|
||||
{ "cmd": "/issue:convert-to-plan", "args": "--latest-lite-plan -y", "unit": "rapid-to-issue", "execution": { "type": "slash-command", "mode": "mainprocess" }, "contextHint": "Convert to issue plan" },
|
||||
{ "cmd": "/issue:queue", "unit": "rapid-to-issue", "execution": { "type": "slash-command", "mode": "mainprocess" }, "contextHint": "Form execution queue" },
|
||||
{ "cmd": "/issue:execute", "args": "--queue auto", "unit": "rapid-to-issue", "execution": { "type": "slash-command", "mode": "async" }, "contextHint": "Execute issue queue" }
|
||||
@@ -486,11 +486,11 @@ async function defineSteps(templateDesign) {
|
||||
"level": 4,
|
||||
"steps": [
|
||||
{ "cmd": "/brainstorm", "args": "\"{{goal}}\"", "unit": "standalone", "execution": { "type": "slash-command", "mode": "mainprocess" }, "contextHint": "Unified brainstorming with multi-perspective exploration" },
|
||||
{ "cmd": "/workflow:plan", "unit": "verified-planning-execution", "execution": { "type": "slash-command", "mode": "mainprocess" }, "contextHint": "Create detailed plan from brainstorm" },
|
||||
{ "cmd": "/workflow:plan-verify", "unit": "verified-planning-execution", "execution": { "type": "slash-command", "mode": "mainprocess" }, "contextHint": "Verify plan quality" },
|
||||
{ "cmd": "/workflow:execute", "unit": "verified-planning-execution", "execution": { "type": "slash-command", "mode": "async" }, "contextHint": "Execute implementation" },
|
||||
{ "cmd": "/workflow:test-fix-gen", "unit": "test-validation", "execution": { "type": "slash-command", "mode": "mainprocess" }, "contextHint": "Generate comprehensive tests" },
|
||||
{ "cmd": "/workflow:test-cycle-execute", "unit": "test-validation", "execution": { "type": "slash-command", "mode": "async" }, "contextHint": "Execute test cycle" }
|
||||
{ "cmd": "/workflow-plan", "unit": "verified-planning-execution", "execution": { "type": "slash-command", "mode": "mainprocess" }, "contextHint": "Create detailed plan from brainstorm" },
|
||||
{ "cmd": "/workflow-plan-verify", "unit": "verified-planning-execution", "execution": { "type": "slash-command", "mode": "mainprocess" }, "contextHint": "Verify plan quality" },
|
||||
{ "cmd": "/workflow-execute", "unit": "verified-planning-execution", "execution": { "type": "slash-command", "mode": "async" }, "contextHint": "Execute implementation" },
|
||||
{ "cmd": "/workflow-test-fix", "unit": "test-validation", "execution": { "type": "slash-command", "mode": "mainprocess" }, "contextHint": "Generate comprehensive tests" },
|
||||
{ "cmd": "/workflow-test-fix", "unit": "test-validation", "execution": { "type": "slash-command", "mode": "async" }, "contextHint": "Execute test cycle" }
|
||||
]
|
||||
}
|
||||
```
|
||||
@@ -502,10 +502,10 @@ async function defineSteps(templateDesign) {
|
||||
"description": "Multi-CLI collaborative planning with cross-verification",
|
||||
"level": 3,
|
||||
"steps": [
|
||||
{ "cmd": "/workflow:multi-cli-plan", "args": "\"{{goal}}\"", "unit": "multi-cli-planning", "execution": { "type": "slash-command", "mode": "mainprocess" }, "contextHint": "Gemini+Codex+Claude collaborative planning" },
|
||||
{ "cmd": "/workflow-multi-cli-plan", "args": "\"{{goal}}\"", "unit": "multi-cli-planning", "execution": { "type": "slash-command", "mode": "mainprocess" }, "contextHint": "Gemini+Codex+Claude collaborative planning" },
|
||||
{ "cmd": "/workflow:lite-execute", "args": "--in-memory", "unit": "multi-cli-planning", "execution": { "type": "slash-command", "mode": "mainprocess" }, "contextHint": "Execute converged plan" },
|
||||
{ "cmd": "/workflow:test-fix-gen", "unit": "test-validation", "execution": { "type": "slash-command", "mode": "mainprocess" }, "contextHint": "Generate tests" },
|
||||
{ "cmd": "/workflow:test-cycle-execute", "unit": "test-validation", "execution": { "type": "slash-command", "mode": "async" }, "contextHint": "Execute test cycle" }
|
||||
{ "cmd": "/workflow-test-fix", "unit": "test-validation", "execution": { "type": "slash-command", "mode": "mainprocess" }, "contextHint": "Generate tests" },
|
||||
{ "cmd": "/workflow-test-fix", "unit": "test-validation", "execution": { "type": "slash-command", "mode": "async" }, "contextHint": "Execute test cycle" }
|
||||
]
|
||||
}
|
||||
```
|
||||
@@ -656,9 +656,9 @@ async function generateTemplate(design, steps, outputPath) {
|
||||
→ Level: 3 (Standard)
|
||||
→ Steps: Customize
|
||||
→ Step 1: /brainstorm (standalone, mainprocess)
|
||||
→ Step 2: /workflow:plan (verified-planning-execution, mainprocess)
|
||||
→ Step 3: /workflow:plan-verify (verified-planning-execution, mainprocess)
|
||||
→ Step 4: /workflow:execute (verified-planning-execution, async)
|
||||
→ Step 2: /workflow-plan (verified-planning-execution, mainprocess)
|
||||
→ Step 3: /workflow-plan-verify (verified-planning-execution, mainprocess)
|
||||
→ Step 4: /workflow-execute (verified-planning-execution, async)
|
||||
→ Step 5: /workflow:review-session-cycle (code-review, mainprocess)
|
||||
→ Step 6: /workflow:review-cycle-fix (code-review, mainprocess)
|
||||
→ Done
|
||||
|
||||
@@ -222,7 +222,7 @@ if (skipSpecs) {
|
||||
Next steps:
|
||||
- Use /workflow:init-specs to create individual specs
|
||||
- Use /workflow:init-guidelines to configure specs interactively
|
||||
- Use /workflow:plan to start planning
|
||||
- Use /workflow-plan to start planning
|
||||
`);
|
||||
return;
|
||||
}
|
||||
@@ -260,7 +260,7 @@ Next steps:
|
||||
- Use /workflow:init-specs to create individual specs
|
||||
- Use /workflow:init-guidelines to configure specs interactively
|
||||
- Use ccw spec load to import specs from external sources
|
||||
- Use /workflow:plan to start planning
|
||||
- Use /workflow-plan to start planning
|
||||
`);
|
||||
}
|
||||
} else {
|
||||
@@ -271,7 +271,7 @@ Next steps:
|
||||
- Use /workflow:init-specs to create additional specs
|
||||
- Use /workflow:init-guidelines --reset to reconfigure
|
||||
- Use /workflow:session:solidify to add individual rules
|
||||
- Use /workflow:plan to start planning
|
||||
- Use /workflow-plan to start planning
|
||||
`);
|
||||
}
|
||||
```
|
||||
|
||||
@@ -923,7 +923,7 @@ Single evolving state file — each phase writes its section:
|
||||
- Already have a completed implementation session (WFS-*)
|
||||
- Only need unit/component level tests
|
||||
|
||||
**Use `workflow-tdd` skill when:**
|
||||
**Use `workflow-tdd-plan` skill when:**
|
||||
- Building new features with test-first approach
|
||||
- Red-Green-Refactor cycle
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ Closed-loop tech debt lifecycle: **Discover → Assess → Plan → Refactor →
|
||||
|
||||
**vs Existing Commands**:
|
||||
- **workflow:lite-fix**: Single bug fix, no systematic debt analysis
|
||||
- **workflow:plan + execute**: Generic implementation, no debt-aware prioritization or regression validation
|
||||
- **workflow-plan + execute**: Generic implementation, no debt-aware prioritization or regression validation
|
||||
- **This command**: Full debt lifecycle — discovery through multi-dimensional scan, prioritized execution with per-item regression validation
|
||||
|
||||
### Value Proposition
|
||||
|
||||
@@ -534,7 +534,7 @@ ${selectedMode === 'progressive' ? `**Progressive Mode**:
|
||||
| Scenario | Recommended Command |
|
||||
|----------|-------------------|
|
||||
| Strategic planning, need issue tracking | `/workflow:roadmap-with-file` |
|
||||
| Quick task breakdown, immediate execution | `/workflow:lite-plan` |
|
||||
| Quick task breakdown, immediate execution | `/workflow-lite-plan` |
|
||||
| Collaborative multi-agent planning | `/workflow:collaborative-plan-with-file` |
|
||||
| Full specification documents | `spec-generator` skill |
|
||||
| Code implementation from existing plan | `/workflow:lite-execute` |
|
||||
|
||||
@@ -57,5 +57,5 @@ Session WFS-user-auth resumed
|
||||
- Status: active
|
||||
- Paused at: 2025-09-15T14:30:00Z
|
||||
- Resumed at: 2025-09-15T15:45:00Z
|
||||
- Ready for: /workflow:execute
|
||||
- Ready for: /workflow-execute
|
||||
```
|
||||
@@ -27,7 +27,7 @@ The `--type` parameter classifies sessions for CCW dashboard organization:
|
||||
|------|-------------|-------------|
|
||||
| `workflow` | Standard implementation (default) | `workflow-plan` skill |
|
||||
| `review` | Code review sessions | `review-cycle` skill |
|
||||
| `tdd` | TDD-based development | `workflow-tdd` skill |
|
||||
| `tdd` | TDD-based development | `workflow-tdd-plan` skill |
|
||||
| `test` | Test generation/fix sessions | `workflow-test-fix` skill |
|
||||
| `docs` | Documentation sessions | `memory-manage` skill |
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
name: design-sync
|
||||
description: Synchronize finalized design system references to brainstorming artifacts, preparing them for /workflow:plan consumption
|
||||
description: Synchronize finalized design system references to brainstorming artifacts, preparing them for /workflow-plan consumption
|
||||
argument-hint: --session <session_id> [--selected-prototypes "<list>"]
|
||||
allowed-tools: Read(*), Write(*), Edit(*), TodoWrite(*), Glob(*), Bash(*)
|
||||
---
|
||||
@@ -351,10 +351,10 @@ Updated artifacts:
|
||||
✓ {role_count} role analysis.md files - Design system references
|
||||
✓ ui-designer/design-system-reference.md - Design system reference guide
|
||||
|
||||
Design system assets ready for /workflow:plan:
|
||||
Design system assets ready for /workflow-plan:
|
||||
- design-tokens.json | style-guide.md | {prototype_count} reference prototypes
|
||||
|
||||
Next: /workflow:plan [--agent] "<task description>"
|
||||
Next: /workflow-plan [--agent] "<task description>"
|
||||
The plan phase will automatically discover and utilize the design system.
|
||||
```
|
||||
|
||||
@@ -394,7 +394,7 @@ Next: /workflow:plan [--agent] "<task description>"
|
||||
@../../{design_id}/prototypes/{prototype}.html
|
||||
```
|
||||
|
||||
## Integration with /workflow:plan
|
||||
## Integration with /workflow-plan
|
||||
|
||||
After this update, `workflow-plan` skill will discover design assets through:
|
||||
|
||||
|
||||
@@ -606,7 +606,7 @@ Total workflow time: ~{estimate_total_time()} minutes
|
||||
|
||||
{IF session_id:
|
||||
2. Create implementation tasks:
|
||||
/workflow:plan --session {session_id}
|
||||
/workflow-plan --session {session_id}
|
||||
|
||||
3. Generate tests (if needed):
|
||||
/workflow:test-gen {session_id}
|
||||
@@ -741,5 +741,5 @@ Design Quality:
|
||||
- Design token driven
|
||||
- {generated_count} assembled prototypes
|
||||
|
||||
Next: [/workflow:execute] OR [Open compare.html → /workflow:plan]
|
||||
Next: [/workflow-execute] OR [Open compare.html → /workflow-plan]
|
||||
```
|
||||
|
||||
@@ -43,19 +43,19 @@ function getExistingCommandSources() {
|
||||
// These commands were migrated to skills but references were never updated
|
||||
const COMMAND_TO_SKILL_MAP = {
|
||||
// workflow commands → skills
|
||||
'/workflow:plan': 'workflow-plan',
|
||||
'/workflow:execute': 'workflow-execute',
|
||||
'/workflow:lite-plan': 'workflow-lite-plan',
|
||||
'/workflow-plan': 'workflow-plan',
|
||||
'/workflow-execute': 'workflow-execute',
|
||||
'/workflow-lite-plan': 'workflow-lite-plan',
|
||||
'/workflow:lite-execute': 'workflow-lite-plan', // lite-execute is part of lite-plan skill
|
||||
'/workflow:lite-fix': 'workflow-lite-plan', // lite-fix is part of lite-plan skill
|
||||
'/workflow:multi-cli-plan': 'workflow-multi-cli-plan',
|
||||
'/workflow:plan-verify': 'workflow-plan', // plan-verify is a phase of workflow-plan
|
||||
'/workflow-multi-cli-plan': 'workflow-multi-cli-plan',
|
||||
'/workflow-plan-verify': 'workflow-plan', // plan-verify is a phase of workflow-plan
|
||||
'/workflow:replan': 'workflow-plan', // replan is a phase of workflow-plan
|
||||
'/workflow:tdd-plan': 'workflow-tdd',
|
||||
'/workflow:tdd-verify': 'workflow-tdd', // tdd-verify is a phase of workflow-tdd
|
||||
'/workflow:test-fix-gen': 'workflow-test-fix',
|
||||
'/workflow-tdd-plan': 'workflow-tdd-plan',
|
||||
'/workflow-tdd-verify': 'workflow-tdd-plan', // tdd-verify is a phase of workflow-tdd-plan
|
||||
'/workflow-test-fix': 'workflow-test-fix',
|
||||
'/workflow:test-gen': 'workflow-test-fix',
|
||||
'/workflow:test-cycle-execute': 'workflow-test-fix',
|
||||
'/workflow-test-fix': 'workflow-test-fix',
|
||||
'/workflow:review': 'review-cycle',
|
||||
'/workflow:review-session-cycle': 'review-cycle',
|
||||
'/workflow:review-module-cycle': 'review-cycle',
|
||||
@@ -70,8 +70,8 @@ const COMMAND_TO_SKILL_MAP = {
|
||||
'/workflow:tools:context-gather': 'workflow-plan',
|
||||
'/workflow:tools:conflict-resolution': 'workflow-plan',
|
||||
'/workflow:tools:task-generate-agent': 'workflow-plan',
|
||||
'/workflow:tools:task-generate-tdd': 'workflow-tdd',
|
||||
'/workflow:tools:tdd-coverage-analysis': 'workflow-tdd',
|
||||
'/workflow:tools:task-generate-tdd': 'workflow-tdd-plan',
|
||||
'/workflow:tools:tdd-coverage-analysis': 'workflow-tdd-plan',
|
||||
'/workflow:tools:test-concept-enhanced': 'workflow-test-fix',
|
||||
'/workflow:tools:test-context-gather': 'workflow-test-fix',
|
||||
'/workflow:tools:test-task-generate': 'workflow-test-fix',
|
||||
@@ -319,17 +319,17 @@ function fixBrokenReferences() {
|
||||
// Pattern: `/ command:name` references that point to non-existent commands
|
||||
// These are documentation references - update to point to skill names
|
||||
const proseRefFixes = {
|
||||
'`/workflow:plan`': '`workflow-plan` skill',
|
||||
'`/workflow:execute`': '`workflow-execute` skill',
|
||||
'`/workflow-plan`': '`workflow-plan` skill',
|
||||
'`/workflow-execute`': '`workflow-execute` skill',
|
||||
'`/workflow:lite-execute`': '`workflow-lite-plan` skill',
|
||||
'`/workflow:lite-fix`': '`workflow-lite-plan` skill',
|
||||
'`/workflow:plan-verify`': '`workflow-plan` skill (plan-verify phase)',
|
||||
'`/workflow-plan-verify`': '`workflow-plan` skill (plan-verify phase)',
|
||||
'`/workflow:replan`': '`workflow-plan` skill (replan phase)',
|
||||
'`/workflow:tdd-plan`': '`workflow-tdd` skill',
|
||||
'`/workflow:tdd-verify`': '`workflow-tdd` skill (tdd-verify phase)',
|
||||
'`/workflow:test-fix-gen`': '`workflow-test-fix` skill',
|
||||
'`/workflow-tdd-plan`': '`workflow-tdd-plan` skill',
|
||||
'`/workflow-tdd-verify`': '`workflow-tdd-plan` skill (tdd-verify phase)',
|
||||
'`/workflow-test-fix`': '`workflow-test-fix` skill',
|
||||
'`/workflow:test-gen`': '`workflow-test-fix` skill',
|
||||
'`/workflow:test-cycle-execute`': '`workflow-test-fix` skill',
|
||||
'`/workflow-test-fix`': '`workflow-test-fix` skill',
|
||||
'`/workflow:review`': '`review-cycle` skill',
|
||||
'`/workflow:review-session-cycle`': '`review-cycle` skill',
|
||||
'`/workflow:review-module-cycle`': '`review-cycle` skill',
|
||||
@@ -346,8 +346,8 @@ function fixBrokenReferences() {
|
||||
'`/workflow:tools:task-generate`': '`workflow-plan` skill (task-generate phase)',
|
||||
'`/workflow:ui-design:auto`': '`/workflow:ui-design:explore-auto`',
|
||||
'`/workflow:ui-design:update`': '`/workflow:ui-design:generate`',
|
||||
'`/workflow:multi-cli-plan`': '`workflow-multi-cli-plan` skill',
|
||||
'`/workflow:lite-plan`': '`workflow-lite-plan` skill',
|
||||
'`/workflow-multi-cli-plan`': '`workflow-multi-cli-plan` skill',
|
||||
'`/workflow-lite-plan`': '`workflow-lite-plan` skill',
|
||||
'`/cli:plan`': '`workflow-lite-plan` skill',
|
||||
'`/test-cycle-execute`': '`workflow-test-fix` skill',
|
||||
};
|
||||
|
||||
@@ -123,7 +123,7 @@
|
||||
| **命令调用语法** | 转换为 Phase 文件的相对路径 | `/workflow:session:start` → `phases/01-session-discovery.md` |
|
||||
| **命令路径引用** | 转换为 Skill 目录内路径 | `commands/workflow/tools/` → `phases/` |
|
||||
| **跨命令引用** | 转换为 Phase 间文件引用 | `workflow-plan` skill (context-gather phase) → `phases/02-context-gathering.md` |
|
||||
| **命令参数说明** | 移除或转为 Phase Prerequisites | `usage: /workflow:plan [session-id]` → Phase Prerequisites 中说明 |
|
||||
| **命令参数说明** | 移除或转为 Phase Prerequisites | `usage: /workflow-plan [session-id]` → Phase Prerequisites 中说明 |
|
||||
|
||||
**转换示例**:
|
||||
|
||||
|
||||
@@ -373,7 +373,7 @@ Initial → Phase 1 Mode Routing (completed)
|
||||
- `/workflow:session:start` - Start a new workflow session (optional, brainstorm creates its own)
|
||||
|
||||
**Follow-ups** (after brainstorm completes):
|
||||
- `/workflow:plan --session {sessionId}` - Generate implementation plan
|
||||
- `/workflow-plan --session {sessionId}` - Generate implementation plan
|
||||
- `/workflow:brainstorm:synthesis --session {sessionId}` - Run synthesis standalone (if skipped)
|
||||
|
||||
## Reference Information
|
||||
|
||||
@@ -469,7 +469,7 @@ ${selected_roles.length > 1 ? `
|
||||
- Run synthesis: /brainstorm --session ${session_id} (auto mode)
|
||||
` : `
|
||||
- Clarify insights: /brainstorm --session ${session_id} (auto mode)
|
||||
- Generate plan: /workflow:plan --session ${session_id}
|
||||
- Generate plan: /workflow-plan --session ${session_id}
|
||||
`}
|
||||
```
|
||||
|
||||
|
||||
@@ -744,7 +744,7 @@ Write(context_pkg_path, JSON.stringify(context_pkg))
|
||||
**Changelog**: .brainstorming/synthesis-changelog.md
|
||||
|
||||
### Next Steps
|
||||
PROCEED: `/workflow:plan --session {session-id}`
|
||||
PROCEED: `/workflow-plan --session {session-id}`
|
||||
```
|
||||
|
||||
## Output
|
||||
|
||||
@@ -341,7 +341,7 @@
|
||||
},
|
||||
{
|
||||
"name": "execute",
|
||||
"command": "/workflow:execute",
|
||||
"command": "/workflow-execute",
|
||||
"description": "Coordinate agent execution for workflow tasks with automatic session discovery, parallel task processing, and status tracking",
|
||||
"arguments": "[-y|--yes] [--resume-session=\\\"session-id\\\"]",
|
||||
"category": "workflow",
|
||||
@@ -396,7 +396,7 @@
|
||||
},
|
||||
{
|
||||
"name": "lite-plan",
|
||||
"command": "/workflow:lite-plan",
|
||||
"command": "/workflow-lite-plan",
|
||||
"description": "Lightweight interactive planning workflow with in-memory planning, code exploration, and execution execute to lite-execute after user confirmation",
|
||||
"arguments": "[-y|--yes] [-e|--explore] \\\"task description\\\"|file.md",
|
||||
"category": "workflow",
|
||||
@@ -406,8 +406,8 @@
|
||||
"source": "../../commands/workflow/lite-plan.md"
|
||||
},
|
||||
{
|
||||
"name": "workflow:multi-cli-plan",
|
||||
"command": "/workflow:multi-cli-plan",
|
||||
"name": "workflow-multi-cli-plan",
|
||||
"command": "/workflow-multi-cli-plan",
|
||||
"description": "Multi-CLI collaborative planning workflow with ACE context gathering and iterative cross-verification. Uses cli-discuss-agent for Gemini+Codex+Claude analysis to converge on optimal execution plan.",
|
||||
"arguments": "[-y|--yes] <task description> [--max-rounds=3] [--tools=gemini,codex] [--mode=parallel|serial]",
|
||||
"category": "workflow",
|
||||
@@ -418,7 +418,7 @@
|
||||
},
|
||||
{
|
||||
"name": "plan-verify",
|
||||
"command": "/workflow:plan-verify",
|
||||
"command": "/workflow-plan-verify",
|
||||
"description": "Perform READ-ONLY verification analysis between IMPL_PLAN.md, task JSONs, and brainstorming artifacts. Generates structured report with quality gate recommendation. Does NOT modify any files.",
|
||||
"arguments": "[optional: --session session-id]",
|
||||
"category": "workflow",
|
||||
@@ -429,7 +429,7 @@
|
||||
},
|
||||
{
|
||||
"name": "plan",
|
||||
"command": "/workflow:plan",
|
||||
"command": "/workflow-plan",
|
||||
"description": "5-phase planning workflow with action-planning-agent task generation, outputs IMPL_PLAN.md and task JSONs",
|
||||
"arguments": "[-y|--yes] \\\"text description\\\"|file.md",
|
||||
"category": "workflow",
|
||||
@@ -550,7 +550,7 @@
|
||||
},
|
||||
{
|
||||
"name": "tdd-plan",
|
||||
"command": "/workflow:tdd-plan",
|
||||
"command": "/workflow-tdd-plan",
|
||||
"description": "TDD workflow planning with Red-Green-Refactor task chain generation, test-first development structure, and cycle tracking",
|
||||
"arguments": "\\\"feature description\\\"|file.md",
|
||||
"category": "workflow",
|
||||
@@ -561,7 +561,7 @@
|
||||
},
|
||||
{
|
||||
"name": "tdd-verify",
|
||||
"command": "/workflow:tdd-verify",
|
||||
"command": "/workflow-tdd-verify",
|
||||
"description": "Verify TDD workflow compliance against Red-Green-Refactor cycles. Generates quality report with coverage analysis and quality gate recommendation. Orchestrates sub-commands for comprehensive validation.",
|
||||
"arguments": "[optional: --session WFS-session-id]",
|
||||
"category": "workflow",
|
||||
@@ -572,7 +572,7 @@
|
||||
},
|
||||
{
|
||||
"name": "test-cycle-execute",
|
||||
"command": "/workflow:test-cycle-execute",
|
||||
"command": "/workflow-test-fix",
|
||||
"description": "Execute test-fix workflow with dynamic task generation and iterative fix cycles until test pass rate >= 95% or max iterations reached. Uses @cli-planning-agent for failure analysis and task generation.",
|
||||
"arguments": "[--resume-session=\\\"session-id\\\"] [--max-iterations=N]",
|
||||
"category": "workflow",
|
||||
@@ -583,7 +583,7 @@
|
||||
},
|
||||
{
|
||||
"name": "test-fix-gen",
|
||||
"command": "/workflow:test-fix-gen",
|
||||
"command": "/workflow-test-fix",
|
||||
"description": "Create test-fix workflow session from session ID, description, or file path with test strategy generation and task planning",
|
||||
"arguments": "(source-session-id | \\\"feature description\\\" | /path/to/file.md)",
|
||||
"category": "workflow",
|
||||
@@ -716,7 +716,7 @@
|
||||
{
|
||||
"name": "design-sync",
|
||||
"command": "/workflow:ui-design:design-sync",
|
||||
"description": "Synchronize finalized design system references to brainstorming artifacts, preparing them for /workflow:plan consumption",
|
||||
"description": "Synchronize finalized design system references to brainstorming artifacts, preparing them for /workflow-plan consumption",
|
||||
"arguments": "--session <session_id> [--selected-prototypes \"<list>\"]",
|
||||
"category": "workflow",
|
||||
"subcategory": "ui-design",
|
||||
|
||||
@@ -277,7 +277,7 @@
|
||||
{
|
||||
"name": "design-sync",
|
||||
"command": "/workflow:ui-design:design-sync",
|
||||
"description": "Synchronize finalized design system references to brainstorming artifacts, preparing them for /workflow:plan consumption",
|
||||
"description": "Synchronize finalized design system references to brainstorming artifacts, preparing them for /workflow-plan consumption",
|
||||
"arguments": "--session <session_id> [--selected-prototypes \"<list>\"]",
|
||||
"category": "workflow",
|
||||
"subcategory": "ui-design",
|
||||
|
||||
@@ -310,7 +310,7 @@
|
||||
{
|
||||
"name": "design-sync",
|
||||
"command": "/workflow:ui-design:design-sync",
|
||||
"description": "Synchronize finalized design system references to brainstorming artifacts, preparing them for /workflow:plan consumption",
|
||||
"description": "Synchronize finalized design system references to brainstorming artifacts, preparing them for /workflow-plan consumption",
|
||||
"arguments": "--session <session_id> [--selected-prototypes \"<list>\"]",
|
||||
"category": "workflow",
|
||||
"subcategory": "ui-design",
|
||||
|
||||
@@ -282,7 +282,7 @@
|
||||
{
|
||||
"name": "design-sync",
|
||||
"command": "/workflow:ui-design:design-sync",
|
||||
"description": "Synchronize finalized design system references to brainstorming artifacts, preparing them for /workflow:plan consumption",
|
||||
"description": "Synchronize finalized design system references to brainstorming artifacts, preparing them for /workflow-plan consumption",
|
||||
"arguments": "--session <session_id> [--selected-prototypes \"<list>\"]",
|
||||
"category": "workflow",
|
||||
"subcategory": "ui-design",
|
||||
|
||||
@@ -142,70 +142,70 @@ def analyze_agent_file(file_path: Path) -> Dict[str, Any]:
|
||||
def build_command_relationships() -> Dict[str, Any]:
|
||||
"""Build command relationship mappings."""
|
||||
return {
|
||||
"workflow:plan": {
|
||||
"workflow-plan": {
|
||||
"calls_internally": ["workflow:session:start", "workflow:tools:context-gather", "workflow:tools:conflict-resolution", "workflow:tools:task-generate-agent"],
|
||||
"next_steps": ["workflow:plan-verify", "workflow:status", "workflow:execute"],
|
||||
"alternatives": ["workflow:tdd-plan"],
|
||||
"next_steps": ["workflow-plan-verify", "workflow:status", "workflow-execute"],
|
||||
"alternatives": ["workflow-tdd-plan"],
|
||||
"prerequisites": []
|
||||
},
|
||||
"workflow:tdd-plan": {
|
||||
"workflow-tdd-plan": {
|
||||
"calls_internally": ["workflow:session:start", "workflow:tools:context-gather", "workflow:tools:task-generate-tdd"],
|
||||
"next_steps": ["workflow:tdd-verify", "workflow:status", "workflow:execute"],
|
||||
"alternatives": ["workflow:plan"],
|
||||
"next_steps": ["workflow-tdd-verify", "workflow:status", "workflow-execute"],
|
||||
"alternatives": ["workflow-plan"],
|
||||
"prerequisites": []
|
||||
},
|
||||
"workflow:execute": {
|
||||
"prerequisites": ["workflow:plan", "workflow:tdd-plan"],
|
||||
"workflow-execute": {
|
||||
"prerequisites": ["workflow-plan", "workflow-tdd-plan"],
|
||||
"related": ["workflow:status", "workflow:resume"],
|
||||
"next_steps": ["workflow:review", "workflow:tdd-verify"]
|
||||
"next_steps": ["workflow:review", "workflow-tdd-verify"]
|
||||
},
|
||||
"workflow:plan-verify": {
|
||||
"prerequisites": ["workflow:plan"],
|
||||
"next_steps": ["workflow:execute"],
|
||||
"workflow-plan-verify": {
|
||||
"prerequisites": ["workflow-plan"],
|
||||
"next_steps": ["workflow-execute"],
|
||||
"related": ["workflow:status"]
|
||||
},
|
||||
"workflow:tdd-verify": {
|
||||
"prerequisites": ["workflow:execute"],
|
||||
"workflow-tdd-verify": {
|
||||
"prerequisites": ["workflow-execute"],
|
||||
"related": ["workflow:tools:tdd-coverage-analysis"]
|
||||
},
|
||||
"workflow:session:start": {
|
||||
"next_steps": ["workflow:plan", "workflow:execute"],
|
||||
"next_steps": ["workflow-plan", "workflow-execute"],
|
||||
"related": ["workflow:session:list", "workflow:session:resume"]
|
||||
},
|
||||
"workflow:session:resume": {
|
||||
"alternatives": ["workflow:resume"],
|
||||
"related": ["workflow:session:list", "workflow:status"]
|
||||
},
|
||||
"workflow:lite-plan": {
|
||||
"workflow-lite-plan": {
|
||||
"calls_internally": ["workflow:lite-execute"],
|
||||
"next_steps": ["workflow:lite-execute", "workflow:status"],
|
||||
"alternatives": ["workflow:plan"],
|
||||
"alternatives": ["workflow-plan"],
|
||||
"prerequisites": []
|
||||
},
|
||||
"workflow:lite-fix": {
|
||||
"next_steps": ["workflow:lite-execute", "workflow:status"],
|
||||
"alternatives": ["workflow:lite-plan"],
|
||||
"related": ["workflow:test-cycle-execute"]
|
||||
"alternatives": ["workflow-lite-plan"],
|
||||
"related": ["workflow-test-fix"]
|
||||
},
|
||||
"workflow:lite-execute": {
|
||||
"prerequisites": ["workflow:lite-plan", "workflow:lite-fix"],
|
||||
"related": ["workflow:execute", "workflow:status"]
|
||||
"prerequisites": ["workflow-lite-plan", "workflow:lite-fix"],
|
||||
"related": ["workflow-execute", "workflow:status"]
|
||||
},
|
||||
"workflow:review-session-cycle": {
|
||||
"prerequisites": ["workflow:execute"],
|
||||
"prerequisites": ["workflow-execute"],
|
||||
"next_steps": ["workflow:review-fix"],
|
||||
"related": ["workflow:review-module-cycle"]
|
||||
},
|
||||
"workflow:review-fix": {
|
||||
"prerequisites": ["workflow:review-module-cycle", "workflow:review-session-cycle"],
|
||||
"related": ["workflow:test-cycle-execute"]
|
||||
"related": ["workflow-test-fix"]
|
||||
},
|
||||
"memory:docs": {
|
||||
"calls_internally": ["workflow:session:start", "workflow:tools:context-gather"],
|
||||
"next_steps": ["workflow:execute"]
|
||||
"next_steps": ["workflow-execute"]
|
||||
},
|
||||
"memory:skill-memory": {
|
||||
"next_steps": ["workflow:plan", "cli:analyze"],
|
||||
"next_steps": ["workflow-plan", "cli:analyze"],
|
||||
"related": ["memory:load-skill-memory"]
|
||||
}
|
||||
}
|
||||
@@ -213,11 +213,11 @@ def build_command_relationships() -> Dict[str, Any]:
|
||||
def identify_essential_commands(all_commands: List[Dict]) -> List[Dict]:
|
||||
"""Identify the most essential commands for beginners."""
|
||||
essential_names = [
|
||||
"workflow:lite-plan", "workflow:lite-fix", "workflow:plan",
|
||||
"workflow:execute", "workflow:status", "workflow:session:start",
|
||||
"workflow-lite-plan", "workflow:lite-fix", "workflow-plan",
|
||||
"workflow-execute", "workflow:status", "workflow:session:start",
|
||||
"workflow:review-session-cycle", "cli:analyze", "cli:chat",
|
||||
"memory:docs", "workflow:brainstorm:artifacts",
|
||||
"workflow:plan-verify", "workflow:resume", "version"
|
||||
"workflow-plan-verify", "workflow:resume", "version"
|
||||
]
|
||||
|
||||
essential = []
|
||||
|
||||
@@ -67,9 +67,9 @@ spec-generator/
|
||||
## Handoff
|
||||
|
||||
After Phase 6, choose execution path:
|
||||
- `workflow:lite-plan` - Execute per Epic
|
||||
- `workflow-lite-plan` - Execute per Epic
|
||||
- `workflow:req-plan-with-file` - Roadmap decomposition
|
||||
- `workflow:plan` - Full planning
|
||||
- `workflow-plan` - Full planning
|
||||
- `issue:new` - Create issues per Epic
|
||||
|
||||
## Design Principles
|
||||
|
||||
@@ -210,7 +210,7 @@ AskUserQuestion({
|
||||
options: [
|
||||
{
|
||||
label: "Execute via lite-plan",
|
||||
description: "Start implementing with /workflow:lite-plan, one Epic at a time"
|
||||
description: "Start implementing with /workflow-lite-plan, one Epic at a time"
|
||||
},
|
||||
{
|
||||
label: "Create roadmap",
|
||||
@@ -218,7 +218,7 @@ AskUserQuestion({
|
||||
},
|
||||
{
|
||||
label: "Full planning",
|
||||
description: "Detailed planning with /workflow:plan for the full scope"
|
||||
description: "Detailed planning with /workflow-plan for the full scope"
|
||||
},
|
||||
{
|
||||
label: "Create Issues",
|
||||
@@ -242,7 +242,7 @@ if (selection === "Execute via lite-plan") {
|
||||
const epicContent = Read(firstMvpFile);
|
||||
const title = extractTitle(epicContent); // First # heading
|
||||
const description = extractSection(epicContent, "Description");
|
||||
Skill(skill="workflow:lite-plan", args=`"${title}: ${description}"`)
|
||||
Skill(skill="workflow-lite-plan", args=`"${title}: ${description}"`)
|
||||
}
|
||||
|
||||
if (selection === "Full planning" || selection === "Create roadmap") {
|
||||
@@ -368,7 +368,7 @@ ${extractSection(epicContent, "Architecture")}
|
||||
// → context-package.json.brainstorm_artifacts populated
|
||||
// → action-planning-agent loads guidance_specification (P1) + feature_index (P2)
|
||||
if (selection === "Full planning") {
|
||||
Skill(skill="workflow:plan", args=`"${structuredDesc}"`)
|
||||
Skill(skill="workflow-plan", args=`"${structuredDesc}"`)
|
||||
} else {
|
||||
Skill(skill="workflow:req-plan-with-file", args=`"${extractGoal(specSummary)}"`)
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
name: workflow-execute
|
||||
description: Coordinate agent execution for workflow tasks with automatic session discovery, parallel task processing, and status tracking. Triggers on "workflow:execute".
|
||||
description: Coordinate agent execution for workflow tasks with automatic session discovery, parallel task processing, and status tracking. Triggers on "workflow-execute".
|
||||
allowed-tools: Skill, Task, AskUserQuestion, TaskCreate, TaskUpdate, TaskList, Read, Write, Edit, Bash, Glob, Grep
|
||||
---
|
||||
|
||||
@@ -14,18 +14,18 @@ Orchestrates autonomous workflow execution through systematic task discovery, ag
|
||||
|
||||
```bash
|
||||
# Interactive mode (with confirmations)
|
||||
/workflow:execute
|
||||
/workflow:execute --resume-session="WFS-auth"
|
||||
/workflow-execute
|
||||
/workflow-execute --resume-session="WFS-auth"
|
||||
|
||||
# Auto mode (skip confirmations, use defaults)
|
||||
/workflow:execute --yes
|
||||
/workflow:execute -y
|
||||
/workflow:execute -y --resume-session="WFS-auth"
|
||||
/workflow-execute --yes
|
||||
/workflow-execute -y
|
||||
/workflow-execute -y --resume-session="WFS-auth"
|
||||
|
||||
# With auto-commit (commit after each task completion)
|
||||
/workflow:execute --with-commit
|
||||
/workflow:execute -y --with-commit
|
||||
/workflow:execute -y --with-commit --resume-session="WFS-auth"
|
||||
/workflow-execute --with-commit
|
||||
/workflow-execute -y --with-commit
|
||||
/workflow-execute -y --with-commit --resume-session="WFS-auth"
|
||||
```
|
||||
|
||||
## Auto Mode Defaults
|
||||
@@ -153,7 +153,7 @@ bash(find .workflow/active/ -name "WFS-*" -type d 2>/dev/null | wc -l)
|
||||
**Case A: No Sessions** (count = 0)
|
||||
```
|
||||
ERROR: No active workflow sessions found
|
||||
Run /workflow:plan "task description" to create a session
|
||||
Run /workflow-plan "task description" to create a session
|
||||
```
|
||||
|
||||
**Case B: Single Session** (count = 1)
|
||||
@@ -575,7 +575,7 @@ meta.agent missing → Infer from meta.type:
|
||||
| Error Type | Cause | Recovery Strategy | Max Attempts |
|
||||
|-----------|-------|------------------|--------------|
|
||||
| **Discovery Errors** |
|
||||
| No active session | No sessions in `.workflow/active/` | Create or resume session: `/workflow:plan "project"` | N/A |
|
||||
| No active session | No sessions in `.workflow/active/` | Create or resume session: `/workflow-plan "project"` | N/A |
|
||||
| Multiple sessions | Multiple sessions in `.workflow/active/` | Prompt user selection | N/A |
|
||||
| Corrupted session | Invalid JSON files | Recreate session structure or validate files | N/A |
|
||||
| **Execution Errors** |
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
name: workflow-lite-plan
|
||||
description: Lightweight planning and execution skill - route to lite-plan or lite-execute with prompt enhancement. Triggers on "workflow:lite-plan", "workflow:lite-execute".
|
||||
description: Lightweight planning and execution skill - route to lite-plan or lite-execute with prompt enhancement. Triggers on "workflow-lite-plan", "workflow:lite-execute".
|
||||
allowed-tools: Skill, Task, AskUserQuestion, TodoWrite, Read, Write, Edit, Bash, Glob, Grep
|
||||
---
|
||||
|
||||
@@ -41,7 +41,7 @@ const mode = detectMode()
|
||||
|
||||
function detectMode() {
|
||||
if (skillName === 'workflow:lite-execute') return 'execute'
|
||||
return 'plan' // default: workflow:lite-plan
|
||||
return 'plan' // default: workflow-lite-plan
|
||||
}
|
||||
```
|
||||
|
||||
@@ -49,7 +49,7 @@ function detectMode() {
|
||||
|
||||
| Trigger | Mode | Phase Document | Description |
|
||||
|---------|------|----------------|-------------|
|
||||
| `workflow:lite-plan` | plan | [phases/01-lite-plan.md](phases/01-lite-plan.md) | Full planning pipeline (explore → plan → confirm → execute) |
|
||||
| `workflow-lite-plan` | plan | [phases/01-lite-plan.md](phases/01-lite-plan.md) | Full planning pipeline (explore → plan → confirm → execute) |
|
||||
| `workflow:lite-execute` | execute | [phases/02-lite-execute.md](phases/02-lite-execute.md) | Standalone execution (in-memory / prompt / file) |
|
||||
|
||||
## Interactive Preference Collection
|
||||
|
||||
@@ -755,7 +755,7 @@ Read("phases/02-lite-execute.md")
|
||||
| Planning agent failure | Fallback to direct planning by Claude |
|
||||
| Clarification timeout | Use exploration findings as-is |
|
||||
| Confirmation timeout | Save context, display resume instructions |
|
||||
| Modify loop > 3 times | Suggest breaking task or using /workflow:plan |
|
||||
| Modify loop > 3 times | Suggest breaking task or using /workflow-plan |
|
||||
|
||||
## Next Phase
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
name: workflow-multi-cli-plan
|
||||
description: Multi-CLI collaborative planning and execution skill - route to multi-cli-plan or lite-execute with prompt enhancement. Triggers on "workflow:multi-cli-plan", "workflow:lite-execute".
|
||||
description: Multi-CLI collaborative planning and execution skill - route to multi-cli-plan or lite-execute with prompt enhancement. Triggers on "workflow-multi-cli-plan", "workflow:lite-execute".
|
||||
allowed-tools: Skill, Task, AskUserQuestion, TodoWrite, Read, Write, Edit, Bash, Glob, Grep, mcp__ace-tool__search_context
|
||||
---
|
||||
|
||||
@@ -33,7 +33,7 @@ const mode = detectMode()
|
||||
|
||||
function detectMode() {
|
||||
if (skillName === 'workflow:lite-execute') return 'execute'
|
||||
return 'plan' // default: workflow:multi-cli-plan
|
||||
return 'plan' // default: workflow-multi-cli-plan
|
||||
}
|
||||
```
|
||||
|
||||
@@ -41,7 +41,7 @@ function detectMode() {
|
||||
|
||||
| Trigger | Mode | Phase Document | Description |
|
||||
|---------|------|----------------|-------------|
|
||||
| `workflow:multi-cli-plan` | plan | [phases/01-multi-cli-plan.md](phases/01-multi-cli-plan.md) | Multi-CLI collaborative planning (ACE context → discussion → plan → execute) |
|
||||
| `workflow-multi-cli-plan` | plan | [phases/01-multi-cli-plan.md](phases/01-multi-cli-plan.md) | Multi-CLI collaborative planning (ACE context → discussion → plan → execute) |
|
||||
| `workflow:lite-execute` | execute | [phases/02-lite-execute.md](phases/02-lite-execute.md) | Standalone execution (in-memory / prompt / file) |
|
||||
|
||||
## Interactive Preference Collection
|
||||
@@ -124,7 +124,7 @@ Multi-phase execution (multi-cli-plan → lite-execute) spans long conversations
|
||||
|
||||
## Execution Flow
|
||||
|
||||
### Plan Mode (workflow:multi-cli-plan)
|
||||
### Plan Mode (workflow-multi-cli-plan)
|
||||
|
||||
```
|
||||
1. Collect preferences via AskUserQuestion (autoYes)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Phase 1: Multi-CLI Collaborative Planning
|
||||
|
||||
Complete multi-CLI collaborative planning pipeline with ACE context gathering and iterative cross-verification. This phase document preserves the full content of the original `workflow:multi-cli-plan` command.
|
||||
Complete multi-CLI collaborative planning pipeline with ACE context gathering and iterative cross-verification. This phase document preserves the full content of the original `workflow-multi-cli-plan` command.
|
||||
|
||||
## Auto Mode
|
||||
|
||||
@@ -12,12 +12,12 @@ When `workflowPreferences.autoYes` is true: Auto-approve plan, use recommended s
|
||||
|
||||
```bash
|
||||
# Basic usage
|
||||
/workflow:multi-cli-plan "Implement user authentication"
|
||||
/workflow-multi-cli-plan "Implement user authentication"
|
||||
|
||||
# With options
|
||||
/workflow:multi-cli-plan "Add dark mode support" --max-rounds=3
|
||||
/workflow:multi-cli-plan "Refactor payment module" --tools=gemini,codex,claude
|
||||
/workflow:multi-cli-plan "Fix memory leak" --mode=serial
|
||||
/workflow-multi-cli-plan "Add dark mode support" --max-rounds=3
|
||||
/workflow-multi-cli-plan "Refactor payment module" --tools=gemini,codex,claude
|
||||
/workflow-multi-cli-plan "Fix memory leak" --mode=serial
|
||||
```
|
||||
|
||||
**Context Source**: ACE semantic search + Multi-CLI analysis
|
||||
@@ -585,7 +585,7 @@ TodoWrite({ todos: [
|
||||
|
||||
```bash
|
||||
# Simpler single-round planning
|
||||
/workflow:lite-plan "task description"
|
||||
/workflow-lite-plan "task description"
|
||||
|
||||
# Issue-driven discovery
|
||||
/issue:discover-by-prompt "find issues"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
name: workflow-plan
|
||||
description: Unified planning skill - 4-phase planning workflow, plan verification, and interactive replanning. Triggers on "workflow:plan", "workflow:plan-verify", "workflow:replan".
|
||||
description: Unified planning skill - 4-phase planning workflow, plan verification, and interactive replanning. Triggers on "workflow-plan", "workflow-plan-verify", "workflow:replan".
|
||||
allowed-tools: Skill, Task, AskUserQuestion, TodoWrite, Read, Write, Edit, Bash, Glob, Grep
|
||||
---
|
||||
|
||||
@@ -107,9 +107,9 @@ const mode = detectMode(args)
|
||||
|
||||
function detectMode(args) {
|
||||
// Skill trigger determines mode
|
||||
if (skillName === 'workflow:plan-verify') return 'verify'
|
||||
if (skillName === 'workflow-plan-verify') return 'verify'
|
||||
if (skillName === 'workflow:replan') return 'replan'
|
||||
return 'plan' // default: workflow:plan
|
||||
return 'plan' // default: workflow-plan
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
@@ -90,11 +90,11 @@ ELSE:
|
||||
SYNTHESIS_AVAILABLE = true
|
||||
|
||||
IF NOT EXISTS(IMPL_PLAN):
|
||||
ERROR: "IMPL_PLAN.md not found. Run /workflow:plan first"
|
||||
ERROR: "IMPL_PLAN.md not found. Run /workflow-plan first"
|
||||
EXIT
|
||||
|
||||
IF TASK_FILES.count == 0:
|
||||
ERROR: "No task JSON files found. Run /workflow:plan first"
|
||||
ERROR: "No task JSON files found. Run /workflow-plan first"
|
||||
EXIT
|
||||
```
|
||||
|
||||
@@ -320,7 +320,7 @@ ${recommendation === 'BLOCK_EXECUTION' ? 'BLOCK: Fix critical issues then re-ver
|
||||
recommendation === 'PROCEED_WITH_FIXES' ? 'FIX RECOMMENDED: Address high issues then re-verify or execute' :
|
||||
'READY: Proceed to Skill(skill="workflow-execute")'}
|
||||
|
||||
Re-verify: \`/workflow:plan-verify --session ${session_id}\`
|
||||
Re-verify: \`/workflow-plan-verify --session ${session_id}\`
|
||||
Execute: \`Skill(skill="workflow-execute", args="--resume-session=${session_id}")\`
|
||||
`
|
||||
|
||||
|
||||
@@ -215,7 +215,7 @@ const workflowConfig = {
|
||||
skillName: "workflow-plan", // kebab-case
|
||||
title: "Workflow Plan", // Human-readable
|
||||
description: "5-phase planning...", // One-line description
|
||||
triggers: ["workflow:plan"], // Trigger phrases
|
||||
triggers: ["workflow-plan"], // Trigger phrases
|
||||
allowedTools: ["Task", "AskUserQuestion", "TodoWrite", "Read", "Write", "Edit", "Bash", "Glob", "Grep", "Skill"],
|
||||
|
||||
// Source information
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
name: workflow-tdd
|
||||
description: Unified TDD workflow skill combining 6-phase TDD planning with Red-Green-Refactor task chain generation, and 4-phase TDD verification with compliance reporting. Triggers on "workflow:tdd-plan", "workflow:tdd-verify".
|
||||
name: workflow-tdd-plan-plan
|
||||
description: Unified TDD workflow skill combining 6-phase TDD planning with Red-Green-Refactor task chain generation, and 4-phase TDD verification with compliance reporting. Triggers on "workflow-tdd-plan", "workflow-tdd-verify".
|
||||
allowed-tools: Skill, Task, AskUserQuestion, TaskCreate, TaskUpdate, TaskList, Read, Write, Edit, Bash, Glob, Grep
|
||||
---
|
||||
|
||||
@@ -89,8 +89,8 @@ const mode = detectMode(args)
|
||||
|
||||
function detectMode(args) {
|
||||
// Skill trigger determines mode
|
||||
if (skillName === 'workflow:tdd-verify') return 'verify'
|
||||
return 'plan' // default: workflow:tdd-plan
|
||||
if (skillName === 'workflow-tdd-verify') return 'verify'
|
||||
return 'plan' // default: workflow-tdd-plan
|
||||
}
|
||||
```
|
||||
|
||||
@@ -496,7 +496,7 @@ Similar to workflow-plan, a `planning-notes.md` can accumulate context across ph
|
||||
- `phases/07-tdd-verify.md` - Phase 7: Test coverage and cycle analysis (inline)
|
||||
|
||||
**Follow-up Skills**:
|
||||
- `workflow-tdd` skill (tdd-verify phase) - Verify TDD compliance (can also invoke via verify mode)
|
||||
- `workflow-tdd-plan` skill (tdd-verify phase) - Verify TDD compliance (can also invoke via verify mode)
|
||||
- `workflow-plan` skill (plan-verify phase) - Verify plan quality and dependencies
|
||||
- Display session status inline - Review TDD task breakdown
|
||||
- `Skill(skill="workflow-execute")` - Begin TDD implementation
|
||||
@@ -50,7 +50,7 @@ process_dir = session_dir/.process
|
||||
# Check task files exist
|
||||
task_files = Glob(task_dir/*.json)
|
||||
IF task_files.count == 0:
|
||||
ERROR: "No task JSON files found. Run /workflow:tdd-plan first"
|
||||
ERROR: "No task JSON files found. Run /workflow-tdd-plan first"
|
||||
EXIT
|
||||
|
||||
# Check summaries exist (optional but recommended for full analysis)
|
||||
@@ -596,7 +596,7 @@ Next: Review full report for detailed findings
|
||||
|
||||
| Error | Cause | Resolution |
|
||||
|-------|-------|------------|
|
||||
| Task files missing | Incomplete planning | Run /workflow:tdd-plan first |
|
||||
| Task files missing | Incomplete planning | Run /workflow-tdd-plan first |
|
||||
| Invalid JSON | Corrupted task files | Regenerate tasks |
|
||||
| Missing summaries | Tasks not executed | Execute tasks before verify |
|
||||
|
||||
@@ -632,4 +632,4 @@ Next: Review full report for detailed findings
|
||||
| PROCEED_WITH_CAVEATS | `workflow-execute` skill | Start with noted caveats |
|
||||
| REQUIRE_FIXES | Review report, refine tasks | Address issues before proceed |
|
||||
| BLOCK_MERGE | `workflow-plan` skill (replan phase) | Significant restructuring needed |
|
||||
| After implementation | Re-run `workflow-tdd` skill (tdd-verify phase) | Verify post-execution compliance |
|
||||
| After implementation | Re-run `workflow-tdd-plan` skill (tdd-verify phase) | Verify post-execution compliance |
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
name: workflow-test-fix
|
||||
description: Unified test-fix pipeline combining test generation (session, context, analysis, task gen) with iterative test-cycle execution (adaptive strategy, progressive testing, CLI fallback). Triggers on "workflow:test-fix-gen", "workflow:test-cycle-execute", "test fix workflow".
|
||||
description: Unified test-fix pipeline combining test generation (session, context, analysis, task gen) with iterative test-cycle execution (adaptive strategy, progressive testing, CLI fallback). Triggers on "workflow-test-fix", "workflow-test-fix", "test fix workflow".
|
||||
allowed-tools: Skill, Task, AskUserQuestion, TaskCreate, TaskUpdate, TaskList, Read, Write, Edit, Bash, Glob, Grep
|
||||
---
|
||||
|
||||
@@ -60,8 +60,8 @@ Task Pipeline (generated in Phase 4, executed in Phase 5):
|
||||
|
||||
Full pipeline and execute-only modes are triggered by skill name routing (see Mode Detection). Workflow preferences (auto mode) are collected interactively via AskUserQuestion before dispatching to phases.
|
||||
|
||||
**Full pipeline** (workflow:test-fix-gen): Task description or session ID as arguments → interactive preference collection → generate + execute pipeline
|
||||
**Execute only** (workflow:test-cycle-execute): Auto-discovers active session → interactive preference collection → execution loop
|
||||
**Full pipeline** (workflow-test-fix): Task description or session ID as arguments → interactive preference collection → generate + execute pipeline
|
||||
**Execute only** (workflow-test-fix): Auto-discovers active session → interactive preference collection → execution loop
|
||||
|
||||
## Interactive Preference Collection
|
||||
|
||||
@@ -109,8 +109,8 @@ Multi-phase test-fix pipeline (Phase 1-5) spans long conversations, especially P
|
||||
|
||||
```
|
||||
Entry Point Detection:
|
||||
├─ /workflow:test-fix-gen → Full Pipeline (Phase 1→2→3→4→Summary→5)
|
||||
└─ /workflow:test-cycle-execute → Execution Only (Phase 5)
|
||||
├─ /workflow-test-fix → Full Pipeline (Phase 1→2→3→4→Summary→5)
|
||||
└─ /workflow-test-fix → Execution Only (Phase 5)
|
||||
|
||||
Phase 1: Session Start (session-start)
|
||||
└─ Ref: phases/01-session-start.md
|
||||
|
||||
@@ -19,13 +19,13 @@ Execute test-fix workflow with dynamic task generation and iterative fix cycles
|
||||
|
||||
```bash
|
||||
# Execute test-fix workflow (auto-discovers active session)
|
||||
/workflow:test-cycle-execute
|
||||
/workflow-test-fix
|
||||
|
||||
# Resume interrupted session
|
||||
/workflow:test-cycle-execute --resume-session="WFS-test-user-auth"
|
||||
/workflow-test-fix --resume-session="WFS-test-user-auth"
|
||||
|
||||
# Custom iteration limit (default: 10)
|
||||
/workflow:test-cycle-execute --max-iterations=15
|
||||
/workflow-test-fix --max-iterations=15
|
||||
```
|
||||
|
||||
**Quality Gate**: Test pass rate >= 95% (criticality-aware) or 100%
|
||||
@@ -60,7 +60,7 @@ Load session, tasks, and iteration state.
|
||||
|
||||
**For full-pipeline entry (from Phase 1-4)**: Use `testSessionId` passed from Phase 4.
|
||||
|
||||
**For direct entry (/workflow:test-cycle-execute)**:
|
||||
**For direct entry (/workflow-test-fix)**:
|
||||
- `--resume-session="WFS-xxx"` → Use specified session
|
||||
- No args → Auto-discover active test session (find `.workflow/active/WFS-test-*`)
|
||||
|
||||
|
||||
@@ -457,7 +457,7 @@ function buildCliCommand(task, cliTool, cliPrompt) {
|
||||
|
||||
**Auto-Check Workflow Context**:
|
||||
- Verify session context paths are provided in agent prompt
|
||||
- If missing, request session context from workflow:execute
|
||||
- If missing, request session context from workflow-execute
|
||||
- Never assume default paths without explicit session context
|
||||
|
||||
### 5. Problem-Solving
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
---
|
||||
description: "Interactive pre-flight checklist for workflow:plan. Validates environment, refines task to GOAL/SCOPE/CONTEXT, collects source docs, configures execution preferences, writes prep-package.json, then launches the workflow."
|
||||
description: "Interactive pre-flight checklist for workflow-plan. Validates environment, refines task to GOAL/SCOPE/CONTEXT, collects source docs, configures execution preferences, writes prep-package.json, then launches the workflow."
|
||||
argument-hint: TASK="<task description>" [EXEC_METHOD=agent|cli|hybrid] [CLI_TOOL=codex|gemini|qwen]
|
||||
---
|
||||
|
||||
# Pre-Flight Checklist for Workflow Plan
|
||||
|
||||
You are an interactive preparation assistant. Your job is to ensure everything is ready for an **unattended** `workflow:plan` run with `--yes` mode. Follow each step sequentially. **Ask the user questions when information is missing.** At the end, write `prep-package.json` and invoke the skill.
|
||||
You are an interactive preparation assistant. Your job is to ensure everything is ready for an **unattended** `workflow-plan` run with `--yes` mode. Follow each step sequentially. **Ask the user questions when information is missing.** At the end, write `prep-package.json` and invoke the skill.
|
||||
|
||||
---
|
||||
|
||||
@@ -112,7 +112,7 @@ Display detected sources:
|
||||
|
||||
### 2.1 Scoring
|
||||
|
||||
Score the user's TASK against 5 dimensions, mapped to workflow:plan's GOAL/SCOPE/CONTEXT format.
|
||||
Score the user's TASK against 5 dimensions, mapped to workflow-plan's GOAL/SCOPE/CONTEXT format.
|
||||
Each dimension scores 0-2 (0=missing, 1=vague, 2=clear). **Total minimum: 6/10 to proceed.**
|
||||
|
||||
| # | 维度 | 映射 | 评分标准 |
|
||||
@@ -165,7 +165,7 @@ For dimensions still at score 1 after Q&A, auto-enhance from codebase:
|
||||
|
||||
### 2.5 Assemble Structured Description
|
||||
|
||||
Map to workflow:plan's GOAL/SCOPE/CONTEXT format:
|
||||
Map to workflow-plan's GOAL/SCOPE/CONTEXT format:
|
||||
|
||||
```
|
||||
GOAL: {objective + success criteria}
|
||||
@@ -353,7 +353,7 @@ $workflow-plan-execute --yes --with-commit TASK="$TASK_STRUCTURED"
|
||||
|
||||
Print:
|
||||
```
|
||||
启动 workflow:plan (自动模式)...
|
||||
启动 workflow-plan (自动模式)...
|
||||
prep-package.json → Phase 1 自动加载并校验
|
||||
执行方式: hybrid (codex) + auto-commit
|
||||
```
|
||||
|
||||
@@ -800,7 +800,7 @@ Offer user follow-up actions based on brainstorming results.
|
||||
|
||||
| Option | Purpose | Action |
|
||||
|--------|---------|--------|
|
||||
| **创建实施计划** | Plan implementation of top idea | Launch `workflow:lite-plan` |
|
||||
| **创建实施计划** | Plan implementation of top idea | Launch `workflow-lite-plan` |
|
||||
| **创建Issue** | Track top ideas for later | Launch `issue:new` with ideas |
|
||||
| **深入分析** | Analyze top idea in detail | Launch `workflow:analyze-with-file` |
|
||||
| **导出分享** | Generate shareable report | Create formatted report document |
|
||||
|
||||
@@ -373,7 +373,7 @@ try {
|
||||
## Related Skills
|
||||
|
||||
**Prerequisite Skills**:
|
||||
- `workflow:plan` or `workflow:execute` - Complete implementation (Session Mode)
|
||||
- `workflow-plan` or `workflow-execute` - Complete implementation (Session Mode)
|
||||
- None for Prompt Mode
|
||||
|
||||
**Phase 1 Agents** (used by phases/01-test-fix-gen.md via spawn_agent):
|
||||
|
||||
26
README.md
26
README.md
@@ -93,7 +93,7 @@ CCW uses two types of invocations:
|
||||
|
||||
| Type | Format | Examples |
|
||||
|------|--------|----------|
|
||||
| **Skills** | Trigger phrase (no slash) | `workflow:lite-plan`, `brainstorm`, `workflow:plan` |
|
||||
| **Skills** | Trigger phrase (no slash) | `workflow-lite-plan`, `brainstorm`, `workflow-plan` |
|
||||
| **Commands** | Slash command | `/ccw`, `/workflow/session:start`, `/issue/new` |
|
||||
|
||||
### Choose Your Workflow Skill
|
||||
@@ -101,11 +101,11 @@ CCW uses two types of invocations:
|
||||
<div align="center">
|
||||
<table>
|
||||
<tr><th>Skill Trigger</th><th>Use Case</th></tr>
|
||||
<tr><td><code>workflow:lite-plan</code></td><td>Lightweight planning, single-module features</td></tr>
|
||||
<tr><td><code>workflow:multi-cli-plan</code></td><td>Multi-CLI collaborative analysis</td></tr>
|
||||
<tr><td><code>workflow:plan</code></td><td>Full planning with session persistence</td></tr>
|
||||
<tr><td><code>workflow:tdd-plan</code></td><td>Test-driven development</td></tr>
|
||||
<tr><td><code>workflow:test-fix-gen</code></td><td>Test generation and fix cycles</td></tr>
|
||||
<tr><td><code>workflow-lite-plan</code></td><td>Lightweight planning, single-module features</td></tr>
|
||||
<tr><td><code>workflow-multi-cli-plan</code></td><td>Multi-CLI collaborative analysis</td></tr>
|
||||
<tr><td><code>workflow-plan</code></td><td>Full planning with session persistence</td></tr>
|
||||
<tr><td><code>workflow-tdd-plan</code></td><td>Test-driven development</td></tr>
|
||||
<tr><td><code>workflow-test-fix</code></td><td>Test generation and fix cycles</td></tr>
|
||||
<tr><td><code>brainstorm</code></td><td>Multi-role brainstorming analysis</td></tr>
|
||||
</table>
|
||||
</div>
|
||||
@@ -114,9 +114,9 @@ CCW uses two types of invocations:
|
||||
|
||||
```bash
|
||||
# Skill triggers (no slash - just describe what you want)
|
||||
workflow:lite-plan "Add JWT authentication"
|
||||
workflow:plan "Implement payment gateway integration"
|
||||
workflow:execute
|
||||
workflow-lite-plan "Add JWT authentication"
|
||||
workflow-plan "Implement payment gateway integration"
|
||||
workflow-execute
|
||||
|
||||
# Brainstorming
|
||||
brainstorm "Design real-time collaboration system"
|
||||
@@ -278,9 +278,9 @@ ccw upgrade -a # Upgrade all installations
|
||||
```
|
||||
┌─────────────────────────────────────────────────────────────────┐
|
||||
│ Workflow Skills │
|
||||
│ 📝 workflow:lite-plan / workflow:multi-cli-plan (lightweight) │
|
||||
│ 📊 workflow:plan / workflow:tdd-plan (session-based) │
|
||||
│ 🧪 workflow:test-fix-gen / workflow:test-cycle-execute │
|
||||
│ 📝 workflow-lite-plan / workflow-multi-cli-plan (lightweight) │
|
||||
│ 📊 workflow-plan / workflow-tdd-plan (session-based) │
|
||||
│ 🧪 workflow-test-fix / workflow-test-fix │
|
||||
│ 🧠 brainstorm (multi-role analysis) │
|
||||
└─────────────────────────────────────────────────────────────────┘
|
||||
↓
|
||||
@@ -324,7 +324,7 @@ Claude-Code-Workflow/
|
||||
│ └── skills/ # 37 modular skills
|
||||
│ ├── workflow-lite-plan/
|
||||
│ ├── workflow-plan/
|
||||
│ ├── workflow-tdd/
|
||||
│ ├── workflow-tdd-plan/
|
||||
│ ├── workflow-test-fix/
|
||||
│ ├── brainstorm/
|
||||
│ ├── team-*/ # Team coordination skills
|
||||
|
||||
26
README_CN.md
26
README_CN.md
@@ -93,7 +93,7 @@ CCW 使用两种调用方式:
|
||||
|
||||
| 类型 | 格式 | 示例 |
|
||||
|------|------|------|
|
||||
| **Skills** | 触发短语(无斜杠) | `workflow:lite-plan`, `brainstorm`, `workflow:plan` |
|
||||
| **Skills** | 触发短语(无斜杠) | `workflow-lite-plan`, `brainstorm`, `workflow-plan` |
|
||||
| **Commands** | 斜杠命令 | `/ccw`, `/workflow/session:start`, `/issue/new` |
|
||||
|
||||
### 选择工作流 Skill
|
||||
@@ -101,11 +101,11 @@ CCW 使用两种调用方式:
|
||||
<div align="center">
|
||||
<table>
|
||||
<tr><th>Skill 触发词</th><th>使用场景</th></tr>
|
||||
<tr><td><code>workflow:lite-plan</code></td><td>轻量规划、单模块功能</td></tr>
|
||||
<tr><td><code>workflow:multi-cli-plan</code></td><td>多 CLI 协同分析</td></tr>
|
||||
<tr><td><code>workflow:plan</code></td><td>完整规划与会话持久化</td></tr>
|
||||
<tr><td><code>workflow:tdd-plan</code></td><td>测试驱动开发</td></tr>
|
||||
<tr><td><code>workflow:test-fix-gen</code></td><td>测试生成与修复循环</td></tr>
|
||||
<tr><td><code>workflow-lite-plan</code></td><td>轻量规划、单模块功能</td></tr>
|
||||
<tr><td><code>workflow-multi-cli-plan</code></td><td>多 CLI 协同分析</td></tr>
|
||||
<tr><td><code>workflow-plan</code></td><td>完整规划与会话持久化</td></tr>
|
||||
<tr><td><code>workflow-tdd-plan</code></td><td>测试驱动开发</td></tr>
|
||||
<tr><td><code>workflow-test-fix</code></td><td>测试生成与修复循环</td></tr>
|
||||
<tr><td><code>brainstorm</code></td><td>多角色头脑风暴分析</td></tr>
|
||||
</table>
|
||||
</div>
|
||||
@@ -114,9 +114,9 @@ CCW 使用两种调用方式:
|
||||
|
||||
```bash
|
||||
# Skill 触发(无斜杠 - 直接描述你想做什么)
|
||||
workflow:lite-plan "添加 JWT 认证"
|
||||
workflow:plan "实现支付网关集成"
|
||||
workflow:execute
|
||||
workflow-lite-plan "添加 JWT 认证"
|
||||
workflow-plan "实现支付网关集成"
|
||||
workflow-execute
|
||||
|
||||
# 头脑风暴
|
||||
brainstorm "设计实时协作系统"
|
||||
@@ -278,9 +278,9 @@ ccw upgrade -a # 升级所有安装
|
||||
```
|
||||
┌─────────────────────────────────────────────────────────────────┐
|
||||
│ 工作流 Skills │
|
||||
│ 📝 workflow:lite-plan / workflow:multi-cli-plan (轻量级) │
|
||||
│ 📊 workflow:plan / workflow:tdd-plan (会话式) │
|
||||
│ 🧪 workflow:test-fix-gen / workflow:test-cycle-execute │
|
||||
│ 📝 workflow-lite-plan / workflow-multi-cli-plan (轻量级) │
|
||||
│ 📊 workflow-plan / workflow-tdd-plan (会话式) │
|
||||
│ 🧪 workflow-test-fix / workflow-test-fix │
|
||||
│ 🧠 brainstorm (多角色分析) │
|
||||
└─────────────────────────────────────────────────────────────────┘
|
||||
↓
|
||||
@@ -324,7 +324,7 @@ Claude-Code-Workflow/
|
||||
│ └── skills/ # 37 个模块化技能
|
||||
│ ├── workflow-lite-plan/
|
||||
│ ├── workflow-plan/
|
||||
│ ├── workflow-tdd/
|
||||
│ ├── workflow-tdd-plan/
|
||||
│ ├── workflow-test-fix/
|
||||
│ ├── brainstorm/
|
||||
│ ├── team-*/ # 团队协调技能
|
||||
|
||||
@@ -21,7 +21,7 @@ CCW uses two types of invocations:
|
||||
|
||||
| Type | Format | Examples |
|
||||
|------|--------|----------|
|
||||
| **Skills** | Trigger phrase (no slash) | `workflow:lite-plan`, `brainstorm`, `workflow:plan` |
|
||||
| **Skills** | Trigger phrase (no slash) | `workflow-lite-plan`, `brainstorm`, `workflow-plan` |
|
||||
| **Commands** | Slash command | `/ccw`, `/workflow/session:start`, `/issue/new` |
|
||||
|
||||
---
|
||||
@@ -32,7 +32,7 @@ CCW uses two types of invocations:
|
||||
|
||||
| Skill Trigger | Purpose | Phases |
|
||||
|---------------|---------|--------|
|
||||
| `workflow:lite-plan` | Lightweight planning with exploration | 5 phases |
|
||||
| `workflow-lite-plan` | Lightweight planning with exploration | 5 phases |
|
||||
| `workflow:lite-execute` | Execute lite-plan output | Execution |
|
||||
|
||||
**5-Phase Interactive Workflow**:
|
||||
@@ -48,7 +48,7 @@ Phase 5: Execution & Tracking
|
||||
|
||||
| Skill Trigger | Purpose |
|
||||
|---------------|---------|
|
||||
| `workflow:multi-cli-plan` | Multi-CLI collaborative analysis |
|
||||
| `workflow-multi-cli-plan` | Multi-CLI collaborative analysis |
|
||||
|
||||
**5-Phase Workflow**:
|
||||
```
|
||||
@@ -63,16 +63,16 @@ Phase 5: Plan Generation
|
||||
|
||||
| Skill Trigger | Purpose | Phases |
|
||||
|---------------|---------|--------|
|
||||
| `workflow:plan` | Full planning with session | 5 phases |
|
||||
| `workflow:plan-verify` | Plan verification | Verification |
|
||||
| `workflow-plan` | Full planning with session | 5 phases |
|
||||
| `workflow-plan-verify` | Plan verification | Verification |
|
||||
| `workflow:replan` | Interactive replanning | Replanning |
|
||||
|
||||
### TDD Workflow
|
||||
|
||||
| Skill Trigger | Purpose |
|
||||
|---------------|---------|
|
||||
| `workflow:tdd-plan` | TDD planning |
|
||||
| `workflow:tdd-verify` | TDD verification |
|
||||
| `workflow-tdd-plan` | TDD planning |
|
||||
| `workflow-tdd-verify` | TDD verification |
|
||||
|
||||
**6-Phase TDD Planning + Red-Green-Refactor**:
|
||||
```
|
||||
@@ -88,8 +88,8 @@ Phase 6: Next cycle
|
||||
|
||||
| Skill Trigger | Purpose |
|
||||
|---------------|---------|
|
||||
| `workflow:test-fix-gen` | Test generation and fix |
|
||||
| `workflow:test-cycle-execute` | Execute test cycles |
|
||||
| `workflow-test-fix` | Test generation and fix |
|
||||
| `workflow-test-fix` | Execute test cycles |
|
||||
|
||||
**Progressive Test Layers (L0-L3)**:
|
||||
|
||||
@@ -232,12 +232,12 @@ Phase 6: Next cycle
|
||||
|
||||
| Skill | Trigger |
|
||||
|-------|---------|
|
||||
| workflow-lite-plan | `workflow:lite-plan`, `workflow:lite-execute` |
|
||||
| workflow-multi-cli-plan | `workflow:multi-cli-plan` |
|
||||
| workflow-plan | `workflow:plan`, `workflow:plan-verify`, `workflow:replan` |
|
||||
| workflow-execute | `workflow:execute` |
|
||||
| workflow-tdd | `workflow:tdd-plan`, `workflow:tdd-verify` |
|
||||
| workflow-test-fix | `workflow:test-fix-gen`, `workflow:test-cycle-execute` |
|
||||
| workflow-lite-plan | `workflow-lite-plan`, `workflow:lite-execute` |
|
||||
| workflow-multi-cli-plan | `workflow-multi-cli-plan` |
|
||||
| workflow-plan | `workflow-plan`, `workflow-plan-verify`, `workflow:replan` |
|
||||
| workflow-execute | `workflow-execute` |
|
||||
| workflow-tdd-plan | `workflow-tdd-plan`, `workflow-tdd-verify` |
|
||||
| workflow-test-fix | `workflow-test-fix`, `workflow-test-fix` |
|
||||
|
||||
### Specialized Skills
|
||||
|
||||
@@ -293,25 +293,25 @@ New System ─┼────────────┼─────
|
||||
Start
|
||||
│
|
||||
├─ Is it a quick fix or config change?
|
||||
│ └─> Yes: workflow:lite-plan
|
||||
│ └─> Yes: workflow-lite-plan
|
||||
│
|
||||
├─ Is it a single module feature?
|
||||
│ └─> Yes: workflow:lite-plan
|
||||
│ └─> Yes: workflow-lite-plan
|
||||
│
|
||||
├─ Does it need multi-CLI analysis?
|
||||
│ └─> Yes: workflow:multi-cli-plan
|
||||
│ └─> Yes: workflow-multi-cli-plan
|
||||
│
|
||||
├─ Is it multi-module with session?
|
||||
│ └─> Yes: workflow:plan
|
||||
│ └─> Yes: workflow-plan
|
||||
│
|
||||
├─ Is it TDD development?
|
||||
│ └─> Yes: workflow:tdd-plan
|
||||
│ └─> Yes: workflow-tdd-plan
|
||||
│
|
||||
├─ Is it test generation?
|
||||
│ └─> Yes: workflow:test-fix-gen
|
||||
│ └─> Yes: workflow-test-fix
|
||||
│
|
||||
└─ Is it architecture/new system?
|
||||
└─> Yes: brainstorm + workflow:plan
|
||||
└─> Yes: brainstorm + workflow-plan
|
||||
```
|
||||
|
||||
---
|
||||
@@ -348,10 +348,10 @@ Start
|
||||
|
||||
| Skill | When to Use |
|
||||
|-------|-------------|
|
||||
| `workflow:lite-plan` | Quick fixes, single features |
|
||||
| `workflow:plan` | Multi-module development |
|
||||
| `workflow-lite-plan` | Quick fixes, single features |
|
||||
| `workflow-plan` | Multi-module development |
|
||||
| `brainstorm` | Architecture, new features |
|
||||
| `workflow:execute` | Execute planned work |
|
||||
| `workflow-execute` | Execute planned work |
|
||||
|
||||
### Most Common Commands
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ CCW 使用两种调用方式:
|
||||
|
||||
| 类型 | 格式 | 示例 |
|
||||
|------|------|------|
|
||||
| **Skills** | 触发短语(无斜杠) | `workflow:lite-plan`, `brainstorm`, `workflow:plan` |
|
||||
| **Skills** | 触发短语(无斜杠) | `workflow-lite-plan`, `brainstorm`, `workflow-plan` |
|
||||
| **Commands** | 斜杠命令 | `/ccw`, `/workflow/session:start`, `/issue/new` |
|
||||
|
||||
---
|
||||
@@ -33,7 +33,7 @@ CCW 使用两种调用方式:
|
||||
|
||||
| Skill 触发词 | 用途 | 阶段 |
|
||||
|--------------|------|------|
|
||||
| `workflow:lite-plan` | 轻量规划与探索 | 5 阶段 |
|
||||
| `workflow-lite-plan` | 轻量规划与探索 | 5 阶段 |
|
||||
| `workflow:lite-execute` | 执行 lite-plan 输出 | 执行 |
|
||||
|
||||
**5 阶段交互式工作流**:
|
||||
@@ -49,7 +49,7 @@ CCW 使用两种调用方式:
|
||||
|
||||
| Skill 触发词 | 用途 |
|
||||
|--------------|------|
|
||||
| `workflow:multi-cli-plan` | 多 CLI 协同分析 |
|
||||
| `workflow-multi-cli-plan` | 多 CLI 协同分析 |
|
||||
|
||||
**5 阶段工作流**:
|
||||
```
|
||||
@@ -64,16 +64,16 @@ CCW 使用两种调用方式:
|
||||
|
||||
| Skill 触发词 | 用途 | 阶段 |
|
||||
|--------------|------|------|
|
||||
| `workflow:plan` | 完整规划与会话 | 5 阶段 |
|
||||
| `workflow:plan-verify` | 规划验证 | 验证 |
|
||||
| `workflow-plan` | 完整规划与会话 | 5 阶段 |
|
||||
| `workflow-plan-verify` | 规划验证 | 验证 |
|
||||
| `workflow:replan` | 交互式重新规划 | 重规划 |
|
||||
|
||||
### TDD 工作流
|
||||
|
||||
| Skill 触发词 | 用途 |
|
||||
|--------------|------|
|
||||
| `workflow:tdd-plan` | TDD 规划 |
|
||||
| `workflow:tdd-verify` | TDD 验证 |
|
||||
| `workflow-tdd-plan` | TDD 规划 |
|
||||
| `workflow-tdd-verify` | TDD 验证 |
|
||||
|
||||
**6 阶段 TDD 规划 + Red-Green-Refactor**:
|
||||
```
|
||||
@@ -89,8 +89,8 @@ CCW 使用两种调用方式:
|
||||
|
||||
| Skill 触发词 | 用途 |
|
||||
|--------------|------|
|
||||
| `workflow:test-fix-gen` | 测试生成与修复 |
|
||||
| `workflow:test-cycle-execute` | 执行测试循环 |
|
||||
| `workflow-test-fix` | 测试生成与修复 |
|
||||
| `workflow-test-fix` | 执行测试循环 |
|
||||
|
||||
**渐进式测试层级 (L0-L3)**:
|
||||
|
||||
@@ -233,12 +233,12 @@ CCW 使用两种调用方式:
|
||||
|
||||
| Skill | 触发词 |
|
||||
|-------|--------|
|
||||
| workflow-lite-plan | `workflow:lite-plan`, `workflow:lite-execute` |
|
||||
| workflow-multi-cli-plan | `workflow:multi-cli-plan` |
|
||||
| workflow-plan | `workflow:plan`, `workflow:plan-verify`, `workflow:replan` |
|
||||
| workflow-execute | `workflow:execute` |
|
||||
| workflow-tdd | `workflow:tdd-plan`, `workflow:tdd-verify` |
|
||||
| workflow-test-fix | `workflow:test-fix-gen`, `workflow:test-cycle-execute` |
|
||||
| workflow-lite-plan | `workflow-lite-plan`, `workflow:lite-execute` |
|
||||
| workflow-multi-cli-plan | `workflow-multi-cli-plan` |
|
||||
| workflow-plan | `workflow-plan`, `workflow-plan-verify`, `workflow:replan` |
|
||||
| workflow-execute | `workflow-execute` |
|
||||
| workflow-tdd-plan | `workflow-tdd-plan`, `workflow-tdd-verify` |
|
||||
| workflow-test-fix | `workflow-test-fix`, `workflow-test-fix` |
|
||||
|
||||
### 专项 Skills
|
||||
|
||||
@@ -294,25 +294,25 @@ CCW 使用两种调用方式:
|
||||
开始
|
||||
│
|
||||
├─ 是快速修复或配置变更?
|
||||
│ └─> 是:workflow:lite-plan
|
||||
│ └─> 是:workflow-lite-plan
|
||||
│
|
||||
├─ 是单模块功能?
|
||||
│ └─> 是:workflow:lite-plan
|
||||
│ └─> 是:workflow-lite-plan
|
||||
│
|
||||
├─ 需要多 CLI 分析?
|
||||
│ └─> 是:workflow:multi-cli-plan
|
||||
│ └─> 是:workflow-multi-cli-plan
|
||||
│
|
||||
├─ 是多模块且需要会话?
|
||||
│ └─> 是:workflow:plan
|
||||
│ └─> 是:workflow-plan
|
||||
│
|
||||
├─ 是 TDD 开发?
|
||||
│ └─> 是:workflow:tdd-plan
|
||||
│ └─> 是:workflow-tdd-plan
|
||||
│
|
||||
├─ 是测试生成?
|
||||
│ └─> 是:workflow:test-fix-gen
|
||||
│ └─> 是:workflow-test-fix
|
||||
│
|
||||
└─ 是架构/新系统?
|
||||
└─> 是:brainstorm + workflow:plan
|
||||
└─> 是:brainstorm + workflow-plan
|
||||
```
|
||||
|
||||
---
|
||||
@@ -349,10 +349,10 @@ CCW 使用两种调用方式:
|
||||
|
||||
| Skill | 何时使用 |
|
||||
|-------|----------|
|
||||
| `workflow:lite-plan` | 快速修复、单功能 |
|
||||
| `workflow:plan` | 多模块开发 |
|
||||
| `workflow-lite-plan` | 快速修复、单功能 |
|
||||
| `workflow-plan` | 多模块开发 |
|
||||
| `brainstorm` | 架构、新功能 |
|
||||
| `workflow:execute` | 执行已规划的工作 |
|
||||
| `workflow-execute` | 执行已规划的工作 |
|
||||
|
||||
### 最常用 Commands
|
||||
|
||||
|
||||
@@ -102,7 +102,7 @@ function HomeEmptyState({ className }: HomeEmptyStateProps) {
|
||||
</div>
|
||||
<div className="flex flex-col gap-2 w-full">
|
||||
<code className="px-3 py-2 bg-muted rounded text-xs font-mono text-center">
|
||||
/workflow:plan
|
||||
/workflow-plan
|
||||
</code>
|
||||
<p className="text-xs text-muted-foreground text-center">
|
||||
{formatMessage({ id: 'home.emptyState.noSessions.hint' })}
|
||||
|
||||
@@ -272,7 +272,7 @@
|
||||
"confirmDeleteTemplate": "Delete template \"{name}\"?",
|
||||
"placeholders": {
|
||||
"nodeLabel": "Node label",
|
||||
"instruction": "e.g., Execute /workflow:plan for login feature\nor: Analyze code architecture\nor: Save {{analysis}} to ./output/result.json",
|
||||
"instruction": "e.g., Execute /workflow-plan for login feature\nor: Analyze code architecture\nor: Save {{analysis}} to ./output/result.json",
|
||||
"outputName": "e.g., analysis, plan, result",
|
||||
"slashCommand": "Select a command...",
|
||||
"slashArgs": "Enter arguments...",
|
||||
|
||||
@@ -272,7 +272,7 @@
|
||||
"confirmDeleteTemplate": "确定删除模板 \"{name}\"?",
|
||||
"placeholders": {
|
||||
"nodeLabel": "节点标签",
|
||||
"instruction": "例如: 执行 /workflow:plan 用于登录功能\n或: 分析代码架构\n或: 将 {{analysis}} 保存到 ./output/result.json",
|
||||
"instruction": "例如: 执行 /workflow-plan 用于登录功能\n或: 分析代码架构\n或: 将 {{analysis}} 保存到 ./output/result.json",
|
||||
"outputName": "例如: analysis, plan, result",
|
||||
"slashCommand": "选择命令...",
|
||||
"slashArgs": "输入参数...",
|
||||
|
||||
@@ -48,7 +48,7 @@ export type ExecutionMode = 'analysis' | 'write' | 'mainprocess' | 'async';
|
||||
* - prompt -> instruction (direct)
|
||||
*
|
||||
* @example Slash command equivalent
|
||||
* { instruction: "Execute /workflow:plan for login feature", outputName: "plan", mode: "mainprocess" }
|
||||
* { instruction: "Execute /workflow-plan for login feature", outputName: "plan", mode: "mainprocess" }
|
||||
*
|
||||
* @example CLI command equivalent
|
||||
* { instruction: "Analyze code architecture", outputName: "analysis", tool: "gemini", mode: "analysis" }
|
||||
@@ -132,7 +132,7 @@ export interface PromptTemplateNodeData {
|
||||
skillName?: string;
|
||||
|
||||
/**
|
||||
* Selected slash command name (e.g., "workflow:plan", "review-code")
|
||||
* Selected slash command name (e.g., "workflow-plan", "review-code")
|
||||
* When set, overrides instruction during execution.
|
||||
* Used when mode is 'mainprocess' or 'async'.
|
||||
*/
|
||||
|
||||
@@ -43,7 +43,7 @@ export type StepStatus = 'pending' | 'running' | 'completed' | 'failed' | 'skipp
|
||||
* Defines the type of execution for an orchestration step.
|
||||
* - 'frontend-cli': Execute a command directly in the frontend CLI (e.g., via a pseudo-terminal).
|
||||
* - 'backend-flow': Execute a sub-flow defined on the backend.
|
||||
* - 'slash-command': Execute a predefined slash command (e.g., /workflow:plan).
|
||||
* - 'slash-command': Execute a predefined slash command (e.g., /workflow-plan).
|
||||
*/
|
||||
export type ExecutionType = 'frontend-cli' | 'backend-flow' | 'slash-command';
|
||||
|
||||
|
||||
@@ -113,7 +113,7 @@ async function startAction(taskId: string, options: { session?: string }): Promi
|
||||
sessionDir = findActiveSession(currentCwd);
|
||||
if (!sessionDir) {
|
||||
console.error(chalk.red('\n Error: No active workflow session found.'));
|
||||
console.error(chalk.gray(' Run "ccw workflow:plan" first to create a session.\n'));
|
||||
console.error(chalk.gray(' Run "ccw workflow-plan" first to create a session.\n'));
|
||||
process.exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -225,7 +225,7 @@ invalid yaml content without colons
|
||||
|
||||
expect(result).toEqual({
|
||||
name: 'lite-plan',
|
||||
command: '/workflow:lite-plan',
|
||||
command: '/workflow-lite-plan',
|
||||
description: 'Quick planning for simple features',
|
||||
argumentHint: '"feature description"',
|
||||
allowedTools: ['Task(*)', 'Read(*)', 'Write(*)', 'Bash(*)'],
|
||||
@@ -239,7 +239,7 @@ invalid yaml content without colons
|
||||
mockReadFileSync.mockReturnValue(sampleLitePlanYaml);
|
||||
|
||||
const registry = new CommandRegistry(cmdDir);
|
||||
const result = registry.getCommand('/workflow:lite-plan');
|
||||
const result = registry.getCommand('/workflow-lite-plan');
|
||||
|
||||
expect(result?.name).toBe('lite-plan');
|
||||
});
|
||||
@@ -330,8 +330,8 @@ description: Minimal command
|
||||
const result = registry.getCommands(['lite-plan', 'execute', 'nonexistent']);
|
||||
|
||||
expect(result.size).toBe(2);
|
||||
expect(result.has('/workflow:lite-plan')).toBe(true);
|
||||
expect(result.has('/workflow:execute')).toBe(true);
|
||||
expect(result.has('/workflow-lite-plan')).toBe(true);
|
||||
expect(result.has('/workflow-execute')).toBe(true);
|
||||
});
|
||||
|
||||
it('should skip nonexistent commands', () => {
|
||||
@@ -362,7 +362,7 @@ description: Minimal command
|
||||
const result = registry.getAllCommandsSummary();
|
||||
|
||||
expect(result.size).toBe(3);
|
||||
expect(result.get('/workflow:lite-plan')).toEqual({
|
||||
expect(result.get('/workflow-lite-plan')).toEqual({
|
||||
name: 'lite-plan',
|
||||
description: 'Quick planning for simple features'
|
||||
});
|
||||
@@ -483,9 +483,9 @@ allowed-tools: Task(*)
|
||||
|
||||
const json = registry.toJSON();
|
||||
|
||||
expect(json['/workflow:lite-plan']).toEqual({
|
||||
expect(json['/workflow-lite-plan']).toEqual({
|
||||
name: 'lite-plan',
|
||||
command: '/workflow:lite-plan',
|
||||
command: '/workflow-lite-plan',
|
||||
description: 'Quick planning for simple features',
|
||||
argumentHint: '"feature description"',
|
||||
allowedTools: ['Task(*)', 'Read(*)', 'Write(*)', 'Bash(*)'],
|
||||
@@ -508,8 +508,8 @@ allowed-tools: Task(*)
|
||||
const json = registry.toJSON();
|
||||
|
||||
expect(Object.keys(json).length).toBe(1);
|
||||
expect(json['/workflow:lite-plan']).toBeDefined();
|
||||
expect(json['/workflow:execute']).toBeUndefined();
|
||||
expect(json['/workflow-lite-plan']).toBeDefined();
|
||||
expect(json['/workflow-execute']).toBeUndefined();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -118,7 +118,7 @@ export class CommandRegistry {
|
||||
|
||||
/**
|
||||
* Get single command metadata
|
||||
* @param commandName Command name (e.g., "lite-plan" or "/workflow:lite-plan")
|
||||
* @param commandName Command name (e.g., "lite-plan" or "/workflow-lite-plan")
|
||||
* @returns Command metadata or null
|
||||
*/
|
||||
public getCommand(commandName: string): CommandMetadata | null {
|
||||
|
||||
118
docs-site/commands/claude/index.md
Normal file
118
docs-site/commands/claude/index.md
Normal file
@@ -0,0 +1,118 @@
|
||||
# Claude Commands
|
||||
|
||||
## 一句话定位
|
||||
|
||||
**Claude Commands 是 Claude_dms3 的核心命令系统** — 通过斜杠命令调用各种工作流、工具和协作功能。
|
||||
|
||||
## 核心概念速览
|
||||
|
||||
| 类别 | 命令数量 | 功能说明 |
|
||||
| --- | --- | --- |
|
||||
| **核心编排** | 2 | 主工作流编排器 (ccw, ccw-coordinator) |
|
||||
| **工作流** | 20+ | 规划、执行、审查、TDD、测试等工作流 |
|
||||
| **会话管理** | 6 | 会话创建、列表、恢复、完成等 |
|
||||
| **Issue 工作流** | 7 | Issue 发现、规划、队列、执行 |
|
||||
| **Memory** | 8 | 记忆捕获、更新、文档生成 |
|
||||
| **CLI 工具** | 2 | CLI 初始化、Codex 审查 |
|
||||
| **UI 设计** | 10 | UI 设计原型生成、样式提取 |
|
||||
|
||||
## 命令分类
|
||||
|
||||
### 1. 核心编排命令
|
||||
|
||||
| 命令 | 功能 | 难度 |
|
||||
| --- | --- | --- |
|
||||
| [`/ccw`](./core-orchestration.md#ccw) | 主工作流编排器 - 意图分析→工作流选择→命令链执行 | Intermediate |
|
||||
| [`/ccw-coordinator`](./core-orchestration.md#ccw-coordinator) | 命令编排工具 - 链式命令执行和状态持久化 | Intermediate |
|
||||
|
||||
### 2. 工作流命令
|
||||
|
||||
| 命令 | 功能 | 难度 |
|
||||
| --- | --- | --- |
|
||||
| [`/workflow:lite-lite-lite`](./workflow.md#lite-lite-lite) | 超轻量级多工具分析和直接执行 | Intermediate |
|
||||
| [`/workflow-lite-plan`](./workflow.md#lite-plan) | 轻量级交互式规划工作流 | Intermediate |
|
||||
| [`/workflow:lite-execute`](./workflow.md#lite-execute) | 基于内存计划执行任务 | Intermediate |
|
||||
| [`/workflow:lite-fix`](./workflow.md#lite-fix) | 轻量级 Bug 诊断和修复 | Intermediate |
|
||||
| [`/workflow-plan`](./workflow.md#plan) | 5 阶段规划工作流 | Intermediate |
|
||||
| [`/workflow-execute`](./workflow.md#execute) | 协调代理执行工作流任务 | Intermediate |
|
||||
| [`/workflow:replan`](./workflow.md#replan) | 交互式工作流重新规划 | Intermediate |
|
||||
| [`/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: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 |
|
||||
| [`/workflow:unified-execute-with-file`](./workflow.md#unified-execute-with-file) | 通用执行引擎 | Intermediate |
|
||||
|
||||
### 3. 会话管理命令
|
||||
|
||||
| 命令 | 功能 | 难度 |
|
||||
| --- | --- | --- |
|
||||
| [`/workflow:session:start`](./session.md#start) | 发现现有会话或启动新工作流会话 | Intermediate |
|
||||
| [`/workflow:session:list`](./session.md#list) | 列出所有工作流会话 | Beginner |
|
||||
| [`/workflow:session:resume`](./session.md#resume) | 恢复最近暂停的工作流会话 | Intermediate |
|
||||
| [`/workflow:session:complete`](./session.md#complete) | 标记活动工作流会话为完成 | Intermediate |
|
||||
| [`/workflow:session:solidify`](./session.md#solidify) | 将会话学习结晶为项目指南 | Intermediate |
|
||||
|
||||
### 4. Issue 工作流命令
|
||||
|
||||
| 命令 | 功能 | 难度 |
|
||||
| --- | --- | --- |
|
||||
| [`/issue:new`](./issue.md#new) | 从 GitHub URL 或文本描述创建结构化 Issue | Intermediate |
|
||||
| [`/issue:discover`](./issue.md#discover) | 从多个角度发现潜在 Issue | Intermediate |
|
||||
| [`/issue:discover-by-prompt`](./issue.md#discover-by-prompt) | 通过用户提示发现 Issue | Intermediate |
|
||||
| [`/issue:plan`](./issue.md#plan) | 批量规划 Issue 解决方案 | Intermediate |
|
||||
| [`/issue:queue`](./issue.md#queue) | 形成执行队列 | Intermediate |
|
||||
| [`/issue:execute`](./issue.md#execute) | 执行队列 | Intermediate |
|
||||
| [`/issue:convert-to-plan`](./issue.md#convert-to-plan) | 转换规划工件为 Issue 解决方案 | Intermediate |
|
||||
|
||||
### 5. Memory 命令
|
||||
|
||||
| 命令 | 功能 | 难度 |
|
||||
| --- | --- | --- |
|
||||
| [`/memory:compact`](./memory.md#compact) | 压缩当前会话记忆为结构化文本 | Intermediate |
|
||||
| [`/memory:tips`](./memory.md#tips) | 快速笔记记录 | Beginner |
|
||||
| [`/memory:load`](./memory.md#load) | 通过 CLI 分析项目加载任务上下文 | Intermediate |
|
||||
| [`/memory:update-full`](./memory.md#update-full) | 更新所有 CLAUDE.md 文件 | Intermediate |
|
||||
| [`/memory:update-related`](./memory.md#update-related) | 更新 git 变更模块的 CLAUDE.md | Intermediate |
|
||||
| [`/memory:docs-full-cli`](./memory.md#docs-full-cli) | 使用 CLI 生成完整项目文档 | Intermediate |
|
||||
| [`/memory:docs-related-cli`](./memory.md#docs-related-cli) | 生成 git 变更模块文档 | Intermediate |
|
||||
| [`/memory:style-skill-memory`](./memory.md#style-skill-memory) | 从样式参考生成 SKILL 记忆包 | Intermediate |
|
||||
|
||||
### 6. CLI 工具命令
|
||||
|
||||
| 命令 | 功能 | 难度 |
|
||||
| --- | --- | --- |
|
||||
| [`/cli:cli-init`](./cli.md#cli-init) | 生成配置目录和设置文件 | Intermediate |
|
||||
| [`/cli:codex-review`](./cli.md#codex-review) | 使用 Codex CLI 进行交互式代码审查 | Intermediate |
|
||||
|
||||
### 7. UI 设计命令
|
||||
|
||||
| 命令 | 功能 | 难度 |
|
||||
| --- | --- | --- |
|
||||
| [`/workflow:ui-design:explore-auto`](./ui-design.md#explore-auto) | 交互式探索性 UI 设计工作流 | Intermediate |
|
||||
| [`/workflow:ui-design:imitate-auto`](./ui-design.md#imitate-auto) | 直接代码/图片输入的 UI 设计 | Intermediate |
|
||||
| [`/workflow:ui-design:style-extract`](./ui-design.md#style-extract) | 从参考图片或提示提取设计样式 | Intermediate |
|
||||
| [`/workflow:ui-design:layout-extract`](./ui-design.md#layout-extract) | 从参考图片提取布局信息 | Intermediate |
|
||||
| [`/workflow:ui-design:animation-extract`](./ui-design.md#animation-extract) | 提取动画和过渡模式 | Intermediate |
|
||||
| [`/workflow:ui-design:codify-style`](./ui-design.md#codify-style) | 从代码提取样式并生成可共享引用包 | Intermediate |
|
||||
| [`/workflow:ui-design:generate`](./ui-design.md#generate) | 组合布局模板与设计令牌生成原型 | Intermediate |
|
||||
|
||||
## 自动模式
|
||||
|
||||
大多数命令支持 `--yes` 或 `-y` 标志,启用自动模式后跳过确认步骤。
|
||||
|
||||
```bash
|
||||
# 标准模式 - 需要确认
|
||||
/ccw "实现用户认证"
|
||||
|
||||
# 自动模式 - 跳过确认直接执行
|
||||
/ccw "实现用户认证" --yes
|
||||
```
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [Skills 参考](../skills/)
|
||||
- [CLI 调用系统](../features/cli.md)
|
||||
- [工作流指南](../guide/ch04-workflow-basics.md)
|
||||
@@ -29,9 +29,9 @@ Commands are organized into the following categories:
|
||||
|
||||
High-level orchestrators for complex, multi-phase development processes.
|
||||
|
||||
### **/workflow:plan**
|
||||
### **/workflow-plan**
|
||||
|
||||
- **Syntax**: `/workflow:plan [--agent] [--cli-execute] "text description"|file.md`
|
||||
- **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).
|
||||
@@ -39,15 +39,15 @@ High-level orchestrators for complex, multi-phase development processes.
|
||||
- **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`.
|
||||
- **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-plan "Create a simple Express API that returns Hello World"
|
||||
```
|
||||
|
||||
### **/workflow:lite-plan** ⚡ NEW
|
||||
### **/workflow-lite-plan** ⚡ NEW
|
||||
|
||||
- **Syntax**: `/workflow:lite-plan [--tool claude|gemini|qwen|codex] [-e|--explore] "task description"|file.md`
|
||||
- **Syntax**: `/workflow-lite-plan [--tool claude|gemini|qwen|codex] [-e|--explore] "task description"|file.md`
|
||||
- **Parameters**:
|
||||
- `--tool` (Optional, String): Preset CLI tool for execution (claude|gemini|qwen|codex). If not provided, user selects during confirmation.
|
||||
- `-e, --explore` (Optional, Flag): Force code exploration phase (overrides auto-detection logic).
|
||||
@@ -70,31 +70,31 @@ High-level orchestrators for complex, multi-phase development processes.
|
||||
- `@cli-planning-agent` (conditional, Phase 3 for Medium/High complexity)
|
||||
- `@code-developer` (conditional, Phase 5 if Agent execution selected)
|
||||
- **Skill Invocation**: None directly, but agents may invoke skills.
|
||||
- **Integration**: Standalone workflow for quick tasks. Alternative to `/workflow:plan` + `/workflow:execute` pattern.
|
||||
- **Integration**: Standalone workflow for quick tasks. Alternative to `/workflow-plan` + `/workflow-execute` pattern.
|
||||
- **Example**:
|
||||
```bash
|
||||
# Basic usage with auto-detection
|
||||
/workflow:lite-plan "Add JWT authentication to user login"
|
||||
/workflow-lite-plan "Add JWT authentication to user login"
|
||||
|
||||
# Force code exploration
|
||||
/workflow:lite-plan -e "Refactor logging module for better performance"
|
||||
/workflow-lite-plan -e "Refactor logging module for better performance"
|
||||
|
||||
# Basic usage
|
||||
/workflow:lite-plan "Add unit tests for auth service"
|
||||
/workflow-lite-plan "Add unit tests for auth service"
|
||||
```
|
||||
|
||||
### **/workflow:execute**
|
||||
### **/workflow-execute**
|
||||
|
||||
- **Syntax**: `/workflow:execute [--resume-session="session-id"]`
|
||||
- **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`.
|
||||
- **Integration**: The primary command for implementing a plan generated by `/workflow-plan`.
|
||||
- **Example**:
|
||||
```bash
|
||||
# Execute tasks in the currently active session
|
||||
/workflow:execute
|
||||
/workflow-execute
|
||||
```
|
||||
|
||||
### **/workflow:resume**
|
||||
@@ -102,8 +102,8 @@ High-level orchestrators for complex, multi-phase development processes.
|
||||
- **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`.
|
||||
- **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
|
||||
@@ -118,7 +118,7 @@ High-level orchestrators for complex, multi-phase development processes.
|
||||
- `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` or `qwen-wrapper` for analysis based on the review type.
|
||||
- **Integration**: Used after `/workflow:execute` to perform audits before deployment.
|
||||
- **Integration**: Used after `/workflow-execute` to perform audits before deployment.
|
||||
- **Example**:
|
||||
```bash
|
||||
/workflow:review --type=security
|
||||
@@ -202,7 +202,7 @@ CLI tool configuration commands.
|
||||
/cli:cli-init
|
||||
```
|
||||
|
||||
> **Note**: For analysis, planning, and bug fixing, use workflow commands (`/workflow:lite-plan`, `/workflow:lite-fix`) or semantic invocation through natural language. Claude will automatically use appropriate CLI tools (Gemini/Qwen/Codex) with templates as needed.
|
||||
> **Note**: For analysis, planning, and bug fixing, use workflow commands (`/workflow-lite-plan`, `/workflow:lite-fix`) or semantic invocation through natural language. Claude will automatically use appropriate CLI tools (Gemini/Qwen/Codex) with templates as needed.
|
||||
|
||||
---
|
||||
|
||||
@@ -402,22 +402,22 @@ Specialized workflow for UI/UX design, from style extraction to prototype genera
|
||||
|
||||
Workflows for Test-Driven Development (TDD) and post-implementation test generation.
|
||||
|
||||
### **/workflow:tdd-plan**
|
||||
- **Syntax**: `/workflow:tdd-plan [--agent] "feature description"|file.md`
|
||||
### **/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-plan "Implement a secure login endpoint"
|
||||
```
|
||||
|
||||
### **/workflow:tdd-verify**
|
||||
- **Syntax**: `/workflow:tdd-verify [session-id]`
|
||||
### **/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`.
|
||||
- **Example**:
|
||||
```bash
|
||||
/workflow:tdd-verify WFS-login-tdd
|
||||
/workflow-tdd-verify WFS-login-tdd
|
||||
```
|
||||
|
||||
### **/workflow:test-gen**
|
||||
@@ -429,21 +429,21 @@ Workflows for Test-Driven Development (TDD) and post-implementation test generat
|
||||
/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)`
|
||||
### **/workflow-test-fix**
|
||||
- **Syntax**: `/workflow-test-fix [--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-fix "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 test-fix workflow by delegating to `/workflow:execute`. Generates test tasks dynamically and creates intermediate fix tasks based on test results.
|
||||
- **Agent Calls**: Delegates to `/workflow:execute` which invokes `@test-fix-agent` for task execution.
|
||||
- **Note**: This command generates tasks; actual execution is performed by `/workflow:execute`.
|
||||
### **/workflow-test-fix**
|
||||
- **Syntax**: `/workflow-test-fix [--resume-session="session-id"] [--max-iterations=N]`
|
||||
- **Responsibilities**: Executes a test-fix workflow by delegating to `/workflow-execute`. Generates test tasks dynamically and creates intermediate fix tasks based on test results.
|
||||
- **Agent Calls**: Delegates to `/workflow-execute` which invokes `@test-fix-agent` for task execution.
|
||||
- **Note**: This command generates tasks; actual execution is performed by `/workflow-execute`.
|
||||
- **Example**:
|
||||
```bash
|
||||
/workflow:test-cycle-execute --resume-session="WFS-test-user-auth"
|
||||
/workflow-test-fix --resume-session="WFS-test-user-auth"
|
||||
```
|
||||
|
||||
@@ -31,7 +31,7 @@ Complete reference for all **43 CCW commands** organized by category, with **7 w
|
||||
- `-y, --yes` - Skip all confirmations
|
||||
|
||||
**Mapped Skills**:
|
||||
- workflow-lite-plan, workflow-plan, workflow-execute, workflow-tdd
|
||||
- workflow-lite-plan, workflow-plan, workflow-execute, workflow-tdd-plan
|
||||
- workflow-test-fix, workflow-multi-cli-plan, review-cycle, brainstorm
|
||||
- team-planex, team-iterdev, team-lifecycle, team-issue
|
||||
- team-testing, team-quality-assurance, team-brainstorm, team-uidesign
|
||||
@@ -363,7 +363,7 @@ workflow req-plan-with-file
|
||||
|
||||
**Description**: Automatic session discovery, parallel task processing, and status tracking.
|
||||
|
||||
**Triggers**: `workflow:execute`
|
||||
**Triggers**: `workflow-execute`
|
||||
|
||||
```bash
|
||||
workflow execute
|
||||
|
||||
@@ -146,7 +146,7 @@ Both commands support the `--yes` flag for auto mode:
|
||||
| `workflow-lite-plan` | Lightweight planning workflow |
|
||||
| `workflow-plan` | Full planning workflow |
|
||||
| `workflow-execute` | Execution workflow |
|
||||
| `workflow-tdd` | TDD workflow |
|
||||
| `workflow-tdd-plan` | TDD workflow |
|
||||
| `review-cycle` | Code review cycle |
|
||||
|
||||
## Comparison
|
||||
|
||||
@@ -30,13 +30,13 @@
|
||||
| Command | Function | Difficulty |
|
||||
|---------|----------|------------|
|
||||
| [`/workflow:lite-lite-lite`](./workflow.md#lite-lite-lite) | Ultra-lightweight multi-tool analysis and direct execution | Intermediate |
|
||||
| [`/workflow:lite-plan`](./workflow.md#lite-plan) | Lightweight interactive planning workflow | Intermediate |
|
||||
| [`/workflow-lite-plan`](./workflow.md#lite-plan) | Lightweight interactive planning workflow | Intermediate |
|
||||
| [`/workflow:lite-execute`](./workflow.md#lite-execute) | Execute tasks based on in-memory plan | Intermediate |
|
||||
| [`/workflow:lite-fix`](./workflow.md#lite-fix) | Lightweight bug diagnosis and fix | Intermediate |
|
||||
| [`/workflow:plan`](./workflow.md#plan) | 5-phase planning workflow | Intermediate |
|
||||
| [`/workflow:execute`](./workflow.md#execute) | Coordinate agent execution of workflow tasks | Intermediate |
|
||||
| [`/workflow-plan`](./workflow.md#plan) | 5-phase planning workflow | Intermediate |
|
||||
| [`/workflow-execute`](./workflow.md#execute) | Coordinate agent execution of workflow tasks | Intermediate |
|
||||
| [`/workflow:replan`](./workflow.md#replan) | Interactive workflow replanning | Intermediate |
|
||||
| [`/workflow:multi-cli-plan`](./workflow.md#multi-cli-plan) | Multi-CLI collaborative planning | Intermediate |
|
||||
| [`/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 |
|
||||
@@ -129,10 +129,10 @@ Most commands support the `--yes` or `-y` flag to enable auto mode and skip conf
|
||||
|
||||
```bash
|
||||
# Create implementation plan
|
||||
/workflow:plan "Add OAuth2 authentication with Google and GitHub providers"
|
||||
/workflow-plan "Add OAuth2 authentication with Google and GitHub providers"
|
||||
|
||||
# Execute with auto mode
|
||||
/workflow:execute --yes
|
||||
/workflow-execute --yes
|
||||
```
|
||||
|
||||
### Code Review
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
|------|-------------|----------------|
|
||||
| `workflow` | Standard implementation | workflow-plan skill |
|
||||
| `review` | Code review | review-cycle skill |
|
||||
| `tdd` | TDD development | workflow-tdd skill |
|
||||
| `tdd` | TDD development | workflow-tdd-plan skill |
|
||||
| `test` | Test generation/fix | workflow-test-fix skill |
|
||||
| `docs` | Documentation session | memory-manage skill |
|
||||
|
||||
|
||||
@@ -249,7 +249,7 @@
|
||||
|
||||
### design-sync
|
||||
|
||||
**Function**: Sync final design system reference to brainstorm artifacts, preparing for consumption by `/workflow:plan`.
|
||||
**Function**: Sync final design system reference to brainstorm artifacts, preparing for consumption by `/workflow-plan`.
|
||||
|
||||
**Syntax**:
|
||||
```bash
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
| Command | Function | Syntax |
|
||||
|---------|----------|--------|
|
||||
| [`lite-lite-lite`](#lite-lite-lite) | Ultra-lightweight multi-tool analysis and direct execution | `/workflow:lite-lite-lite [-y] <task>` |
|
||||
| [`lite-plan`](#lite-plan) | Lightweight interactive planning workflow | `/workflow:lite-plan [-y] [-e] "task"` |
|
||||
| [`lite-plan`](#lite-plan) | Lightweight interactive planning workflow | `/workflow-lite-plan [-y] [-e] "task"` |
|
||||
| [`lite-execute`](#lite-execute) | Execute tasks based on in-memory plan | `/workflow:lite-execute [-y] [--in-memory] [task]` |
|
||||
| [`lite-fix`](#lite-fix) | Lightweight bug diagnosis and fix | `/workflow:lite-fix [-y] [--hotfix] "bug description"` |
|
||||
|
||||
@@ -19,15 +19,15 @@
|
||||
|
||||
| Command | Function | Syntax |
|
||||
|---------|----------|--------|
|
||||
| [`plan`](#plan) | 5-phase planning workflow | `/workflow:plan [-y] "description"\|file.md` |
|
||||
| [`execute`](#execute) | Coordinate agent execution of workflow tasks | `/workflow:execute [-y] [--resume-session=ID]` |
|
||||
| [`plan`](#plan) | 5-phase planning workflow | `/workflow-plan [-y] "description"\|file.md` |
|
||||
| [`execute`](#execute) | Coordinate agent execution of workflow tasks | `/workflow-execute [-y] [--resume-session=ID]` |
|
||||
| [`replan`](#replan) | Interactive workflow replanning | `/workflow:replan [-y] [--session ID] [task-id] "requirement"` |
|
||||
|
||||
### Collaborative Workflows
|
||||
|
||||
| Command | Function | Syntax |
|
||||
|---------|----------|--------|
|
||||
| [`multi-cli-plan`](#multi-cli-plan) | Multi-CLI collaborative planning | `/workflow:multi-cli-plan [-y] <task> [--max-rounds=N]` |
|
||||
| [`multi-cli-plan`](#multi-cli-plan) | Multi-CLI collaborative planning | `/workflow-multi-cli-plan [-y] <task> [--max-rounds=N]` |
|
||||
| [`brainstorm-with-file`](#brainstorm-with-file) | Interactive brainstorming | `/workflow:brainstorm-with-file [-y] [-c] "idea"` |
|
||||
| [`analyze-with-file`](#analyze-with-file) | Interactive collaborative analysis | `/workflow:analyze-with-file [-y] [-c] "topic"` |
|
||||
| [`debug-with-file`](#debug-with-file) | Interactive hypothesis-driven debugging | `/workflow:debug-with-file [-y] "bug description"` |
|
||||
@@ -37,16 +37,16 @@
|
||||
|
||||
| Command | Function | Syntax |
|
||||
|---------|----------|--------|
|
||||
| [`tdd-plan`](#tdd-plan) | TDD planning workflow | `/workflow:tdd-plan "feature description"` |
|
||||
| [`tdd-verify`](#tdd-verify) | Verify TDD workflow compliance | `/workflow:tdd-verify [--session ID]` |
|
||||
| [`tdd-plan`](#tdd-plan) | TDD planning workflow | `/workflow-tdd-plan "feature description"` |
|
||||
| [`tdd-verify`](#tdd-verify) | Verify TDD workflow compliance | `/workflow-tdd-verify [--session ID]` |
|
||||
|
||||
### Test Workflows
|
||||
|
||||
| Command | Function | Syntax |
|
||||
|---------|----------|--------|
|
||||
| [`test-fix-gen`](#test-fix-gen) | Create test-fix workflow session | `/workflow:test-fix-gen (session-id\|"description"\|file.md)` |
|
||||
| [`test-fix-gen`](#test-fix-gen) | Create test-fix workflow session | `/workflow-test-fix (session-id\|"description"\|file.md)` |
|
||||
| [`test-gen`](#test-gen) | Create test session from implementation session | `/workflow:test-gen source-session-id` |
|
||||
| [`test-cycle-execute`](#test-cycle-execute) | Execute test-fix workflow | `/workflow:test-cycle-execute [--resume-session=ID]` |
|
||||
| [`test-cycle-execute`](#test-cycle-execute) | Execute test-fix workflow | `/workflow-test-fix [--resume-session=ID]` |
|
||||
|
||||
### Review Workflows
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
|---------|----------|--------|
|
||||
| [`clean`](#clean) | Smart code cleanup | `/workflow:clean [-y] [--dry-run] ["focus area"]` |
|
||||
| [`init`](#init) | Initialize project state | `/workflow:init [--regenerate]` |
|
||||
| [`plan-verify`](#plan-verify) | Verify planning consistency | `/workflow:plan-verify [--session session-id]` |
|
||||
| [`plan-verify`](#plan-verify) | Verify planning consistency | `/workflow-plan-verify [--session session-id]` |
|
||||
|
||||
## Command Details
|
||||
|
||||
@@ -96,7 +96,7 @@
|
||||
|
||||
**Syntax**:
|
||||
```bash
|
||||
/workflow:lite-plan [-y|--yes] [-e|--explore] "task description" | file.md
|
||||
/workflow-lite-plan [-y|--yes] [-e|--explore] "task description" | file.md
|
||||
```
|
||||
|
||||
**Options**:
|
||||
@@ -105,10 +105,10 @@
|
||||
**Examples**:
|
||||
```bash
|
||||
# Basic planning
|
||||
/workflow:lite-plan "add user avatar feature"
|
||||
/workflow-lite-plan "add user avatar feature"
|
||||
|
||||
# With exploration
|
||||
/workflow:lite-plan -e "refactor authentication module"
|
||||
/workflow-lite-plan -e "refactor authentication module"
|
||||
```
|
||||
|
||||
### lite-execute
|
||||
@@ -159,7 +159,7 @@
|
||||
|
||||
**Syntax**:
|
||||
```bash
|
||||
/workflow:plan [-y|--yes] "text description" | file.md
|
||||
/workflow-plan [-y|--yes] "text description" | file.md
|
||||
```
|
||||
|
||||
**Phases**:
|
||||
@@ -172,10 +172,10 @@
|
||||
**Examples**:
|
||||
```bash
|
||||
# Plan from description
|
||||
/workflow:plan "implement user notification system"
|
||||
/workflow-plan "implement user notification system"
|
||||
|
||||
# Plan from file
|
||||
/workflow:plan requirements.md
|
||||
/workflow-plan requirements.md
|
||||
```
|
||||
|
||||
### execute
|
||||
@@ -184,16 +184,16 @@
|
||||
|
||||
**Syntax**:
|
||||
```bash
|
||||
/workflow:execute [-y|--yes] [--resume-session="session-id"]
|
||||
/workflow-execute [-y|--yes] [--resume-session="session-id"]
|
||||
```
|
||||
|
||||
**Examples**:
|
||||
```bash
|
||||
# Execute current session
|
||||
/workflow:execute
|
||||
/workflow-execute
|
||||
|
||||
# Resume and execute session
|
||||
/workflow:execute --resume-session=WFS-2024-01-15
|
||||
/workflow-execute --resume-session=WFS-2024-01-15
|
||||
```
|
||||
|
||||
### replan
|
||||
@@ -220,7 +220,7 @@
|
||||
|
||||
**Syntax**:
|
||||
```bash
|
||||
/workflow:multi-cli-plan [-y|--yes] <task description> [--max-rounds=3] [--tools=gemini,codex] [--mode=parallel|serial]
|
||||
/workflow-multi-cli-plan [-y|--yes] <task description> [--max-rounds=3] [--tools=gemini,codex] [--mode=parallel|serial]
|
||||
```
|
||||
|
||||
**Options**:
|
||||
@@ -231,10 +231,10 @@
|
||||
**Examples**:
|
||||
```bash
|
||||
# Multi-CLI planning
|
||||
/workflow:multi-cli-plan "design microservice architecture"
|
||||
/workflow-multi-cli-plan "design microservice architecture"
|
||||
|
||||
# Specify tools and rounds
|
||||
/workflow:multi-cli-plan --tools=gemini,codex --max-rounds=5 "database migration plan"
|
||||
/workflow-multi-cli-plan --tools=gemini,codex --max-rounds=5 "database migration plan"
|
||||
```
|
||||
|
||||
### brainstorm-with-file
|
||||
|
||||
@@ -133,7 +133,7 @@ ccw cli -p "Create a React component implementing user login form" --tool qwen -
|
||||
### 2.4.1 Start Planning Workflow
|
||||
|
||||
```
|
||||
/workflow:plan
|
||||
/workflow-plan
|
||||
```
|
||||
|
||||
This launches the PlanEx workflow, including the following steps:
|
||||
@@ -259,7 +259,7 @@ A: Select based on task type:
|
||||
**Q: When to use which workflow?**
|
||||
|
||||
A: Select based on task objective:
|
||||
- New feature development → `/workflow:plan`
|
||||
- New feature development → `/workflow-plan`
|
||||
- Problem diagnosis → `/debug-with-file`
|
||||
- Code review → `/review-code`
|
||||
- Refactoring planning → `/refactor-cycle`
|
||||
@@ -294,7 +294,7 @@ npm install
|
||||
| Command | Function |
|
||||
| --- | --- |
|
||||
| `/workflow:session:start` | Start session |
|
||||
| `/workflow:plan` | Planning workflow |
|
||||
| `/workflow-plan` | Planning workflow |
|
||||
| `/brainstorm` | Brainstorming |
|
||||
| `/review-code` | Code review |
|
||||
| `ccw memory list` | View Memory |
|
||||
|
||||
@@ -165,7 +165,7 @@ graph LR
|
||||
|
||||
| Task Objective | Recommended Workflow | Command |
|
||||
| --- | --- | --- |
|
||||
| New feature development | PlanEx | `/workflow:plan` |
|
||||
| New feature development | PlanEx | `/workflow-plan` |
|
||||
| Bug fix | Lifecycle | `/debug-with-file` |
|
||||
| Code refactoring | IterDev | `/refactor-cycle` |
|
||||
| Technical decision | Brainstorm | `/brainstorm-with-file` |
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
| Workflow | Core Command | Use Case | Roles |
|
||||
| --- | --- | --- | --- |
|
||||
| **PlanEx** | `/workflow:plan` | New feature development, requirement implementation | planner, executor |
|
||||
| **PlanEx** | `/workflow-plan` | New feature development, requirement implementation | planner, executor |
|
||||
| **IterDev** | `/refactor-cycle` | Code refactoring, technical debt handling | developer, reviewer |
|
||||
| **Lifecycle** | `/unified-execute-with-file` | Complete development cycle | analyzer, developer, tester, reviewer |
|
||||
| **Issue** | `/issue:*` | Issue-driven development | discoverer, planner, executor |
|
||||
@@ -30,7 +30,7 @@
|
||||
### 4.2.2 Launch Method
|
||||
|
||||
```shell
|
||||
/workflow:plan
|
||||
/workflow-plan
|
||||
```
|
||||
|
||||
Or describe requirements directly:
|
||||
@@ -286,7 +286,7 @@ graph LR
|
||||
|
||||
| Requirement | Recommended Workflow | Command |
|
||||
| --- | --- | --- |
|
||||
| New feature development | PlanEx | `/workflow:plan` |
|
||||
| New feature development | PlanEx | `/workflow-plan` |
|
||||
| Code refactoring | IterDev | `/refactor-cycle` |
|
||||
| Complete development | Lifecycle | `/unified-execute-with-file` |
|
||||
| Issue management | Issue | `/issue:*` |
|
||||
|
||||
@@ -284,7 +284,7 @@ graph LR
|
||||
|
||||
| Scenario | Workflow | Command |
|
||||
| --- | --- | --- |
|
||||
| New Feature | PlanEx | `/workflow:plan` |
|
||||
| New Feature | PlanEx | `/workflow-plan` |
|
||||
| Bug Fix | Lifecycle | `/unified-execute-with-file` |
|
||||
| Refactoring | IterDev | `/refactor-cycle` |
|
||||
| Decision | Brainstorm | `/brainstorm-with-file` |
|
||||
|
||||
@@ -40,8 +40,8 @@ Create a simple workflow in under 5 minutes:
|
||||
|
||||
# Or use specific workflow commands
|
||||
/workflow:init # Initialize project state
|
||||
/workflow:plan "Add OAuth2 authentication" # Create implementation plan
|
||||
/workflow:execute # Execute planned tasks
|
||||
/workflow-plan "Add OAuth2 authentication" # Create implementation plan
|
||||
/workflow-execute # Execute planned tasks
|
||||
```
|
||||
|
||||
## Next Steps
|
||||
|
||||
@@ -31,8 +31,8 @@
|
||||
| **team-coordinate** | Universal team coordinator (dynamic roles) | `/team-coordinate` |
|
||||
| **team-lifecycle** | Full lifecycle team | `/team-lifecycle` |
|
||||
| **team-planex** | Plan-and-execute team | `/team-planex` |
|
||||
| **workflow-plan** | Unified planning skill | `/workflow:plan` |
|
||||
| **workflow-execute** | Agent-coordinated execution | `/workflow:execute` |
|
||||
| **workflow-plan** | Unified planning skill | `/workflow-plan` |
|
||||
| **workflow-execute** | Agent-coordinated execution | `/workflow-execute` |
|
||||
| **memory-capture** | Memory capture | `/memory-capture` |
|
||||
| **review-code** | Multi-dimensional code review | `/review-code` |
|
||||
| **brainstorm** | Brainstorming | `/brainstorm` |
|
||||
@@ -176,14 +176,14 @@ memory/
|
||||
|
||||
```bash
|
||||
# Quick task
|
||||
/workflow:lite-plan "Fix login bug"
|
||||
/workflow-lite-plan "Fix login bug"
|
||||
|
||||
# Full development
|
||||
/workflow:plan "Add user notifications"
|
||||
/workflow:execute
|
||||
/workflow-plan "Add user notifications"
|
||||
/workflow-execute
|
||||
|
||||
# TDD development
|
||||
/workflow:tdd "Implement payment processing"
|
||||
/workflow-tdd "Implement payment processing"
|
||||
```
|
||||
|
||||
### 3. Use Memory Management
|
||||
@@ -231,7 +231,7 @@ memory/
|
||||
2. **Workflow Selection**:
|
||||
- Super simple → `workflow-lite-plan`
|
||||
- Complex features → `workflow-plan` → `workflow-execute`
|
||||
- TDD → `workflow-tdd`
|
||||
- TDD → `workflow-tdd-plan`
|
||||
- Test fixes → `workflow-test-fix`
|
||||
|
||||
3. **Memory Management**:
|
||||
|
||||
@@ -17,11 +17,11 @@
|
||||
|
||||
| Skill | Function | Trigger |
|
||||
|-------|----------|---------|
|
||||
| `workflow-plan` | Unified planning skill (4-stage workflow) | `/workflow:plan` |
|
||||
| `workflow-execute` | Agent-coordinated execution | `/workflow:execute` |
|
||||
| `workflow-lite-plan` | Lightweight quick planning | `/workflow:lite-plan` |
|
||||
| `workflow-multi-cli-plan` | Multi-CLI collaborative planning | `/workflow:multi-cli-plan` |
|
||||
| `workflow-tdd` | TDD workflow | `/workflow:tdd` |
|
||||
| `workflow-plan` | Unified planning skill (4-stage workflow) | `/workflow-plan` |
|
||||
| `workflow-execute` | Agent-coordinated execution | `/workflow-execute` |
|
||||
| `workflow-lite-plan` | Lightweight quick planning | `/workflow-lite-plan` |
|
||||
| `workflow-multi-cli-plan` | Multi-CLI collaborative planning | `/workflow-multi-cli-plan` |
|
||||
| `workflow-tdd-plan` | TDD workflow | `/workflow-tdd` |
|
||||
| `workflow-test-fix` | Test-fix workflow | `/workflow:test-fix` |
|
||||
| `workflow-skill-designer` | Skill design workflow | `/workflow:skill-designer` |
|
||||
| `workflow-wave-plan` | Wave batch planning | `/workflow:wave-plan` |
|
||||
@@ -34,8 +34,8 @@
|
||||
|
||||
**Trigger**:
|
||||
```shell
|
||||
/workflow:plan <task-description>
|
||||
/workflow:plan-verify --session <session-id>
|
||||
/workflow-plan <task-description>
|
||||
/workflow-plan-verify --session <session-id>
|
||||
/workflow:replan --session <session-id> [task-id] "requirements"
|
||||
```
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
**Mode Detection**:
|
||||
```javascript
|
||||
// Skill trigger determines mode
|
||||
skillName === 'workflow:plan-verify' → 'verify'
|
||||
skillName === 'workflow-plan-verify' → 'verify'
|
||||
skillName === 'workflow:replan' → 'replan'
|
||||
default → 'plan'
|
||||
```
|
||||
@@ -107,10 +107,10 @@ Plan Confirmation (User Decision Gate):
|
||||
|
||||
**Trigger**:
|
||||
```shell
|
||||
/workflow:execute
|
||||
/workflow:execute --resume-session="WFS-auth"
|
||||
/workflow:execute --yes
|
||||
/workflow:execute -y --with-commit
|
||||
/workflow-execute
|
||||
/workflow-execute --resume-session="WFS-auth"
|
||||
/workflow-execute --yes
|
||||
/workflow-execute -y --with-commit
|
||||
```
|
||||
|
||||
**Features**:
|
||||
@@ -189,7 +189,7 @@ Phase 5: Completion
|
||||
|
||||
**Trigger**:
|
||||
```shell
|
||||
/workflow:lite-plan <simple-task>
|
||||
/workflow-lite-plan <simple-task>
|
||||
```
|
||||
|
||||
**Features**:
|
||||
@@ -211,7 +211,7 @@ Phase 5: Completion
|
||||
|
||||
**Trigger**:
|
||||
```shell
|
||||
/workflow:multi-cli-plan <task>
|
||||
/workflow-multi-cli-plan <task>
|
||||
```
|
||||
|
||||
**Features**:
|
||||
@@ -226,13 +226,13 @@ Phase 5: Completion
|
||||
|
||||
---
|
||||
|
||||
### workflow-tdd
|
||||
### workflow-tdd-plan
|
||||
|
||||
**One-Liner**: TDD workflow — Test-driven development process
|
||||
|
||||
**Trigger**:
|
||||
```shell
|
||||
/workflow:tdd <feature-description>
|
||||
/workflow-tdd <feature-description>
|
||||
```
|
||||
|
||||
**Features**:
|
||||
@@ -334,7 +334,7 @@ Wave 2: Issue 6-10 → Parallel planning → Parallel execution
|
||||
1. **Choose the right workflow**:
|
||||
- Super simple tasks → `workflow-lite-plan`
|
||||
- Complex features → `workflow-plan` → `workflow-execute`
|
||||
- TDD development → `workflow-tdd`
|
||||
- TDD development → `workflow-tdd-plan`
|
||||
- Test fixes → `workflow-test-fix`
|
||||
- Skill creation → `workflow-skill-designer`
|
||||
|
||||
|
||||
@@ -627,7 +627,7 @@ Skill(skill="team-ultra-analyze")
|
||||
|
||||
**Purpose**: Unified planning skill with 4-phase workflow
|
||||
|
||||
**Triggers**: `workflow:plan`, `workflow:plan-verify`, `workflow:replan`
|
||||
**Triggers**: `workflow-plan`, `workflow-plan-verify`, `workflow:replan`
|
||||
|
||||
**Description**: Plan verification and interactive replanning.
|
||||
|
||||
@@ -655,7 +655,7 @@ Skill(skill="workflow-plan")
|
||||
|
||||
**Purpose**: Lightweight planning and execution skill
|
||||
|
||||
**Triggers**: `workflow:lite-plan`, `workflow:lite-execute`
|
||||
**Triggers**: `workflow-lite-plan`, `workflow:lite-execute`
|
||||
|
||||
**Description**: Route to lite-plan or lite-execute with prompt enhancement.
|
||||
|
||||
@@ -677,7 +677,7 @@ Skill(skill="workflow-lite-plan")
|
||||
|
||||
**Purpose**: Multi-CLI collaborative planning and execution skill
|
||||
|
||||
**Triggers**: `workflow:multi-cli-plan`, `workflow:lite-execute`
|
||||
**Triggers**: `workflow-multi-cli-plan`, `workflow:lite-execute`
|
||||
|
||||
**Description**: Route to multi-cli-plan or lite-execute with prompt enhancement.
|
||||
|
||||
@@ -699,7 +699,7 @@ Skill(skill="workflow-multi-cli-plan")
|
||||
|
||||
**Purpose**: Coordinate agent execution for workflow tasks
|
||||
|
||||
**Triggers**: `workflow:execute`
|
||||
**Triggers**: `workflow-execute`
|
||||
|
||||
**Description**: Automatic session discovery, parallel task processing, and status tracking.
|
||||
|
||||
@@ -716,11 +716,11 @@ Skill(skill="workflow-execute")
|
||||
|
||||
---
|
||||
|
||||
### workflow-tdd
|
||||
### workflow-tdd-plan
|
||||
|
||||
**Purpose**: Unified TDD workflow skill
|
||||
|
||||
**Triggers**: `workflow:tdd-plan`, `workflow:tdd-verify`
|
||||
**Triggers**: `workflow-tdd-plan`, `workflow-tdd-verify`
|
||||
|
||||
**Description**: 6-phase TDD planning with Red-Green-Refactor task chain generation.
|
||||
|
||||
@@ -740,7 +740,7 @@ Skill(skill="workflow-execute")
|
||||
**Pattern**: Red-Green-Refactor
|
||||
|
||||
```bash
|
||||
Skill(skill="workflow-tdd")
|
||||
Skill(skill="workflow-tdd-plan")
|
||||
```
|
||||
|
||||
---
|
||||
@@ -749,7 +749,7 @@ Skill(skill="workflow-tdd")
|
||||
|
||||
**Purpose**: Unified test-fix pipeline
|
||||
|
||||
**Triggers**: `workflow:test-fix-gen`, `workflow:test-cycle-execute`, `test fix workflow`
|
||||
**Triggers**: `workflow-test-fix`, `workflow-test-fix`, `test fix workflow`
|
||||
|
||||
**Description**: Combines test generation with iterative test-cycle execution.
|
||||
|
||||
@@ -851,9 +851,9 @@ Skill(skill="workflow-execute")
|
||||
**Use Case**: Test-driven development with Red-Green-Refactor cycle
|
||||
|
||||
```bash
|
||||
Skill(skill="workflow-tdd", args="--mode tdd-plan")
|
||||
Skill(skill="workflow-tdd-plan", args="--mode tdd-plan")
|
||||
Skill(skill="workflow-execute")
|
||||
Skill(skill="workflow-tdd", args="--mode tdd-verify")
|
||||
Skill(skill="workflow-tdd-plan", args="--mode tdd-verify")
|
||||
```
|
||||
|
||||
---
|
||||
@@ -1028,7 +1028,7 @@ Skill(skill="skill-tuning")
|
||||
| Category | Skills |
|
||||
|----------|--------|
|
||||
| Session Commands | workflow session start, resume, list, complete, solidify, sync |
|
||||
| Dependent Skills | workflow-plan, workflow-tdd, workflow-test-fix |
|
||||
| Dependent Skills | workflow-plan, workflow-tdd-plan, workflow-test-fix |
|
||||
|
||||
### Issue Management
|
||||
|
||||
@@ -1055,12 +1055,12 @@ Quick reference for skill triggers:
|
||||
| `brainstorm`, `头脑风暴` | brainstorm |
|
||||
| `review code`, `code review`, `审查代码` | review-code |
|
||||
| `manage issue` | issue-manage |
|
||||
| `workflow:plan` | workflow-plan |
|
||||
| `workflow:execute` | workflow-execute |
|
||||
| `workflow:lite-plan` | workflow-lite-plan |
|
||||
| `workflow:multi-cli-plan` | workflow-multi-cli-plan |
|
||||
| `workflow:tdd-plan` | workflow-tdd |
|
||||
| `workflow:test-fix-gen` | workflow-test-fix |
|
||||
| `workflow-plan` | workflow-plan |
|
||||
| `workflow-execute` | workflow-execute |
|
||||
| `workflow-lite-plan` | workflow-lite-plan |
|
||||
| `workflow-multi-cli-plan` | workflow-multi-cli-plan |
|
||||
| `workflow-tdd-plan` | workflow-tdd-plan |
|
||||
| `workflow-test-fix` | workflow-test-fix |
|
||||
| `team lifecycle` | team-lifecycle-v4 |
|
||||
| `team brainstorm` | team-brainstorm |
|
||||
| `team frontend` | team-frontend |
|
||||
|
||||
@@ -54,12 +54,12 @@ Skills are reusable, domain-specific capabilities that CCW can execute. Each ski
|
||||
|
||||
| Skill | Triggers | Description |
|
||||
|-------|----------|-------------|
|
||||
| [workflow-plan](./core-skills.md#workflow-plan) | `workflow:plan` | 4-phase planning with verification |
|
||||
| [workflow-lite-plan](./core-skills.md#workflow-lite-plan) | `workflow:lite-plan` | Lightweight planning |
|
||||
| [workflow-multi-cli-plan](./core-skills.md#workflow-multi-cli-plan) | `workflow:multi-cli-plan` | Multi-CLI collaborative planning |
|
||||
| [workflow-execute](./core-skills.md#workflow-execute) | `workflow:execute` | Task execution coordination |
|
||||
| [workflow-tdd](./core-skills.md#workflow-tdd) | `workflow:tdd-plan` | TDD with Red-Green-Refactor |
|
||||
| [workflow-test-fix](./core-skills.md#workflow-test-fix) | `workflow:test-fix-gen` | Test-fix pipeline |
|
||||
| [workflow-plan](./core-skills.md#workflow-plan) | `workflow-plan` | 4-phase planning with verification |
|
||||
| [workflow-lite-plan](./core-skills.md#workflow-lite-plan) | `workflow-lite-plan` | Lightweight planning |
|
||||
| [workflow-multi-cli-plan](./core-skills.md#workflow-multi-cli-plan) | `workflow-multi-cli-plan` | Multi-CLI collaborative planning |
|
||||
| [workflow-execute](./core-skills.md#workflow-execute) | `workflow-execute` | Task execution coordination |
|
||||
| [workflow-tdd-plan](./core-skills.md#workflow-tdd-plan) | `workflow-tdd-plan` | TDD with Red-Green-Refactor |
|
||||
| [workflow-test-fix](./core-skills.md#workflow-test-fix) | `workflow-test-fix` | Test-fix pipeline |
|
||||
| [workflow-skill-designer](./core-skills.md#workflow-skill-designer) | `design workflow skill` | Meta-skill for workflow creation |
|
||||
|
||||
## Workflow Combinations
|
||||
@@ -84,9 +84,9 @@ Skill(skill="workflow-execute")
|
||||
|
||||
#### Test-Driven Development
|
||||
```bash
|
||||
Skill(skill="workflow-tdd", args="--mode tdd-plan")
|
||||
Skill(skill="workflow-tdd-plan", args="--mode tdd-plan")
|
||||
Skill(skill="workflow-execute")
|
||||
Skill(skill="workflow-tdd", args="--mode tdd-verify")
|
||||
Skill(skill="workflow-tdd-plan", args="--mode tdd-verify")
|
||||
```
|
||||
|
||||
## Using Skills
|
||||
@@ -180,13 +180,13 @@ ccw brainstorm
|
||||
# - Data refresh intervals
|
||||
|
||||
# Step 2: Plan implementation
|
||||
ccw workflow:plan "Build user dashboard with configurable widgets"
|
||||
ccw workflow-plan "Build user dashboard with configurable widgets"
|
||||
# Outputs: IMPL-001.json with task breakdown
|
||||
|
||||
# Step 3: Execute with team
|
||||
ccw team lifecycle
|
||||
# Or use quick iteration:
|
||||
ccw workflow:lite-plan && ccw workflow:execute
|
||||
ccw workflow-lite-plan && ccw workflow-execute
|
||||
|
||||
# Step 4: Review and refine
|
||||
ccw review-code
|
||||
@@ -206,7 +206,7 @@ ccw workflow:debug-with-file
|
||||
# Creates hypothesis, instruments code, analyzes logs
|
||||
|
||||
# Step 3: Apply fix
|
||||
ccw workflow:execute --task "Fix N+1 query in user endpoint"
|
||||
ccw workflow-execute --task "Fix N+1 query in user endpoint"
|
||||
```
|
||||
|
||||
### Example 3: Code Migration
|
||||
@@ -249,7 +249,7 @@ ccw review-cycle --max-iterations 3
|
||||
|
||||
### Tips for Best Results
|
||||
|
||||
1. **Start Small**: Begin with `workflow:lite-plan` for simple tasks
|
||||
1. **Start Small**: Begin with `workflow-lite-plan` for simple tasks
|
||||
2. **Use Memory**: Capture insights with `memory:capture` for future reference
|
||||
3. **Verify Plans**: Always review generated plans before execution
|
||||
4. **Iterate**: Use `review-cycle` for continuous improvement
|
||||
@@ -264,7 +264,7 @@ Skills use these proven patterns:
|
||||
| Orchestrator + Workers | team-lifecycle-v4 |
|
||||
| Generator-Critic Loop | team-iterdev |
|
||||
| Wave Pipeline | team-planex |
|
||||
| Red-Green-Refactor | workflow-tdd |
|
||||
| Red-Green-Refactor | workflow-tdd-plan |
|
||||
|
||||
::: info See Also
|
||||
- [Core Skills Reference](./core-skills.md) - Detailed skill documentation
|
||||
|
||||
@@ -22,12 +22,12 @@ Quick reference guide for all **32 CCW built-in skills**.
|
||||
|
||||
| Skill | Trigger | Purpose |
|
||||
|-------|---------|---------|
|
||||
| **workflow-plan** | `workflow:plan`, `workflow:plan-verify`, `workflow:replan` | 4-phase planning workflow with verification and interactive replanning |
|
||||
| **workflow-lite-plan** | `workflow:lite-plan`, `workflow:lite-execute` | Lightweight planning and execution skill |
|
||||
| **workflow-multi-cli-plan** | `workflow:multi-cli-plan` | Multi-CLI collaborative planning with ACE context engine |
|
||||
| **workflow-execute** | `workflow:execute` | Coordinate agent execution for workflow tasks |
|
||||
| **workflow-tdd** | `workflow:tdd-plan`, `workflow:tdd-verify` | TDD workflow with Red-Green-Refactor task chain |
|
||||
| **workflow-test-fix** | `workflow:test-fix-gen`, `workflow:test-cycle-execute` | Unified test-fix pipeline with adaptive strategy |
|
||||
| **workflow-plan** | `workflow-plan`, `workflow-plan-verify`, `workflow:replan` | 4-phase planning workflow with verification and interactive replanning |
|
||||
| **workflow-lite-plan** | `workflow-lite-plan`, `workflow:lite-execute` | Lightweight planning and execution skill |
|
||||
| **workflow-multi-cli-plan** | `workflow-multi-cli-plan` | Multi-CLI collaborative planning with ACE context engine |
|
||||
| **workflow-execute** | `workflow-execute` | Coordinate agent execution for workflow tasks |
|
||||
| **workflow-tdd-plan** | `workflow-tdd-plan`, `workflow-tdd-verify` | TDD workflow with Red-Green-Refactor task chain |
|
||||
| **workflow-test-fix** | `workflow-test-fix`, `workflow-test-fix` | Unified test-fix pipeline with adaptive strategy |
|
||||
| **workflow-skill-designer** | `design workflow skill`, `create workflow skill` | Meta-skill for designing orchestrator+phases structured workflow skills |
|
||||
|
||||
## Team Skills
|
||||
@@ -87,7 +87,7 @@ Skill(skill="workflow-plan", args="--mode verify")
|
||||
/ccw "team planex: OAuth2 implementation"
|
||||
|
||||
# Direct skill triggers (in some contexts)
|
||||
workflow:plan
|
||||
workflow-plan
|
||||
team lifecycle
|
||||
```
|
||||
|
||||
@@ -98,12 +98,12 @@ team lifecycle
|
||||
| `brainstorm`, `头脑风暴` | brainstorm |
|
||||
| `review code`, `code review`, `审查代码` | review-code |
|
||||
| `workflow:review-cycle` | review-cycle |
|
||||
| `workflow:plan` | workflow-plan |
|
||||
| `workflow:lite-plan` | workflow-lite-plan |
|
||||
| `workflow:multi-cli-plan` | workflow-multi-cli-plan |
|
||||
| `workflow:execute` | workflow-execute |
|
||||
| `workflow:tdd-plan` | workflow-tdd |
|
||||
| `workflow:test-fix-gen` | workflow-test-fix |
|
||||
| `workflow-plan` | workflow-plan |
|
||||
| `workflow-lite-plan` | workflow-lite-plan |
|
||||
| `workflow-multi-cli-plan` | workflow-multi-cli-plan |
|
||||
| `workflow-execute` | workflow-execute |
|
||||
| `workflow-tdd-plan` | workflow-tdd-plan |
|
||||
| `workflow-test-fix` | workflow-test-fix |
|
||||
| `team lifecycle` | team-lifecycle-v4 (or v5) |
|
||||
| `team planex` | team-planex |
|
||||
| `team iterdev` | team-iterdev |
|
||||
@@ -156,9 +156,9 @@ The latest team-lifecycle-v5 uses the team-worker agent with dynamic role assign
|
||||
| Orchestrator + Workers | team-lifecycle-v4, team-testing, team-quality-assurance |
|
||||
| Generator-Critic Loop | team-iterdev |
|
||||
| Wave Pipeline | team-planex |
|
||||
| Red-Green-Refactor | workflow-tdd |
|
||||
| Red-Green-Refactor | workflow-tdd-plan |
|
||||
| Pure Orchestrator | workflow-plan, workflow-lite-plan |
|
||||
| Progressive Phase Loading | workflow-plan, workflow-tdd, team-lifecycle-v5 |
|
||||
| Progressive Phase Loading | workflow-plan, workflow-tdd-plan, team-lifecycle-v5 |
|
||||
|
||||
::: info See Also
|
||||
- [Core Skills Detail](./core-skills.md) - Detailed skill documentation
|
||||
|
||||
@@ -7,7 +7,7 @@ This page provides practical examples of CCW workflow artifacts with sensitive i
|
||||
## Example 1: Lite Plan Output
|
||||
|
||||
### plan.json
|
||||
This is an output from `workflow:lite-plan` command.
|
||||
This is an output from `workflow-lite-plan` command.
|
||||
|
||||
```json
|
||||
{
|
||||
@@ -53,7 +53,7 @@ This is an output from `workflow:lite-plan` command.
|
||||
|
||||
```shell
|
||||
# Execute the plan
|
||||
ccw workflow:execute --session WFS-001
|
||||
ccw workflow-execute --session WFS-001
|
||||
```
|
||||
|
||||
---
|
||||
@@ -388,7 +388,7 @@ To use these examples in your own projects:
|
||||
1. **Copy the structure** that matches your needs
|
||||
2. **Modify fields** to fit your requirements
|
||||
3. **Remove sensitive information**
|
||||
4. **Test the output** with `ccw workflow:execute`
|
||||
4. **Test the output** with `ccw workflow-execute`
|
||||
|
||||
::: tip
|
||||
These examples are generated by CCW workflow tools. Run relevant commands to generate similar outputs for your projects.
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
- `-y, --yes` - 跳过所有确认
|
||||
|
||||
**映射技能**:
|
||||
- workflow-lite-plan, workflow-plan, workflow-execute, workflow-tdd
|
||||
- workflow-lite-plan, workflow-plan, workflow-execute, workflow-tdd-plan
|
||||
- workflow-test-fix, workflow-multi-cli-plan, review-cycle, brainstorm
|
||||
- team-planex, team-iterdev, team-lifecycle, team-issue
|
||||
- team-testing, team-quality-assurance, team-brainstorm, team-uidesign
|
||||
@@ -363,7 +363,7 @@ workflow req-plan-with-file
|
||||
|
||||
**描述**:自动会话发现、并行任务处理和状态跟踪。
|
||||
|
||||
**触发器**:`workflow:execute`
|
||||
**触发器**:`workflow-execute`
|
||||
|
||||
```bash
|
||||
workflow execute
|
||||
|
||||
@@ -146,7 +146,7 @@ graph TD
|
||||
| `workflow-lite-plan` | 轻量级规划工作流 |
|
||||
| `workflow-plan` | 完整规划工作流 |
|
||||
| `workflow-execute` | 执行工作流 |
|
||||
| `workflow-tdd` | TDD 工作流 |
|
||||
| `workflow-tdd-plan` | TDD 工作流 |
|
||||
| `review-cycle` | 代码审查循环 |
|
||||
|
||||
## 对比
|
||||
|
||||
@@ -30,13 +30,13 @@
|
||||
| 命令 | 功能 | 难度 |
|
||||
| --- | --- | --- |
|
||||
| [`/workflow:lite-lite-lite`](./workflow.md#lite-lite-lite) | 超轻量级多工具分析和直接执行 | Intermediate |
|
||||
| [`/workflow:lite-plan`](./workflow.md#lite-plan) | 轻量级交互式规划工作流 | Intermediate |
|
||||
| [`/workflow-lite-plan`](./workflow.md#lite-plan) | 轻量级交互式规划工作流 | Intermediate |
|
||||
| [`/workflow:lite-execute`](./workflow.md#lite-execute) | 基于内存计划执行任务 | Intermediate |
|
||||
| [`/workflow:lite-fix`](./workflow.md#lite-fix) | 轻量级 Bug 诊断和修复 | Intermediate |
|
||||
| [`/workflow:plan`](./workflow.md#plan) | 5 阶段规划工作流 | Intermediate |
|
||||
| [`/workflow:execute`](./workflow.md#execute) | 协调代理执行工作流任务 | Intermediate |
|
||||
| [`/workflow-plan`](./workflow.md#plan) | 5 阶段规划工作流 | Intermediate |
|
||||
| [`/workflow-execute`](./workflow.md#execute) | 协调代理执行工作流任务 | Intermediate |
|
||||
| [`/workflow:replan`](./workflow.md#replan) | 交互式工作流重新规划 | Intermediate |
|
||||
| [`/workflow:multi-cli-plan`](./workflow.md#multi-cli-plan) | 多 CLI 协作规划 | Intermediate |
|
||||
| [`/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 |
|
||||
@@ -127,10 +127,10 @@
|
||||
|
||||
```bash
|
||||
# 创建实施计划
|
||||
/workflow:plan "添加 OAuth2 认证,支持 Google 和 GitHub 提供商"
|
||||
/workflow-plan "添加 OAuth2 认证,支持 Google 和 GitHub 提供商"
|
||||
|
||||
# 使用自动模式执行
|
||||
/workflow:execute --yes
|
||||
/workflow-execute --yes
|
||||
```
|
||||
|
||||
### 代码审查
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
| --- | --- | --- |
|
||||
| `workflow` | 标准实现 | workflow-plan skill |
|
||||
| `review` | 代码审查 | review-cycle skill |
|
||||
| `tdd` | TDD 开发 | workflow-tdd skill |
|
||||
| `tdd` | TDD 开发 | workflow-tdd-plan skill |
|
||||
| `test` | 测试生成/修复 | workflow-test-fix skill |
|
||||
| `docs` | 文档会话 | memory-manage skill |
|
||||
|
||||
|
||||
@@ -249,7 +249,7 @@
|
||||
|
||||
### design-sync
|
||||
|
||||
**功能**: 同步最终设计系统引用到头脑风暴工件,准备供 `/workflow:plan` 消费。
|
||||
**功能**: 同步最终设计系统引用到头脑风暴工件,准备供 `/workflow-plan` 消费。
|
||||
|
||||
**语法**:
|
||||
```bash
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
| 命令 | 功能 | 语法 |
|
||||
| --- | --- | --- |
|
||||
| [`lite-lite-lite`](#lite-lite-lite) | 超轻量级多工具分析和直接执行 | `/workflow:lite-lite-lite [-y] <任务>` |
|
||||
| [`lite-plan`](#lite-plan) | 轻量级交互式规划工作流 | `/workflow:lite-plan [-y] [-e] "任务"` |
|
||||
| [`lite-plan`](#lite-plan) | 轻量级交互式规划工作流 | `/workflow-lite-plan [-y] [-e] "任务"` |
|
||||
| [`lite-execute`](#lite-execute) | 基于内存计划执行任务 | `/workflow:lite-execute [-y] [--in-memory] [任务]` |
|
||||
| [`lite-fix`](#lite-fix) | 轻量级 Bug 诊断和修复 | `/workflow:lite-fix [-y] [--hotfix] "Bug 描述"` |
|
||||
|
||||
@@ -19,15 +19,15 @@
|
||||
|
||||
| 命令 | 功能 | 语法 |
|
||||
| --- | --- | --- |
|
||||
| [`plan`](#plan) | 5 阶段规划工作流 | `/workflow:plan [-y] "描述"\|file.md` |
|
||||
| [`execute`](#execute) | 协调代理执行工作流任务 | `/workflow:execute [-y] [--resume-session=ID]` |
|
||||
| [`plan`](#plan) | 5 阶段规划工作流 | `/workflow-plan [-y] "描述"\|file.md` |
|
||||
| [`execute`](#execute) | 协调代理执行工作流任务 | `/workflow-execute [-y] [--resume-session=ID]` |
|
||||
| [`replan`](#replan) | 交互式工作流重新规划 | `/workflow:replan [-y] [--session ID] [task-id] "需求"` |
|
||||
|
||||
### 协作工作流
|
||||
|
||||
| 命令 | 功能 | 语法 |
|
||||
| --- | --- | --- |
|
||||
| [`multi-cli-plan`](#multi-cli-plan) | 多 CLI 协作规划 | `/workflow:multi-cli-plan [-y] <任务> [--max-rounds=N]` |
|
||||
| [`multi-cli-plan`](#multi-cli-plan) | 多 CLI 协作规划 | `/workflow-multi-cli-plan [-y] <任务> [--max-rounds=N]` |
|
||||
| [`brainstorm-with-file`](#brainstorm-with-file) | 交互式头脑风暴 | `/workflow:brainstorm-with-file [-y] [-c] "想法"` |
|
||||
| [`analyze-with-file`](#analyze-with-file) | 交互式协作分析 | `/workflow:analyze-with-file [-y] [-c] "主题"` |
|
||||
| [`debug-with-file`](#debug-with-file) | 交互式假设驱动调试 | `/workflow:debug-with-file [-y] "Bug 描述"` |
|
||||
@@ -37,16 +37,16 @@
|
||||
|
||||
| 命令 | 功能 | 语法 |
|
||||
| --- | --- | --- |
|
||||
| [`tdd-plan`](#tdd-plan) | TDD 规划工作流 | `/workflow:tdd-plan "功能描述"` |
|
||||
| [`tdd-verify`](#tdd-verify) | 验证 TDD 工作流合规性 | `/workflow:tdd-verify [--session ID]` |
|
||||
| [`tdd-plan`](#tdd-plan) | TDD 规划工作流 | `/workflow-tdd-plan "功能描述"` |
|
||||
| [`tdd-verify`](#tdd-verify) | 验证 TDD 工作流合规性 | `/workflow-tdd-verify [--session ID]` |
|
||||
|
||||
### 测试工作流
|
||||
|
||||
| 命令 | 功能 | 语法 |
|
||||
| --- | --- | --- |
|
||||
| [`test-fix-gen`](#test-fix-gen) | 创建测试修复工作流会话 | `/workflow:test-fix-gen (session-id\|"描述"\|file.md)` |
|
||||
| [`test-fix-gen`](#test-fix-gen) | 创建测试修复工作流会话 | `/workflow-test-fix (session-id\|"描述"\|file.md)` |
|
||||
| [`test-gen`](#test-gen) | 从实现会话创建测试会话 | `/workflow:test-gen source-session-id` |
|
||||
| [`test-cycle-execute`](#test-cycle-execute) | 执行测试修复工作流 | `/workflow:test-cycle-execute [--resume-session=ID]` |
|
||||
| [`test-cycle-execute`](#test-cycle-execute) | 执行测试修复工作流 | `/workflow-test-fix [--resume-session=ID]` |
|
||||
|
||||
### 审查工作流
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
| --- | --- | --- |
|
||||
| [`clean`](#clean) | 智能代码清理 | `/workflow:clean [-y] [--dry-run] ["焦点区域"]` |
|
||||
| [`init`](#init) | 初始化项目状态 | `/workflow:init [--regenerate]` |
|
||||
| [`plan-verify`](#plan-verify) | 验证规划一致性 | `/workflow:plan-verify [--session session-id]` |
|
||||
| [`plan-verify`](#plan-verify) | 验证规划一致性 | `/workflow-plan-verify [--session session-id]` |
|
||||
|
||||
## 命令详解
|
||||
|
||||
@@ -96,7 +96,7 @@
|
||||
|
||||
**语法**:
|
||||
```bash
|
||||
/workflow:lite-plan [-y|--yes] [-e|--explore] "任务描述" | file.md
|
||||
/workflow-lite-plan [-y|--yes] [-e|--explore] "任务描述" | file.md
|
||||
```
|
||||
|
||||
**选项**:
|
||||
@@ -105,10 +105,10 @@
|
||||
**示例**:
|
||||
```bash
|
||||
# 基础规划
|
||||
/workflow:lite-plan "添加用户头像功能"
|
||||
/workflow-lite-plan "添加用户头像功能"
|
||||
|
||||
# 带探索
|
||||
/workflow:lite-plan -e "重构认证模块"
|
||||
/workflow-lite-plan -e "重构认证模块"
|
||||
```
|
||||
|
||||
### lite-execute
|
||||
@@ -159,7 +159,7 @@
|
||||
|
||||
**语法**:
|
||||
```bash
|
||||
/workflow:plan [-y|--yes] "文本描述" | file.md
|
||||
/workflow-plan [-y|--yes] "文本描述" | file.md
|
||||
```
|
||||
|
||||
**阶段**:
|
||||
@@ -172,10 +172,10 @@
|
||||
**示例**:
|
||||
```bash
|
||||
# 从描述规划
|
||||
/workflow:plan "实现用户通知系统"
|
||||
/workflow-plan "实现用户通知系统"
|
||||
|
||||
# 从文件规划
|
||||
/workflow:plan requirements.md
|
||||
/workflow-plan requirements.md
|
||||
```
|
||||
|
||||
### execute
|
||||
@@ -184,16 +184,16 @@
|
||||
|
||||
**语法**:
|
||||
```bash
|
||||
/workflow:execute [-y|--yes] [--resume-session="session-id"]
|
||||
/workflow-execute [-y|--yes] [--resume-session="session-id"]
|
||||
```
|
||||
|
||||
**示例**:
|
||||
```bash
|
||||
# 执行当前会话
|
||||
/workflow:execute
|
||||
/workflow-execute
|
||||
|
||||
# 恢复并执行会话
|
||||
/workflow:execute --resume-session=WFS-2024-01-15
|
||||
/workflow-execute --resume-session=WFS-2024-01-15
|
||||
```
|
||||
|
||||
### replan
|
||||
@@ -220,7 +220,7 @@
|
||||
|
||||
**语法**:
|
||||
```bash
|
||||
/workflow:multi-cli-plan [-y|--yes] <任务描述> [--max-rounds=3] [--tools=gemini,codex] [--mode=parallel|serial]
|
||||
/workflow-multi-cli-plan [-y|--yes] <任务描述> [--max-rounds=3] [--tools=gemini,codex] [--mode=parallel|serial]
|
||||
```
|
||||
|
||||
**选项**:
|
||||
@@ -231,10 +231,10 @@
|
||||
**示例**:
|
||||
```bash
|
||||
# 多 CLI 规划
|
||||
/workflow:multi-cli-plan "设计微服务架构"
|
||||
/workflow-multi-cli-plan "设计微服务架构"
|
||||
|
||||
# 指定工具和轮数
|
||||
/workflow:multi-cli-plan --tools=gemini,codex --max-rounds=5 "数据库迁移方案"
|
||||
/workflow-multi-cli-plan --tools=gemini,codex --max-rounds=5 "数据库迁移方案"
|
||||
```
|
||||
|
||||
### brainstorm-with-file
|
||||
|
||||
@@ -119,7 +119,7 @@ ccw cli -p "创建一个 React 组件,实现用户登录表单" --tool qwen --
|
||||
### 2.4.1 启动规划工作流
|
||||
|
||||
```
|
||||
/workflow:plan
|
||||
/workflow-plan
|
||||
```
|
||||
|
||||
这会启动 PlanEx 工作流,包含以下步骤:
|
||||
@@ -245,7 +245,7 @@ A: 根据任务类型选择:
|
||||
**Q: 什么时候使用哪个工作流?**
|
||||
|
||||
A: 根据任务目标选择:
|
||||
- 新功能开发 → `/workflow:plan`
|
||||
- 新功能开发 → `/workflow-plan`
|
||||
- 问题诊断 → `/debug-with-file`
|
||||
- 代码审查 → `/review-code`
|
||||
- 重构规划 → `/refactor-cycle`
|
||||
@@ -280,7 +280,7 @@ npm install
|
||||
| 命令 | 功能 |
|
||||
| --- | --- |
|
||||
| `/workflow:session:start` | 启动会话 |
|
||||
| `/workflow:plan` | 规划工作流 |
|
||||
| `/workflow-plan` | 规划工作流 |
|
||||
| `/brainstorm` | 头脑风暴 |
|
||||
| `/review-code` | 代码审查 |
|
||||
| `ccw memory list` | 查看 Memory |
|
||||
|
||||
@@ -165,7 +165,7 @@ graph LR
|
||||
|
||||
| 任务目标 | 推荐工作流 | 命令 |
|
||||
| --- | --- | --- |
|
||||
| 新功能开发 | PlanEx | `/workflow:plan` |
|
||||
| 新功能开发 | PlanEx | `/workflow-plan` |
|
||||
| Bug 修复 | Lifecycle | `/debug-with-file` |
|
||||
| 代码重构 | IterDev | `/refactor-cycle` |
|
||||
| 技术决策 | Brainstorm | `/brainstorm-with-file` |
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
| 工作流 | 核心命令 | 适用场景 | 角色 |
|
||||
| --- | --- | --- | --- |
|
||||
| **PlanEx** | `/workflow:plan` | 新功能开发、需求实现 | planner, executor |
|
||||
| **PlanEx** | `/workflow-plan` | 新功能开发、需求实现 | planner, executor |
|
||||
| **IterDev** | `/refactor-cycle` | 代码重构、技术债处理 | developer, reviewer |
|
||||
| **Lifecycle** | `/unified-execute-with-file` | 完整开发周期 | analyzer, developer, tester, reviewer |
|
||||
| **Issue** | `/issue:*` | Issue 驱动开发 | discoverer, planner, executor |
|
||||
@@ -30,7 +30,7 @@
|
||||
### 4.2.2 启动方式
|
||||
|
||||
```shell
|
||||
/workflow:plan
|
||||
/workflow-plan
|
||||
```
|
||||
|
||||
或直接描述需求:
|
||||
@@ -286,7 +286,7 @@ graph LR
|
||||
|
||||
| 需求 | 推荐工作流 | 命令 |
|
||||
| --- | --- | --- |
|
||||
| 新功能开发 | PlanEx | `/workflow:plan` |
|
||||
| 新功能开发 | PlanEx | `/workflow-plan` |
|
||||
| 代码重构 | IterDev | `/refactor-cycle` |
|
||||
| 完整开发 | Lifecycle | `/unified-execute-with-file` |
|
||||
| Issue 管理 | Issue | `/issue:*` |
|
||||
|
||||
@@ -284,7 +284,7 @@ graph LR
|
||||
|
||||
| 场景 | 工作流 | 命令 |
|
||||
| --- | --- | --- |
|
||||
| 新功能 | PlanEx | `/workflow:plan` |
|
||||
| 新功能 | PlanEx | `/workflow-plan` |
|
||||
| Bug 修复 | Lifecycle | `/unified-execute-with-file` |
|
||||
| 重构 | IterDev | `/refactor-cycle` |
|
||||
| 决策 | Brainstorm | `/brainstorm-with-file` |
|
||||
|
||||
@@ -31,8 +31,8 @@
|
||||
| **team-coordinate** | 通用团队协调器(动态角色) | `/team-coordinate` |
|
||||
| **team-lifecycle** | 全生命周期团队 | `/team-lifecycle` |
|
||||
| **team-planex** | 边规划边执行团队 | `/team-planex` |
|
||||
| **workflow-plan** | 统一规划技能 | `/workflow:plan` |
|
||||
| **workflow-execute** | 代理协调执行 | `/workflow:execute` |
|
||||
| **workflow-plan** | 统一规划技能 | `/workflow-plan` |
|
||||
| **workflow-execute** | 代理协调执行 | `/workflow-execute` |
|
||||
| **memory-capture** | 记忆捕获 | `/memory-capture` |
|
||||
| **review-code** | 多维度代码审查 | `/review-code` |
|
||||
| **brainstorm** | 头脑风暴 | `/brainstorm` |
|
||||
@@ -176,14 +176,14 @@ memory/
|
||||
|
||||
```bash
|
||||
# 快速任务
|
||||
/workflow:lite-plan "Fix login bug"
|
||||
/workflow-lite-plan "Fix login bug"
|
||||
|
||||
# 完整开发
|
||||
/workflow:plan "Add user notifications"
|
||||
/workflow:execute
|
||||
/workflow-plan "Add user notifications"
|
||||
/workflow-execute
|
||||
|
||||
# TDD 开发
|
||||
/workflow:tdd "Implement payment processing"
|
||||
/workflow-tdd "Implement payment processing"
|
||||
```
|
||||
|
||||
### 3. 使用记忆管理
|
||||
@@ -231,7 +231,7 @@ memory/
|
||||
2. **工作流选择**:
|
||||
- 超简单 → `workflow-lite-plan`
|
||||
- 复杂功能 → `workflow-plan` → `workflow-execute`
|
||||
- TDD → `workflow-tdd`
|
||||
- TDD → `workflow-tdd-plan`
|
||||
- 测试修复 → `workflow-test-fix`
|
||||
|
||||
3. **记忆管理**:
|
||||
|
||||
@@ -17,11 +17,11 @@
|
||||
|
||||
| Skill | 功能 | 触发方式 |
|
||||
| --- | --- | --- |
|
||||
| `workflow-plan` | 统一规划技能(4 阶段工作流) | `/workflow:plan` |
|
||||
| `workflow-execute` | 代理协调执行 | `/workflow:execute` |
|
||||
| `workflow-lite-plan` | 轻量级快速规划 | `/workflow:lite-plan` |
|
||||
| `workflow-multi-cli-plan` | 多 CLI 协作规划 | `/workflow:multi-cli-plan` |
|
||||
| `workflow-tdd` | TDD 工作流 | `/workflow:tdd` |
|
||||
| `workflow-plan` | 统一规划技能(4 阶段工作流) | `/workflow-plan` |
|
||||
| `workflow-execute` | 代理协调执行 | `/workflow-execute` |
|
||||
| `workflow-lite-plan` | 轻量级快速规划 | `/workflow-lite-plan` |
|
||||
| `workflow-multi-cli-plan` | 多 CLI 协作规划 | `/workflow-multi-cli-plan` |
|
||||
| `workflow-tdd-plan` | TDD 工作流 | `/workflow-tdd` |
|
||||
| `workflow-test-fix` | 测试修复工作流 | `/workflow:test-fix` |
|
||||
| `workflow-skill-designer` | Skill 设计工作流 | `/workflow:skill-designer` |
|
||||
| `workflow-wave-plan` | Wave 批处理规划 | `/workflow:wave-plan` |
|
||||
@@ -34,8 +34,8 @@
|
||||
|
||||
**触发**:
|
||||
```shell
|
||||
/workflow:plan <task-description>
|
||||
/workflow:plan-verify --session <session-id>
|
||||
/workflow-plan <task-description>
|
||||
/workflow-plan-verify --session <session-id>
|
||||
/workflow:replan --session <session-id> [task-id] "requirements"
|
||||
```
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
**模式检测**:
|
||||
```javascript
|
||||
// Skill 触发器决定模式
|
||||
skillName === 'workflow:plan-verify' → 'verify'
|
||||
skillName === 'workflow-plan-verify' → 'verify'
|
||||
skillName === 'workflow:replan' → 'replan'
|
||||
default → 'plan'
|
||||
```
|
||||
@@ -107,10 +107,10 @@ Phase 4: task-generate-agent --session sessionId
|
||||
|
||||
**触发**:
|
||||
```shell
|
||||
/workflow:execute
|
||||
/workflow:execute --resume-session="WFS-auth"
|
||||
/workflow:execute --yes
|
||||
/workflow:execute -y --with-commit
|
||||
/workflow-execute
|
||||
/workflow-execute --resume-session="WFS-auth"
|
||||
/workflow-execute --yes
|
||||
/workflow-execute -y --with-commit
|
||||
```
|
||||
|
||||
**功能**:
|
||||
@@ -189,7 +189,7 @@ Phase 5: 完成
|
||||
|
||||
**触发**:
|
||||
```shell
|
||||
/workflow:lite-plan <simple-task>
|
||||
/workflow-lite-plan <simple-task>
|
||||
```
|
||||
|
||||
**功能**:
|
||||
@@ -211,7 +211,7 @@ Phase 5: 完成
|
||||
|
||||
**触发**:
|
||||
```shell
|
||||
/workflow:multi-cli-plan <task>
|
||||
/workflow-multi-cli-plan <task>
|
||||
```
|
||||
|
||||
**功能**:
|
||||
@@ -226,13 +226,13 @@ Phase 5: 完成
|
||||
|
||||
---
|
||||
|
||||
### workflow-tdd
|
||||
### workflow-tdd-plan
|
||||
|
||||
**一句话定位**: TDD 工作流 — 测试驱动的开发流程
|
||||
|
||||
**触发**:
|
||||
```shell
|
||||
/workflow:tdd <feature-description>
|
||||
/workflow-tdd <feature-description>
|
||||
```
|
||||
|
||||
**功能**:
|
||||
@@ -334,7 +334,7 @@ Wave 2: Issue 6-10 → 并行规划 → 并行执行
|
||||
1. **选择合适的工作流**:
|
||||
- 超简单任务 → `workflow-lite-plan`
|
||||
- 复杂功能 → `workflow-plan` → `workflow-execute`
|
||||
- TDD 开发 → `workflow-tdd`
|
||||
- TDD 开发 → `workflow-tdd-plan`
|
||||
- 测试修复 → `workflow-test-fix`
|
||||
- Skill 创建 → `workflow-skill-designer`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user