claude-code-orchestrator-kit 1.4.1 → 1.4.16

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 (240) hide show
  1. package/.claude/agents/business/workers/lead-research-assistant.md +199 -0
  2. package/.claude/agents/database/workers/api-builder.md +8 -0
  3. package/.claude/agents/database/workers/database-architect.md +11 -3
  4. package/.claude/agents/database/workers/supabase-auditor.md +7 -7
  5. package/.claude/agents/database/workers/supabase-fixer.md +825 -0
  6. package/.claude/agents/database/workers/supabase-realtime-optimizer.md +1086 -0
  7. package/.claude/agents/database/workers/supabase-storage-optimizer.md +1187 -0
  8. package/.claude/agents/development/workers/code-reviewer.md +17 -2
  9. package/.claude/agents/development/workers/code-structure-refactorer.md +771 -0
  10. package/.claude/agents/development/workers/judge-specialist.md +3275 -0
  11. package/.claude/agents/development/workers/langgraph-specialist.md +1343 -0
  12. package/.claude/agents/development/workers/stage-pipeline-specialist.md +1173 -0
  13. package/.claude/agents/frontend/workers/fullstack-nextjs-specialist.md +10 -0
  14. package/.claude/agents/frontend/workers/nextjs-ui-designer.md +30 -0
  15. package/.claude/agents/health/workers/bug-fixer.md +31 -3
  16. package/.claude/agents/health/workers/bug-hunter.md +0 -1
  17. package/.claude/agents/health/workers/dead-code-hunter.md +167 -75
  18. package/.claude/agents/health/workers/dead-code-remover.md +217 -66
  19. package/.claude/agents/health/workers/dependency-auditor.md +83 -24
  20. package/.claude/agents/health/workers/dependency-updater.md +0 -1
  21. package/.claude/agents/health/workers/security-scanner.md +0 -1
  22. package/.claude/agents/infrastructure/workers/bullmq-worker-specialist.md +748 -0
  23. package/.claude/agents/infrastructure/workers/deployment-engineer.md +446 -0
  24. package/.claude/agents/infrastructure/workers/infrastructure-specialist.md +2 -2
  25. package/.claude/agents/infrastructure/workers/rag-specialist.md +799 -0
  26. package/.claude/agents/infrastructure/workers/server-hardening-specialist.md +1128 -0
  27. package/.claude/agents/integrations/workers/lms-integration-specialist.md +866 -0
  28. package/.claude/agents/meta/workers/meta-agent-v3.md +22 -0
  29. package/.claude/agents/testing/workers/integration-tester.md +1 -1
  30. package/.claude/agents/testing/workers/test-writer.md +16 -0
  31. package/.claude/commands/health-bugs.md +14 -281
  32. package/.claude/commands/health-cleanup.md +14 -281
  33. package/.claude/commands/health-deps.md +14 -281
  34. package/.claude/commands/health-metrics.md +51 -709
  35. package/.claude/commands/health-reuse.md +14 -311
  36. package/.claude/commands/health-security.md +14 -281
  37. package/.claude/commands/push.md +17 -3
  38. package/.claude/commands/speckit.implement.md +0 -11
  39. package/.claude/commands/supabase-performance-optimizer.md +73 -0
  40. package/.claude/commands/ultra-think.md +158 -0
  41. package/.claude/commands/worktree.md +150 -0
  42. package/.claude/scripts/gates/check-bundle-size.sh +0 -0
  43. package/.claude/scripts/gates/check-coverage.sh +0 -0
  44. package/.claude/scripts/gates/check-security.sh +0 -0
  45. package/.claude/scripts/release.sh +469 -94
  46. package/.claude/skills/algorithmic-art/LICENSE.txt +202 -0
  47. package/.claude/skills/algorithmic-art/SKILL.md +405 -0
  48. package/.claude/skills/algorithmic-art/templates/generator_template.js +223 -0
  49. package/.claude/skills/algorithmic-art/templates/viewer.html +599 -0
  50. package/.claude/skills/artifacts-builder/LICENSE.txt +202 -0
  51. package/.claude/skills/artifacts-builder/SKILL.md +74 -0
  52. package/.claude/skills/artifacts-builder/scripts/bundle-artifact.sh +54 -0
  53. package/.claude/skills/artifacts-builder/scripts/init-artifact.sh +322 -0
  54. package/.claude/skills/artifacts-builder/scripts/shadcn-components.tar.gz +0 -0
  55. package/.claude/skills/bug-health-inline/SKILL.md +221 -0
  56. package/.claude/skills/bug-health-inline/references/worker-prompts.md +182 -0
  57. package/.claude/skills/canvas-design/LICENSE.txt +202 -0
  58. package/.claude/skills/canvas-design/SKILL.md +130 -0
  59. package/.claude/skills/canvas-design/canvas-fonts/ArsenalSC-OFL.txt +93 -0
  60. package/.claude/skills/canvas-design/canvas-fonts/ArsenalSC-Regular.ttf +0 -0
  61. package/.claude/skills/canvas-design/canvas-fonts/BigShoulders-Bold.ttf +0 -0
  62. package/.claude/skills/canvas-design/canvas-fonts/BigShoulders-OFL.txt +93 -0
  63. package/.claude/skills/canvas-design/canvas-fonts/BigShoulders-Regular.ttf +0 -0
  64. package/.claude/skills/canvas-design/canvas-fonts/Boldonse-OFL.txt +93 -0
  65. package/.claude/skills/canvas-design/canvas-fonts/Boldonse-Regular.ttf +0 -0
  66. package/.claude/skills/canvas-design/canvas-fonts/BricolageGrotesque-Bold.ttf +0 -0
  67. package/.claude/skills/canvas-design/canvas-fonts/BricolageGrotesque-OFL.txt +93 -0
  68. package/.claude/skills/canvas-design/canvas-fonts/BricolageGrotesque-Regular.ttf +0 -0
  69. package/.claude/skills/canvas-design/canvas-fonts/CrimsonPro-Bold.ttf +0 -0
  70. package/.claude/skills/canvas-design/canvas-fonts/CrimsonPro-Italic.ttf +0 -0
  71. package/.claude/skills/canvas-design/canvas-fonts/CrimsonPro-OFL.txt +93 -0
  72. package/.claude/skills/canvas-design/canvas-fonts/CrimsonPro-Regular.ttf +0 -0
  73. package/.claude/skills/canvas-design/canvas-fonts/DMMono-OFL.txt +93 -0
  74. package/.claude/skills/canvas-design/canvas-fonts/DMMono-Regular.ttf +0 -0
  75. package/.claude/skills/canvas-design/canvas-fonts/EricaOne-OFL.txt +94 -0
  76. package/.claude/skills/canvas-design/canvas-fonts/EricaOne-Regular.ttf +0 -0
  77. package/.claude/skills/canvas-design/canvas-fonts/GeistMono-Bold.ttf +0 -0
  78. package/.claude/skills/canvas-design/canvas-fonts/GeistMono-OFL.txt +93 -0
  79. package/.claude/skills/canvas-design/canvas-fonts/GeistMono-Regular.ttf +0 -0
  80. package/.claude/skills/canvas-design/canvas-fonts/Gloock-OFL.txt +93 -0
  81. package/.claude/skills/canvas-design/canvas-fonts/Gloock-Regular.ttf +0 -0
  82. package/.claude/skills/canvas-design/canvas-fonts/IBMPlexMono-Bold.ttf +0 -0
  83. package/.claude/skills/canvas-design/canvas-fonts/IBMPlexMono-OFL.txt +93 -0
  84. package/.claude/skills/canvas-design/canvas-fonts/IBMPlexMono-Regular.ttf +0 -0
  85. package/.claude/skills/canvas-design/canvas-fonts/IBMPlexSerif-Bold.ttf +0 -0
  86. package/.claude/skills/canvas-design/canvas-fonts/IBMPlexSerif-BoldItalic.ttf +0 -0
  87. package/.claude/skills/canvas-design/canvas-fonts/IBMPlexSerif-Italic.ttf +0 -0
  88. package/.claude/skills/canvas-design/canvas-fonts/IBMPlexSerif-Regular.ttf +0 -0
  89. package/.claude/skills/canvas-design/canvas-fonts/InstrumentSans-Bold.ttf +0 -0
  90. package/.claude/skills/canvas-design/canvas-fonts/InstrumentSans-BoldItalic.ttf +0 -0
  91. package/.claude/skills/canvas-design/canvas-fonts/InstrumentSans-Italic.ttf +0 -0
  92. package/.claude/skills/canvas-design/canvas-fonts/InstrumentSans-OFL.txt +93 -0
  93. package/.claude/skills/canvas-design/canvas-fonts/InstrumentSans-Regular.ttf +0 -0
  94. package/.claude/skills/canvas-design/canvas-fonts/InstrumentSerif-Italic.ttf +0 -0
  95. package/.claude/skills/canvas-design/canvas-fonts/InstrumentSerif-Regular.ttf +0 -0
  96. package/.claude/skills/canvas-design/canvas-fonts/Italiana-OFL.txt +93 -0
  97. package/.claude/skills/canvas-design/canvas-fonts/Italiana-Regular.ttf +0 -0
  98. package/.claude/skills/canvas-design/canvas-fonts/JetBrainsMono-Bold.ttf +0 -0
  99. package/.claude/skills/canvas-design/canvas-fonts/JetBrainsMono-OFL.txt +93 -0
  100. package/.claude/skills/canvas-design/canvas-fonts/JetBrainsMono-Regular.ttf +0 -0
  101. package/.claude/skills/canvas-design/canvas-fonts/Jura-Light.ttf +0 -0
  102. package/.claude/skills/canvas-design/canvas-fonts/Jura-Medium.ttf +0 -0
  103. package/.claude/skills/canvas-design/canvas-fonts/Jura-OFL.txt +93 -0
  104. package/.claude/skills/canvas-design/canvas-fonts/LibreBaskerville-OFL.txt +93 -0
  105. package/.claude/skills/canvas-design/canvas-fonts/LibreBaskerville-Regular.ttf +0 -0
  106. package/.claude/skills/canvas-design/canvas-fonts/Lora-Bold.ttf +0 -0
  107. package/.claude/skills/canvas-design/canvas-fonts/Lora-BoldItalic.ttf +0 -0
  108. package/.claude/skills/canvas-design/canvas-fonts/Lora-Italic.ttf +0 -0
  109. package/.claude/skills/canvas-design/canvas-fonts/Lora-OFL.txt +93 -0
  110. package/.claude/skills/canvas-design/canvas-fonts/Lora-Regular.ttf +0 -0
  111. package/.claude/skills/canvas-design/canvas-fonts/NationalPark-Bold.ttf +0 -0
  112. package/.claude/skills/canvas-design/canvas-fonts/NationalPark-OFL.txt +93 -0
  113. package/.claude/skills/canvas-design/canvas-fonts/NationalPark-Regular.ttf +0 -0
  114. package/.claude/skills/canvas-design/canvas-fonts/NothingYouCouldDo-OFL.txt +93 -0
  115. package/.claude/skills/canvas-design/canvas-fonts/NothingYouCouldDo-Regular.ttf +0 -0
  116. package/.claude/skills/canvas-design/canvas-fonts/Outfit-Bold.ttf +0 -0
  117. package/.claude/skills/canvas-design/canvas-fonts/Outfit-OFL.txt +93 -0
  118. package/.claude/skills/canvas-design/canvas-fonts/Outfit-Regular.ttf +0 -0
  119. package/.claude/skills/canvas-design/canvas-fonts/PixelifySans-Medium.ttf +0 -0
  120. package/.claude/skills/canvas-design/canvas-fonts/PixelifySans-OFL.txt +93 -0
  121. package/.claude/skills/canvas-design/canvas-fonts/PoiretOne-OFL.txt +93 -0
  122. package/.claude/skills/canvas-design/canvas-fonts/PoiretOne-Regular.ttf +0 -0
  123. package/.claude/skills/canvas-design/canvas-fonts/RedHatMono-Bold.ttf +0 -0
  124. package/.claude/skills/canvas-design/canvas-fonts/RedHatMono-OFL.txt +93 -0
  125. package/.claude/skills/canvas-design/canvas-fonts/RedHatMono-Regular.ttf +0 -0
  126. package/.claude/skills/canvas-design/canvas-fonts/Silkscreen-OFL.txt +93 -0
  127. package/.claude/skills/canvas-design/canvas-fonts/Silkscreen-Regular.ttf +0 -0
  128. package/.claude/skills/canvas-design/canvas-fonts/SmoochSans-Medium.ttf +0 -0
  129. package/.claude/skills/canvas-design/canvas-fonts/SmoochSans-OFL.txt +93 -0
  130. package/.claude/skills/canvas-design/canvas-fonts/Tektur-Medium.ttf +0 -0
  131. package/.claude/skills/canvas-design/canvas-fonts/Tektur-OFL.txt +93 -0
  132. package/.claude/skills/canvas-design/canvas-fonts/Tektur-Regular.ttf +0 -0
  133. package/.claude/skills/canvas-design/canvas-fonts/WorkSans-Bold.ttf +0 -0
  134. package/.claude/skills/canvas-design/canvas-fonts/WorkSans-BoldItalic.ttf +0 -0
  135. package/.claude/skills/canvas-design/canvas-fonts/WorkSans-Italic.ttf +0 -0
  136. package/.claude/skills/canvas-design/canvas-fonts/WorkSans-OFL.txt +93 -0
  137. package/.claude/skills/canvas-design/canvas-fonts/WorkSans-Regular.ttf +0 -0
  138. package/.claude/skills/canvas-design/canvas-fonts/YoungSerif-OFL.txt +93 -0
  139. package/.claude/skills/canvas-design/canvas-fonts/YoungSerif-Regular.ttf +0 -0
  140. package/.claude/skills/changelog-generator/SKILL.md +104 -0
  141. package/.claude/skills/cleanup-health-inline/SKILL.md +224 -0
  142. package/.claude/skills/code-reviewer/SKILL.md +209 -0
  143. package/.claude/skills/code-reviewer/references/code_review_checklist.md +103 -0
  144. package/.claude/skills/code-reviewer/references/coding_standards.md +103 -0
  145. package/.claude/skills/code-reviewer/references/common_antipatterns.md +103 -0
  146. package/.claude/skills/code-reviewer/scripts/code_quality_checker.py +114 -0
  147. package/.claude/skills/code-reviewer/scripts/pr_analyzer.py +114 -0
  148. package/.claude/skills/code-reviewer/scripts/review_report_generator.py +114 -0
  149. package/.claude/skills/content-research-writer/SKILL.md +538 -0
  150. package/.claude/skills/deps-health-inline/SKILL.md +227 -0
  151. package/.claude/skills/frontend-aesthetics/SKILL.md +51 -396
  152. package/.claude/skills/git-commit-helper/SKILL.md +203 -0
  153. package/.claude/skills/lead-research-assistant/SKILL.md +199 -0
  154. package/.claude/skills/reuse-health-inline/SKILL.md +248 -0
  155. package/.claude/skills/rollback-changes/SKILL.md +50 -524
  156. package/.claude/skills/run-quality-gate/SKILL.md +36 -346
  157. package/.claude/skills/security-health-inline/SKILL.md +224 -0
  158. package/.claude/skills/senior-architect/SKILL.md +209 -0
  159. package/.claude/skills/senior-architect/references/architecture_patterns.md +755 -0
  160. package/.claude/skills/senior-architect/references/system_design_workflows.md +749 -0
  161. package/.claude/skills/senior-architect/references/tech_decision_guide.md +612 -0
  162. package/.claude/skills/senior-architect/scripts/architecture_diagram_generator.py +114 -0
  163. package/.claude/skills/senior-architect/scripts/dependency_analyzer.py +114 -0
  164. package/.claude/skills/senior-architect/scripts/project_architect.py +114 -0
  165. package/.claude/skills/senior-devops/SKILL.md +209 -0
  166. package/.claude/skills/senior-devops/references/cicd_pipeline_guide.md +103 -0
  167. package/.claude/skills/senior-devops/references/deployment_strategies.md +103 -0
  168. package/.claude/skills/senior-devops/references/infrastructure_as_code.md +103 -0
  169. package/.claude/skills/senior-devops/scripts/deployment_manager.py +114 -0
  170. package/.claude/skills/senior-devops/scripts/pipeline_generator.py +114 -0
  171. package/.claude/skills/senior-devops/scripts/terraform_scaffolder.py +114 -0
  172. package/.claude/skills/senior-prompt-engineer/SKILL.md +226 -0
  173. package/.claude/skills/senior-prompt-engineer/references/agentic_system_design.md +80 -0
  174. package/.claude/skills/senior-prompt-engineer/references/llm_evaluation_frameworks.md +80 -0
  175. package/.claude/skills/senior-prompt-engineer/references/prompt_engineering_patterns.md +80 -0
  176. package/.claude/skills/senior-prompt-engineer/scripts/agent_orchestrator.py +100 -0
  177. package/.claude/skills/senior-prompt-engineer/scripts/prompt_optimizer.py +100 -0
  178. package/.claude/skills/senior-prompt-engineer/scripts/rag_evaluator.py +100 -0
  179. package/.claude/skills/setup-knip/SKILL.md +372 -0
  180. package/.claude/skills/systematic-debugging/CREATION-LOG.md +119 -0
  181. package/.claude/skills/systematic-debugging/SKILL.md +296 -0
  182. package/.claude/skills/systematic-debugging/condition-based-waiting-example.ts +158 -0
  183. package/.claude/skills/systematic-debugging/condition-based-waiting.md +115 -0
  184. package/.claude/skills/systematic-debugging/defense-in-depth.md +122 -0
  185. package/.claude/skills/systematic-debugging/find-polluter.sh +63 -0
  186. package/.claude/skills/systematic-debugging/root-cause-tracing.md +169 -0
  187. package/.claude/skills/systematic-debugging/test-academic.md +14 -0
  188. package/.claude/skills/systematic-debugging/test-pressure-1.md +58 -0
  189. package/.claude/skills/systematic-debugging/test-pressure-2.md +68 -0
  190. package/.claude/skills/systematic-debugging/test-pressure-3.md +69 -0
  191. package/.claude/skills/theme-factory/LICENSE.txt +202 -0
  192. package/.claude/skills/theme-factory/SKILL.md +59 -0
  193. package/.claude/skills/theme-factory/theme-showcase.pdf +0 -0
  194. package/.claude/skills/theme-factory/themes/arctic-frost.md +19 -0
  195. package/.claude/skills/theme-factory/themes/botanical-garden.md +19 -0
  196. package/.claude/skills/theme-factory/themes/desert-rose.md +19 -0
  197. package/.claude/skills/theme-factory/themes/forest-canopy.md +19 -0
  198. package/.claude/skills/theme-factory/themes/golden-hour.md +19 -0
  199. package/.claude/skills/theme-factory/themes/midnight-galaxy.md +19 -0
  200. package/.claude/skills/theme-factory/themes/modern-minimalist.md +19 -0
  201. package/.claude/skills/theme-factory/themes/ocean-depths.md +19 -0
  202. package/.claude/skills/theme-factory/themes/sunset-boulevard.md +19 -0
  203. package/.claude/skills/theme-factory/themes/tech-innovation.md +19 -0
  204. package/.claude/skills/ui-design-system/SKILL.md +32 -0
  205. package/.claude/skills/ui-design-system/scripts/design_token_generator.py +529 -0
  206. package/.claude/skills/ux-researcher-designer/SKILL.md +30 -0
  207. package/.claude/skills/ux-researcher-designer/scripts/persona_generator.py +508 -0
  208. package/.claude/skills/webapp-testing/LICENSE.txt +202 -0
  209. package/.claude/skills/webapp-testing/SKILL.md +96 -0
  210. package/.claude/skills/webapp-testing/examples/console_logging.py +35 -0
  211. package/.claude/skills/webapp-testing/examples/element_discovery.py +40 -0
  212. package/.claude/skills/webapp-testing/examples/static_html_automation.py +33 -0
  213. package/.claude/skills/webapp-testing/scripts/with_server.py +106 -0
  214. package/.gitignore +4 -0
  215. package/README.md +492 -1093
  216. package/README.ru.md +719 -0
  217. package/docs/Agents Ecosystem/AGENT-ORCHESTRATION.md +2 -2
  218. package/docs/COMMANDS-GUIDE.md +0 -15
  219. package/docs/reports/skills/new-skills-analysis-2025-12.md +331 -0
  220. package/package.json +11 -3
  221. package/.claude/agents/health/orchestrators/bug-orchestrator.md +0 -1084
  222. package/.claude/agents/health/orchestrators/dead-code-orchestrator.md +0 -1064
  223. package/.claude/agents/health/orchestrators/dependency-orchestrator.md +0 -1064
  224. package/.claude/agents/health/orchestrators/reuse-orchestrator.md +0 -1112
  225. package/.claude/agents/health/orchestrators/security-orchestrator.md +0 -1064
  226. package/.claude/commands/worktree-cleanup.md +0 -382
  227. package/.claude/commands/worktree-create.md +0 -287
  228. package/.claude/commands/worktree-list.md +0 -239
  229. package/.claude/commands/worktree-remove.md +0 -339
  230. package/.claude/project-index.md +0 -75
  231. package/.claude/skills/load-project-context/SKILL.md +0 -89
  232. package/.claude/skills/resume-session/SKILL.md +0 -164
  233. package/.claude/skills/save-session-context/SKILL.md +0 -123
  234. package/.claude/templates/project-index.template.md +0 -67
  235. package/.claude/templates/session/context.template.md +0 -40
  236. package/.claude/templates/session/log.template.md +0 -72
  237. package/.github/BRANCH_PROTECTION.md +0 -137
  238. package/.github/workflows/build.yml +0 -70
  239. package/.github/workflows/deploy-staging.yml +0 -90
  240. package/.github/workflows/test.yml +0 -104
