start-vibing 2.0.11 → 2.0.12

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 (130) hide show
  1. package/README.md +177 -177
  2. package/package.json +42 -42
  3. package/template/.claude/CLAUDE.md +174 -174
  4. package/template/.claude/agents/01-orchestration/agent-selector.md +130 -130
  5. package/template/.claude/agents/01-orchestration/checkpoint-manager.md +142 -142
  6. package/template/.claude/agents/01-orchestration/context-manager.md +138 -138
  7. package/template/.claude/agents/01-orchestration/error-recovery.md +182 -182
  8. package/template/.claude/agents/01-orchestration/orchestrator.md +114 -114
  9. package/template/.claude/agents/01-orchestration/parallel-coordinator.md +141 -141
  10. package/template/.claude/agents/01-orchestration/task-decomposer.md +121 -121
  11. package/template/.claude/agents/01-orchestration/workflow-router.md +114 -114
  12. package/template/.claude/agents/02-typescript/bun-runtime-expert.md +197 -197
  13. package/template/.claude/agents/02-typescript/esm-resolver.md +193 -193
  14. package/template/.claude/agents/02-typescript/import-alias-enforcer.md +158 -158
  15. package/template/.claude/agents/02-typescript/ts-generics-helper.md +183 -183
  16. package/template/.claude/agents/02-typescript/ts-migration-helper.md +238 -238
  17. package/template/.claude/agents/02-typescript/ts-strict-checker.md +180 -180
  18. package/template/.claude/agents/02-typescript/ts-types-analyzer.md +199 -199
  19. package/template/.claude/agents/02-typescript/type-definition-writer.md +187 -187
  20. package/template/.claude/agents/02-typescript/zod-schema-designer.md +212 -212
  21. package/template/.claude/agents/02-typescript/zod-validator.md +158 -158
  22. package/template/.claude/agents/03-testing/playwright-assertions.md +265 -265
  23. package/template/.claude/agents/03-testing/playwright-e2e.md +247 -247
  24. package/template/.claude/agents/03-testing/playwright-fixtures.md +234 -234
  25. package/template/.claude/agents/03-testing/playwright-multi-viewport.md +256 -256
  26. package/template/.claude/agents/03-testing/playwright-page-objects.md +247 -247
  27. package/template/.claude/agents/03-testing/test-cleanup-manager.md +248 -248
  28. package/template/.claude/agents/03-testing/test-data-generator.md +254 -254
  29. package/template/.claude/agents/03-testing/tester-integration.md +278 -278
  30. package/template/.claude/agents/03-testing/tester-unit.md +207 -207
  31. package/template/.claude/agents/03-testing/vitest-config.md +287 -287
  32. package/template/.claude/agents/04-docker/container-health.md +255 -255
  33. package/template/.claude/agents/04-docker/deployment-validator.md +225 -225
  34. package/template/.claude/agents/04-docker/docker-compose-designer.md +281 -281
  35. package/template/.claude/agents/04-docker/docker-env-manager.md +235 -235
  36. package/template/.claude/agents/04-docker/docker-multi-stage.md +241 -241
  37. package/template/.claude/agents/04-docker/dockerfile-optimizer.md +208 -208
  38. package/template/.claude/agents/05-database/database-seeder.md +273 -273
  39. package/template/.claude/agents/05-database/mongodb-query-optimizer.md +230 -230
  40. package/template/.claude/agents/05-database/mongoose-aggregation.md +306 -306
  41. package/template/.claude/agents/05-database/mongoose-index-optimizer.md +182 -182
  42. package/template/.claude/agents/05-database/mongoose-schema-designer.md +267 -267
  43. package/template/.claude/agents/06-security/auth-session-validator.md +68 -68
  44. package/template/.claude/agents/06-security/input-sanitizer.md +80 -80
  45. package/template/.claude/agents/06-security/owasp-checker.md +97 -97
  46. package/template/.claude/agents/06-security/permission-auditor.md +100 -100
  47. package/template/.claude/agents/06-security/security-auditor.md +84 -84
  48. package/template/.claude/agents/06-security/sensitive-data-scanner.md +83 -83
  49. package/template/.claude/agents/07-documentation/api-documenter.md +136 -136
  50. package/template/.claude/agents/07-documentation/changelog-manager.md +105 -105
  51. package/template/.claude/agents/07-documentation/documenter.md +76 -76
  52. package/template/.claude/agents/07-documentation/domain-updater.md +81 -81
  53. package/template/.claude/agents/07-documentation/jsdoc-generator.md +114 -114
  54. package/template/.claude/agents/07-documentation/readme-generator.md +135 -135
  55. package/template/.claude/agents/08-git/branch-manager.md +58 -58
  56. package/template/.claude/agents/08-git/commit-manager.md +63 -63
  57. package/template/.claude/agents/08-git/pr-creator.md +76 -76
  58. package/template/.claude/agents/09-quality/code-reviewer.md +71 -71
  59. package/template/.claude/agents/09-quality/quality-checker.md +67 -67
  60. package/template/.claude/agents/10-research/best-practices-finder.md +89 -89
  61. package/template/.claude/agents/10-research/competitor-analyzer.md +106 -106
  62. package/template/.claude/agents/10-research/pattern-researcher.md +93 -93
  63. package/template/.claude/agents/10-research/research-cache-manager.md +76 -76
  64. package/template/.claude/agents/10-research/research-web.md +98 -98
  65. package/template/.claude/agents/10-research/tech-evaluator.md +101 -101
  66. package/template/.claude/agents/11-ui-ux/accessibility-auditor.md +136 -136
  67. package/template/.claude/agents/11-ui-ux/design-system-enforcer.md +125 -125
  68. package/template/.claude/agents/11-ui-ux/skeleton-generator.md +118 -118
  69. package/template/.claude/agents/11-ui-ux/ui-desktop.md +132 -132
  70. package/template/.claude/agents/11-ui-ux/ui-mobile.md +98 -98
  71. package/template/.claude/agents/11-ui-ux/ui-tablet.md +110 -110
  72. package/template/.claude/agents/12-performance/api-latency-analyzer.md +156 -156
  73. package/template/.claude/agents/12-performance/bundle-analyzer.md +113 -113
  74. package/template/.claude/agents/12-performance/memory-leak-detector.md +137 -137
  75. package/template/.claude/agents/12-performance/performance-profiler.md +115 -115
  76. package/template/.claude/agents/12-performance/query-optimizer.md +124 -124
  77. package/template/.claude/agents/12-performance/render-optimizer.md +154 -154
  78. package/template/.claude/agents/13-debugging/build-error-fixer.md +207 -207
  79. package/template/.claude/agents/13-debugging/debugger.md +149 -149
  80. package/template/.claude/agents/13-debugging/error-stack-analyzer.md +141 -141
  81. package/template/.claude/agents/13-debugging/network-debugger.md +208 -208
  82. package/template/.claude/agents/13-debugging/runtime-error-fixer.md +181 -181
  83. package/template/.claude/agents/13-debugging/type-error-resolver.md +185 -185
  84. package/template/.claude/agents/14-validation/final-validator.md +93 -93
  85. package/template/.claude/agents/_backup/analyzer.md +134 -134
  86. package/template/.claude/agents/_backup/code-reviewer.md +279 -279
  87. package/template/.claude/agents/_backup/commit-manager.md +219 -219
  88. package/template/.claude/agents/_backup/debugger.md +280 -280
  89. package/template/.claude/agents/_backup/documenter.md +237 -237
  90. package/template/.claude/agents/_backup/domain-updater.md +197 -197
  91. package/template/.claude/agents/_backup/final-validator.md +169 -169
  92. package/template/.claude/agents/_backup/orchestrator.md +149 -149
  93. package/template/.claude/agents/_backup/performance.md +232 -232
  94. package/template/.claude/agents/_backup/quality-checker.md +240 -240
  95. package/template/.claude/agents/_backup/research.md +315 -315
  96. package/template/.claude/agents/_backup/security-auditor.md +192 -192
  97. package/template/.claude/agents/_backup/tester.md +566 -566
  98. package/template/.claude/agents/_backup/ui-ux-reviewer.md +247 -247
  99. package/template/.claude/config/README.md +30 -30
  100. package/template/.claude/config/mcp-config.json +344 -344
  101. package/template/.claude/config/project-config.json +53 -53
  102. package/template/.claude/config/quality-gates.json +46 -46
  103. package/template/.claude/config/security-rules.json +45 -45
  104. package/template/.claude/config/testing-config.json +164 -164
  105. package/template/.claude/hooks/SETUP.md +126 -126
  106. package/template/.claude/hooks/run-hook.ts +176 -176
  107. package/template/.claude/hooks/stop-validator.ts +852 -824
  108. package/template/.claude/hooks/user-prompt-submit.ts +886 -886
  109. package/template/.claude/scripts/mcp-quick-install.ts +151 -151
  110. package/template/.claude/scripts/setup-mcps.ts +651 -651
  111. package/template/.claude/settings.json +275 -275
  112. package/template/.claude/skills/bun-runtime/SKILL.md +430 -430
  113. package/template/.claude/skills/codebase-knowledge/domains/claude-system.md +431 -431
  114. package/template/.claude/skills/codebase-knowledge/domains/mcp-integration.md +295 -295
  115. package/template/.claude/skills/debugging-patterns/SKILL.md +485 -485
  116. package/template/.claude/skills/docker-patterns/SKILL.md +555 -555
  117. package/template/.claude/skills/git-workflow/SKILL.md +454 -454
  118. package/template/.claude/skills/mongoose-patterns/SKILL.md +499 -499
  119. package/template/.claude/skills/nextjs-app-router/SKILL.md +327 -327
  120. package/template/.claude/skills/performance-patterns/SKILL.md +547 -547
  121. package/template/.claude/skills/playwright-automation/SKILL.md +438 -438
  122. package/template/.claude/skills/react-patterns/SKILL.md +389 -389
  123. package/template/.claude/skills/research-cache/SKILL.md +222 -222
  124. package/template/.claude/skills/shadcn-ui/SKILL.md +511 -511
  125. package/template/.claude/skills/tailwind-patterns/SKILL.md +465 -465
  126. package/template/.claude/skills/test-coverage/SKILL.md +467 -467
  127. package/template/.claude/skills/trpc-api/SKILL.md +434 -434
  128. package/template/.claude/skills/typescript-strict/SKILL.md +367 -367
  129. package/template/.claude/skills/zod-validation/SKILL.md +403 -403
  130. package/template/CLAUDE.md +117 -117
