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.
@@ -1,13 +1,13 @@
1
1
  ---
2
2
  name: command-guide
3
- description: Workflow command guide for Claude DMS3 (78 commands). Search/browse commands, get next-step recommendations, view documentation, report issues. Triggers "CCW-help", "CCW-issue", "ccw-help", "ccw-issue", "ccw"
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 DMS3 workflow system covering 78 commands across 5 categories (workflow, cli, memory, task, general).
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**: Claude DMS3 Team
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 2+ times on same file
16
-
17
- ### update Mode (Default)
18
-
19
- **Best for**: Code block replacements, function rewrites, multi-line changes
20
-
21
- ```bash
22
- ccw tool exec edit_file '{
23
- "path": "file.py",
24
- "oldText": "def old():\n pass",
25
- "newText": "def new():\n return True"
26
- }'
27
- ```
28
-
29
- **Features**:
30
- - Exact text matching (precise and predictable)
31
- - ✅ Auto line ending adaptation (CRLF/LF)
32
- - ✅ Simple `oldText` → `newText` replacement
33
- - ✅ No special markers needed
34
-
35
- ### line Mode (Precise Line Operations)
36
-
37
- **Best for**: Config files, line insertions/deletions, precise line number control
38
-
39
- ```bash
40
- # Insert after specific line
41
- ccw tool exec edit_file '{
42
- "path": "config.txt",
43
- "mode": "line",
44
- "operation": "insert_after",
45
- "line": 10,
46
- "text": "new config line"
47
- }'
48
-
49
- # Delete line range
50
- ccw tool exec edit_file '{
51
- "path": "log.txt",
52
- "mode": "line",
53
- "operation": "delete",
54
- "line": 5,
55
- "end_line": 8
56
- }'
57
-
58
- # Replace specific line
59
- ccw tool exec edit_file '{
60
- "path": "script.sh",
61
- "mode": "line",
62
- "operation": "replace",
63
- "line": 3,
64
- "text": "#!/bin/bash"
65
- }'
66
- ```
67
-
68
- **Operations**:
69
- - `insert_before`: Insert text before specified line
70
- - `insert_after`: Insert text after specified line
71
- - `replace`: Replace line or line range
72
- - `delete`: Delete line or line range
73
-
74
- ### Mode Selection Guide
75
-
76
- | Scenario | Mode | Reason |
77
- |----------|------|--------|
78
- | Code refactoring | update | Content-driven replacement |
79
- | Function rewrite | update | Simple oldText/newText |
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)