claude-code-workflow 6.0.5 → 6.1.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 (117) hide show
  1. package/.claude/agents/action-planning-agent.md +1 -1
  2. package/.claude/agents/cli-execution-agent.md +269 -269
  3. package/.claude/agents/cli-explore-agent.md +182 -182
  4. package/.claude/agents/context-search-agent.md +582 -582
  5. package/.claude/agents/memory-bridge.md +93 -93
  6. package/.claude/commands/cli/cli-init.md +1 -1
  7. package/.claude/commands/memory/docs-full-cli.md +471 -471
  8. package/.claude/commands/memory/docs-related-cli.md +386 -386
  9. package/.claude/commands/memory/docs.md +615 -615
  10. package/.claude/commands/memory/load.md +1 -1
  11. package/.claude/commands/memory/update-full.md +332 -332
  12. package/.claude/commands/memory/update-related.md +5 -5
  13. package/.claude/commands/workflow/init.md +1 -1
  14. package/.claude/commands/workflow/lite-fix.md +621 -621
  15. package/.claude/commands/workflow/lite-plan.md +592 -592
  16. package/.claude/commands/workflow/tools/context-gather.md +434 -434
  17. package/.claude/commands/workflow/ui-design/generate.md +504 -504
  18. package/.claude/commands/workflow/ui-design/import-from-code.md +537 -537
  19. package/.claude/scripts/classify-folders.sh +4 -0
  20. package/.claude/scripts/convert_tokens_to_css.sh +4 -0
  21. package/.claude/scripts/detect_changed_modules.sh +5 -1
  22. package/.claude/scripts/discover-design-files.sh +87 -83
  23. package/.claude/scripts/generate_module_docs.sh +717 -713
  24. package/.claude/scripts/get_modules_by_depth.sh +5 -1
  25. package/.claude/scripts/ui-generate-preview.sh +4 -0
  26. package/.claude/scripts/ui-instantiate-prototypes.sh +4 -0
  27. package/.claude/scripts/update_module_claude.sh +4 -0
  28. package/.claude/skills/command-guide/index/all-commands.json +1 -12
  29. package/.claude/skills/command-guide/index/by-category.json +1 -12
  30. package/.claude/skills/command-guide/index/by-use-case.json +1 -12
  31. package/.claude/skills/command-guide/index/essential-commands.json +1 -12
  32. package/.claude/skills/command-guide/reference/agents/action-planning-agent.md +127 -71
  33. package/.claude/skills/command-guide/reference/agents/cli-execution-agent.md +269 -269
  34. package/.claude/skills/command-guide/reference/agents/cli-explore-agent.md +182 -182
  35. package/.claude/skills/command-guide/reference/agents/conceptual-planning-agent.md +18 -38
  36. package/.claude/skills/command-guide/reference/agents/context-search-agent.md +582 -577
  37. package/.claude/skills/command-guide/reference/agents/memory-bridge.md +93 -93
  38. package/.claude/skills/command-guide/reference/commands/cli/cli-init.md +1 -1
  39. package/.claude/skills/command-guide/reference/commands/memory/docs-full-cli.md +471 -471
  40. package/.claude/skills/command-guide/reference/commands/memory/docs-related-cli.md +386 -386
  41. package/.claude/skills/command-guide/reference/commands/memory/docs.md +615 -610
  42. package/.claude/skills/command-guide/reference/commands/memory/load.md +1 -1
  43. package/.claude/skills/command-guide/reference/commands/memory/update-full.md +332 -332
  44. package/.claude/skills/command-guide/reference/commands/memory/update-related.md +5 -5
  45. package/.claude/skills/command-guide/reference/commands/workflow/brainstorm/artifacts.md +299 -451
  46. package/.claude/skills/command-guide/reference/commands/workflow/brainstorm/auto-parallel.md +14 -37
  47. package/.claude/skills/command-guide/reference/commands/workflow/brainstorm/synthesis.md +252 -350
  48. package/.claude/skills/command-guide/reference/commands/workflow/init.md +2 -2
  49. package/.claude/skills/command-guide/reference/commands/workflow/lite-execute.md +52 -0
  50. package/.claude/skills/command-guide/reference/commands/workflow/lite-fix.md +621 -602
  51. package/.claude/skills/command-guide/reference/commands/workflow/lite-plan.md +46 -36
  52. package/.claude/skills/command-guide/reference/commands/workflow/review-fix.md +18 -58
  53. package/.claude/skills/command-guide/reference/commands/workflow/review-module-cycle.md +22 -52
  54. package/.claude/skills/command-guide/reference/commands/workflow/review-session-cycle.md +19 -48
  55. package/.claude/skills/command-guide/reference/commands/workflow/session/start.md +25 -5
  56. package/.claude/skills/command-guide/reference/commands/workflow/tdd-plan.md +1 -1
  57. package/.claude/skills/command-guide/reference/commands/workflow/test-fix-gen.md +7 -7
  58. package/.claude/skills/command-guide/reference/commands/workflow/tools/context-gather.md +434 -434
  59. package/.claude/skills/command-guide/reference/commands/workflow/tools/task-generate-agent.md +151 -11
  60. package/.claude/skills/command-guide/reference/commands/workflow/tools/task-generate-tdd.md +4 -4
  61. package/.claude/skills/command-guide/reference/commands/workflow/tools/test-task-generate.md +1 -1
  62. package/.claude/skills/command-guide/reference/commands/workflow/ui-design/generate.md +504 -504
  63. package/.claude/skills/command-guide/reference/commands/workflow/ui-design/import-from-code.md +537 -537
  64. package/.claude/workflows/context-search-strategy.md +77 -77
  65. package/.claude/workflows/tool-strategy.md +90 -71
  66. package/.claude/workflows/workflow-architecture.md +1 -1
  67. package/ccw/src/cli.js +7 -0
  68. package/ccw/src/commands/tool.js +181 -0
  69. package/ccw/src/core/dashboard-generator.js +18 -3
  70. package/ccw/src/core/lite-scanner.js +35 -11
  71. package/ccw/src/core/server.js +531 -46
  72. package/ccw/src/templates/dashboard-css/01-base.css +161 -0
  73. package/ccw/src/templates/dashboard-css/02-session.css +726 -0
  74. package/ccw/src/templates/dashboard-css/03-tasks.css +512 -0
  75. package/ccw/src/templates/dashboard-css/04-lite-tasks.css +843 -0
  76. package/ccw/src/templates/dashboard-css/05-context.css +2206 -0
  77. package/ccw/src/templates/dashboard-css/06-cards.css +1570 -0
  78. package/ccw/src/templates/dashboard-css/07-managers.css +936 -0
  79. package/ccw/src/templates/dashboard-css/08-review.css +1266 -0
  80. package/ccw/src/templates/dashboard-css/09-explorer.css +1397 -0
  81. package/ccw/src/templates/dashboard-js/components/global-notifications.js +219 -0
  82. package/ccw/src/templates/dashboard-js/components/hook-manager.js +10 -0
  83. package/ccw/src/templates/dashboard-js/components/mcp-manager.js +11 -1
  84. package/ccw/src/templates/dashboard-js/components/navigation.js +11 -5
  85. package/ccw/src/templates/dashboard-js/components/tabs-context.js +20 -20
  86. package/ccw/src/templates/dashboard-js/components/tabs-other.js +11 -11
  87. package/ccw/src/templates/dashboard-js/components/theme.js +29 -1
  88. package/ccw/src/templates/dashboard-js/main.js +4 -0
  89. package/ccw/src/templates/dashboard-js/state.js +5 -0
  90. package/ccw/src/templates/dashboard-js/views/explorer.js +852 -0
  91. package/ccw/src/templates/dashboard-js/views/home.js +13 -9
  92. package/ccw/src/templates/dashboard-js/views/hook-manager.js +8 -5
  93. package/ccw/src/templates/dashboard-js/views/lite-tasks.js +21 -16
  94. package/ccw/src/templates/dashboard-js/views/mcp-manager.js +90 -19
  95. package/ccw/src/templates/dashboard-js/views/project-overview.js +15 -11
  96. package/ccw/src/templates/dashboard-js/views/review-session.js +3 -3
  97. package/ccw/src/templates/dashboard-js/views/session-detail.js +38 -28
  98. package/ccw/src/templates/dashboard.html +129 -28
  99. package/ccw/src/tools/classify-folders.js +204 -0
  100. package/ccw/src/tools/convert-tokens-to-css.js +250 -0
  101. package/ccw/src/tools/detect-changed-modules.js +288 -0
  102. package/ccw/src/tools/discover-design-files.js +134 -0
  103. package/ccw/src/tools/edit-file.js +266 -0
  104. package/ccw/src/tools/generate-module-docs.js +416 -0
  105. package/ccw/src/tools/get-modules-by-depth.js +308 -0
  106. package/ccw/src/tools/index.js +176 -0
  107. package/ccw/src/tools/ui-generate-preview.js +327 -0
  108. package/ccw/src/tools/ui-instantiate-prototypes.js +301 -0
  109. package/ccw/src/tools/update-module-claude.js +380 -0
  110. package/package.json +1 -1
  111. package/.claude/skills/command-guide/reference/commands/workflow/status.md +0 -352
  112. package/ccw/src/core/server.js.bak +0 -385
  113. package/ccw/src/core/server_original.bak +0 -385
  114. package/ccw/src/templates/dashboard.css +0 -8187
  115. package/ccw/src/templates/dashboard_tailwind.html +0 -42
  116. package/ccw/src/templates/dashboard_test.html +0 -37
  117. package/ccw/src/templates/tailwind-base.css +0 -212
