claude-code-orchestrator-kit 1.4.0 → 1.4.15

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 (219) hide show
  1. package/.claude/agents/business/workers/lead-research-assistant.md +199 -0
  2. package/.claude/agents/database/workers/database-architect.md +3 -3
  3. package/.claude/agents/database/workers/supabase-auditor.md +7 -7
  4. package/.claude/agents/development/workers/code-reviewer.md +17 -2
  5. package/.claude/agents/frontend/workers/nextjs-ui-designer.md +30 -0
  6. package/.claude/agents/health/workers/bug-fixer.md +31 -2
  7. package/.claude/agents/health/workers/bug-hunter.md +0 -1
  8. package/.claude/agents/health/workers/dead-code-hunter.md +167 -75
  9. package/.claude/agents/health/workers/dead-code-remover.md +217 -66
  10. package/.claude/agents/health/workers/dependency-auditor.md +83 -24
  11. package/.claude/agents/health/workers/dependency-updater.md +0 -1
  12. package/.claude/agents/health/workers/security-scanner.md +0 -1
  13. package/.claude/agents/infrastructure/workers/deployment-engineer.md +446 -0
  14. package/.claude/agents/infrastructure/workers/infrastructure-specialist.md +2 -2
  15. package/.claude/agents/meta/workers/meta-agent-v3.md +22 -0
  16. package/.claude/agents/testing/workers/integration-tester.md +1 -1
  17. package/.claude/agents/testing/workers/test-writer.md +16 -0
  18. package/.claude/commands/health-bugs.md +14 -281
  19. package/.claude/commands/health-cleanup.md +14 -281
  20. package/.claude/commands/health-deps.md +14 -281
  21. package/.claude/commands/health-metrics.md +51 -709
  22. package/.claude/commands/health-reuse.md +14 -311
  23. package/.claude/commands/health-security.md +14 -281
  24. package/.claude/commands/push.md +17 -3
  25. package/.claude/commands/speckit.implement.md +0 -11
  26. package/.claude/commands/speckit.taskstoissues.md +95 -5
  27. package/.claude/commands/worktree.md +150 -0
  28. package/.claude/scripts/gates/check-bundle-size.sh +0 -0
  29. package/.claude/scripts/gates/check-coverage.sh +0 -0
  30. package/.claude/scripts/gates/check-security.sh +0 -0
  31. package/.claude/scripts/release.sh +469 -94
  32. package/.claude/skills/algorithmic-art/LICENSE.txt +202 -0
  33. package/.claude/skills/algorithmic-art/SKILL.md +405 -0
  34. package/.claude/skills/algorithmic-art/templates/generator_template.js +223 -0
  35. package/.claude/skills/algorithmic-art/templates/viewer.html +599 -0
  36. package/.claude/skills/artifacts-builder/LICENSE.txt +202 -0
  37. package/.claude/skills/artifacts-builder/SKILL.md +74 -0
  38. package/.claude/skills/artifacts-builder/scripts/bundle-artifact.sh +54 -0
  39. package/.claude/skills/artifacts-builder/scripts/init-artifact.sh +322 -0
  40. package/.claude/skills/artifacts-builder/scripts/shadcn-components.tar.gz +0 -0
  41. package/.claude/skills/bug-health-inline/SKILL.md +221 -0
  42. package/.claude/skills/bug-health-inline/references/worker-prompts.md +182 -0
  43. package/.claude/skills/canvas-design/LICENSE.txt +202 -0
  44. package/.claude/skills/canvas-design/SKILL.md +130 -0
  45. package/.claude/skills/canvas-design/canvas-fonts/ArsenalSC-OFL.txt +93 -0
  46. package/.claude/skills/canvas-design/canvas-fonts/ArsenalSC-Regular.ttf +0 -0
  47. package/.claude/skills/canvas-design/canvas-fonts/BigShoulders-Bold.ttf +0 -0
  48. package/.claude/skills/canvas-design/canvas-fonts/BigShoulders-OFL.txt +93 -0
  49. package/.claude/skills/canvas-design/canvas-fonts/BigShoulders-Regular.ttf +0 -0
  50. package/.claude/skills/canvas-design/canvas-fonts/Boldonse-OFL.txt +93 -0
  51. package/.claude/skills/canvas-design/canvas-fonts/Boldonse-Regular.ttf +0 -0
  52. package/.claude/skills/canvas-design/canvas-fonts/BricolageGrotesque-Bold.ttf +0 -0
  53. package/.claude/skills/canvas-design/canvas-fonts/BricolageGrotesque-OFL.txt +93 -0
  54. package/.claude/skills/canvas-design/canvas-fonts/BricolageGrotesque-Regular.ttf +0 -0
  55. package/.claude/skills/canvas-design/canvas-fonts/CrimsonPro-Bold.ttf +0 -0
  56. package/.claude/skills/canvas-design/canvas-fonts/CrimsonPro-Italic.ttf +0 -0
  57. package/.claude/skills/canvas-design/canvas-fonts/CrimsonPro-OFL.txt +93 -0
  58. package/.claude/skills/canvas-design/canvas-fonts/CrimsonPro-Regular.ttf +0 -0
  59. package/.claude/skills/canvas-design/canvas-fonts/DMMono-OFL.txt +93 -0
  60. package/.claude/skills/canvas-design/canvas-fonts/DMMono-Regular.ttf +0 -0
  61. package/.claude/skills/canvas-design/canvas-fonts/EricaOne-OFL.txt +94 -0
  62. package/.claude/skills/canvas-design/canvas-fonts/EricaOne-Regular.ttf +0 -0
  63. package/.claude/skills/canvas-design/canvas-fonts/GeistMono-Bold.ttf +0 -0
  64. package/.claude/skills/canvas-design/canvas-fonts/GeistMono-OFL.txt +93 -0
  65. package/.claude/skills/canvas-design/canvas-fonts/GeistMono-Regular.ttf +0 -0
  66. package/.claude/skills/canvas-design/canvas-fonts/Gloock-OFL.txt +93 -0
  67. package/.claude/skills/canvas-design/canvas-fonts/Gloock-Regular.ttf +0 -0
  68. package/.claude/skills/canvas-design/canvas-fonts/IBMPlexMono-Bold.ttf +0 -0
  69. package/.claude/skills/canvas-design/canvas-fonts/IBMPlexMono-OFL.txt +93 -0
  70. package/.claude/skills/canvas-design/canvas-fonts/IBMPlexMono-Regular.ttf +0 -0
  71. package/.claude/skills/canvas-design/canvas-fonts/IBMPlexSerif-Bold.ttf +0 -0
  72. package/.claude/skills/canvas-design/canvas-fonts/IBMPlexSerif-BoldItalic.ttf +0 -0
  73. package/.claude/skills/canvas-design/canvas-fonts/IBMPlexSerif-Italic.ttf +0 -0
  74. package/.claude/skills/canvas-design/canvas-fonts/IBMPlexSerif-Regular.ttf +0 -0
  75. package/.claude/skills/canvas-design/canvas-fonts/InstrumentSans-Bold.ttf +0 -0
  76. package/.claude/skills/canvas-design/canvas-fonts/InstrumentSans-BoldItalic.ttf +0 -0
  77. package/.claude/skills/canvas-design/canvas-fonts/InstrumentSans-Italic.ttf +0 -0
  78. package/.claude/skills/canvas-design/canvas-fonts/InstrumentSans-OFL.txt +93 -0
  79. package/.claude/skills/canvas-design/canvas-fonts/InstrumentSans-Regular.ttf +0 -0
  80. package/.claude/skills/canvas-design/canvas-fonts/InstrumentSerif-Italic.ttf +0 -0
  81. package/.claude/skills/canvas-design/canvas-fonts/InstrumentSerif-Regular.ttf +0 -0
  82. package/.claude/skills/canvas-design/canvas-fonts/Italiana-OFL.txt +93 -0
  83. package/.claude/skills/canvas-design/canvas-fonts/Italiana-Regular.ttf +0 -0
  84. package/.claude/skills/canvas-design/canvas-fonts/JetBrainsMono-Bold.ttf +0 -0
  85. package/.claude/skills/canvas-design/canvas-fonts/JetBrainsMono-OFL.txt +93 -0
  86. package/.claude/skills/canvas-design/canvas-fonts/JetBrainsMono-Regular.ttf +0 -0
  87. package/.claude/skills/canvas-design/canvas-fonts/Jura-Light.ttf +0 -0
  88. package/.claude/skills/canvas-design/canvas-fonts/Jura-Medium.ttf +0 -0
  89. package/.claude/skills/canvas-design/canvas-fonts/Jura-OFL.txt +93 -0
  90. package/.claude/skills/canvas-design/canvas-fonts/LibreBaskerville-OFL.txt +93 -0
  91. package/.claude/skills/canvas-design/canvas-fonts/LibreBaskerville-Regular.ttf +0 -0
  92. package/.claude/skills/canvas-design/canvas-fonts/Lora-Bold.ttf +0 -0
  93. package/.claude/skills/canvas-design/canvas-fonts/Lora-BoldItalic.ttf +0 -0
  94. package/.claude/skills/canvas-design/canvas-fonts/Lora-Italic.ttf +0 -0
  95. package/.claude/skills/canvas-design/canvas-fonts/Lora-OFL.txt +93 -0
  96. package/.claude/skills/canvas-design/canvas-fonts/Lora-Regular.ttf +0 -0
  97. package/.claude/skills/canvas-design/canvas-fonts/NationalPark-Bold.ttf +0 -0
  98. package/.claude/skills/canvas-design/canvas-fonts/NationalPark-OFL.txt +93 -0
  99. package/.claude/skills/canvas-design/canvas-fonts/NationalPark-Regular.ttf +0 -0
  100. package/.claude/skills/canvas-design/canvas-fonts/NothingYouCouldDo-OFL.txt +93 -0
  101. package/.claude/skills/canvas-design/canvas-fonts/NothingYouCouldDo-Regular.ttf +0 -0
  102. package/.claude/skills/canvas-design/canvas-fonts/Outfit-Bold.ttf +0 -0
  103. package/.claude/skills/canvas-design/canvas-fonts/Outfit-OFL.txt +93 -0
  104. package/.claude/skills/canvas-design/canvas-fonts/Outfit-Regular.ttf +0 -0
  105. package/.claude/skills/canvas-design/canvas-fonts/PixelifySans-Medium.ttf +0 -0
  106. package/.claude/skills/canvas-design/canvas-fonts/PixelifySans-OFL.txt +93 -0
  107. package/.claude/skills/canvas-design/canvas-fonts/PoiretOne-OFL.txt +93 -0
  108. package/.claude/skills/canvas-design/canvas-fonts/PoiretOne-Regular.ttf +0 -0
  109. package/.claude/skills/canvas-design/canvas-fonts/RedHatMono-Bold.ttf +0 -0
  110. package/.claude/skills/canvas-design/canvas-fonts/RedHatMono-OFL.txt +93 -0
  111. package/.claude/skills/canvas-design/canvas-fonts/RedHatMono-Regular.ttf +0 -0
  112. package/.claude/skills/canvas-design/canvas-fonts/Silkscreen-OFL.txt +93 -0
  113. package/.claude/skills/canvas-design/canvas-fonts/Silkscreen-Regular.ttf +0 -0
  114. package/.claude/skills/canvas-design/canvas-fonts/SmoochSans-Medium.ttf +0 -0
  115. package/.claude/skills/canvas-design/canvas-fonts/SmoochSans-OFL.txt +93 -0
  116. package/.claude/skills/canvas-design/canvas-fonts/Tektur-Medium.ttf +0 -0
  117. package/.claude/skills/canvas-design/canvas-fonts/Tektur-OFL.txt +93 -0
  118. package/.claude/skills/canvas-design/canvas-fonts/Tektur-Regular.ttf +0 -0
  119. package/.claude/skills/canvas-design/canvas-fonts/WorkSans-Bold.ttf +0 -0
  120. package/.claude/skills/canvas-design/canvas-fonts/WorkSans-BoldItalic.ttf +0 -0
  121. package/.claude/skills/canvas-design/canvas-fonts/WorkSans-Italic.ttf +0 -0
  122. package/.claude/skills/canvas-design/canvas-fonts/WorkSans-OFL.txt +93 -0
  123. package/.claude/skills/canvas-design/canvas-fonts/WorkSans-Regular.ttf +0 -0
  124. package/.claude/skills/canvas-design/canvas-fonts/YoungSerif-OFL.txt +93 -0
  125. package/.claude/skills/canvas-design/canvas-fonts/YoungSerif-Regular.ttf +0 -0
  126. package/.claude/skills/changelog-generator/SKILL.md +104 -0
  127. package/.claude/skills/cleanup-health-inline/SKILL.md +224 -0
  128. package/.claude/skills/code-reviewer/SKILL.md +209 -0
  129. package/.claude/skills/code-reviewer/references/code_review_checklist.md +103 -0
  130. package/.claude/skills/code-reviewer/references/coding_standards.md +103 -0
  131. package/.claude/skills/code-reviewer/references/common_antipatterns.md +103 -0
  132. package/.claude/skills/code-reviewer/scripts/code_quality_checker.py +114 -0
  133. package/.claude/skills/code-reviewer/scripts/pr_analyzer.py +114 -0
  134. package/.claude/skills/code-reviewer/scripts/review_report_generator.py +114 -0
  135. package/.claude/skills/content-research-writer/SKILL.md +538 -0
  136. package/.claude/skills/deps-health-inline/SKILL.md +227 -0
  137. package/.claude/skills/frontend-aesthetics/SKILL.md +51 -396
  138. package/.claude/skills/git-commit-helper/SKILL.md +203 -0
  139. package/.claude/skills/lead-research-assistant/SKILL.md +199 -0
  140. package/.claude/skills/reuse-health-inline/SKILL.md +248 -0
  141. package/.claude/skills/rollback-changes/SKILL.md +50 -524
  142. package/.claude/skills/run-quality-gate/SKILL.md +36 -346
  143. package/.claude/skills/security-health-inline/SKILL.md +224 -0
  144. package/.claude/skills/senior-devops/SKILL.md +209 -0
  145. package/.claude/skills/senior-devops/references/cicd_pipeline_guide.md +103 -0
  146. package/.claude/skills/senior-devops/references/deployment_strategies.md +103 -0
  147. package/.claude/skills/senior-devops/references/infrastructure_as_code.md +103 -0
  148. package/.claude/skills/senior-devops/scripts/deployment_manager.py +114 -0
  149. package/.claude/skills/senior-devops/scripts/pipeline_generator.py +114 -0
  150. package/.claude/skills/senior-devops/scripts/terraform_scaffolder.py +114 -0
  151. package/.claude/skills/senior-prompt-engineer/SKILL.md +226 -0
  152. package/.claude/skills/senior-prompt-engineer/references/agentic_system_design.md +80 -0
  153. package/.claude/skills/senior-prompt-engineer/references/llm_evaluation_frameworks.md +80 -0
  154. package/.claude/skills/senior-prompt-engineer/references/prompt_engineering_patterns.md +80 -0
  155. package/.claude/skills/senior-prompt-engineer/scripts/agent_orchestrator.py +100 -0
  156. package/.claude/skills/senior-prompt-engineer/scripts/prompt_optimizer.py +100 -0
  157. package/.claude/skills/senior-prompt-engineer/scripts/rag_evaluator.py +100 -0
  158. package/.claude/skills/setup-knip/SKILL.md +372 -0
  159. package/.claude/skills/systematic-debugging/CREATION-LOG.md +119 -0
  160. package/.claude/skills/systematic-debugging/SKILL.md +296 -0
  161. package/.claude/skills/systematic-debugging/condition-based-waiting-example.ts +158 -0
  162. package/.claude/skills/systematic-debugging/condition-based-waiting.md +115 -0
  163. package/.claude/skills/systematic-debugging/defense-in-depth.md +122 -0
  164. package/.claude/skills/systematic-debugging/find-polluter.sh +63 -0
  165. package/.claude/skills/systematic-debugging/root-cause-tracing.md +169 -0
  166. package/.claude/skills/systematic-debugging/test-academic.md +14 -0
  167. package/.claude/skills/systematic-debugging/test-pressure-1.md +58 -0
  168. package/.claude/skills/systematic-debugging/test-pressure-2.md +68 -0
  169. package/.claude/skills/systematic-debugging/test-pressure-3.md +69 -0
  170. package/.claude/skills/theme-factory/LICENSE.txt +202 -0
  171. package/.claude/skills/theme-factory/SKILL.md +59 -0
  172. package/.claude/skills/theme-factory/theme-showcase.pdf +0 -0
  173. package/.claude/skills/theme-factory/themes/arctic-frost.md +19 -0
  174. package/.claude/skills/theme-factory/themes/botanical-garden.md +19 -0
  175. package/.claude/skills/theme-factory/themes/desert-rose.md +19 -0
  176. package/.claude/skills/theme-factory/themes/forest-canopy.md +19 -0
  177. package/.claude/skills/theme-factory/themes/golden-hour.md +19 -0
  178. package/.claude/skills/theme-factory/themes/midnight-galaxy.md +19 -0
  179. package/.claude/skills/theme-factory/themes/modern-minimalist.md +19 -0
  180. package/.claude/skills/theme-factory/themes/ocean-depths.md +19 -0
  181. package/.claude/skills/theme-factory/themes/sunset-boulevard.md +19 -0
  182. package/.claude/skills/theme-factory/themes/tech-innovation.md +19 -0
  183. package/.claude/skills/ui-design-system/SKILL.md +32 -0
  184. package/.claude/skills/ui-design-system/scripts/design_token_generator.py +529 -0
  185. package/.claude/skills/ux-researcher-designer/SKILL.md +30 -0
  186. package/.claude/skills/ux-researcher-designer/scripts/persona_generator.py +508 -0
  187. package/.claude/skills/webapp-testing/LICENSE.txt +202 -0
  188. package/.claude/skills/webapp-testing/SKILL.md +96 -0
  189. package/.claude/skills/webapp-testing/examples/console_logging.py +35 -0
  190. package/.claude/skills/webapp-testing/examples/element_discovery.py +40 -0
  191. package/.claude/skills/webapp-testing/examples/static_html_automation.py +33 -0
  192. package/.claude/skills/webapp-testing/scripts/with_server.py +106 -0
  193. package/.gitignore +4 -0
  194. package/README.md +492 -1093
  195. package/README.ru.md +719 -0
  196. package/docs/Agents Ecosystem/AGENT-ORCHESTRATION.md +2 -2
  197. package/docs/{SPECKIT-GUIDE.md → COMMANDS-GUIDE.md} +252 -20
  198. package/docs/reports/skills/new-skills-analysis-2025-12.md +331 -0
  199. package/package.json +11 -3
  200. package/.claude/agents/health/orchestrators/bug-orchestrator.md +0 -1084
  201. package/.claude/agents/health/orchestrators/dead-code-orchestrator.md +0 -1064
  202. package/.claude/agents/health/orchestrators/dependency-orchestrator.md +0 -1064
  203. package/.claude/agents/health/orchestrators/reuse-orchestrator.md +0 -1112
  204. package/.claude/agents/health/orchestrators/security-orchestrator.md +0 -1064
  205. package/.claude/commands/worktree-cleanup.md +0 -382
  206. package/.claude/commands/worktree-create.md +0 -287
  207. package/.claude/commands/worktree-list.md +0 -239
  208. package/.claude/commands/worktree-remove.md +0 -339
  209. package/.claude/project-index.md +0 -75
  210. package/.claude/skills/load-project-context/SKILL.md +0 -89
  211. package/.claude/skills/resume-session/SKILL.md +0 -164
  212. package/.claude/skills/save-session-context/SKILL.md +0 -123
  213. package/.claude/templates/project-index.template.md +0 -67
  214. package/.claude/templates/session/context.template.md +0 -40
  215. package/.claude/templates/session/log.template.md +0 -72
  216. package/.github/BRANCH_PROTECTION.md +0 -137
  217. package/.github/workflows/build.yml +0 -70
  218. package/.github/workflows/deploy-staging.yml +0 -90
  219. package/.github/workflows/test.yml +0 -104
