specialist-agent 1.6.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (176) hide show
  1. package/.claude-plugin/marketplace.json +77 -0
  2. package/.claude-plugin/plugin.json +43 -0
  3. package/.codex/INSTALL.md +113 -0
  4. package/.cursor-plugin/marketplace.json +9 -0
  5. package/.cursor-plugin/plugin.json +35 -0
  6. package/.opencode/INSTALL.md +123 -0
  7. package/README.md +204 -263
  8. package/agents/analyst-lite.md +48 -0
  9. package/agents/analyst.md +391 -0
  10. package/agents/api-lite.md +43 -0
  11. package/agents/api.md +145 -0
  12. package/agents/cloud-lite.md +1 -1
  13. package/agents/cloud.md +1 -1
  14. package/agents/data-lite.md +1 -1
  15. package/agents/data.md +1 -1
  16. package/agents/debugger-lite.md +46 -0
  17. package/agents/debugger.md +406 -0
  18. package/agents/deps-lite.md +41 -0
  19. package/agents/deps.md +206 -0
  20. package/agents/designer-lite.md +1 -1
  21. package/agents/designer.md +1 -1
  22. package/agents/devops-lite.md +1 -1
  23. package/agents/devops.md +1 -1
  24. package/agents/docs-lite.md +42 -0
  25. package/agents/docs.md +197 -0
  26. package/agents/executor-lite.md +61 -0
  27. package/agents/executor.md +456 -0
  28. package/agents/explorer-lite.md +1 -1
  29. package/agents/explorer.md +1 -1
  30. package/agents/finance-lite.md +1 -1
  31. package/agents/finance.md +1 -1
  32. package/agents/i18n-lite.md +44 -0
  33. package/agents/i18n.md +198 -0
  34. package/agents/legal-lite.md +1 -1
  35. package/agents/legal.md +1 -1
  36. package/agents/memory.md +240 -0
  37. package/agents/orchestrator-lite.md +40 -0
  38. package/agents/orchestrator.md +387 -0
  39. package/agents/pair-lite.md +38 -0
  40. package/agents/pair.md +308 -0
  41. package/agents/perf-lite.md +42 -0
  42. package/agents/perf.md +141 -0
  43. package/agents/planner-lite.md +59 -0
  44. package/agents/planner.md +265 -0
  45. package/agents/refactor-lite.md +42 -0
  46. package/agents/refactor.md +178 -0
  47. package/agents/scout-lite.md +37 -0
  48. package/agents/scout.md +222 -0
  49. package/agents/security-lite.md +1 -1
  50. package/agents/security.md +1 -1
  51. package/agents/starter-lite.md +1 -1
  52. package/agents/starter.md +1 -1
  53. package/agents/tdd-lite.md +43 -0
  54. package/agents/tdd.md +317 -0
  55. package/agents/tester-lite.md +1 -1
  56. package/agents/tester.md +1 -1
  57. package/cli/index.mjs +636 -15
  58. package/hooks/after-review.mjs +130 -0
  59. package/hooks/after-task.mjs +117 -0
  60. package/hooks/before-plan.mjs +155 -0
  61. package/hooks/before-review.mjs +139 -0
  62. package/hooks/hooks.json +81 -0
  63. package/hooks/native/auto-dispatch.mjs +197 -0
  64. package/hooks/native/auto-format.mjs +193 -0
  65. package/hooks/native/security-config.json +31 -0
  66. package/hooks/native/security-guard.mjs +267 -0
  67. package/hooks/native/session-context.mjs +136 -0
  68. package/hooks/native/settings-template.json +50 -0
  69. package/hooks/native/utils.mjs +62 -0
  70. package/hooks/on-error.mjs +129 -0
  71. package/hooks/session-end.mjs +185 -0
  72. package/hooks/session-start.mjs +154 -0
  73. package/package.json +16 -3
  74. package/packs/nextjs/agents/builder.md +24 -1
  75. package/packs/nextjs/agents/doctor.md +70 -4
  76. package/packs/nextjs/agents/migrator.md +24 -1
  77. package/packs/nextjs/agents/reviewer.md +93 -3
  78. package/packs/nextjs/agents-lite/builder.md +1 -1
  79. package/packs/nextjs/agents-lite/doctor.md +1 -1
  80. package/packs/nextjs/agents-lite/migrator.md +1 -1
  81. package/packs/nextjs/agents-lite/reviewer.md +1 -1
  82. package/packs/nextjs/skills/dev-create-component/SKILL.md +1 -1
  83. package/packs/nextjs/skills/dev-create-hook/SKILL.md +1 -1
  84. package/packs/nextjs/skills/dev-create-module/SKILL.md +1 -1
  85. package/packs/nextjs/skills/dev-create-service/SKILL.md +1 -1
  86. package/packs/nextjs/skills/dev-create-test/SKILL.md +1 -1
  87. package/packs/nextjs/skills/dev-generate-types/SKILL.md +1 -1
  88. package/packs/nextjs/skills/docs-onboard/SKILL.md +1 -1
  89. package/packs/nextjs/skills/migration-migrate-component/SKILL.md +1 -1
  90. package/packs/nextjs/skills/migration-migrate-module/SKILL.md +1 -1
  91. package/packs/nextjs/skills/review-check-architecture/SKILL.md +1 -1
  92. package/packs/nextjs/skills/review-fix-violations/SKILL.md +1 -1
  93. package/packs/nextjs/skills/review-review/SKILL.md +1 -1
  94. package/packs/react/agents/builder.md +24 -1
  95. package/packs/react/agents/doctor.md +107 -13
  96. package/packs/react/agents/migrator.md +24 -1
  97. package/packs/react/agents/reviewer.md +113 -9
  98. package/packs/react/agents-lite/builder.md +1 -1
  99. package/packs/react/agents-lite/doctor.md +1 -1
  100. package/packs/react/agents-lite/migrator.md +1 -1
  101. package/packs/react/agents-lite/reviewer.md +1 -1
  102. package/packs/react/skills/dev-create-component/SKILL.md +1 -1
  103. package/packs/react/skills/dev-create-hook/SKILL.md +1 -1
  104. package/packs/react/skills/dev-create-module/SKILL.md +1 -1
  105. package/packs/react/skills/dev-create-service/SKILL.md +1 -1
  106. package/packs/react/skills/dev-create-test/SKILL.md +1 -1
  107. package/packs/react/skills/dev-generate-types/SKILL.md +1 -1
  108. package/packs/react/skills/docs-onboard/SKILL.md +1 -1
  109. package/packs/react/skills/migration-migrate-component/SKILL.md +1 -1
  110. package/packs/react/skills/migration-migrate-module/SKILL.md +1 -1
  111. package/packs/react/skills/review-check-architecture/SKILL.md +1 -1
  112. package/packs/react/skills/review-fix-violations/SKILL.md +1 -1
  113. package/packs/react/skills/review-review/SKILL.md +1 -1
  114. package/packs/svelte/agents/builder.md +24 -1
  115. package/packs/svelte/agents/doctor.md +70 -4
  116. package/packs/svelte/agents/migrator.md +24 -1
  117. package/packs/svelte/agents/reviewer.md +93 -3
  118. package/packs/svelte/agents-lite/builder.md +1 -1
  119. package/packs/svelte/agents-lite/doctor.md +1 -1
  120. package/packs/svelte/agents-lite/migrator.md +1 -1
  121. package/packs/svelte/agents-lite/reviewer.md +1 -1
  122. package/packs/svelte/skills/dev-create-component/SKILL.md +1 -1
  123. package/packs/svelte/skills/dev-create-module/SKILL.md +1 -1
  124. package/packs/svelte/skills/dev-create-service/SKILL.md +1 -1
  125. package/packs/svelte/skills/dev-create-store/SKILL.md +1 -1
  126. package/packs/svelte/skills/dev-create-test/SKILL.md +1 -1
  127. package/packs/svelte/skills/dev-generate-types/SKILL.md +1 -1
  128. package/packs/svelte/skills/docs-onboard/SKILL.md +1 -1
  129. package/packs/svelte/skills/migration-migrate-component/SKILL.md +1 -1
  130. package/packs/svelte/skills/migration-migrate-module/SKILL.md +1 -1
  131. package/packs/svelte/skills/review-check-architecture/SKILL.md +1 -1
  132. package/packs/svelte/skills/review-fix-violations/SKILL.md +1 -1
  133. package/packs/svelte/skills/review-review/SKILL.md +1 -1
  134. package/packs/vue/agents/builder.md +24 -1
  135. package/packs/vue/agents/doctor.md +107 -13
  136. package/packs/vue/agents/migrator.md +24 -1
  137. package/packs/vue/agents/reviewer.md +113 -9
  138. package/packs/vue/agents-lite/builder.md +1 -1
  139. package/packs/vue/agents-lite/doctor.md +1 -1
  140. package/packs/vue/agents-lite/migrator.md +1 -1
  141. package/packs/vue/agents-lite/reviewer.md +1 -1
  142. package/packs/vue/skills/dev-create-component/SKILL.md +1 -1
  143. package/packs/vue/skills/dev-create-composable/SKILL.md +1 -1
  144. package/packs/vue/skills/dev-create-module/SKILL.md +1 -1
  145. package/packs/vue/skills/dev-create-service/SKILL.md +1 -1
  146. package/packs/vue/skills/dev-create-test/SKILL.md +1 -1
  147. package/packs/vue/skills/dev-generate-types/SKILL.md +1 -1
  148. package/packs/vue/skills/docs-onboard/SKILL.md +1 -1
  149. package/packs/vue/skills/migration-migrate-component/SKILL.md +1 -1
  150. package/packs/vue/skills/migration-migrate-module/SKILL.md +1 -1
  151. package/packs/vue/skills/review-check-architecture/SKILL.md +1 -1
  152. package/packs/vue/skills/review-fix-violations/SKILL.md +1 -1
  153. package/packs/vue/skills/review-review/SKILL.md +1 -1
  154. package/skills/audit/SKILL.md +169 -0
  155. package/skills/brainstorm/SKILL.md +245 -0
  156. package/skills/checkpoint/SKILL.md +209 -0
  157. package/skills/debug/SKILL.md +210 -0
  158. package/skills/estimate/SKILL.md +145 -0
  159. package/skills/finish/SKILL.md +211 -0
  160. package/skills/health/SKILL.md +242 -0
  161. package/skills/learn/SKILL.md +260 -0
  162. package/skills/migrate-framework/SKILL.md +172 -0
  163. package/skills/onboard/SKILL.md +168 -0
  164. package/skills/plan/SKILL.md +132 -0
  165. package/skills/recall/SKILL.md +150 -0
  166. package/skills/remember/SKILL.md +158 -0
  167. package/skills/tdd/SKILL.md +156 -0
  168. package/skills/tutorial/SKILL.md +346 -0
  169. package/skills/verify/SKILL.md +168 -0
  170. package/skills/worktree/SKILL.md +168 -0
  171. package/skills/write-skill/SKILL.md +213 -0
  172. package/templates/industry/ecommerce.md +127 -0
  173. package/templates/industry/fintech.md +161 -0
  174. package/templates/industry/saas.md +134 -0
  175. package/templates/session-memory.json +48 -0
  176. package/templates/skill-template/SKILL.md +90 -0