@@ -1,4 +1,8 @@
1
1
  #!/bin/bash
2
+ # ⚠️ DEPRECATED: This script is deprecated.
3
+ # Please use: ccw tool exec classify_folders '{"path":".","outputFormat":"json"}'
4
+ # This file will be removed in a future version.
5
+
2
6
  # Classify folders by type for documentation generation
3
7
  # Usage: get_modules_by_depth.sh | classify-folders.sh
4
8
  # Output: folder_path|folder_type|code:N|dirs:N
@@ -1,4 +1,8 @@
1
1
  #!/bin/bash
2
+ # ⚠️ DEPRECATED: This script is deprecated.
3
+ # Please use: ccw tool exec convert_tokens_to_css '{"inputPath":"design-tokens.json","outputPath":"tokens.css"}'
4
+ # This file will be removed in a future version.
5
+
2
6
  # Convert design-tokens.json to tokens.css with Google Fonts import and global font rules
3
7
  # Usage: cat design-tokens.json | ./convert_tokens_to_css.sh > tokens.css
4
8
  # Or: ./convert_tokens_to_css.sh < design-tokens.json > tokens.css
@@ -1,4 +1,8 @@
1
1
  #!/bin/bash
2
+ # ⚠️ DEPRECATED: This script is deprecated.
3
+ # Please use: ccw tool exec detect_changed_modules '{"baseBranch":"main","format":"list"}'
4
+ # This file will be removed in a future version.
5
+
2
6
  # Detect modules affected by git changes or recent modifications