@@ -1,327 +1,30 @@
1
1
  ---
2
- description: Code reuse detection and consolidation workflow with full cycle management
2
+ description: Code duplication detection and consolidation workflow (inline orchestration)
3
3
  ---
4
4
 
5
5
  # Code Reuse Health Check
6
6
 
7
- > **PATTERN**: Agent-based orchestration (see `docs/Agents Ecosystem/AGENT-ORCHESTRATION.md` for details)
7
+ Execute the `reuse-health-inline` skill for inline orchestration.
8
8
 
9
- Complete code duplication detection and consolidation workflow with orchestrator-worker coordination.
9
+ **You ARE the orchestrator.** Do not spawn a separate orchestrator agent.
10
10
 
11
- **What it does:**
12
- - Full duplication detection (types, schemas, constants, utilities)
13
- - Staged consolidation (HIGH → MEDIUM → LOW priority)
14
- - Quality gates after each stage
15
- - Verification scan
16
- - Up to 3 iterations if issues remain
17
- - Comprehensive final report
11
+ ## Quick Start
18
12
 
19
- **No configuration needed** - runs comprehensive checks always.
13
+ 1. Read `.claude/skills/reuse-health-inline/SKILL.md`
14
+ 2. Follow the workflow phases directly
15
+ 3. Use Task tool only for workers (reuse-hunter, reuse-fixer)
16
+ 4. Run quality gates inline via Bash
20
17
 