@@ -1,174 +1,174 @@
1
- # Claude Development System - Agent Context
2
-
3
- This file provides context for all agents. For user-facing rules, see `/CLAUDE.md`.
4
-
5
- ---
6
-
7
- ## CLAUDE.md Validation (STOP HOOK ENFORCED)
8
-
9
- The stop hook validates `/CLAUDE.md` before allowing task completion:
10
-
11
- | Check | Requirement |
12
- | ----------------- | --------------------------------------------------------- |
13
- | Character limit | Max 40,000 chars |
14
- | Required sections | Last Change, 30s Overview, Stack, Architecture |
15
- | Last Change | Must be updated with session info (branch, date, summary) |
16
- | No stacking | Only ONE Last Change section (latest only) |
17
- | Branch | Must be on main (PR merged) |
18
- | Git tree | Must be clean (no uncommitted changes) |
19
-
20
- **If CLAUDE.md exceeds 40k chars:** Compact it by removing verbose explanations, keeping critical sections.
21
-
22
- **If not on main:** Complete PR workflow (commit, push, PR, merge, checkout main).
23
-
24
- ---
25
-
26
- ## System Architecture
27
-
28
- ```
29
- .claude/
30
- ├── agents/ # 82 specialized agents in 14 categories
31
- ├── skills/ # 22 skill systems with cache
32
- ├── scripts/ # Validation scripts (validate-claude-md.ts)
33
- ├── config/ # Project-specific configuration
34
- ├── commands/ # Slash commands
35
- └── hooks/ # stop-validator.ts, user-prompt-submit.ts
36
- ```
37
-
38
- ---
39
-
40
- ## MCP Servers (MANDATORY FOR AGENTS)
41
-
42
- All agents MUST use these MCP servers when applicable:
43
-
44
- | Server | Purpose | Use In Agents |
45
- | --------------------- | ---------------------------------- | --------------------------------------- |
46
- | `context7` | Up-to-date library documentation | research, analyzer, tester |
47
- | `sequential-thinking` | Complex problem-solving | orchestrator, analyzer, final-validator |
48
- | `memory` | Persistent knowledge graph | domain-updater, commit-manager |
49
- | `playwright` | Browser automation and E2E testing | tester, ui-ux-reviewer |
50
- | `nextjs-devtools` | Next.js specific development tools | analyzer (Next.js projects) |
51
- | `mongodb` | MongoDB database operations | tester, security-auditor |
52
-
53
- ### Agent MCP Usage Rules
54
-
55
- - **research agent**: MUST use `context7` for library docs before recommending patterns
56
- - **tester agent**: MUST use `playwright` for E2E tests
57
- - **analyzer agent**: SHOULD use `context7` to verify current API patterns
58
- - **domain-updater**: SHOULD use `memory` to persist patterns across sessions
59
- - **ui-ux-reviewer**: MUST use `playwright` to verify UI implementations
60
-
61
- ---
62
-
63
- ## Configuration Files
64
-
65
- Project-specific settings are in `.claude/config/`:
66
-
67
- | File | Purpose |
68
- | --------------------- | ------------------------------ |
69
- | `project-config.json` | Stack, structure, commands |
70
- | `domain-mapping.json` | File patterns to domains |
71
- | `quality-gates.json` | Quality check commands |
72
- | `testing-config.json` | Test framework and conventions |
73
- | `security-rules.json` | Security audit rules |
74
-
75
- **RULE:** Agents MUST read config files before acting. Do NOT hardcode project specifics.
76
-
77
- ---
78
-
79
- ## Agent → Skill Mapping
80
-
81
- | Agent | Primary Skill | Secondary |
82
- | ---------------- | ------------------ | -------------------------------- |
83
- | analyzer | codebase-knowledge | - |
84
- | research | research-cache | codebase-knowledge |
85
- | documenter | docs-tracker | codebase-knowledge |
86
- | tester | test-coverage | - |
87
- | ui-ux-reviewer | ui-ux-audit | - |
88
- | security-auditor | security-scan | - |
89
- | quality-checker | quality-gate | - |
90
- | final-validator | final-check | ALL |
91
- | commit-manager | workflow-state | docs-tracker, codebase-knowledge |
92
- | domain-updater | codebase-knowledge | docs-tracker |
93
-
94
- ---
95
-
96
- ## Execution Protocol
97
-
98
- ### Before ANY implementation:
99
-
100
- 1. **Read config** from `.claude/config/` for project specifics
101
- 2. Read relevant skill SKILL.md file
102
- 3. Check skill cache for existing data
103
- 4. Research if needed (web search)
104
-
105
- ### After implementation:
106
-
107
- 1. Update skill cache with changes
108
- 2. Run quality gates + record results
109
- 3. Security audit (if auth/data involved)
110
- 4. Final validation
111
- 5. **Update domains** via domain-updater agent (BEFORE commit, keeps git clean)
112
- 6. **Commit** via commit-manager agent (FINAL step)
113
-
114
- ---
115
-
116
- ## VETO Power Agents
117
-
118
- These agents CAN and MUST stop the flow if rules are violated:
119
-
120
- | Agent | Blocks When |
121
- | -------------------- | --------------------------------------------------- |
122
- | **security-auditor** | User ID from request, sensitive data, no validation |
123
- | **final-validator** | Any rule violated, tests failing, docs missing |
124
-
125
- ---
126
-
127
- ## Quality Requirements
128
-
129
- All implementations MUST:
130
-
131
- - [ ] Pass typecheck (command from config)
132
- - [ ] Pass lint (command from config)
133
- - [ ] Pass unit tests (command from config)
134
- - [ ] Pass E2E tests (command from config)
135
- - [ ] Pass build (command from config)
136
- - [ ] Have E2E tests with real auth
137
- - [ ] Have documentation in `docs/`
138
- - [ ] Be security audited
139
- - [ ] Be committed with conventional commits
140
- - [ ] Have domains updated with session learnings
141
-
142
- ---
143
-
144
- ## Domain Updater Agent
145
-
146
- The **domain-updater** runs BEFORE commit-manager to ensure git stays clean.
147
-
148
- ### Purpose
149
-
150
- - Document **problems encountered** during the session
151
- - Record **solutions** applied to fix issues
152
- - Add **prevention tips** for future sessions
153
- - Update **attention points** with new learnings
154
- - Keep domain knowledge **current and accurate**
155
-
156
- ### Trigger
157
-
158
- Runs automatically:
159
-
160
- 1. After final-validator approves in any workflow
161
- 2. BEFORE commit-manager (so changes are included in commit)
162
- 3. Stop hook blocks session end until domain-updater executes (if files were modified)
163
-
164
- ### Workflow Order
165
-
166
- ```
167
- final-validator → domain-updater → commit-manager → complete-task
168
- ↑ ↑
169
- (updates domains) (commits all + archives)
170
- ```
171
-
172
- ### Configuration
173
-
174
- Reads domain patterns from `.claude/config/domain-mapping.json`
1
+ # Claude Development System - Agent Context
2
+
3
+ This file provides context for all agents. For user-facing rules, see `/CLAUDE.md`.
4
+
5
+ ---
6
+
7
+ ## CLAUDE.md Validation (STOP HOOK ENFORCED)
8
+
9
+ The stop hook validates `/CLAUDE.md` before allowing task completion:
10
+
11
+ | Check | Requirement |
12
+ | ----------------- | --------------------------------------------------------- |
13
+ | Character limit | Max 40,000 chars |
14
+ | Required sections | Last Change, 30s Overview, Stack, Architecture |
15
+ | Last Change | Must be updated with session info (branch, date, summary) |
16
+ | No stacking | Only ONE Last Change section (latest only) |
17
+ | Branch | Must be on main (PR merged) |
18
+ | Git tree | Must be clean (no uncommitted changes) |
19
+
20
+ **If CLAUDE.md exceeds 40k chars:** Compact it by removing verbose explanations, keeping critical sections.
21
+
22
+ **If not on main:** Complete PR workflow (commit, push, PR, merge, checkout main).
23
+
24
+ ---
25
+
26
+ ## System Architecture
27
+
28
+ ```
29
+ .claude/
30
+ ├── agents/ # 82 specialized agents in 14 categories
31
+ ├── skills/ # 22 skill systems with cache
32
+ ├── scripts/ # Validation scripts (validate-claude-md.ts)
33
+ ├── config/ # Project-specific configuration
34
+ ├── commands/ # Slash commands
35
+ └── hooks/ # stop-validator.ts, user-prompt-submit.ts
36
+ ```
37
+
38
+ ---
39
+
40
+ ## MCP Servers (MANDATORY FOR AGENTS)
41
+
42
+ All agents MUST use these MCP servers when applicable:
43
+
44
+ | Server | Purpose | Use In Agents |
45
+ | --------------------- | ---------------------------------- | --------------------------------------- |
46
+ | `context7` | Up-to-date library documentation | research, analyzer, tester |
47
+ | `sequential-thinking` | Complex problem-solving | orchestrator, analyzer, final-validator |
48
+ | `memory` | Persistent knowledge graph | domain-updater, commit-manager |
49
+ | `playwright` | Browser automation and E2E testing | tester, ui-ux-reviewer |
50
+ | `nextjs-devtools` | Next.js specific development tools | analyzer (Next.js projects) |
51
+ | `mongodb` | MongoDB database operations | tester, security-auditor |
52
+
53
+ ### Agent MCP Usage Rules
54
+
55
+ - **research agent**: MUST use `context7` for library docs before recommending patterns
56
+ - **tester agent**: MUST use `playwright` for E2E tests
57
+ - **analyzer agent**: SHOULD use `context7` to verify current API patterns
58
+ - **domain-updater**: SHOULD use `memory` to persist patterns across sessions
59
+ - **ui-ux-reviewer**: MUST use `playwright` to verify UI implementations
60
+
61
+ ---
62
+
63
+ ## Configuration Files
64
+
65
+ Project-specific settings are in `.claude/config/`:
66
+
67
+ | File | Purpose |
68
+ | --------------------- | ------------------------------ |
69
+ | `project-config.json` | Stack, structure, commands |
70
+ | `domain-mapping.json` | File patterns to domains |
71
+ | `quality-gates.json` | Quality check commands |
72
+ | `testing-config.json` | Test framework and conventions |
73
+ | `security-rules.json` | Security audit rules |
74
+
75
+ **RULE:** Agents MUST read config files before acting. Do NOT hardcode project specifics.
76
+
77
+ ---
78
+
79
+ ## Agent → Skill Mapping
80
+
81
+ | Agent | Primary Skill | Secondary |
82
+ | ---------------- | ------------------ | -------------------------------- |
83
+ | analyzer | codebase-knowledge | - |
84
+ | research | research-cache | codebase-knowledge |
85
+ | documenter | docs-tracker | codebase-knowledge |
86
+ | tester | test-coverage | - |
87
+ | ui-ux-reviewer | ui-ux-audit | - |
88
+ | security-auditor | security-scan | - |
89
+ | quality-checker | quality-gate | - |
90
+ | final-validator | final-check | ALL |
91
+ | commit-manager | workflow-state | docs-tracker, codebase-knowledge |
92
+ | domain-updater | codebase-knowledge | docs-tracker |
93
+
94
+ ---
95
+
96
+ ## Execution Protocol
97
+
98
+ ### Before ANY implementation:
99
+
100
+ 1. **Read config** from `.claude/config/` for project specifics
101
+ 2. Read relevant skill SKILL.md file
102
+ 3. Check skill cache for existing data
103
+ 4. Research if needed (web search)
104
+
105
+ ### After implementation:
106
+
107
+ 1. Update skill cache with changes
108
+ 2. Run quality gates + record results
109
+ 3. Security audit (if auth/data involved)
110
+ 4. Final validation
111
+ 5. **Update domains** via domain-updater agent (BEFORE commit, keeps git clean)
112
+ 6. **Commit** via commit-manager agent (FINAL step)
113
+
114
+ ---
115
+
116
+ ## VETO Power Agents
117
+
118
+ These agents CAN and MUST stop the flow if rules are violated:
119
+
120
+ | Agent | Blocks When |
121
+ | -------------------- | --------------------------------------------------- |
122
+ | **security-auditor** | User ID from request, sensitive data, no validation |
123
+ | **final-validator** | Any rule violated, tests failing, docs missing |
124
+
125
+ ---
126
+
127
+ ## Quality Requirements
128
+
129
+ All implementations MUST:
130
+
131
+ - [ ] Pass typecheck (command from config)
132
+ - [ ] Pass lint (command from config)
133
+ - [ ] Pass unit tests (command from config)
134
+ - [ ] Pass E2E tests (command from config)
135
+ - [ ] Pass build (command from config)
136
+ - [ ] Have E2E tests with real auth
137
+ - [ ] Have documentation in `docs/`
138
+ - [ ] Be security audited
139
+ - [ ] Be committed with conventional commits
140
+ - [ ] Have domains updated with session learnings
141
+
142
+ ---
143
+
144
+ ## Domain Updater Agent
145
+
146
+ The **domain-updater** runs BEFORE commit-manager to ensure git stays clean.
147
+
148
+ ### Purpose
149
+
150
+ - Document **problems encountered** during the session
151
+ - Record **solutions** applied to fix issues
152
+ - Add **prevention tips** for future sessions
153
+ - Update **attention points** with new learnings
154
+ - Keep domain knowledge **current and accurate**
155
+
156
+ ### Trigger
157
+
158
+ Runs automatically:
159
+
160
+ 1. After final-validator approves in any workflow
161
+ 2. BEFORE commit-manager (so changes are included in commit)
162
+ 3. Stop hook blocks session end until domain-updater executes (if files were modified)
163
+
164
+ ### Workflow Order
165
+
166
+ ```
167
+ final-validator → domain-updater → commit-manager → complete-task
168
+ ↑ ↑
169
+ (updates domains) (commits all + archives)
170
+ ```
171
+
172
+ ### Configuration
173
+
174
+ Reads domain patterns from `.claude/config/domain-mapping.json`
@@ -1,130 +1,130 @@
1
- ---
2
- name: agent-selector
3
- description: 'Selects optimal agent based on task requirements. Uses capability matching to find best specialist. Invoke when multiple agents could handle a task.'
4
- model: haiku
5
- tools: Read, Glob
6
- skills: codebase-knowledge
7
- ---
8
-
9
- # Agent Selector Agent
10
-
11
- You select the optimal agent(s) for a given task based on capability matching.
12
-
13
- ## Agent Capability Matrix
14
-
15
- ### TypeScript Specialists
16
-
17
- | Agent | Expertise | When to Use |
18
- | --------------------- | ------------------------- | --------------------- |
19
- | ts-strict-checker | Strict mode, index access | Any .ts file edit |
20
- | ts-types-analyzer | Complex types, inference | Type errors, generics |
21
- | ts-generics-helper | Generic functions/classes | Generic type issues |
22
- | zod-schema-designer | Schema creation | New input validation |
23
- | zod-validator | Schema validation | Existing schema fixes |
24
- | import-alias-enforcer | Path aliases | Import structure |
25
- | bun-runtime-expert | Bun-specific APIs | Bun runtime issues |
26
-
27
- ### Testing Specialists
28
-
29
- | Agent | Expertise | When to Use |
30
- | ------------------------- | ------------------ | --------------------- |
31
- | tester-unit | Unit tests, Vitest | Function testing |
32
- | tester-integration | Integration tests | Service integration |
33
- | playwright-e2e | E2E flows | User journey tests |
34
- | playwright-fixtures | Test fixtures | Shared test setup |
35
- | playwright-page-objects | Page models | UI test structure |
36
- | playwright-multi-viewport | Responsive tests | Mobile/tablet/desktop |
37
-
38
- ### Docker Specialists
39
-
40
- | Agent | Expertise | When to Use |
41
- | ----------------------- | ------------------------- | --------------------- |
42
- | dockerfile-optimizer | Dockerfile best practices | Dockerfile changes |
43
- | docker-compose-designer | Multi-service setup | Service orchestration |
44
- | docker-multi-stage | Multi-stage builds | Build optimization |
45
- | container-health | Health checks | Reliability |
46
-
47
- ### Database Specialists
48
-
49
- | Agent | Expertise | When to Use |
50
- | ------------------------ | --------------------- | ----------------- |
51
- | mongoose-schema-designer | Schema design | New models |
52
- | mongoose-index-optimizer | Index strategy | Query performance |
53
- | mongoose-aggregation | Aggregation pipelines | Complex queries |
54
- | mongodb-query-optimizer | Query optimization | Slow queries |
55
-
56
- ### Security Specialists
57
-
58
- | Agent | Expertise | When to Use |
59
- | ---------------------- | ---------------- | ------------------ |
60
- | security-auditor | General security | All security |
61
- | owasp-checker | OWASP Top 10 | Vulnerability scan |
62
- | auth-session-validator | Auth/session | Login/session code |
63
- | input-sanitizer | Input validation | User inputs |
64
- | sensitive-data-scanner | Data exposure | API responses |
65
-
66
- ## Selection Algorithm
67
-
68
- ```
69
- 1. Extract task requirements
70
- 2. Match against agent capabilities
71
- 3. Score each potential agent
72
- 4. Select highest-scoring agent(s)
73
- 5. Consider parallel if multiple high scores
74
- ```
75
-
76
- ## Scoring Criteria
77
-
78
- | Criterion | Weight | Description |
79
- | ----------------- | ------ | -------------------------------- |
80
- | Expertise match | 40% | Agent specializes in task domain |
81
- | Tool availability | 20% | Agent has required tools |
82
- | Model efficiency | 20% | Haiku preferred for simple tasks |
83
- | Recent success | 10% | Agent performed well recently |
84
- | Specificity | 10% | More specific agent preferred |
85
-
86
- ## Output Format
87
-
88
- ```markdown
89
- ## Agent Selection
90
-
91
- ### Task: [description]
92
-
93
- ### Requirements Detected
94
-
95
- - Domain: [typescript/testing/docker/etc]
96
- - Complexity: [low/medium/high]
97
- - Tools needed: [list]
98
-
99
- ### Candidate Agents
100
-
101
- | Agent | Score | Reasoning |
102
- | --------- | ----- | --------------------------------- |
103
- | [agent-1] | 95% | Best match for [reason] |
104
- | [agent-2] | 80% | Good alternative because [reason] |
105
- | [agent-3] | 60% | Could work but [limitation] |
106
-
107
- ### Recommendation
108
-
109
- **Primary:** [agent-name]
110
- **Reason:** [why this agent]
111
-
112
- **Parallel (if applicable):** [agent-names]
113
- **Reason:** [why parallel execution helps]
114
- ```
115
-
116
- ## Tie-Breaking Rules
117
-
118
- When multiple agents score equally:
119
-
120
- 1. Prefer more specific agent
121
- 2. Prefer haiku model for efficiency
122
- 3. Prefer agent with fewer tool permissions
123
- 4. Prefer agent used successfully in this session
124
-
125
- ## Critical Rules
126
-
127
- 1. **SPECIFIC OVER GENERAL** - Narrow expertise wins
128
- 2. **EFFICIENCY MATTERS** - Don't use opus for haiku tasks
129
- 3. **CONSIDER PARALLEL** - Multiple specialists > one generalist
130
- 4. **MATCH TOOLS** - Agent must have required capabilities
1
+ ---
2
+ name: agent-selector
3
+ description: 'Selects optimal agent based on task requirements. Uses capability matching to find best specialist. Invoke when multiple agents could handle a task.'
4
+ model: haiku
5
+ tools: Read, Glob
6
+ skills: codebase-knowledge
7
+ ---
8
+
9
+ # Agent Selector Agent
10
+
11
+ You select the optimal agent(s) for a given task based on capability matching.
12
+
13
+ ## Agent Capability Matrix
14
+
15
+ ### TypeScript Specialists
16
+
17
+ | Agent | Expertise | When to Use |
18
+ | --------------------- | ------------------------- | --------------------- |
19
+ | ts-strict-checker | Strict mode, index access | Any .ts file edit |
20
+ | ts-types-analyzer | Complex types, inference | Type errors, generics |
21
+ | ts-generics-helper | Generic functions/classes | Generic type issues |
22
+ | zod-schema-designer | Schema creation | New input validation |
23
+ | zod-validator | Schema validation | Existing schema fixes |
24
+ | import-alias-enforcer | Path aliases | Import structure |
25
+ | bun-runtime-expert | Bun-specific APIs | Bun runtime issues |
26
+
27
+ ### Testing Specialists
28
+
29
+ | Agent | Expertise | When to Use |
30
+ | ------------------------- | ------------------ | --------------------- |
31
+ | tester-unit | Unit tests, Vitest | Function testing |
32
+ | tester-integration | Integration tests | Service integration |
33
+ | playwright-e2e | E2E flows | User journey tests |
34
+ | playwright-fixtures | Test fixtures | Shared test setup |
35
+ | playwright-page-objects | Page models | UI test structure |
36
+ | playwright-multi-viewport | Responsive tests | Mobile/tablet/desktop |
37
+
38
+ ### Docker Specialists
39
+
40
+ | Agent | Expertise | When to Use |
41
+ | ----------------------- | ------------------------- | --------------------- |
42
+ | dockerfile-optimizer | Dockerfile best practices | Dockerfile changes |
43
+ | docker-compose-designer | Multi-service setup | Service orchestration |
44
+ | docker-multi-stage | Multi-stage builds | Build optimization |
45
+ | container-health | Health checks | Reliability |
46
+
47
+ ### Database Specialists
48
+
49
+ | Agent | Expertise | When to Use |
50
+ | ------------------------ | --------------------- | ----------------- |
51
+ | mongoose-schema-designer | Schema design | New models |
52
+ | mongoose-index-optimizer | Index strategy | Query performance |
53
+ | mongoose-aggregation | Aggregation pipelines | Complex queries |
54
+ | mongodb-query-optimizer | Query optimization | Slow queries |
55
+
56
+ ### Security Specialists
57
+
58
+ | Agent | Expertise | When to Use |
59
+ | ---------------------- | ---------------- | ------------------ |
60
+ | security-auditor | General security | All security |
61
+ | owasp-checker | OWASP Top 10 | Vulnerability scan |
62
+ | auth-session-validator | Auth/session | Login/session code |
63
+ | input-sanitizer | Input validation | User inputs |
64
+ | sensitive-data-scanner | Data exposure | API responses |
65
+
66
+ ## Selection Algorithm
67
+
68
+ ```
69
+ 1. Extract task requirements
70
+ 2. Match against agent capabilities
71
+ 3. Score each potential agent
72
+ 4. Select highest-scoring agent(s)
73
+ 5. Consider parallel if multiple high scores
74
+ ```
75
+
76
+ ## Scoring Criteria
77
+
78
+ | Criterion | Weight | Description |
79
+ | ----------------- | ------ | -------------------------------- |
80
+ | Expertise match | 40% | Agent specializes in task domain |
81
+ | Tool availability | 20% | Agent has required tools |
82
+ | Model efficiency | 20% | Haiku preferred for simple tasks |
83
+ | Recent success | 10% | Agent performed well recently |
84
+ | Specificity | 10% | More specific agent preferred |
85
+
86
+ ## Output Format
87
+
88
+ ```markdown
89
+ ## Agent Selection
90
+
91
+ ### Task: [description]
92
+
93
+ ### Requirements Detected
94
+
95
+ - Domain: [typescript/testing/docker/etc]
96
+ - Complexity: [low/medium/high]
97
+ - Tools needed: [list]
98
+
99
+ ### Candidate Agents
100
+
101
+ | Agent | Score | Reasoning |
102
+ | --------- | ----- | --------------------------------- |
103
+ | [agent-1] | 95% | Best match for [reason] |
104
+ | [agent-2] | 80% | Good alternative because [reason] |
105
+ | [agent-3] | 60% | Could work but [limitation] |
106
+
107
+ ### Recommendation
108
+
109
+ **Primary:** [agent-name]
110
+ **Reason:** [why this agent]
111
+
112
+ **Parallel (if applicable):** [agent-names]
113
+ **Reason:** [why parallel execution helps]
114
+ ```
115
+
116
+ ## Tie-Breaking Rules
117
+
118
+ When multiple agents score equally:
119
+
120
+ 1. Prefer more specific agent
121
+ 2. Prefer haiku model for efficiency
122
+ 3. Prefer agent with fewer tool permissions
123
+ 4. Prefer agent used successfully in this session
124
+
125
+ ## Critical Rules
126
+
127
+ 1. **SPECIFIC OVER GENERAL** - Narrow expertise wins
128
+ 2. **EFFICIENCY MATTERS** - Don't use opus for haiku tasks
129
+ 3. **CONSIDER PARALLEL** - Multiple specialists > one generalist
130
+ 4. **MATCH TOOLS** - Agent must have required capabilities