3
7
  # Usage: detect_changed_modules.sh [format]
4
8
  # format: list|grouped|paths (default: paths)
@@ -154,4 +158,4 @@ detect_changed_modules() {
154
158
  # Execute function if script is run directly
155
159
  if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
156
160
  detect_changed_modules "$@"
157
- fi
161
+ fi
@@ -1,83 +1,87 @@
1
- #!/usr/bin/env bash
2
- # discover-design-files.sh - Discover design-related files and output JSON
3
- # Usage: discover-design-files.sh <source_dir> <output_json>
4
-
5
- set -euo pipefail
6
-
7
- source_dir="${1:-.}"
8
- output_json="${2:-discovered-files.json}"
9
-
10
- # Function to find and format files as JSON array
11
- find_files() {
12
- local pattern="$1"
13
- local files
14
- files=$(eval "find \"$source_dir\" -type f $pattern \
15
- ! -path \"*/node_modules/*\" \
16
- ! -path \"*/dist/*\" \
17
- ! -path \"*/.git/*\" \
18
- ! -path \"*/build/*\" \
19
- ! -path \"*/coverage/*\" \
20
- 2>/dev/null | sort || true")
21
-
22
- local count
23
- if [ -z "$files" ]; then
24
- count=0
25
- else
26
- count=$(echo "$files" | grep -c . || echo 0)
27
- fi
28
- local json_files=""
29
-
30
- if [ "$count" -gt 0 ]; then
31
- json_files=$(echo "$files" | awk '{printf "\"%s\"%s\n", $0, (NR<'$count'?",":"")}' | tr '\n' ' ')
32
- fi
33
-
34
- echo "$count|$json_files"
35
- }
36
-
37
- # Discover CSS/SCSS files
38
- css_result=$(find_files '\( -name "*.css" -o -name "*.scss" \)')
39
- css_count=${css_result%%|*}
40
- css_files=${css_result#*|}
41
-
42
- # Discover JS/TS files (all framework files)
43
- js_result=$(find_files '\( -name "*.js" -o -name "*.ts" -o -name "*.jsx" -o -name "*.tsx" -o -name "*.mjs" -o -name "*.cjs" -o -name "*.vue" -o -name "*.svelte" \)')
44
- js_count=${js_result%%|*}
45
- js_files=${js_result#*|}
46
-
47
- # Discover HTML files
48
- html_result=$(find_files '-name "*.html"')
49
- html_count=${html_result%%|*}
50
- html_files=${html_result#*|}
51
-
52
- # Calculate total
53
- total_count=$((css_count + js_count + html_count))
54
-
55
- # Generate JSON
56
- cat > "$output_json" << EOF
57
- {
58
- "discovery_time": "$(date -u +%Y-%m-%dT%H:%M:%SZ)",
59
- "source_directory": "$(cd "$source_dir" && pwd)",
60
- "file_types": {
61
- "css": {
62
- "count": $css_count,
63
- "files": [${css_files}]
64
- },
65
- "js": {
66
- "count": $js_count,
67
- "files": [${js_files}]
68
- },
69
- "html": {
70
- "count": $html_count,
71
- "files": [${html_files}]
72
- }
73
- },
74
- "total_files": $total_count
75
- }
76
- EOF
77
-
78
- # Ensure file is fully written and synchronized to disk
79
- # This prevents race conditions when the file is immediately read by another process
80
- sync "$output_json" 2>/dev/null || sync # Sync specific file, fallback to full sync
81
- sleep 0.1 # Additional safety: 100ms delay for filesystem metadata update
82
-
83
- echo "Discovered: CSS=$css_count, JS=$js_count, HTML=$html_count (Total: $total_count)" >&2
1
+ #!/usr/bin/env bash
2
+ # ⚠️ DEPRECATED: This script is deprecated.
3
+ # Please use: ccw tool exec discover_design_files '{"sourceDir":".","outputPath":"output.json"}'
4
+ # This file will be removed in a future version.
5
+
6
+ # discover-design-files.sh - Discover design-related files and output JSON
7
+ # Usage: discover-design-files.sh <source_dir> <output_json>
8
+
9
+ set -euo pipefail
10
+
11
+ source_dir="${1:-.}"
12
+ output_json="${2:-discovered-files.json}"
13
+
14
+ # Function to find and format files as JSON array
15
+ find_files() {
16
+ local pattern="$1"
17
+ local files
18
+ files=$(eval "find \"$source_dir\" -type f $pattern \
19
+ ! -path \"*/node_modules/*\" \
20
+ ! -path \"*/dist/*\" \
21
+ ! -path \"*/.git/*\" \
22
+ ! -path \"*/build/*\" \
23
+ ! -path \"*/coverage/*\" \
24
+ 2>/dev/null | sort || true")
25
+
26
+ local count
27
+ if [ -z "$files" ]; then
28
+ count=0
29
+ else
30
+ count=$(echo "$files" | grep -c . || echo 0)
31
+ fi
32
+ local json_files=""
33
+
34
+ if [ "$count" -gt 0 ]; then
35
+ json_files=$(echo "$files" | awk '{printf "\"%s\"%s\n", $0, (NR<'$count'?",":"")}' | tr '\n' ' ')
36
+ fi
37
+
38
+ echo "$count|$json_files"
39
+ }
40
+
41
+ # Discover CSS/SCSS files
42
+ css_result=$(find_files '\( -name "*.css" -o -name "*.scss" \)')
43
+ css_count=${css_result%%|*}
44
+ css_files=${css_result#*|}
45
+
46
+ # Discover JS/TS files (all framework files)
47
+ js_result=$(find_files '\( -name "*.js" -o -name "*.ts" -o -name "*.jsx" -o -name "*.tsx" -o -name "*.mjs" -o -name "*.cjs" -o -name "*.vue" -o -name "*.svelte" \)')
48
+ js_count=${js_result%%|*}
49
+ js_files=${js_result#*|}
50
+
51
+ # Discover HTML files
52
+ html_result=$(find_files '-name "*.html"')
53
+ html_count=${html_result%%|*}
54
+ html_files=${html_result#*|}
55
+
56
+ # Calculate total
57
+ total_count=$((css_count + js_count + html_count))
58
+
59
+ # Generate JSON
60
+ cat > "$output_json" << EOF
61
+ {
62
+ "discovery_time": "$(date -u +%Y-%m-%dT%H:%M:%SZ)",
63
+ "source_directory": "$(cd "$source_dir" && pwd)",
64
+ "file_types": {
65
+ "css": {
66
+ "count": $css_count,
67
+ "files": [${css_files}]
68
+ },
69
+ "js": {
70
+ "count": $js_count,
71
+ "files": [${js_files}]
72
+ },
73
+ "html": {
74
+ "count": $html_count,
75
+ "files": [${html_files}]
76
+ }
77
+ },
78
+ "total_files": $total_count
79
+ }
80
+ EOF
81
+
82
+ # Ensure file is fully written and synchronized to disk
83
+ # This prevents race conditions when the file is immediately read by another process
84
+ sync "$output_json" 2>/dev/null || sync # Sync specific file, fallback to full sync
85
+ sleep 0.1 # Additional safety: 100ms delay for filesystem metadata update
86
+
87
+ echo "Discovered: CSS=$css_count, JS=$js_count, HTML=$html_count (Total: $total_count)" >&2