21
- ---
22
-
23
- ## Your Task
24
-
25
- ### Step 1: Phase 0 - Invoke Orchestrator (Pre-flight)
26
-
27
- Use Task tool to invoke reuse-orchestrator for pre-flight validation:
18
+ ## Workflow Summary
28
19
 
29
20
  ```
30
- subagent_type: "reuse-orchestrator"
31
- description: "Reuse orchestrator pre-flight"
32
- prompt: "Execute Phase 0: Pre-flight Validation
33
-
34
- Tasks:
35
- 1. Validate environment (package.json, scripts, git status)
36
- 2. Initialize progress tracking via TodoWrite
37
- 3. Initialize iteration tracking (iteration=1, max=3)
38
- 4. Create .tmp/current/plans/reuse-detection.json for rollback tracking
39
- 5. Report pre-flight status
40
-
41
- IMPORTANT: After completing pre-flight, create .tmp/current/plans/reuse-detection.json and return control to main session.
42
-
43
- Return the following information:
44
- - Pre-flight status (✅/⛔)
45
- - Environment validation results
46
- - Plan file path created
47
- - Ready for next phase: true/false
48
- "
21
+ Pre-flight → Detect → [Consolidate by Priority] → Verify → Report
49
22
  ```
50
23
 
51
- **Then**: Wait for orchestrator to return.
24
+ **Workers**: reuse-hunter, reuse-fixer
25
+ **Quality gates**: `pnpm type-check && pnpm build`
26
+ **Max iterations**: 3
52
27
 
