Skip to content

Commit 8ceae6d

Browse files
author
catlog22
committed
Add Chinese documentation for custom skills development and reference guide
- Created a new document for custom skills development (`custom.md`) detailing the structure, creation, implementation, and best practices for developing custom CCW skills. - Added an index document (`index.md`) summarizing all built-in skills, their categories, and usage examples. - Introduced a reference guide (`reference.md`) providing a quick reference for all 33 built-in CCW skills, including triggers and purposes.
1 parent 2fb93d2 commit 8ceae6d

78 files changed

Lines changed: 12354 additions & 3640 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.claude/skills/workflow-lite-plan/phases/01-lite-plan.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,17 @@ const sessionFolder = `.workflow/.lite-plan/${sessionId}`
104104
bash(`mkdir -p ${sessionFolder} && test -d ${sessionFolder} && echo "SUCCESS: ${sessionFolder}" || echo "FAILED: ${sessionFolder}"`)
105105
```
106106

107+
**TodoWrite (Phase 1 start)**:
108+
```javascript
109+
TodoWrite({ todos: [
110+
{ content: "Phase 1: Exploration", status: "in_progress", activeForm: "Exploring codebase" },
111+
{ content: "Phase 2: Clarification", status: "pending", activeForm: "Collecting clarifications" },
112+
{ content: "Phase 3: Planning", status: "pending", activeForm: "Generating plan" },
113+
{ content: "Phase 4: Confirmation", status: "pending", activeForm: "Awaiting confirmation" },
114+
{ content: "Phase 5: Execution", status: "pending", activeForm: "Executing tasks" }
115+
]})
116+
```
117+
107118
**Exploration Decision Logic**:
108119
```javascript
109120
// Check if task description already contains prior analysis context (from analyze-with-file)
@@ -307,6 +318,17 @@ Angles explored: ${explorationManifest.explorations.map(e => e.angle).join(', ')
307318
`)
308319
```
309320

321+
**TodoWrite (Phase 1 complete)**:
322+
```javascript
323+
TodoWrite({ todos: [
324+
{ content: "Phase 1: Exploration", status: "completed", activeForm: "Exploring codebase" },
325+
{ content: "Phase 2: Clarification", status: "in_progress", activeForm: "Collecting clarifications" },
326+
{ content: "Phase 3: Planning", status: "pending", activeForm: "Generating plan" },
327+
{ content: "Phase 4: Confirmation", status: "pending", activeForm: "Awaiting confirmation" },
328+
{ content: "Phase 5: Execution", status: "pending", activeForm: "Executing tasks" }
329+
]})
330+
```
331+
310332
**Output**:
311333
- `${sessionFolder}/exploration-{angle1}.json`
312334
- `${sessionFolder}/exploration-{angle2}.json`
@@ -560,6 +582,17 @@ Note: Use files[].change (not modification_points), convergence.criteria (not ac
560582
561583
**Output**: `${sessionFolder}/plan.json`
562584
585+
**TodoWrite (Phase 3 complete)**:
586+
```javascript
587+
TodoWrite({ todos: [
588+
{ content: "Phase 1: Exploration", status: "completed", activeForm: "Exploring codebase" },
589+
{ content: "Phase 2: Clarification", status: "completed", activeForm: "Collecting clarifications" },
590+
{ content: "Phase 3: Planning", status: "completed", activeForm: "Generating plan" },
591+
{ content: "Phase 4: Confirmation", status: "in_progress", activeForm: "Awaiting confirmation" },
592+
{ content: "Phase 5: Execution", status: "pending", activeForm: "Executing tasks" }
593+
]})
594+
```
595+
563596
---
564597
565598
### Phase 4: Task Confirmation & Execution Selection
@@ -649,6 +682,19 @@ if (autoYes) {
649682
}
650683
```
651684
685+
**TodoWrite (Phase 4 confirmed)**:
686+
```javascript
687+
const executionLabel = userSelection.execution_method
688+
689+
TodoWrite({ todos: [
690+
{ content: "Phase 1: Exploration", status: "completed", activeForm: "Exploring codebase" },
691+
{ content: "Phase 2: Clarification", status: "completed", activeForm: "Collecting clarifications" },
692+
{ content: "Phase 3: Planning", status: "completed", activeForm: "Generating plan" },
693+
{ content: `Phase 4: Confirmed [${executionLabel}]`, status: "completed", activeForm: "Confirmed" },
694+
{ content: `Phase 5: Execution [${executionLabel}]`, status: "in_progress", activeForm: `Executing [${executionLabel}]` }
695+
]})
696+
```
697+
652698
---
653699
654700
### Phase 5: Handoff to Execution

.claude/skills/workflow-lite-plan/phases/02-lite-execute.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,9 +350,9 @@ executionCalls = createExecutionCalls(getTasks(planObject), executionMethod).map
350350

351351
TodoWrite({
352352
todos: executionCalls.map(c => ({
353-
content: `${c.executionType === "parallel" ? "" : ""} ${c.id} (${c.tasks.length} tasks)`,
353+
content: `${c.executionType === "parallel" ? "" : ""} ${c.id} [${c.executor}] (${c.tasks.length} tasks)`,
354354
status: "pending",
355-
activeForm: `Executing ${c.id}`
355+
activeForm: `Executing ${c.id} [${c.executor}]`
356356
}))
357357
})
358358
```

.claude/skills/workflow-multi-cli-plan/phases/01-multi-cli-plan.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,19 @@ AskUserQuestion({
258258
- Need More Analysis → Phase 2 with feedback
259259
- Cancel → Save session for resumption
260260

261+
**TodoWrite Update (Phase 4 Decision)**:
262+
```javascript
263+
const executionLabel = userSelection.execution_method // "Agent" / "Codex" / "Auto"
264+
265+
TodoWrite({ todos: [
266+
{ content: "Phase 1: Context Gathering", status: "completed", activeForm: "Gathering context" },
267+
{ content: "Phase 2: Multi-CLI Discussion", status: "completed", activeForm: "Running discussion" },
268+
{ content: "Phase 3: Present Options", status: "completed", activeForm: "Presenting options" },
269+
{ content: `Phase 4: User Decision [${executionLabel}]`, status: "completed", activeForm: "Decision recorded" },
270+
{ content: `Phase 5: Plan Generation [${executionLabel}]`, status: "in_progress", activeForm: `Generating plan [${executionLabel}]` }
271+
]})
272+
```
273+
261274
### Phase 5: Plan Generation & Execution Handoff
262275

263276
**Step 1: Build Context-Package** (Orchestrator responsibility):

.claude/skills/workflow-multi-cli-plan/phases/02-lite-execute.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,9 +357,9 @@ executionCalls = createExecutionCalls(getTasks(planObject), executionMethod).map
357357

358358
TodoWrite({
359359
todos: executionCalls.map(c => ({
360-
content: `${c.executionType === "parallel" ? "" : ""} ${c.id} (${c.tasks.length} tasks)`,
360+
content: `${c.executionType === "parallel" ? "" : ""} ${c.id} [${c.executor}] (${c.tasks.length} tasks)`,
361361
status: "pending",
362-
activeForm: `Executing ${c.id}`
362+
activeForm: `Executing ${c.id} [${c.executor}]`
363363
}))
364364
})
365365
```

.claude/skills/workflow-plan/phases/04-task-generation.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,13 +338,20 @@ Output:
338338
)
339339
```
340340
341+
**Executor Label** (computed after Step 4.0):
342+
```javascript
343+
const executorLabel = userConfig.executionMethod === 'agent' ? 'Agent'
344+
: userConfig.executionMethod === 'hybrid' ? 'Hybrid'
345+
: `CLI (${userConfig.preferredCliTool})`
346+
```
347+
341348
### TodoWrite Update (Phase 4 in progress)
342349
343350
```json
344351
[
345352
{"content": "Phase 1: Session Discovery", "status": "completed", "activeForm": "Executing session discovery"},
346353
{"content": "Phase 2: Context Gathering", "status": "completed", "activeForm": "Executing context gathering"},
347-
{"content": "Phase 4: Task Generation", "status": "in_progress", "activeForm": "Executing task generation"}
354+
{"content": "Phase 4: Task Generation [${executorLabel}]", "status": "in_progress", "activeForm": "Generating tasks [${executorLabel}]"}
348355
]
349356
```
350357
@@ -354,7 +361,7 @@ Output:
354361
[
355362
{"content": "Phase 1: Session Discovery", "status": "completed", "activeForm": "Executing session discovery"},
356363
{"content": "Phase 2: Context Gathering", "status": "completed", "activeForm": "Executing context gathering"},
357-
{"content": "Phase 4: Task Generation", "status": "completed", "activeForm": "Executing task generation"}
364+
{"content": "Phase 4: Task Generation [${executorLabel}]", "status": "completed", "activeForm": "Generating tasks [${executorLabel}]"}
358365
]
359366
```
360367

0 commit comments

Comments
 (0)