claude-code-workflow 7.2.30 → 7.3.0

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.
Files changed (183) hide show
  1. package/.claude/commands/workflow-skill.md +130 -0
  2. package/.claude/skills/ccw-chain/SKILL.md +44 -71
  3. package/.claude/skills/ccw-chain/chains/ccw-cycle.json +13 -3
  4. package/.claude/skills/ccw-chain/chains/ccw-exploration.json +33 -22
  5. package/.claude/skills/ccw-chain/chains/ccw-issue.json +23 -12
  6. package/.claude/skills/ccw-chain/chains/ccw-lightweight.json +23 -9
  7. package/.claude/skills/ccw-chain/chains/ccw-main.json +15 -2
  8. package/.claude/skills/ccw-chain/chains/ccw-standard.json +28 -16
  9. package/.claude/skills/ccw-chain/chains/ccw-team.json +7 -2
  10. package/.claude/skills/ccw-chain/chains/ccw-with-file.json +25 -9
  11. package/.claude/skills/chain-loader/phases/01-analyze-skill.md +53 -53
  12. package/.claude/skills/chain-loader/specs/chain-schema.md +30 -3
  13. package/.claude/skills/chain-loader/templates/chain-json.md +63 -63
  14. package/.claude/skills/workflow-plan/SKILL.md +1 -0
  15. package/.claude/skills/workflow-plan/phases/01-session-discovery.md +19 -2
  16. package/.claude/skills/workflow-plan/phases/02-context-gathering.md +2 -2
  17. package/.claude/skills/workflow-plan/phases/04-task-generation.md +9 -1
  18. package/.codex/skills/analyze-with-file/SKILL.md +383 -134
  19. package/.codex/skills/brainstorm/SKILL.md +3 -3
  20. package/.codex/skills/brainstorm-with-file/SKILL.md +208 -88
  21. package/.codex/skills/clean/SKILL.md +1 -1
  22. package/.codex/skills/csv-wave-pipeline/SKILL.md +2 -2
  23. package/.codex/skills/investigate/orchestrator.md +24 -0
  24. package/.codex/skills/issue-discover/SKILL.md +374 -361
  25. package/.codex/skills/issue-discover/phases/01-issue-new.md +1 -1
  26. package/.codex/skills/issue-discover/phases/02-discover.md +2 -2
  27. package/.codex/skills/issue-discover/phases/03-discover-by-prompt.md +1 -1
  28. package/.codex/skills/issue-discover/phases/04-quick-execute.md +2 -2
  29. package/.codex/skills/parallel-dev-cycle/SKILL.md +44 -37
  30. package/.codex/skills/project-documentation-workflow/SKILL.md +1 -1
  31. package/.codex/skills/review-cycle/SKILL.md +31 -12
  32. package/.codex/skills/roadmap-with-file/SKILL.md +141 -133
  33. package/.codex/skills/security-audit/orchestrator.md +29 -0
  34. package/.codex/skills/session-sync/SKILL.md +1 -1
  35. package/.codex/skills/ship/orchestrator.md +24 -0
  36. package/.codex/skills/spec-add/SKILL.md +5 -5
  37. package/.codex/skills/spec-generator/SKILL.md +33 -2
  38. package/.codex/skills/spec-generator/phases/01-5-requirement-clarification.md +3 -3
  39. package/.codex/skills/spec-generator/phases/01-discovery.md +1 -1
  40. package/.codex/skills/spec-generator/phases/02-product-brief.md +1 -1
  41. package/.codex/skills/spec-generator/phases/03-requirements.md +1 -1
  42. package/.codex/skills/spec-generator/phases/04-architecture.md +1 -1
  43. package/.codex/skills/spec-generator/phases/05-epics-stories.md +1 -1
  44. package/.codex/skills/spec-generator/phases/06-readiness-check.md +1 -1
  45. package/.codex/skills/spec-generator/phases/07-issue-export.md +1 -1
  46. package/.codex/skills/spec-setup/SKILL.md +669 -669
  47. package/.codex/skills/team-arch-opt/specs/team-config.json +1 -1
  48. package/.codex/skills/team-brainstorm/SKILL.md +259 -259
  49. package/.codex/skills/team-coordinate/SKILL.md +359 -359
  50. package/.codex/skills/team-coordinate/roles/coordinator/commands/monitor.md +1 -1
  51. package/.codex/skills/team-designer/SKILL.md +27 -1
  52. package/.codex/skills/team-designer/phases/01-requirements-analysis.md +2 -2
  53. package/.codex/skills/team-designer/phases/02-scaffold-generation.md +1 -1
  54. package/.codex/skills/team-designer/phases/04-validation.md +1 -1
  55. package/.codex/skills/team-executor/SKILL.md +218 -218
  56. package/.codex/skills/team-frontend/SKILL.md +227 -227
  57. package/.codex/skills/team-frontend-debug/SKILL.md +278 -278
  58. package/.codex/skills/team-frontend-debug/roles/coordinator/commands/analyze.md +2 -2
  59. package/.codex/skills/team-interactive-craft/SKILL.md +220 -220
  60. package/.codex/skills/team-interactive-craft/roles/coordinator/role.md +209 -209
  61. package/.codex/skills/team-issue/SKILL.md +269 -269
  62. package/.codex/skills/team-issue/roles/coordinator/role.md +1 -1
  63. package/.codex/skills/team-lifecycle-v4/SKILL.md +305 -305
  64. package/.codex/skills/team-motion-design/SKILL.md +222 -222
  65. package/.codex/skills/team-motion-design/roles/coordinator/role.md +210 -210
  66. package/.codex/skills/team-perf-opt/SKILL.md +258 -258
  67. package/.codex/skills/team-perf-opt/specs/team-config.json +1 -1
  68. package/.codex/skills/team-planex/SKILL.md +216 -216
  69. package/.codex/skills/team-quality-assurance/SKILL.md +229 -229
  70. package/.codex/skills/team-review/SKILL.md +227 -227
  71. package/.codex/skills/team-roadmap-dev/SKILL.md +238 -238
  72. package/.codex/skills/team-roadmap-dev/roles/coordinator/commands/roadmap-discuss.md +5 -5
  73. package/.codex/skills/team-tech-debt/SKILL.md +206 -206
  74. package/.codex/skills/team-tech-debt/roles/coordinator/commands/monitor.md +1 -1
  75. package/.codex/skills/team-testing/SKILL.md +237 -237
  76. package/.codex/skills/team-ui-polish/SKILL.md +218 -218
  77. package/.codex/skills/team-ui-polish/roles/coordinator/role.md +213 -213
  78. package/.codex/skills/team-uidesign/SKILL.md +219 -219
  79. package/.codex/skills/team-uidesign/roles/coordinator/role.md +2 -2
  80. package/.codex/skills/team-ultra-analyze/SKILL.md +260 -260
  81. package/.codex/skills/team-ultra-analyze/roles/coordinator/commands/monitor.md +1 -1
  82. package/.codex/skills/team-ultra-analyze/roles/coordinator/role.md +1 -1
  83. package/.codex/skills/team-ux-improve/SKILL.md +227 -227
  84. package/.codex/skills/team-ux-improve/roles/coordinator/role.md +1 -1
  85. package/.codex/skills/team-ux-improve/specs/team-config.json +1 -1
  86. package/.codex/skills/team-visual-a11y/SKILL.md +319 -319
  87. package/.codex/skills/team-visual-a11y/roles/coordinator/role.md +213 -213
  88. package/.codex/skills/workflow-execute/SKILL.md +5 -5
  89. package/.codex/skills/workflow-lite-planex/SKILL.md +3 -3
  90. package/.codex/skills/workflow-plan/SKILL.md +3 -3
  91. package/.codex/skills/workflow-tdd-plan/SKILL.md +4 -4
  92. package/.codex/skills/workflow-test-fix-cycle/SKILL.md +403 -402
  93. package/ccw/dist/cli.d.ts.map +1 -1
  94. package/ccw/dist/cli.js +16 -0
  95. package/ccw/dist/cli.js.map +1 -1
  96. package/ccw/dist/commands/chain-loader.d.ts +2 -0
  97. package/ccw/dist/commands/chain-loader.d.ts.map +1 -0
  98. package/ccw/dist/commands/chain-loader.js +11 -0
  99. package/ccw/dist/commands/chain-loader.js.map +1 -0
  100. package/ccw/dist/commands/install.d.ts.map +1 -1
  101. package/ccw/dist/commands/install.js +52 -1
  102. package/ccw/dist/commands/install.js.map +1 -1
  103. package/ccw/dist/commands/launcher.d.ts +2 -0
  104. package/ccw/dist/commands/launcher.d.ts.map +1 -0
  105. package/ccw/dist/commands/launcher.js +434 -0
  106. package/ccw/dist/commands/launcher.js.map +1 -0
  107. package/ccw/dist/tools/chain-loader.d.ts.map +1 -1
  108. package/ccw/dist/tools/chain-loader.js +457 -45
  109. package/ccw/dist/tools/chain-loader.js.map +1 -1
  110. package/ccw/dist/tools/skill-context-loader.d.ts.map +1 -1
  111. package/ccw/dist/tools/skill-context-loader.js +12 -26
  112. package/ccw/dist/tools/skill-context-loader.js.map +1 -1
  113. package/ccw/dist/types/chain-types.d.ts +41 -1
  114. package/ccw/dist/types/chain-types.d.ts.map +1 -1
  115. package/ccw/dist/utils/chain-visualizer.d.ts +13 -0
  116. package/ccw/dist/utils/chain-visualizer.d.ts.map +1 -0
  117. package/ccw/dist/utils/chain-visualizer.js +164 -0
  118. package/ccw/dist/utils/chain-visualizer.js.map +1 -0
  119. package/package.json +1 -1
  120. package/.claude/commands/cli/cli-init.md +0 -441
  121. package/.claude/commands/cli/codex-review.md +0 -361
  122. package/.claude/commands/flow-create.md +0 -663
  123. package/.claude/skills/ccw-chain/phases/analyze-with-file.md +0 -788
  124. package/.claude/skills/ccw-chain/phases/brainstorm/SKILL.md +0 -408
  125. package/.claude/skills/ccw-chain/phases/brainstorm/phases/01-mode-routing.md +0 -207
  126. package/.claude/skills/ccw-chain/phases/brainstorm/phases/02-artifacts.md +0 -567
  127. package/.claude/skills/ccw-chain/phases/brainstorm/phases/03-role-analysis.md +0 -748
  128. package/.claude/skills/ccw-chain/phases/brainstorm/phases/04-synthesis.md +0 -827
  129. package/.claude/skills/ccw-chain/phases/brainstorm-with-file.md +0 -482
  130. package/.claude/skills/ccw-chain/phases/collaborative-plan-with-file.md +0 -639
  131. package/.claude/skills/ccw-chain/phases/debug-with-file.md +0 -656
  132. package/.claude/skills/ccw-chain/phases/integration-test-cycle.md +0 -936
  133. package/.claude/skills/ccw-chain/phases/issue-convert-to-plan.md +0 -720
  134. package/.claude/skills/ccw-chain/phases/issue-discover.md +0 -483
  135. package/.claude/skills/ccw-chain/phases/issue-execute.md +0 -629
  136. package/.claude/skills/ccw-chain/phases/issue-from-brainstorm.md +0 -382
  137. package/.claude/skills/ccw-chain/phases/issue-plan.md +0 -343
  138. package/.claude/skills/ccw-chain/phases/issue-queue.md +0 -464
  139. package/.claude/skills/ccw-chain/phases/refactor-cycle.md +0 -852
  140. package/.claude/skills/ccw-chain/phases/review-cycle/SKILL.md +0 -132
  141. package/.claude/skills/ccw-chain/phases/review-cycle/phases/review-fix.md +0 -760
  142. package/.claude/skills/ccw-chain/phases/review-cycle/phases/review-module.md +0 -764
  143. package/.claude/skills/ccw-chain/phases/review-cycle/phases/review-session.md +0 -775
  144. package/.claude/skills/ccw-chain/phases/roadmap-with-file.md +0 -544
  145. package/.claude/skills/ccw-chain/phases/spec-generator/SKILL.md +0 -338
  146. package/.claude/skills/ccw-chain/phases/spec-generator/phases/01-5-requirement-clarification.md +0 -404
  147. package/.claude/skills/ccw-chain/phases/spec-generator/phases/01-discovery.md +0 -257
  148. package/.claude/skills/ccw-chain/phases/spec-generator/phases/02-product-brief.md +0 -274
  149. package/.claude/skills/ccw-chain/phases/spec-generator/phases/03-requirements.md +0 -184
  150. package/.claude/skills/ccw-chain/phases/spec-generator/phases/04-architecture.md +0 -248
  151. package/.claude/skills/ccw-chain/phases/spec-generator/phases/05-epics-stories.md +0 -178
  152. package/.claude/skills/ccw-chain/phases/spec-generator/phases/06-5-auto-fix.md +0 -144
  153. package/.claude/skills/ccw-chain/phases/spec-generator/phases/06-readiness-check.md +0 -480
  154. package/.claude/skills/ccw-chain/phases/team-planex.md +0 -123
  155. package/.claude/skills/ccw-chain/phases/ui-design-explore-auto.md +0 -678
  156. package/.claude/skills/ccw-chain/phases/unified-execute-with-file.md +0 -870
  157. package/.claude/skills/ccw-chain/phases/workflow-execute/SKILL.md +0 -625
  158. package/.claude/skills/ccw-chain/phases/workflow-execute/phases/06-review.md +0 -215
  159. package/.claude/skills/ccw-chain/phases/workflow-lite-plan.md +0 -616
  160. package/.claude/skills/ccw-chain/phases/workflow-multi-cli-plan.md +0 -424
  161. package/.claude/skills/ccw-chain/phases/workflow-plan/SKILL.md +0 -466
  162. package/.claude/skills/ccw-chain/phases/workflow-plan/phases/01-session-discovery.md +0 -99
  163. package/.claude/skills/ccw-chain/phases/workflow-plan/phases/02-context-gathering.md +0 -338
  164. package/.claude/skills/ccw-chain/phases/workflow-plan/phases/03-conflict-resolution.md +0 -422
  165. package/.claude/skills/ccw-chain/phases/workflow-plan/phases/04-task-generation.md +0 -440
  166. package/.claude/skills/ccw-chain/phases/workflow-plan/phases/05-plan-verify.md +0 -395
  167. package/.claude/skills/ccw-chain/phases/workflow-plan/phases/06-replan.md +0 -594
  168. package/.claude/skills/ccw-chain/phases/workflow-tdd-plan/SKILL.md +0 -527
  169. package/.claude/skills/ccw-chain/phases/workflow-tdd-plan/phases/01-session-discovery.md +0 -57
  170. package/.claude/skills/ccw-chain/phases/workflow-tdd-plan/phases/02-context-gathering.md +0 -407
  171. package/.claude/skills/ccw-chain/phases/workflow-tdd-plan/phases/03-test-coverage-analysis.md +0 -172
  172. package/.claude/skills/ccw-chain/phases/workflow-tdd-plan/phases/04-conflict-resolution.md +0 -426
  173. package/.claude/skills/ccw-chain/phases/workflow-tdd-plan/phases/05-tdd-task-generation.md +0 -473
  174. package/.claude/skills/ccw-chain/phases/workflow-tdd-plan/phases/06-tdd-structure-validation.md +0 -189
  175. package/.claude/skills/ccw-chain/phases/workflow-tdd-plan/phases/07-tdd-verify.md +0 -635
  176. package/.claude/skills/ccw-chain/phases/workflow-test-fix/SKILL.md +0 -482
  177. package/.claude/skills/ccw-chain/phases/workflow-test-fix/phases/01-session-start.md +0 -60
  178. package/.claude/skills/ccw-chain/phases/workflow-test-fix/phases/02-test-context-gather.md +0 -493
  179. package/.claude/skills/ccw-chain/phases/workflow-test-fix/phases/03-test-concept-enhanced.md +0 -150
  180. package/.claude/skills/ccw-chain/phases/workflow-test-fix/phases/04-test-task-generate.md +0 -346
  181. package/.claude/skills/ccw-chain/phases/workflow-test-fix/phases/05-test-cycle-execute.md +0 -538
  182. package/.claude/skills/ccw-chain/specs/intent-patterns.md +0 -60
  183. package/.claude/skills/team-edict.zip +0 -0