53
28
  ---
54
29
 
55
- ### Step 2: Phase 1 - Invoke reuse-hunter (Detection)
56
-
57
- After orchestrator returns:
58
-
59
- 1. **Read plan file** to confirm it was created:
60
- ```
61
- Use Read tool: .tmp/current/plans/reuse-detection.json
62
- Verify nextAgent === "reuse-hunter"
63
- ```
64
-
65
- 2. **Invoke reuse-hunter** using Task tool:
66
- ```
67
- subagent_type: "reuse-hunter"
68
- description: "Code duplication detection phase"
69
- prompt: "Execute code duplication detection based on plan file: .tmp/current/plans/reuse-detection.json
70
-
71
- Read the plan file and execute comprehensive duplication detection:
72
- - Scan entire codebase for duplicated types, interfaces, Zod schemas
73
- - Find duplicated constants and configuration objects
74
- - Identify utility functions that are copied instead of imported
75
- - Categorize by priority (HIGH → MEDIUM → LOW)
76
- - Generate reuse-hunting-report.md
77
-
78
- Return to main session when complete."
79
- ```
80
-
81
- **Then**: Wait for reuse-hunter to return with report.
82
-
83
- ---
84
-
85
- ### Step 3: Quality Gate 1 - Resume Orchestrator (Validate Detection)
86
-
87
- After reuse-hunter returns:
88
-
89
- 1. **Resume orchestrator** for validation using Task tool:
90
- ```
91
- subagent_type: "reuse-orchestrator"
92
- description: "Validate duplication detection"
93
- prompt: "Execute Quality Gate 1: Detection Validation
94
-
95
- Phase: Validate reuse-hunter output
96
-
97
- Tasks:
98
- 1. Verify reuse-hunting-report.md exists
99
- 2. Validate report structure (required sections)
100
- 3. Parse duplication counts by priority
101
- 4. Run type-check validation (non-blocking warning)
102
- 5. Report gate results
103
-
104
- IMPORTANT: After validation, if duplications found:
105
- - Create .tmp/current/plans/reuse-consolidation-{priority}.json for highest priority
106
- - Return control to main session
107
-
108
- If no duplications found or all gates fail:
109
- - Skip to final summary
110
- - Return control
111
-
112
- Return the following:
113
- - Gate status (✅ PASSED / ⛔ FAILED / ⚠️ WARNINGS)
114
- - Duplication counts by priority
115
- - Next phase: consolidation-high / consolidation-medium / final-summary
116
- - Plan file created (if applicable)
117
- "
118
- ```
119
-
120
- **Then**: Wait for orchestrator validation results.
121
-
122
- ---
123
-
124
- ### Step 4: Phase 2-4 - Consolidation Stages (Iterative)
125
-
126
- After orchestrator returns with consolidation plan:
127
-
128
- **For each priority level** (HIGH → MEDIUM → LOW):
129
-
130
- 1. **Check if this priority has duplications**:
131
- - Read orchestrator response
132
- - If orchestrator says "skip to next priority" → continue loop
133
- - If orchestrator says "final summary" → go to Step 5
134
-
135
- 2. **Read consolidation plan**:
136
- ```
137
- Use Read tool: .tmp/current/plans/reuse-consolidation-{priority}.json
138
- Verify nextAgent === "reuse-fixer"
139
- Verify config.priority === "{current-priority}"
140
- ```
141
-
142
- 3. **Invoke reuse-fixer** using Task tool:
143
- ```
144
- subagent_type: "reuse-fixer"
145
- description: "Consolidate {priority} duplications"
146
- prompt: "Execute code consolidation based on plan file: .tmp/current/plans/reuse-consolidation-{priority}.json
147
-
148
- Read the plan file and consolidate duplications for priority: {priority}
149
- - Read reuse-hunting-report.md for duplication list
150
- - For each duplication:
151
- - Determine canonical location (usually shared-types)
152
- - Create/update canonical file
153
- - Replace duplicates with re-exports
154
- - Log changes to .reuse-changes.json
155
- - Update reuse-consolidation-implemented.md (consolidated report)
156
-
157
- Return to main session when complete."
158
- ```
159
-
160
- 4. **Resume orchestrator** for validation:
161
- ```
162
- subagent_type: "reuse-orchestrator"
163
- description: "Validate {priority} consolidation"
164
- prompt: "Execute Quality Gate 2: Consolidation Validation for priority={priority}
165
-
166
- Tasks:
167
- 1. Verify reuse-consolidation-implemented.md exists
168
- 2. Run type-check (BLOCKING)
169
- 3. Run build (BLOCKING)
170
- 4. Parse consolidation success rate
171
- 5. Check if retry needed (if < 80% success)
172
-
173
- If validation PASSES and more priorities remain:
174
- - Create next .tmp/current/plans/reuse-consolidation-{priority}.json
175
- - Return control
176
-
177
- If validation FAILS:
178
- - Provide rollback instructions
179
- - Return control with error
180
-
181
- If all priorities complete:
182
- - Proceed to verification phase
183
- - Return control
184
-
185
- Return:
186
- - Gate status
187
- - Consolidation success rate
188
- - Next phase: consolidation-{next-priority} / verification / final-summary
189
- "
190
- ```
191
-
192
- 5. **Repeat** for next priority level.
193
-
194
- ---
195
-
196
- ### Step 5: Phase 5 - Verification
197
-
198
- After all consolidation stages complete:
199
-
200
- 1. **Resume orchestrator** for verification:
201
- ```
202
- subagent_type: "reuse-orchestrator"
203
- description: "Create verification plan"
204
- prompt: "Execute Phase 5: Verification Preparation
205
-
206
- Create .tmp/current/plans/reuse-verification.json for re-scanning codebase.
207
-
208
- Return control with plan file path."
209
- ```
210
-
211
- 2. **Invoke reuse-hunter** for verification:
212
- ```
213
- subagent_type: "reuse-hunter"
214
- description: "Verification scan"
215
- prompt: "Execute verification scan based on: .tmp/current/plans/reuse-verification.json
216
-
217
- Re-scan codebase to verify consolidations. Overwrites reuse-hunting-report.md.
218
-
219
- Return when complete."
220
- ```
221
-
222
- 3. **Resume orchestrator** for verification validation:
223
- ```
224
- subagent_type: "reuse-orchestrator"
225
- description: "Validate verification"
226
- prompt: "Execute Quality Gate 3: Verification Validation
227
-
228
- Compare original reuse-hunting-report.md (baseline) with new scan:
229
- - Count duplications resolved
230
- - Check if new duplications introduced
231
- - Determine if iteration needed
232
-
233
- Return:
234
- - Verification status
235
- - Duplications remaining
236
- - Iteration decision: iterate / complete
237
- "
238
- ```
239
-
240
- ---
241
-
242
- ### Step 6: Final Summary
243
-
244
- After all phases complete:
245
-
246
- 1. **Resume orchestrator** for final summary:
247
- ```
248
- subagent_type: "reuse-orchestrator"
249
- description: "Generate final summary"
250
- prompt: "Execute Phase 7: Final Summary
251
-
252
- Generate comprehensive reuse-orchestration-summary.md:
253
- - All duplications detected
254
- - All consolidations performed
255
- - Success rates by priority
256
- - Validation results
257
- - Iteration summary
258
- - Cleanup instructions
259
-
260
- Return final summary."
261
- ```
262
-
263
- 2. **Display results** to user:
264
- ```
265
- Read reuse-orchestration-summary.md
266
- Display key metrics
267
- Show validation status
268
- List next steps
269
- ```
270
-
271
- ---
272
-
273
- ## Example Usage
274
-
275
- ```bash
276
- # Run complete code reuse workflow
277
- /health-reuse
278
- ```
279
-
280
- ---
281
-
282
- ## Architecture Notes
283
-
284
- **Orchestrator Role**:
285
- - Creates plan files
286
- - Validates worker outputs
287
- - Returns control to main session
288
- - NO direct worker invocation
289
-
290
- **Main Session Role** (this command):
291
- - Reads plan files
292
- - Invokes workers via Task tool
293
- - Resumes orchestrator for validation
294
- - Manages full cycle
295
-
296
- **Worker Role**:
297
- - Reads plan file
298
- - Executes work
299
- - Generates report
300
- - Returns to main session
301
-
302
- This pattern follows Claude Code's actual capabilities (no auto-invoke).
303
-
304
- ---
305
-
306
- ## Duplication Categories
307
-
308
- **Types/Interfaces** (shared-types):
309
- - Database types
310
- - API types
311
- - Zod schemas
312
- - Common enums
313
-
314
- **Constants** (shared-types):
315
- - Configuration objects
316
- - MIME types, file limits
317
- - Feature flags
318
-
319
- **Utilities** (shared package or re-export):
320
- - Helper functions
321
- - Validation utilities
322
- - Formatters
323
-
324
- **Single Source of Truth Pattern**:
325
- 1. Canonical location: `packages/shared-types/src/`
326
- 2. Other packages: `export * from '@megacampus/shared-types/{module}'`
327
- 3. NEVER copy code between packages
30
+ Now read and execute the skill: `.claude/skills/reuse-health-inline/SKILL.md`
@@ -1,297 +1,30 @@
1
1
  ---
