claude-code-workflow 6.1.0 → 6.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/skills/command-guide/SKILL.md +3 -3
- package/.claude/workflows/tool-strategy.md +79 -90
- package/README.md +274 -285
- package/ccw/src/cli.js +5 -2
- package/ccw/src/commands/tool.js +18 -61
- package/ccw/src/core/server.js +2063 -1948
- package/ccw/src/templates/dashboard-css/01-base.css +130 -0
- package/ccw/src/templates/dashboard-js/components/version-check.js +167 -0
- package/ccw/src/templates/dashboard-js/main.js +1 -0
- package/ccw/src/templates/dashboard-js/views/hook-manager.js +11 -9
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: command-guide
|
|
3
|
-
description: Workflow command guide for Claude
|
|
3
|
+
description: Workflow command guide for Claude Code Workflow (78 commands). Search/browse commands, get next-step recommendations, view documentation, report issues. Triggers "CCW-help", "CCW-issue", "ccw-help", "ccw-issue", "ccw"
|
|
4
4
|
allowed-tools: Read, Grep, Glob, AskUserQuestion
|
|
5
5
|
version: 5.8.0
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# Command Guide Skill
|
|
9
9
|
|
|
10
|
-
Comprehensive command guide for Claude
|
|
10
|
+
Comprehensive command guide for Claude Code Workflow (CCW) system covering 78 commands across 5 categories (workflow, cli, memory, task, general).
|
|
11
11
|
|
|
12
12
|
## 🆕 What's New in v5.8.0
|
|
13
13
|
|
|
@@ -385,4 +385,4 @@ This SKILL documentation is kept in sync with command implementations through a
|
|
|
385
385
|
- 4 issue templates for standardized problem reporting
|
|
386
386
|
- CLI-assisted complex query analysis with gemini/qwen integration
|
|
387
387
|
|
|
388
|
-
**Maintainer**:
|
|
388
|
+
**Maintainer**: CCW Team
|
|
@@ -1,90 +1,79 @@
|
|
|
1
|
-
# Tool Strategy
|
|
2
|
-
|
|
3
|
-
## ⚡ Exa Triggering Mechanisms
|
|
4
|
-
|
|
5
|
-
**Auto-Trigger**:
|
|
6
|
-
- User mentions "exa-code" or code-related queries → `mcp__exa__get_code_context_exa`
|
|
7
|
-
- Need current web information → `mcp__exa__web_search_exa`
|
|
8
|
-
|
|
9
|
-
**Manual Trigger**:
|
|
10
|
-
- Complex API research → Exa Code Context
|
|
11
|
-
- Real-time information needs → Exa Web Search
|
|
12
|
-
|
|
13
|
-
## ⚡ CCW edit_file Tool (AI-Powered Editing)
|
|
14
|
-
|
|
15
|
-
**When to Use**: Edit tool fails
|
|
16
|
-
|
|
17
|
-
###
|
|
18
|
-
|
|
19
|
-
**Best for**: Code block replacements, function rewrites, multi-line changes
|
|
20
|
-
|
|
21
|
-
```bash
|
|
22
|
-
ccw tool exec edit_file
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
- ✅
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
| Config line change | line | Precise line number control |
|
|
81
|
-
| Insert at specific position | line | Exact line number needed |
|
|
82
|
-
| Delete line range | line | Line-based operation |
|
|
83
|
-
|
|
84
|
-
### Fallback Strategy
|
|
85
|
-
|
|
86
|
-
1. **Edit fails 1+ times** → Use `ccw tool exec edit_file` (update mode)
|
|
87
|
-
2. **update mode fails** → Try line mode with precise line numbers
|
|
88
|
-
3. **All fails** → Use Write to recreate file
|
|
89
|
-
|
|
90
|
-
**Default mode**: update (exact matching with line ending adaptation)
|
|
1
|
+
# Tool Strategy
|
|
2
|
+
|
|
3
|
+
## ⚡ Exa Triggering Mechanisms
|
|
4
|
+
|
|
5
|
+
**Auto-Trigger**:
|
|
6
|
+
- User mentions "exa-code" or code-related queries → `mcp__exa__get_code_context_exa`
|
|
7
|
+
- Need current web information → `mcp__exa__web_search_exa`
|
|
8
|
+
|
|
9
|
+
**Manual Trigger**:
|
|
10
|
+
- Complex API research → Exa Code Context
|
|
11
|
+
- Real-time information needs → Exa Web Search
|
|
12
|
+
|
|
13
|
+
## ⚡ CCW edit_file Tool (AI-Powered Editing)
|
|
14
|
+
|
|
15
|
+
**When to Use**: Edit tool fails 1+ times on same file
|
|
16
|
+
|
|
17
|
+
### Usage
|
|
18
|
+
|
|
19
|
+
**Best for**: Code block replacements, function rewrites, multi-line changes
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
ccw tool exec edit_file --path "file.py" --old "def old():
|
|
23
|
+
pass" --new "def new():
|
|
24
|
+
return True"
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
**Parameters**:
|
|
28
|
+
- `--path`: File path to edit
|
|
29
|
+
- `--old`: Text to find and replace
|
|
30
|
+
- `--new`: New text to insert
|
|
31
|
+
|
|
32
|
+
**Features**:
|
|
33
|
+
- ✅ Exact text matching (precise and predictable)
|
|
34
|
+
- ✅ Auto line ending adaptation (CRLF/LF)
|
|
35
|
+
- ✅ No JSON escaping issues
|
|
36
|
+
- ✅ Multi-line text supported with quotes
|
|
37
|
+
|
|
38
|
+
### Fallback Strategy
|
|
39
|
+
|
|
40
|
+
1. **Edit fails 1+ times** → Use `ccw tool exec edit_file`
|
|
41
|
+
2. **Still fails** → Use Write to recreate file
|
|
42
|
+
|
|
43
|
+
## ⚡ sed Line Operations (Line Mode Alternative)
|
|
44
|
+
|
|
45
|
+
**When to Use**: Precise line number control (insert, delete, replace specific lines)
|
|
46
|
+
|
|
47
|
+
### Common Operations
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
# Insert after line 10
|
|
51
|
+
sed -i '10a\new line content' file.txt
|
|
52
|
+
|
|
53
|
+
# Insert before line 5
|
|
54
|
+
sed -i '5i\new line content' file.txt
|
|
55
|
+
|
|
56
|
+
# Delete line 3
|
|
57
|
+
sed -i '3d' file.txt
|
|
58
|
+
|
|
59
|
+
# Delete lines 5-8
|
|
60
|
+
sed -i '5,8d' file.txt
|
|
61
|
+
|
|
62
|
+
# Replace line 3 content
|
|
63
|
+
sed -i '3c\replacement line' file.txt
|
|
64
|
+
|
|
65
|
+
# Replace lines 3-5 content
|
|
66
|
+
sed -i '3,5c\single replacement line' file.txt
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
### Operation Reference
|
|
70
|
+
|
|
71
|
+
| Operation | Command | Example |
|
|
72
|
+
|-----------|---------|---------|
|
|
73
|
+
| Insert after | `Na\text` | `sed -i '10a\new' file` |
|
|
74
|
+
| Insert before | `Ni\text` | `sed -i '5i\new' file` |
|
|
75
|
+
| Delete line | `Nd` | `sed -i '3d' file` |
|
|
76
|
+
| Delete range | `N,Md` | `sed -i '5,8d' file` |
|
|
77
|
+
| Replace line | `Nc\text` | `sed -i '3c\new' file` |
|
|
78
|
+
|
|
79
|
+
**Note**: Use `sed -i` for in-place file modification (works in Git Bash on Windows)
|