@@ -0,0 +1,156 @@
1
+ ---
2
+ name: tdd
3
+ description: "Use when implementing any feature or bugfix where correctness matters — before writing implementation code."
4
+ user-invocable: true
5
+ argument-hint: "[feature or function to implement]"
6
+ allowed-tools: Read, Write, Edit, Bash, Glob, Grep
7
+ ---
8
+
9
+ # /tdd — Test-Driven Development
10
+
11
+ Implement the feature using strict TDD methodology.
12
+
13
+ **Target:** $ARGUMENTS
14
+
15
+ ## Iron Law
16
+
17
+ ```
18
+ ╔══════════════════════════════════════════════════════════════╗
19
+ ║ NO IMPLEMENTATION CODE WITHOUT A FAILING TEST FIRST ║
20
+ ╚══════════════════════════════════════════════════════════════╝
21
+ ```
22
+
23
+ ## Workflow
24
+
25
+ ### Cycle Structure
26
+
27
+ For each behavior to implement:
28
+
29
+ ```
30
+ ┌───────┐ ┌───────┐ ┌──────────┐
31
+ │ RED │ ───► │ GREEN │ ───► │ REFACTOR │
32
+ └───────┘ └───────┘ └──────────┘
33
+ ```
34
+
35
+ ### Step 1: RED — Write Failing Test
36
+
37
+ 1. **Create/open test file**
38
+ 2. **Write test for ONE behavior:**
39
+ ```typescript
40
+ it('should [expected behavior] when [condition]', () => {
41
+ // Arrange
42
+ const input = ...;
43
+
44
+ // Act
45
+ const result = functionUnderTest(input);
46
+
47
+ // Assert
48
+ expect(result).toBe(expected);
49
+ });
50
+ ```
51
+ 3. **Run test:**
52
+ ```bash
53
+ npm test -- --testNamePattern="[test name]"
54
+ ```
55
+ 4. **Verify FAILS** — Capture output showing failure
56
+ 5. **BLOCKED** if test passes (wrong test or code exists)
57
+
58
+ ### Step 2: GREEN — Minimal Implementation
59
+
60
+ 1. **Write minimum code to pass:**
61
+ - No extra features
62
+ - No optimization
63
+ - Just enough to pass
64
+
65
+ 2. **Run test:**
66
+ ```bash
67
+ npm test -- --testNamePattern="[test name]"
68
+ ```
69
+ 3. **Verify PASSES** — Capture output showing success
70
+ 4. **BLOCKED** if test fails (fix before continuing)
71
+
72
+ ### Step 3: REFACTOR — Improve
73
+
74
+ 1. **Improve code quality:**
75
+ - Remove duplication
76
+ - Improve naming
77
+ - Simplify logic
78
+
79
+ 2. **Run ALL tests:**
80
+ ```bash
81
+ npm test
82
+ ```
83
+ 3. **Verify ALL PASS**
84
+ 4. **Commit cycle:**
85
+ ```bash
86
+ git add -A && git commit -m "feat: [behavior] (TDD cycle N)"
87
+ ```
88
+
89
+ ### Repeat
90
+
91
+ Continue cycles until feature is complete.
92
+
93
+ ## Verification Protocol
94
+
95
+ Every test run must be captured:
96
+
97
+ ```
98
+ ──── RED Phase ────
99
+ Test: should calculate discount for valid coupon
100
+ Running: npm test -- --testNamePattern="calculate discount"
101
+ Output:
102
+ FAIL src/discount.test.ts
103
+ ✕ should calculate discount for valid coupon
104
+ Expected: 90
105
+ Received: undefined
106
+ Status: FAIL ✓ — Proceeding to GREEN
107
+
108
+ ──── GREEN Phase ────
109
+ Running: npm test -- --testNamePattern="calculate discount"
110
+ Output:
111
+ PASS src/discount.test.ts
112
+ ✓ should calculate discount for valid coupon
113
+ Status: PASS ✓ — Proceeding to REFACTOR
114
+ ```
115
+
116
+ ## Output
117
+
118
+ ```
119
+ ──── /tdd ────
120
+ Feature: [name]
121
+
122
+ Cycle #1: [behavior]
123
+ RED: Test written, FAIL ✓
124
+ GREEN: Implemented, PASS ✓
125
+ REFACTOR: Cleaned, PASS ✓
126
+
127
+ Cycle #2: [behavior]
128
+ RED: Test written, FAIL ✓
129
+ GREEN: Implemented, PASS ✓
130
+ REFACTOR: Cleaned, PASS ✓
131
+
132
+ ──── TDD Summary ────
133
+ Cycles completed: 2
134
+ Tests added: 2
135
+ All tests passing: ✓
136
+ Coverage: [if available]
137
+ ```
138
+
139
+ ## Anti-Rationalization
140
+
141
+ | Excuse | Reality |
142
+ |--------|---------|
143
+ | "I know it works, no need to test first" | Write the test. If it works, RED phase takes 30 seconds. |
144
+ | "This is too simple for TDD" | Simple code has simple tests. No excuse to skip. |
145
+ | "I'll write tests after" | Tests written after implementation verify your bias, not correctness. |
146
+ | "The test framework isn't set up" | Set it up. That's part of the task. |
147
+ | "Just this once I'll skip RED" | "Just this once" is how every shortcut becomes a habit. |
148
+
149
+ ## Rules
150
+
151
+ 1. **Never implement before RED**
152
+ 2. **Capture all test output** — Proof, not trust
153
+ 3. **One behavior per test**
154
+ 4. **Minimal GREEN** — Just enough to pass
155
+ 5. **Always REFACTOR** — Don't skip
156
+ 6. **Document each cycle**
@@ -0,0 +1,346 @@
1
+ ---
2
+ name: tutorial
3
+ description: "Use when first using Specialist Agent, onboarding a new team member, or wanting to explore available agents and skills."
4
+ user-invocable: true
5
+ argument-hint: "[beginner|intermediate|advanced]"
6
+ allowed-tools: Read, Glob
7
+ ---
8
+
9
+ # /tutorial — Interactive Tutorial
10
+
11
+ Learn Specialist Agent with hands-on exercises.
12
+
13
+ **Level:** $ARGUMENTS (default: beginner)
14
+
15
+ ---
16
+
17
+ ## Beginner Tutorial
18
+
19
+ ### Step 1: Your First Agent
20
+
21
+ Agents are AI specialists. Each one does something specific.
22
+
23
+ **Try this:**
24
+ ```
25
+ Create a Button component with label and onClick props
26
+ ```
27
+
28
+ @builder will create the component following your project's patterns.
29
+
30
+ **What happened:**
31
+ - @builder read your ARCHITECTURE.md
32
+ - Created the component in the right folder
33
+ - Added TypeScript types
34
+ - Followed your naming conventions
35
+
36
+ ---
37
+
38
+ ### Step 2: Review Code
39
+
40
+ Now review what was created.
41
+
42
+ **Try this:**
43
+ ```
44
+ Review the Button component
45
+ ```
46
+
47
+ @reviewer checks:
48
+ 1. Does it meet requirements?
49
+ 2. Is the code clean?
50
+ 3. Does it follow architecture patterns?
51
+
52
+ ---
53
+
54
+ ### Step 3: Use Skills
55
+
56
+ Skills are shortcuts. They start with `/`.
57
+
58
+ **Try this:**
59
+ ```
60
+ /health
61
+ ```
62
+
63
+ This shows your project's health score.
64
+
65
+ **Other useful skills:**
66
+ - `/plan` — Plan a feature
67
+ - `/checkpoint` — Save your progress
68
+ - `/remember` — Save a decision
69
+
70
+ ---
71
+
72
+ ### Step 4: Debug an Issue
73
+
74
+ When something breaks:
75
+
76
+ **Try this:**
77
+ ```
78
+ Debug why the login button doesn't work
79
+ ```
80
+
81
+ @debugger will:
82
+ 1. Gather evidence
83
+ 2. Analyze the code
84
+ 3. Find the root cause
85
+ 4. Suggest a fix
86
+
87
+ ---
88
+
89
+ ### Beginner Complete
90
+
91
+ You learned:
92
+ - How to use @builder to create code
93
+ - How to use @reviewer to check quality
94
+ - How to use skills for quick actions
95
+ - How to use @debugger to fix issues
96
+
97
+ **Next:** Try `/tutorial intermediate`
98
+
99
+ ---
100
+
101
+ ## Intermediate Tutorial
102
+
103
+ ### Step 1: Planning Complex Features
104
+
105
+ For big features, plan first.
106
+
107
+ **Try this:**
108
+ ```
109
+ /plan add user authentication with login and registration
110
+ ```
111
+
112
+ @planner will:
113
+ 1. Assess complexity
114
+ 2. Break into tasks
115
+ 3. Estimate effort
116
+ 4. Ask for approval
117
+
118
+ ---
119
+
120
+ ### Step 2: Test-Driven Development
121
+
122
+ Write tests first with @tdd.
123
+
124
+ **Try this:**
125
+ ```
126
+ /tdd implement a calculateDiscount function
127
+ ```
128
+
129
+ The workflow:
130
+ 1. **RED** — Write failing test
131
+ 2. **GREEN** — Make it pass
132
+ 3. **REFACTOR** — Clean up
133
+
134
+ No code without failing test first.
135
+
136
+ ---
137
+
138
+ ### Step 3: Checkpoints
139
+
140
+ Save progress before risky changes.
141
+
142
+ **Try this:**
143
+ ```
144
+ /checkpoint create before-refactor
145
+ ```
146
+
147
+ If something goes wrong:
148
+ ```
149
+ /checkpoint restore before-refactor
150
+ ```
151
+
152
+ ---
153
+
154
+ ### Step 4: Session Memory
155
+
156
+ Remember decisions across sessions.
157
+
158
+ **Save a decision:**
159
+ ```
160
+ /remember use Zustand for state management
161
+ ```
162
+
163
+ **Recall later:**
164
+ ```
165
+ /recall state management
166
+ ```
167
+
168
+ ---
169
+
170
+ ### Step 5: Specialized Agents
171
+
172
+ Use specialist agents for specific domains.
173
+
174
+ | Agent | Use Case |
175
+ |-------|----------|
176
+ | `@api` | Design REST/GraphQL APIs |
177
+ | `@security` | Add authentication |
178
+ | `@finance` | Payment integration |
179
+ | `@perf` | Performance optimization |
180
+ | `@data` | Database design |
181
+
182
+ **Try this:**
183
+ ```
184
+ Use @api to design REST endpoints for products
185
+ ```
186
+
187
+ ---
188
+
189
+ ### Intermediate Complete
190
+
191
+ You learned:
192
+ - Planning with @planner
193
+ - TDD with @tdd
194
+ - Checkpoints for safety
195
+ - Session memory
196
+ - Specialist agents
197
+
198
+ **Next:** Try `/tutorial advanced`
199
+
200
+ ---
201
+
202
+ ## Advanced Tutorial
203
+
204
+ ### Step 1: Agent Composition
205
+
206
+ Agents can work together.
207
+
208
+ **Example workflow:**
209
+ ```
210
+ 1. @planner creates the plan
211
+ 2. @builder implements each task
212
+ 3. @reviewer validates the code
213
+ 4. @tester adds tests
214
+ ```
215
+
216
+ **Try this:**
217
+ ```
218
+ Plan and implement a products module with tests
219
+ ```
220
+
221
+ ---
222
+
223
+ ### Step 2: Custom Agents
224
+
225
+ Create your own agents.
226
+
227
+ **Command:**
228
+ ```bash
229
+ npx specialist-agent create-agent @my-agent
230
+ ```
231
+
232
+ **Agent structure:**
233
+ ```markdown
234
+ ---
235
+ name: my-agent
236
+ description: "What this agent does"
237
+ tools: Read, Write, Edit
238
+ ---
239
+
240
+ # @my-agent
241
+
242
+ ## Mission
243
+ One sentence describing the goal.
244
+
245
+ ## Workflow
246
+ 1. First step
247
+ 2. Second step
248
+
249
+ ## Rules
250
+ - Rule one
251
+ - Rule two
252
+ ```
253
+
254
+ ---
255
+
256
+ ### Step 3: Team Profiles
257
+
258
+ Set behavior for different contexts.
259
+
260
+ **Available profiles:**
261
+ - `startup-fast` — Move fast, minimal validation
262
+ - `enterprise-strict` — Full validation, strict rules
263
+ - `learning-mode` — Explain everything
264
+ - `cost-optimized` — Minimize token usage
265
+
266
+ **Set profile:**
267
+ ```bash
268
+ npx specialist-agent profiles set startup-fast
269
+ ```
270
+
271
+ ---
272
+
273
+ ### Step 4: Cost Optimization
274
+
275
+ Reduce token usage:
276
+
277
+ 1. **Use Lite mode** — 60-80% cheaper
278
+ 2. **Be specific** — Less exploration needed
279
+ 3. **Use @scout first** — Get recommendations
280
+ 4. **Batch related tasks** — Less context switching
281
+
282
+ **Check cost:**
283
+ ```
284
+ /estimate add payment integration
285
+ ```
286
+
287
+ ---
288
+
289
+ ### Step 5: Multi-Platform
290
+
291
+ Specialist Agent works on multiple platforms:
292
+
293
+ | Platform | How |
294
+ |----------|-----|
295
+ | Claude Code | Native support |
296
+ | Cursor | `.cursor-plugin/` |
297
+ | VS Code | `.vscode/extension.json` |
298
+ | Windsurf | `.windsurf/plugin.json` |
299
+
300
+ The agents and skills work the same everywhere.
301
+
302
+ ---
303
+
304
+ ### Advanced Complete
305
+
306
+ You learned:
307
+ - Agent composition
308
+ - Creating custom agents
309
+ - Team profiles
310
+ - Cost optimization
311
+ - Multi-platform usage
312
+
313
+ ---
314
+
315
+ ## Quick Reference
316
+
317
+ ### Agents
318
+
319
+ | Agent | What it Does |
320
+ |-------|--------------|
321
+ | @builder | Build code |
322
+ | @reviewer | Review code |
323
+ | @debugger | Fix bugs |
324
+ | @planner | Plan features |
325
+ | @tdd | Test-driven development |
326
+ | @api | API design |
327
+ | @security | Authentication |
328
+ | @finance | Payments |
329
+ | @perf | Performance |
330
+
331
+ ### Skills
332
+
333
+ | Skill | What it Does |
334
+ |-------|--------------|
335
+ | /plan | Plan a feature |
336
+ | /tdd | TDD workflow |
337
+ | /debug | Debug an issue |
338
+ | /checkpoint | Save/restore progress |
339
+ | /health | Project health score |
340
+ | /remember | Save decisions |
341
+ | /recall | Recall decisions |
342
+ | /estimate | Estimate cost |
343
+
344
+ ### Documentation
345
+
346
+ Full docs at: https://herbertjulio.github.io/specialist-agent/
@@ -0,0 +1,168 @@
1
+ ---
2
+ name: verify
3
+ description: "Use when about to claim work is complete, fixed, or passing — before committing, creating PRs, or moving to next task. Requires running verification commands and confirming output before making any success claims."
4
+ user-invocable: true
5
+ argument-hint: "[test|build|lint|all]"
6
+ allowed-tools: Bash, Read, Glob, Grep
7
+ ---
8
+
9
+ # /verify — Verification Before Completion
10
+
11
+ Evidence before claims. Always.
12
+
13
+ **Target:** $ARGUMENTS
14
+
15
+ ## The Iron Law
16
+
17
+ ```
18
+ NO COMPLETION CLAIMS WITHOUT FRESH VERIFICATION EVIDENCE
19
+ ```
20
+
21
+ If you haven't run the verification command in THIS message, you cannot claim it passes.
22
+
23
+ **Violating the letter of this rule is violating the spirit of this rule.**
24
+
25
+ ## When to Use
26
+
27
+ - Before committing code
28
+ - Before creating a pull request
29
+ - Before marking a task as complete
30
+ - Before moving to the next task in a plan
31
+ - After fixing a bug (prove it's actually fixed)
32
+ - NOT for: research or exploration tasks
33
+
34
+ ## The Gate Function
35
+
36
+ ```
37
+ BEFORE claiming any status:
38
+
39
+ 1. IDENTIFY — What command proves this claim?
40
+ 2. RUN — Execute the FULL command (fresh, complete, not cached)
41
+ 3. READ — Full output, check exit code, count failures
42
+ 4. VERIFY — Does output ACTUALLY confirm the claim?
43
+ → If NO: State actual status with evidence
44
+ → If YES: State claim WITH the evidence
45
+ 5. ONLY THEN — Make the claim
46
+
47
+ Skip any step = lying, not verifying.
48
+ ```
49
+
50
+ ## Verification Matrix
51
+
52
+ | Claim | Required Command | NOT Sufficient |
53
+ |-------|-----------------|----------------|
54
+ | "Tests pass" | `npm test` output: 0 failures | Previous run, "should pass" |
55
+ | "Lint clean" | `npm run lint` output: 0 errors | "I fixed the warning" |
56
+ | "Build succeeds" | `npm run build` exit code 0 | "Lint passed so build should too" |
57
+ | "Bug fixed" | Test that reproduces bug: PASS | "Code changed, should work" |
58
+ | "Types correct" | `npx tsc --noEmit` exit code 0 | "I added the types" |
59
+ | "No regressions" | Full test suite: 0 failures | "Only changed one file" |
60
+ | "Requirements met" | Line-by-line checklist verified | "Tests pass" |
61
+
62
+ ## Operations
63
+
64
+ ### /verify test
65
+ ```bash
66
+ npm test 2>&1
67
+ # Read FULL output
68
+ # Count: X passed, Y failed, Z skipped
69
+ # Exit code: 0 or non-zero
70
+ ```
71
+
72
+ ### /verify build
73
+ ```bash
74
+ npm run build 2>&1
75
+ # Check: exit code 0?
76
+ # Check: no error output?
77
+ ```
78
+
79
+ ### /verify lint
80
+ ```bash
81
+ npm run lint 2>&1
82
+ # Count: 0 errors, 0 warnings
83
+ ```
84
+
85
+ ### /verify types
86
+ ```bash
87
+ npx tsc --noEmit 2>&1
88
+ # Count: 0 errors
89
+ ```
90
+
91
+ ### /verify all
92
+ Run ALL of the above in sequence. Stop at first failure.
93
+
94
+ ### /verify (no args)
95
+ Auto-detect what to verify based on package.json scripts.
96
+
97
+ ## Output
98
+
99
+ ```
100
+ ──── /verify ────
101
+ Command: npm test
102
+ Exit code: 0
103
+ Result: 42/42 tests passed, 0 failed
104
+
105
+ VERIFIED ✓ — All tests pass (evidence above)
106
+ ```
107
+
108
+ Or:
109
+
110
+ ```
111
+ ──── /verify ────
112
+ Command: npm test
113
+ Exit code: 1
114
+ Result: 40/42 tests passed, 2 failed
115
+
116
+ FAILED ✗ — 2 tests failing:
117
+ - src/auth.test.ts: "should validate token" — Expected true, got false
118
+ - src/user.test.ts: "should create user" — Timeout after 5000ms
119
+
120
+ DO NOT claim completion. Fix failures first.
121
+ ```
122
+
123
+ ## Red Flags — STOP
124
+
125
+ If you catch yourself thinking:
126
+ - "Should work now"
127
+ - "I'm confident this is correct"
128
+ - "Just this once I can skip verification"
129
+ - "Lint passed, so build will too"
130
+ - "I only changed one line"
131
+ - "The agent said it succeeded"
132
+ - "I'll verify after committing"
133
+ - "It's obvious this works"
134
+
135
+ **ALL of these mean: RUN THE COMMAND. READ THE OUTPUT.**
136
+
137
+ ## Rationalization Prevention
138
+
139
+ | Excuse | Reality |
140
+ |--------|---------|
141
+ | "Should work now" | RUN the verification |
142
+ | "I'm confident" | Confidence is not evidence |
143
+ | "Just this once" | No exceptions, ever |
144
+ | "Lint passed" | Lint is not build is not test |
145
+ | "Agent said success" | Verify independently |
146
+ | "I only changed a comment" | Comments can break builds (JSX, directives) |
147
+ | "Previous run passed" | State changed since then. Run again. |
148
+ | "Partial check is enough" | Partial proves nothing |
149
+ | "Too slow to run full suite" | Slow verification beats fast regression |
150
+
151
+ ## Integration
152
+
153
+ This skill is a **cross-cutting concern**. It applies to:
154
+ - @builder — Before claiming module is complete
155
+ - @executor — Before marking task checkpoint
156
+ - @tdd — Before claiming GREEN phase
157
+ - @reviewer — Before giving verdict
158
+ - @debugger — Before claiming bug is fixed
159
+ - @migrator — Before claiming migration is complete
160
+
161
+ ## Rules
162
+
163
+ 1. **Evidence before claims** — Non-negotiable
164
+ 2. **Fresh runs only** — Never cite previous runs
165
+ 3. **Full output** — Don't truncate or summarize
166
+ 4. **Exit codes matter** — 0 = success, anything else = failure
167
+ 5. **Read warnings** — Warnings can indicate real problems
168
+ 6. **One claim per verification** — Don't bundle claims