@@ -1,441 +0,0 @@
1
- ---
2
- name: cli-init
3
- description: Generate .gemini/ and .qwen/ config directories with settings.json and ignore files based on workspace technology detection
4
- argument-hint: "[--tool gemini|qwen|all] [--output path] [--preview]"
5
- allowed-tools: Bash(*), Read(*), Write(*), Glob(*)
6
- group: cli
7
- ---
8
-
9
- # CLI Initialization Command (/cli:cli-init)
10
-
11
- ## Overview
12
- Initializes CLI tool configurations for the workspace by:
13
- 1. Analyzing current workspace using `get_modules_by_depth.sh` to identify technology stacks
14
- 2. Generating ignore files (`.geminiignore` and `.qwenignore`) with filtering rules optimized for detected technologies
15
- 3. Creating configuration directories (`.gemini/` and `.qwen/`) with settings.json files
16
-
17
- **Supported Tools**: gemini, qwen, all (default: all)
18
-
19
- ## Core Functionality
20
-
21
- ### Configuration Generation
22
- 1. **Workspace Analysis**: Runs `get_modules_by_depth.sh` to analyze project structure
23
- 2. **Technology Stack Detection**: Identifies tech stacks based on file extensions, directories, and configuration files
24
- 3. **Config Creation**: Generates tool-specific configuration directories and settings files
25
- 4. **Ignore Rules Generation**: Creates ignore files with filtering patterns for detected technologies
26
-
27
- ### Generated Files
28
-
29
- #### Configuration Directories
30
- Creates tool-specific configuration directories:
31
-
32
- **For Gemini** (`.gemini/`):
33
- - `.gemini/settings.json`:
34
- ```json
35
- {
36
- "contextfilename": "CLAUDE.md"
37
- }
38
- ```
39
-
40
- **For Qwen** (`.qwen/`):
41
- - `.qwen/settings.json`:
42
- ```json
43
- {
44
- "contextfilename": "CLAUDE.md"
45
- }
46
- ```
47
-
48
- #### Ignore Files
49
- Uses gitignore syntax to filter files from CLI tool analysis:
50
- - `.geminiignore` - For Gemini CLI
51
- - `.qwenignore` - For Qwen CLI
52
-
53
- Both files have identical content based on detected technologies.
54
-
55
- ### Supported Technology Stacks
56
-
57
- #### Frontend Technologies
58
- - **React/Next.js**: Ignores build artifacts, .next/, node_modules
59
- - **Vue/Nuxt**: Ignores .nuxt/, dist/, .cache/
60
- - **Angular**: Ignores dist/, .angular/, node_modules
61
- - **Webpack/Vite**: Ignores build outputs, cache directories
62
-
63
- #### Backend Technologies
64
- - **Node.js**: Ignores node_modules, package-lock.json, npm-debug.log
65
- - **Python**: Ignores __pycache__, .venv, *.pyc, .pytest_cache
66
- - **Java**: Ignores target/, .gradle/, *.class, .mvn/
67
- - **Go**: Ignores vendor/, *.exe, go.sum (when appropriate)
68
- - **C#/.NET**: Ignores bin/, obj/, *.dll, *.pdb
69
-
70
- #### Database & Infrastructure
71
- - **Docker**: Ignores .dockerignore, docker-compose.override.yml
72
- - **Kubernetes**: Ignores *.secret.yaml, helm charts temp files
73
- - **Database**: Ignores *.db, *.sqlite, database dumps
74
-
75
- ### Generated Rules Structure
76
-
77
- #### Base Rules (Always Included)
78
- ```
79
- # Version Control
80
- .git/
81
- .svn/
82
- .hg/
83
-
84
- # OS Files
85
- .DS_Store
86
- Thumbs.db
87
- *.tmp
88
- *.swp
89
-
90
- # IDE Files
91
- .vscode/
92
- .idea/
93
- .vs/
94
-
95
- # Logs
96
- *.log
97
- logs/
98
- ```
99
-
100
- #### Technology-Specific Rules
101
- Rules are added based on detected technologies:
102
-
103
- **Node.js Projects** (package.json detected):
104
- ```
105
- # Node.js
106
- node_modules/
107
- npm-debug.log*
108
- .npm/
109
- .yarn/
110
- package-lock.json
111
- yarn.lock
112
- .pnpm-store/
113
- ```
114
-
115
- **Python Projects** (requirements.txt, setup.py, pyproject.toml detected):
116
- ```
117
- # Python
118
- __pycache__/
119
- *.py[cod]
120
- .venv/
121
- venv/
122
- .pytest_cache/
123
- .coverage
124
- htmlcov/
125
- ```
126
-
127
- **Java Projects** (pom.xml, build.gradle detected):
128
- ```
129
- # Java
130
- target/
131
- .gradle/
132
- *.class
133
- *.jar
134
- *.war
135
- .mvn/
136
- ```
137
-
138
- ## Command Options
139
-
140
- ### Tool Selection
141
-
142
- **Initialize All Tools (default)**:
143
- ```bash
144
- /cli:cli-init
145
- ```
146
- - Creates `.gemini/`, `.qwen/` directories with settings.json
147
- - Creates `.geminiignore` and `.qwenignore` files
148
- - Sets contextfilename to "CLAUDE.md" for both
149
-
150
- **Initialize Gemini Only**:
151
- ```bash
152
- /cli:cli-init --tool gemini
153
- ```
154
- - Creates only `.gemini/` directory and `.geminiignore` file
155
-
156
- **Initialize Qwen Only**:
157
- ```bash
158
- /cli:cli-init --tool qwen
159
- ```
160
- - Creates only `.qwen/` directory and `.qwenignore` file
161
-
162
- ### Preview Mode
163
- ```bash
164
- /cli:cli-init --preview
165
- ```
166
- - Shows what would be generated without creating files
167
- - Displays detected technologies, configuration, and ignore rules
168
-
169
- ### Custom Output Path
170
- ```bash
171
- /cli:cli-init --output=.config/
172
- ```
173
- - Generates files in specified directory
174
- - Creates directories if they don't exist
175
-
176
- ### Combined Options
177
- ```bash
178
- /cli:cli-init --tool qwen --preview
179
- /cli:cli-init --tool all --output=.config/
180
- ```
181
-
182
- ## EXECUTION INSTRUCTIONS - START HERE
183
-
184
- **When this command is triggered, follow these exact steps:**
185
-
186
- ### Step 1: Parse Tool Selection
187
- ```bash
188
- # Extract --tool flag (default: all)
189
- # Options: gemini, qwen, all
190
- ```
191
-
192
- ### Step 2: Workspace Analysis (MANDATORY FIRST)
193
- ```bash
194
- # Analyze workspace structure
195
- bash(ccw tool exec get_modules_by_depth '{"format":"json"}')
196
- ```
197
-
198
- ### Step 3: Technology Detection
199
- ```bash
200
- # Check for common tech stack indicators
201
- bash(find . -name "package.json" -not -path "*/node_modules/*" | head -1)
202
- bash(find . -name "requirements.txt" -o -name "setup.py" -o -name "pyproject.toml" | head -1)
203
- bash(find . -name "pom.xml" -o -name "build.gradle" | head -1)
204
- bash(find . -name "Dockerfile" | head -1)
205
- ```
206
-
207
- ### Step 4: Generate Configuration Files
208
-
209
- **For Gemini** (if --tool is gemini or all):
210
- ```bash
211
- # Create .gemini/ directory and settings.json
212
- mkdir -p .gemini
213
- Write({file_path: '.gemini/settings.json', content: '{"contextfilename": "CLAUDE.md"}'})
214
-
215
- # Create .geminiignore file with detected technology rules
216
- # Backup existing files if present
217
- ```
218
-
219
- **For Qwen** (if --tool is qwen or all):
220
- ```bash
221
- # Create .qwen/ directory and settings.json
222
- mkdir -p .qwen
223
- Write({file_path: '.qwen/settings.json', content: '{"contextfilename": "CLAUDE.md"}'})
224
-
225
- # Create .qwenignore file with detected technology rules
226
- # Backup existing files if present
227
- ```
228
-
229
- ### Step 5: Validation
230
- ```bash
231
- # Verify generated files are valid
232
- bash(ls -la .gemini* .qwen* 2>/dev/null || echo "Configuration files created")
233
- ```
234
-
235
- ## Implementation Process (Technical Details)
236
-
237
- ### Phase 1: Tool Selection
238
- 1. Parse `--tool` flag from command arguments
239
- 2. Determine which configurations to generate:
240
- - `gemini`: Generate .gemini/ and .geminiignore only
241
- - `qwen`: Generate .qwen/ and .qwenignore only
242
- - `all` (default): Generate both sets of files
243
-
244
- ### Phase 2: Workspace Analysis
245
- 1. Execute `get_modules_by_depth.sh json` to get structured project data
246
- 2. Parse JSON output to identify directories and files
247
- 3. Scan for technology indicators:
248
- - Configuration files (package.json, requirements.txt, etc.)
249
- - Directory patterns (src/, tests/, etc.)
250
- - File extensions (.js, .py, .java, etc.)
251
- 4. Detect project name from directory name or package.json
252
-
253
- ### Phase 3: Technology Detection
254
- ```bash
255
- # Technology detection logic
256
- detect_nodejs() {
257
- [ -f "package.json" ] || find . -name "package.json" -not -path "*/node_modules/*" | head -1
258
- }
259
-
260
- detect_python() {
261
- [ -f "requirements.txt" ] || [ -f "setup.py" ] || [ -f "pyproject.toml" ] || \
262
- find . -name "*.py" -not -path "*/__pycache__/*" | head -1
263
- }
264
-
265
- detect_java() {
266
- [ -f "pom.xml" ] || [ -f "build.gradle" ] || \
267
- find . -name "*.java" | head -1
268
- }
269
- ```
270
-
271
- ### Phase 4: Configuration Generation
272
- **For each selected tool**, create:
273
-
274
- 1. **Config Directory**:
275
- - Create `.gemini/` or `.qwen/` directory if it doesn't exist
276
- - Generate `settings.json` with contextfilename setting
277
- - Set contextfilename to "CLAUDE.md" by default
278
-
279
- 2. **Settings.json Format** (identical for both tools):
280
- ```json
281
- {
282
- "contextfilename": "CLAUDE.md"
283
- }
284
- ```
285
-
286
- ### Phase 5: Ignore Rules Generation
287
- 1. Start with base rules (always included)
288
- 2. Add technology-specific rules based on detection
289
- 3. Add workspace-specific patterns if found
290
- 4. Sort and deduplicate rules
291
- 5. Generate identical content for both `.geminiignore` and `.qwenignore`
292
-
293
- ### Phase 6: File Creation
294
- 1. **Generate config directories**: Create `.gemini/` and/or `.qwen/` directories with settings.json
295
- 2. **Generate ignore files**: Create organized ignore files with sections
296
- 3. **Create backups**: Backup existing files if present
297
- 4. **Validate**: Check generated files are valid
298
-
299
- ## Generated File Format
300
-
301
- ### Configuration Files
302
- ```json
303
- // .gemini/settings.json or .qwen/settings.json
304
- {
305
- "contextfilename": "CLAUDE.md"
306
- }
307
- ```
308
-
309
- ### Ignore Files
310
- ```
311
- # .geminiignore / .qwenignore
312
- # Generated by Claude Code /cli:cli-init command
313
- # Creation date: 2024-01-15 10:30:00
314
- # Detected technologies: Node.js, Python, Docker
315
- #
316
- # This file uses gitignore syntax to filter files for CLI tool analysis
317
- # Edit this file to customize filtering rules for your project
318
-
319
- # ============================================================================
320
- # Base Rules (Always Applied)
321
- # ============================================================================
322
-
323
- # Version Control
324
- .git/
325
- .svn/
326
- .hg/
327
-
328
- # ============================================================================
329
- # Node.js (Detected: package.json found)
330
- # ============================================================================
331
-
332
- node_modules/
333
- npm-debug.log*
334
- .npm/
335
- yarn-error.log
336
- package-lock.json
337
-
338
- # ============================================================================
339
- # Python (Detected: requirements.txt, *.py files found)
340
- # ============================================================================
341
-
342
- __pycache__/
343
- *.py[cod]
344
- .venv/
345
- .pytest_cache/
346
- .coverage
347
-
348
- # ============================================================================
349
- # Docker (Detected: Dockerfile found)
350
- # ============================================================================
351
-
352
- .dockerignore
353
- docker-compose.override.yml
354
-
355
- # ============================================================================
356
- # Custom Rules (Add your project-specific rules below)
357
- # ============================================================================
358
-
359
- ```
360
-
361
- ## Error Handling
362
-
363
- ### Missing Dependencies
364
- - If `get_modules_by_depth.sh` not found, show error with path to script
365
- - Gracefully handle cases where script fails
366
-
367
- ### Write Permissions
368
- - Check write permissions before attempting file creation
369
- - Show clear error message if cannot write to target location
370
-
371
- ### Backup Existing Files
372
- - If `.gemini/` directory exists, create backup as `.gemini.backup/`
373
- - If `.qwen/` directory exists, create backup as `.qwen.backup/`
374
- - If `.geminiignore` exists, create backup as `.geminiignore.backup`
375
- - If `.qwenignore` exists, create backup as `.qwenignore.backup`
376
- - Include timestamp in backup filename
377
-
378
- ## Integration Points
379
-
380
- ### Workflow Commands
381
- - **After `workflow-lite-plan` skill**: Suggest running cli-init for better analysis
382
- - **Before analysis**: Recommend updating ignore patterns for cleaner results
383
-
384
- ### CLI Tool Integration
385
- - Automatically update when new technologies detected
386
- - Integrate with `intelligent-tools-strategy.md` recommendations
387
-
388
- ## Usage Examples
389
-
390
- ### Basic Project Setup
391
- ```bash
392
- # Initialize all CLI tools (Gemini + Qwen)
393
- /cli:cli-init
394
-
395
- # Initialize only Gemini
396
- /cli:cli-init --tool gemini
397
-
398
- # Initialize only Qwen
399
- /cli:cli-init --tool qwen
400
-
401
- # Preview what would be generated
402
- /cli:cli-init --preview
403
-
404
- # Generate in subdirectory
405
- /cli:cli-init --output=.config/
406
- ```
407
-
408
- ### Technology Migration
409
- ```bash
410
- # After adding new tech stack (e.g., Docker)
411
- /cli:cli-init # Regenerates all config and ignore files with new rules
412
-
413
- # Check what changed
414
- /cli:cli-init --preview # Compare with existing configuration
415
-
416
- # Update only Qwen configuration
417
- /cli:cli-init --tool qwen
418
- ```
419
-
420
- ### Tool-Specific Initialization
421
- ```bash
422
- # Setup for Gemini-only workflow
423
- /cli:cli-init --tool gemini
424
-
425
- # Setup for Qwen-only workflow
426
- /cli:cli-init --tool qwen
427
-
428
- # Setup both with preview
429
- /cli:cli-init --tool all --preview
430
- ```
431
-
432
-
433
- ## Tool Selection Guide
434
-
435
- | Scenario | Command | Result |
436
- |----------|---------|--------|
437
- | **New project, using both tools** | `/cli:cli-init` | Creates .gemini/, .qwen/, .geminiignore, .qwenignore |
438
- | **Gemini-only workflow** | `/cli:cli-init --tool gemini` | Creates .gemini/ and .geminiignore only |
439
- | **Qwen-only workflow** | `/cli:cli-init --tool qwen` | Creates .qwen/ and .qwenignore only |
440
- | **Preview before commit** | `/cli:cli-init --preview` | Shows what would be generated |
441
- | **Update configurations** | `/cli:cli-init` | Regenerates all files with backups |