2
- description: Security vulnerability detection and remediation workflow with full cycle management
2
+ description: Security vulnerability detection and remediation workflow (inline orchestration)
3
3
  ---
4
4
 
5
5
  # Security Health Check
6
6
 
7
- > **PATTERN**: Agent-based orchestration (see `docs/Agents Ecosystem/AGENT-ORCHESTRATION.md` for details)
7
+ Execute the `security-health-inline` skill for inline orchestration.
8
8
 
9
- Complete security scanning and vulnerability fixing workflow with orchestrator-worker coordination.
9
+ **You ARE the orchestrator.** Do not spawn a separate orchestrator agent.
10
10
 
11
- **What it does:**
12
- - Full security scan (SQL injection, XSS, auth issues, RLS policies, secrets)
13
- - Staged fixing (critical → high → medium → low)
14
- - Quality gates after each stage
15
- - Verification scan
16
- - Up to 3 iterations if issues remain
17
- - Comprehensive final report
11
+ ## Quick Start
18
12
 
19
- **No configuration needed** - runs comprehensive security audit always.
13
+ 1. Read `.claude/skills/security-health-inline/SKILL.md`
14
+ 2. Follow the workflow phases directly
15
+ 3. Use Task tool only for workers (security-scanner, vulnerability-fixer)
16
+ 4. Run quality gates inline via Bash
20
17
 
