@@ -101,10 +101,10 @@ src/ (depth 1) → SINGLE STRATEGY
101101Bash ({command: " pwd && basename \" $(pwd)\" && git rev-parse --show-toplevel 2>/dev/null || pwd" , run_in_background: false });
102102
103103// Get module structure with classification
104- Bash ({command: " ~/.claude/scripts/ get_modules_by_depth.sh list | ~/.claude/scripts/classify-folders.sh " , run_in_background: false });
104+ Bash ({command: " ccw tool exec get_modules_by_depth '{ \" format \" : \" list\" }' | ccw tool exec classify_folders '{}' " , run_in_background: false });
105105
106106// OR with path parameter
107- Bash ({command: " cd <target-path> && ~/.claude/scripts/ get_modules_by_depth.sh list | ~/.claude/scripts/classify-folders.sh " , run_in_background: false });
107+ Bash ({command: " cd <target-path> && ccw tool exec get_modules_by_depth '{ \" format \" : \" list\" }' | ccw tool exec classify_folders '{}' " , run_in_background: false });
108108```
109109
110110** Parse output** ` depth:N|path:<PATH>|type:<code|navigation>|... ` to extract module paths, types, and count.
@@ -200,7 +200,7 @@ for (let layer of [3, 2, 1]) {
200200 let strategy = module .depth >= 3 ? " full" : " single" ;
201201 for (let tool of tool_order) {
202202 Bash ({
203- command: ` cd ${ module .path } && ~/.claude/scripts/ generate_module_docs.sh " ${ strategy} " "." " ${ project_name} " " ${ tool} "` ,
203+ command: ` cd ${ module .path } && ccw tool exec generate_module_docs '{"strategy":" ${ strategy} ","sourcePath":".","projectName":" ${ project_name} ","tool":" ${ tool} "}' ` ,
204204 run_in_background: false
205205 });
206206 if (bash_result .exit_code === 0 ) {
@@ -263,7 +263,7 @@ MODULES:
263263
264264TOOLS (try in order): {{tool_1}}, {{tool_2}}, {{tool_3}}
265265
266- EXECUTION SCRIPT: ~/.claude/scripts/ generate_module_docs.sh
266+ EXECUTION SCRIPT: ccw tool exec generate_module_docs
267267 - Accepts strategy parameter: full | single
268268 - Accepts folder type detection: code | navigation
269269 - Tool execution via direct CLI commands (gemini/qwen/codex)
@@ -273,7 +273,7 @@ EXECUTION FLOW (for each module):
273273 1. Tool fallback loop (exit on first success):
274274 for tool in {{tool_1}} {{tool_2}} {{tool_3}}; do
275275 Bash({
276- command: `cd "{{module_path}}" && ~/.claude/scripts/ generate_module_docs.sh " {{strategy}}" "." " {{project_name}}" " ${tool}"`,
276+ command: `cd "{{module_path}}" && ccw tool exec generate_module_docs '{"strategy":" {{strategy}}","sourcePath":".","projectName":" {{project_name}}","tool":" ${tool}"}' `,
277277 run_in_background: false
278278 })
279279 exit_code=$?
@@ -322,7 +322,7 @@ let project_root = get_project_root();
322322report (" Generating project README.md..." );
323323for (let tool of tool_order) {
324324 Bash ({
325- command: ` cd ${ project_root} && ~/.claude/scripts/ generate_module_docs.sh " project-readme" "." " ${ project_name} " " ${ tool} "` ,
325+ command: ` cd ${ project_root} && ccw tool exec generate_module_docs '{"strategy":" project-readme","sourcePath":".","projectName":" ${ project_name} ","tool":" ${ tool} "}' ` ,
326326 run_in_background: false
327327 });
328328 if (bash_result .exit_code === 0 ) {
@@ -335,7 +335,7 @@ for (let tool of tool_order) {
335335report (" Generating ARCHITECTURE.md and EXAMPLES.md..." );
336336for (let tool of tool_order) {
337337 Bash ({
338- command: ` cd ${ project_root} && ~/.claude/scripts/ generate_module_docs.sh " project-architecture" "." " ${ project_name} " " ${ tool} "` ,
338+ command: ` cd ${ project_root} && ccw tool exec generate_module_docs '{"strategy":" project-architecture","sourcePath":".","projectName":" ${ project_name} ","tool":" ${ tool} "}' ` ,
339339 run_in_background: false
340340 });
341341 if (bash_result .exit_code === 0 ) {
@@ -350,7 +350,7 @@ if (bash_result.stdout.includes("API_FOUND")) {
350350 report (" Generating HTTP API documentation..." );
351351 for (let tool of tool_order) {
352352 Bash ({
353- command: ` cd ${ project_root} && ~/.claude/scripts/ generate_module_docs.sh " http-api" "." " ${ project_name} " " ${ tool} "` ,
353+ command: ` cd ${ project_root} && ccw tool exec generate_module_docs '{"strategy":" http-api","sourcePath":".","projectName":" ${ project_name} ","tool":" ${ tool} "}' ` ,
354354 run_in_background: false
355355 });
356356 if (bash_result .exit_code === 0 ) {
0 commit comments