@@ -9,6 +9,22 @@ color: cyan
9
9
 
10
10
  Expert agent architect that creates production-ready agents following canonical patterns from ARCHITECTURE.md and CLAUDE.md.
11
11
 
12
+ ## Referenced Skills
13
+
14
+ **RECOMMENDED: Use `senior-prompt-engineer` Skill for prompt optimization**
15
+
16
+ When crafting agent prompts, reference the `senior-prompt-engineer` Skill for:
17
+ - **Prompt Engineering Patterns** (`references/prompt_engineering_patterns.md`)
18
+ - **LLM Evaluation Frameworks** (`references/llm_evaluation_frameworks.md`)
19
+ - **Agentic System Design** (`references/agentic_system_design.md`)
20
+
21
+ Key considerations from the skill:
22
+ - Use clear, unambiguous instructions
23
+ - Structure prompts for predictable outputs
24
+ - Design proper fallback strategies
25
+ - Optimize for latency and cost
26
+ - Apply few-shot learning where appropriate
27
+
12
28
  ## Quick Start
13
29
 
14
30
  **Step 0: Determine Agent Type**
@@ -394,6 +410,12 @@ color: {blue|cyan|green|purple|orange} # Domain-based
394
410
  **Description Formula:**
395
411
  `Use proactively for {task}. Expert in {domain}. Handles {scenarios}.`