21
- ---
22
-
23
- ## Your Task
24
-
25
- ### Step 1: Phase 0 - Invoke Orchestrator (Pre-flight)
26
-
27
- Use Task tool to invoke security-orchestrator for pre-flight validation:
18
+ ## Workflow Summary
28
19
 
29
20
  ```
30
- subagent_type: "security-orchestrator"
31
- description: "Security orchestrator pre-flight"
32
- prompt: "Execute Phase 0: Pre-flight Validation
33
-
34
- Tasks:
35
- 1. Validate environment (package.json, scripts, git status)
36
- 2. Initialize progress tracking via TodoWrite
37
- 3. Initialize iteration tracking (iteration=1, max=3)
38
- 4. Create .tmp/current/plans/security-detection.json for rollback tracking
39
- 5. Report pre-flight status
40
-
41
- IMPORTANT: After completing pre-flight, create .tmp/current/plans/security-detection.json and return control to main session.
42
-
43
- Return the following information:
44
- - Pre-flight status (✅/⛔)
45
- - Environment validation results
46
- - Plan file path created
47
- - Ready for next phase: true/false
48
- "
21
+ Pre-flight → Detect → [Fix by Priority] → Verify → Report
49
22
  ```
50
23
 
51
- **Then**: Wait for orchestrator to return.
52
-
53
- ---
54
-
55
- ### Step 2: Phase 1 - Invoke security-scanner (Detection)
56
-
57
- After orchestrator returns:
58
-
59
- 1. **Read plan file** to confirm it was created:
60
- ```
61
- Use Read tool: .tmp/current/plans/security-detection.json
62
- Verify nextAgent === "security-scanner"
63
- ```
64
-
65
- 2. **Invoke security-scanner** using Task tool:
66
- ```
67
- subagent_type: "security-scanner"
68
- description: "Security detection phase"
69
- prompt: "Execute vulnerability detection based on plan file: .tmp/current/plans/security-detection.json
70
-
71
- Read the plan file and execute comprehensive vulnerability detection:
72
- - Scan entire codebase
73
- - Categorize by priority (critical → high → medium → low)
74
- - Generate security-scan-report.md
75
-
76
- Return to main session when complete."
77
- ```
78
-
79
- **Then**: Wait for security-scanner to return with report.
80
-
81
- ---
82
-
83
- ### Step 3: Quality Gate 1 - Resume Orchestrator (Validate Detection)
84
-
85
- After security-scanner returns:
86
-
87
- 1. **Resume orchestrator** for validation using Task tool:
88
- ```
89
- subagent_type: "security-orchestrator"
90
- description: "Validate vulnerability detection"
91
- prompt: "Execute Quality Gate 1: Detection Validation
92
-
93
- Phase: Validate security-scanner output
94
-
95
- Tasks:
96
- 1. Verify security-scan-report.md exists
97
- 2. Validate report structure (required sections)
98
- 3. Parse vulnerability counts by priority
99
- 4. Run type-check validation (non-blocking warning)
100
- 5. Report gate results
101
-
102
- IMPORTANT: After validation, if vulnerabilitys found:
103
- - Create .tmp/current/plans/security-fixing-{priority}.json for critical priority (or highest available)
104
- - Return control to main session
105
-
106
- If no vulnerabilitys found or all gates fail:
107
- - Skip to final summary
108
- - Return control
109
-
110
- Return the following:
111
- - Gate status (✅ PASSED / ⛔ FAILED / ⚠️ WARNINGS)
112
- - Security counts by priority
113
- - Next phase: fixing-critical / fixing-high / final-summary
114
- - Plan file created (if applicable)
115
- "
116
- ```
117
-
118
- **Then**: Wait for orchestrator validation results.
119
-
120
- ---
121
-
122
- ### Step 4: Phase 2-5 - Fixing Stages (Iterative)
123
-
124
- After orchestrator returns with fixing plan:
125
-
126
- **For each priority level** (critical → high → medium → low):
127
-
128
- 1. **Check if this priority has vulnerabilitys**:
129
- - Read orchestrator response
130
- - If orchestrator says "skip to next priority" → continue loop
131
- - If orchestrator says "final summary" → go to Step 5
132
-
133
- 2. **Read fixing plan**:
134
- ```
135
- Use Read tool: .tmp/current/plans/security-fixing-{priority}.json
136
- Verify nextAgent === "vulnerability-fixer"
137
- Verify config.priority === "{current-priority}"
138
- ```
139
-
140
- 3. **Invoke vulnerability-fixer** using Task tool:
141
- ```
142
- subagent_type: "vulnerability-fixer"
143
- description: "Fix {priority} vulnerabilitys"
144
- prompt: "Execute vulnerability fixing based on plan file: .tmp/current/plans/security-fixing-{priority}.json
145
-
146
- Read the plan file and fix vulnerabilitys for priority: {priority}
147
- - Read security-scan-report.md for vulnerability list
148
- - Fix vulnerabilitys one by one
149
- - Log changes to .vulnerability-changes.json
150
- - Update security-fixes-implemented.md (consolidated report)
151
-
152
- Return to main session when complete."
153
- ```
154
-
155
- 4. **Resume orchestrator** for validation:
156
- ```
157
- subagent_type: "security-orchestrator"
158
- description: "Validate {priority} fixes"
159
- prompt: "Execute Quality Gate 2: Fixes Validation for priority={priority}
160
-
161
- Tasks:
162
- 1. Verify security-fixes-implemented.md exists
163
- 2. Run type-check (BLOCKING)
164
- 3. Run build (BLOCKING)
165
- 4. Parse fix success rate
166
- 5. Check if retry needed (if < 80% success)
167
-
168
- If validation PASSES and more priorities remain:
169
- - Create next .tmp/current/plans/security-fixing-{priority}.json
170
- - Return control
171
-
172
- If validation FAILS:
173
- - Provide rollback instructions
174
- - Return control with error
175
-
176
- If all priorities complete:
177
- - Proceed to verification phase
178
- - Return control
179
-
180
- Return:
181
- - Gate status
182
- - Fix success rate
183
- - Next phase: fixing-{next-priority} / verification / final-summary
184
- "
185
- ```
186
-
187
- 5. **Repeat** for next priority level.
24
+ **Workers**: security-scanner, vulnerability-fixer
25
+ **Quality gates**: `pnpm type-check && pnpm build`
26
+ **Max iterations**: 3
188
27
 
189
28
  ---
190
29
 
191
- ### Step 5: Phase 6 - Verification
192
-
193
- After all fixing stages complete:
194
-
195
- 1. **Resume orchestrator** for verification:
196
- ```
197
- subagent_type: "security-orchestrator"
198
- description: "Create verification plan"
199
- prompt: "Execute Phase 6: Verification Preparation
200
-
201
- Create .tmp/current/plans/security-verification.json for re-scanning codebase.
202
-
203
- Return control with plan file path."
204
- ```
205
-
206
- 2. **Invoke security-scanner** for verification:
207
- ```
208
- subagent_type: "security-scanner"
209
- description: "Verification scan"
210
- prompt: "Execute verification scan based on: .tmp/current/plans/security-verification.json
211
-
212
- Re-scan codebase to verify fixes. Overwrites security-scan-report.md.
213
-
214
- Return when complete."
215
- ```
216
-
217
- 3. **Resume orchestrator** for verification validation:
218
- ```
219
- subagent_type: "security-orchestrator"
220
- description: "Validate verification"
221
- prompt: "Execute Quality Gate 3: Verification Validation
222
-
223
- Compare original security-scan-report.md (baseline) with new scan:
224
- - Count vulnerabilitys fixed
225
- - Check if new vulnerabilitys introduced
226
- - Determine if iteration needed
227
-
228
- Return:
229
- - Verification status
230
- - Securitys remaining
231
- - Iteration decision: iterate / complete
232
- "
233
- ```
234
-
235
- ---
236
-
237
- ### Step 6: Final Summary
238
-
239
- After all phases complete:
240
-
241
- 1. **Resume orchestrator** for final summary:
242
- ```
243
- subagent_type: "security-orchestrator"
244
- description: "Generate final summary"
245
- prompt: "Execute Phase 8: Final Summary
246
-
247
- Generate comprehensive security-orchestration-summary.md:
248
- - All vulnerabilitys detected
249
- - All vulnerabilitys fixed
250
- - Success rates by priority
251
- - Validation results
252
- - Iteration summary
253
- - Cleanup instructions
254
-
255
- Return final summary."
256
- ```
257
-
258
- 2. **Display results** to user:
259
- ```
260
- Read security-orchestration-summary.md
261
- Display key metrics
262
- Show validation status
263
- List next steps
264
- ```
265
-
266
- ---
267
-
268
- ## Example Usage
269
-
270
- ```bash
271
- # Run complete vulnerability workflow
272
- /health-vulnerabilitys
273
- ```
274
-
275
- ---
276
-
277
- ## Architecture Notes
278
-
279
- **Orchestrator Role**:
280
- - Creates plan files
281
- - Validates worker outputs
282
- - Returns control to main session
283
- - NO direct worker invocation
284
-
285
- **Main Session Role** (this command):
286
- - Reads plan files
287
- - Invokes workers via Task tool
288
- - Resumes orchestrator for validation
289
- - Manages full cycle
290
-
291
- **Worker Role**:
292
- - Reads plan file
293
- - Executes work
294
- - Generates report
295
- - Returns to main session
296
-
297
- This pattern follows Claude Code's actual capabilities (no auto-invoke).
30
+ Now read and execute the skill: `.claude/skills/security-health-inline/SKILL.md`
@@ -1,6 +1,6 @@
1
1
  ---