396
412
 
413
+ **Apply `senior-prompt-engineer` patterns for descriptions:**
414
+ - Be specific and action-oriented
415
+ - Include clear trigger conditions ("Use when...")
416
+ - Specify capabilities without ambiguity
417
+ - Avoid vague terms ("handles various tasks")
418
+
397
419
  **Model Selection:**
398
420
  - Workers: `sonnet` (implementation needs balance)
399
421
  - Orchestrators: `sonnet` (coordination doesn't need opus)
@@ -23,7 +23,7 @@ Use for ALL database validation and testing:
23
23
  - `mcp__supabase__list_tables` - Validate schema structure
24
24
  - `mcp__supabase__get_table_schema` - Inspect table definitions
25
25
  - `mcp__supabase__list_migrations` - Check migration state
26
- - Project: MegaCampusAI (ref: `diqooqbuchsliypgwksu`)
26
+ - Project ref: From `SUPABASE_PROJECT_REF` env or plan file
27
27
  - Use Context7 for Supabase testing best practices
28
28
 
29
29
  #### Testing Framework Docs: Context7 MCP
@@ -9,6 +9,22 @@ color: green
9
9
 
10
10
  You are a specialized test writing agent for creating comprehensive unit tests and contract tests using Vitest. Your primary mission is to write tests for services, utilities, and API endpoints with proper mocking strategies, Zod schema validation, tRPC contracts, and security testing.
11
11
 
12
+ ## Referenced Skills
13
+
14
+ **For E2E/Integration Testing: Use `webapp-testing` Skill**
15
+
16
+ When tests require browser interaction or E2E validation, reference the `webapp-testing` Skill:
17
+ - Uses Playwright for browser automation
18
+ - `scripts/with_server.py` for server lifecycle management
19
+ - Supports multiple servers (backend + frontend)
20
+ - Reconnaissance-then-action pattern for dynamic content
21
+
22
+ **Decision Tree for Testing Approach:**
23
+ - **Unit tests** (logic, functions, services): Use Vitest (this agent)
24
+ - **Contract tests** (API schemas, tRPC): Use Vitest (this agent)
25
+ - **E2E tests** (browser, UI flow): Use `webapp-testing` Skill with Playwright
26
+ - **Visual regression**: Use `webapp-testing` Skill for screenshots
27
+
12
28
  ## MCP Servers
13
29
 
14
30
  This agent uses the following MCP servers when available:
@@ -1,297 +1,30 @@
1
1
  ---
2
- description: Bug detection and fixing workflow with full cycle management (TEST VERSION)
2
+ description: Bug detection and fixing workflow (inline orchestration)
3
3
  ---
4
4
 
5
5
  # Bug Health Check
6
6
 
7
- > **PATTERN**: Agent-based orchestration (see `docs/Agents Ecosystem/AGENT-ORCHESTRATION.md` for details)
7
+ Execute the `bug-health-inline` skill for inline orchestration.
8
8
 
9
- Complete bug detection and 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 bug detection (all priorities, all categories)
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 checks always.
13
+ 1. Read `.claude/skills/bug-health-inline/SKILL.md`
14
+ 2. Follow the workflow phases directly
15
+ 3. Use Task tool only for workers (bug-hunter, bug-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 bug-orchestrator for pre-flight validation:
18
+ ## Workflow Summary
28
19
 
29
20
  ```
30
- subagent_type: "bug-orchestrator"
31
- description: "Bug 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/bug-detection.json for rollback tracking
39
- 5. Report pre-flight status
40
-
41
- IMPORTANT: After completing pre-flight, create .tmp/current/plans/bug-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 bug-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/bug-detection.json
62
- Verify nextAgent === "bug-hunter"
63
- ```
64
-
65
- 2. **Invoke bug-hunter** using Task tool:
66
- ```
67
- subagent_type: "bug-hunter"
68
- description: "Bug detection phase"
69
- prompt: "Execute bug detection based on plan file: .tmp/current/plans/bug-detection.json
70
-
71
- Read the plan file and execute comprehensive bug detection:
72
- - Scan entire codebase
73
- - Categorize by priority (critical → high → medium → low)
74
- - Generate bug-hunting-report.md
75
-
76
- Return to main session when complete."
77
- ```
78
-
79
- **Then**: Wait for bug-hunter to return with report.
80
-
81
- ---
82
-
83
- ### Step 3: Quality Gate 1 - Resume Orchestrator (Validate Detection)
84
-
85
- After bug-hunter returns:
86
-
87
- 1. **Resume orchestrator** for validation using Task tool:
88
- ```
89
- subagent_type: "bug-orchestrator"
90
- description: "Validate bug detection"
91
- prompt: "Execute Quality Gate 1: Detection Validation
92
-
93
- Phase: Validate bug-hunter output
94
-
95
- Tasks:
96
- 1. Verify bug-hunting-report.md exists
97
- 2. Validate report structure (required sections)
98
- 3. Parse bug counts by priority
99
- 4. Run type-check validation (non-blocking warning)
100
- 5. Report gate results
101
-
102
- IMPORTANT: After validation, if bugs found:
103
- - Create .tmp/current/plans/bug-fixing-{priority}.json for critical priority (or highest available)
104
- - Return control to main session
105
-
106
- If no bugs 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
- - Bug 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 bugs**:
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/bug-fixing-{priority}.json
136
- Verify nextAgent === "bug-fixer"
137
- Verify config.priority === "{current-priority}"
138
- ```
139
-
140
- 3. **Invoke bug-fixer** using Task tool:
141
- ```
142
- subagent_type: "bug-fixer"
143
- description: "Fix {priority} bugs"
144
- prompt: "Execute bug fixing based on plan file: .tmp/current/plans/bug-fixing-{priority}.json
145
-
146
- Read the plan file and fix bugs for priority: {priority}
147
- - Read bug-hunting-report.md for bug list
148
- - Fix bugs one by one
149
- - Log changes to .bug-changes.json
150
- - Update bug-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: "bug-orchestrator"
158
- description: "Validate {priority} fixes"
159
- prompt: "Execute Quality Gate 2: Fixes Validation for priority={priority}
160
-
161
- Tasks:
162
- 1. Verify bug-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/bug-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**: bug-hunter, bug-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: "bug-orchestrator"
198
- description: "Create verification plan"
199
- prompt: "Execute Phase 6: Verification Preparation
200
-
201
- Create .tmp/current/plans/bug-verification.json for re-scanning codebase.
202
-
203
- Return control with plan file path."
204
- ```
205
-
206
- 2. **Invoke bug-hunter** for verification:
207
- ```
208
- subagent_type: "bug-hunter"
209
- description: "Verification scan"
210
- prompt: "Execute verification scan based on: .tmp/current/plans/bug-verification.json
211
-
212
- Re-scan codebase to verify fixes. Overwrites bug-hunting-report.md.
213
-
214
- Return when complete."
215
- ```
216
-
217
- 3. **Resume orchestrator** for verification validation:
218
- ```
219
- subagent_type: "bug-orchestrator"
220
- description: "Validate verification"
221
- prompt: "Execute Quality Gate 3: Verification Validation
222
-
223
- Compare original bug-hunting-report.md (baseline) with new scan:
224
- - Count bugs fixed
225
- - Check if new bugs introduced
226
- - Determine if iteration needed
227
-
228
- Return:
229
- - Verification status
230
- - Bugs 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: "bug-orchestrator"
244
- description: "Generate final summary"
245
- prompt: "Execute Phase 8: Final Summary
246
-
247
- Generate comprehensive bug-fix-orchestration-summary.md:
248
- - All bugs detected
249
- - All bugs 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 bug-fix-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 bug workflow
272
- /health-bugs
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/bug-health-inline/SKILL.md`
@@ -1,297 +1,30 @@
1
1
  ---
2
- description: Cleanup dead-code detection and remediation workflow with full cycle management
2
+ description: Dead code detection and cleanup workflow (inline orchestration)
3
3
  ---
4
4
 
5
5
  # Cleanup Health Check
6
6
 
7
- > **PATTERN**: Agent-based orchestration (see `docs/Agents Ecosystem/AGENT-ORCHESTRATION.md` for details)
7
+ Execute the `cleanup-health-inline` skill for inline orchestration.
8
8
 
9
- Complete dead code detection and removal 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 dead code scan (unused imports, commented code, unreachable code, debug artifacts, unused variables)
13
- - Staged removal (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 dead code detection always.
13
+ 1. Read `.claude/skills/cleanup-health-inline/SKILL.md`
14
+ 2. Follow the workflow phases directly
15
+ 3. Use Task tool only for workers (dead-code-hunter, dead-code-remover)
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 dead-code-orchestrator for pre-flight validation:
18
+ ## Workflow Summary
28
19
 
29
20
  ```
30
- subagent_type: "dead-code-orchestrator"
31
- description: "Cleanup 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/dead-code-detection.json for rollback tracking
39
- 5. Report pre-flight status
40
-
41
- IMPORTANT: After completing pre-flight, create .tmp/current/plans/dead-code-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 → [Remove by Priority] → Verify → Report
49
22
  ```
50
23
 
51
- **Then**: Wait for orchestrator to return.
52
-
53
- ---
54
-
55
- ### Step 2: Phase 1 - Invoke dead-code-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/dead-code-detection.json
62
- Verify nextAgent === "dead-code-hunter"
63
- ```
64
-
65
- 2. **Invoke dead-code-hunter** using Task tool:
66
- ```
67
- subagent_type: "dead-code-hunter"
68
- description: "Dead code detection phase"
69
- prompt: "Execute dead-code detection based on plan file: .tmp/current/plans/dead-code-detection.json
70
-
71
- Read the plan file and execute comprehensive dead-code detection:
72
- - Scan entire codebase
73
- - Categorize by priority (critical → high → medium → low)
74
- - Generate dead-code-report.md
75
-
76
- Return to main session when complete."
77
- ```
78
-
79
- **Then**: Wait for dead-code-hunter to return with report.
80
-
81
- ---
82
-
83
- ### Step 3: Quality Gate 1 - Resume Orchestrator (Validate Detection)
84
-
85
- After dead-code-hunter returns:
86
-
87
- 1. **Resume orchestrator** for validation using Task tool:
88
- ```
89
- subagent_type: "dead-code-orchestrator"
90
- description: "Validate dead-code detection"
91
- prompt: "Execute Quality Gate 1: Detection Validation
92
-
93
- Phase: Validate dead-code-hunter output
94
-
95
- Tasks:
96
- 1. Verify dead-code-report.md exists
97
- 2. Validate report structure (required sections)
98
- 3. Parse dead-code counts by priority
99
- 4. Run type-check validation (non-blocking warning)
100
- 5. Report gate results
101
-
102
- IMPORTANT: After validation, if dead code found:
103
- - Create .tmp/current/plans/cleanup-removal-{priority}.json for critical priority (or highest available)
104
- - Return control to main session
105
-
106
- If no dead code 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
- - Dead code counts by priority
113
- - Next phase: removal-critical / removal-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 - Removal 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 dead code**:
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/cleanup-removal-{priority}.json
136
- Verify nextAgent === "dead-code-remover"
137
- Verify config.priority === "{current-priority}"
138
- ```
139
-
140
- 3. **Invoke dead-code-remover** using Task tool:
141
- ```
142
- subagent_type: "dead-code-remover"
143
- description: "Remove {priority} dead code"
144
- prompt: "Execute dead code removal based on plan file: .tmp/current/plans/cleanup-removal-{priority}.json
145
-
146
- Read the plan file and remove dead code for priority: {priority}
147
- - Read dead-code-report.md for dead-code list
148
- - Remove dead code one by one
149
- - Log changes to .dead-code-changes.json
150
- - Update dead-code-cleanup-summary.md (consolidated report)
151
-
152
- Return to main session when complete."
153
- ```
154
-
155
- 4. **Resume orchestrator** for validation:
156
- ```
157
- subagent_type: "dead-code-orchestrator"
158
- description: "Validate {priority} fixes"
159
- prompt: "Execute Quality Gate 2: Removal Validation for priority={priority}
160
-
161
- Tasks:
162
- 1. Verify dead-code-cleanup-summary.md exists
163
- 2. Run type-check (BLOCKING)
164
- 3. Run build (BLOCKING)
165
- 4. Parse removal 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/cleanup-removal-{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: removal-{next-priority} / verification / final-summary
184
- "
185
- ```
186
-
187
- 5. **Repeat** for next priority level.
24
+ **Workers**: dead-code-hunter, dead-code-remover
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: "dead-code-orchestrator"
198
- description: "Create verification plan"
199
- prompt: "Execute Phase 6: Verification Preparation
200
-
201
- Create .tmp/current/plans/dead-code-verification.json for re-scanning codebase.
202
-
203
- Return control with plan file path."
204
- ```
205
-
206
- 2. **Invoke dead-code-hunter** for verification:
207
- ```
208
- subagent_type: "dead-code-hunter"
209
- description: "Verification scan"
210
- prompt: "Execute verification scan based on: .tmp/current/plans/dead-code-verification.json
211
-
212
- Re-scan codebase to verify removals. Overwrites dead-code-report.md.
213
-
214
- Return when complete."
215
- ```
216
-
217
- 3. **Resume orchestrator** for verification validation:
218
- ```
219
- subagent_type: "dead-code-orchestrator"
220
- description: "Validate verification"
221
- prompt: "Execute Quality Gate 3: Verification Validation
222
-
223
- Compare original dead-code-report.md (baseline) with new scan:
224
- - Count dead code removed
225
- - Check if new dead code introduced
226
- - Determine if iteration needed
227
-
228
- Return:
229
- - Verification status
230
- - Dead code 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: "dead-code-orchestrator"
244
- description: "Generate final summary"
245
- prompt: "Execute Phase 8: Final Summary
246
-
247
- Generate comprehensive dead-code-orchestration-summary.md:
248
- - All dead code detected
249
- - All dead code removed
250
- - Success rates by priority
251
- - Validation results
252
- - Iteration summary
253
- - Archive and cleanup instructions
254
-
255
- Return final summary."
256
- ```
257
-
258
- 2. **Display results** to user:
259
- ```
260
- Read dead-code-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 dead code cleanup workflow
272
- /health-cleanup
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/cleanup-health-inline/SKILL.md`