2
- description: Automated release management with version bumping and changelog updates
3
- argument-hint: [patch|minor|major]
2
+ description: Automated release management with version bumping and dual changelog generation
3
+ argument-hint: [patch|minor|major] [-m "message"]
4
4
  ---
5
5
 
6
6
  Execute the release automation script with auto-confirmation for Claude Code.
@@ -9,10 +9,24 @@ Execute the release automation script with auto-confirmation for Claude Code.
9
9
  - Auto-syncs package.json versions with latest git tag (prevents version conflicts)
10
10
  - Analyzes commits since last release
11
11
  - Auto-detects version bump type from conventional commits
12
- - Generates CHANGELOG entries
12
+ - **Generates dual changelogs:**
13
+ - `CHANGELOG.md` - Technical format (Keep a Changelog) for developers
14
+ - `RELEASE_NOTES.md` - User-facing format with friendly language for marketing
13
15
  - Updates all package.json files
14
16
  - Creates git tag and pushes to GitHub
15
17
  - Full rollback support on errors
18
+ - **Custom commit message** for uncommitted changes via `--message` / `-m` flag
19
+
20
+ **Generated RELEASE_NOTES.md format:**
21
+ - Friendly scope names (auth → Authentication, db → Database)
22
+ - Emojis for visual clarity (✨ Features, 🐛 Fixes, 🔒 Security)
23
+ - Skips technical commits (chore, ci, docs) not relevant to users
24
+ - Ready to copy for announcements, app stores, emails
25
+
26
+ **Tip:** Use `-m` with `feat:` or `fix:` prefix to include your changes in RELEASE_NOTES:
27
+ ```bash
28
+ /push patch -m "feat(worker): add worker readiness pre-flight system"
29
+ ```
16
30
 
17
31
  **Usage:**
18
32