specialist-agent 2.5.0 → 2.8.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 (215) hide show
  1. package/.claude-plugin/marketplace.json +8 -8
  2. package/.claude-plugin/plugin.json +3 -3
  3. package/.codex/INSTALL.md +12 -3
  4. package/.cursor-plugin/marketplace.json +1 -1
  5. package/.cursor-plugin/plugin.json +3 -3
  6. package/.opencode/INSTALL.md +12 -3
  7. package/LICENSE +1 -1
  8. package/README.md +8 -6
  9. package/agents/analyst-lite.md +1 -1
  10. package/agents/analyst.md +7 -7
  11. package/agents/api-lite.md +5 -5
  12. package/agents/api.md +13 -13
  13. package/agents/architect-lite.md +104 -0
  14. package/agents/architect.md +26 -26
  15. package/agents/cloud-lite.md +3 -3
  16. package/agents/cloud.md +15 -15
  17. package/agents/data-lite.md +1 -1
  18. package/agents/data.md +26 -26
  19. package/agents/debugger-lite.md +2 -2
  20. package/agents/debugger.md +15 -15
  21. package/agents/deps-lite.md +4 -4
  22. package/agents/deps.md +21 -21
  23. package/agents/designer-lite.md +1 -1
  24. package/agents/designer.md +13 -13
  25. package/agents/devops-lite.md +1 -1
  26. package/agents/devops.md +11 -11
  27. package/agents/docs-lite.md +5 -5
  28. package/agents/docs.md +39 -30
  29. package/agents/executor-lite.md +1 -1
  30. package/agents/executor.md +25 -25
  31. package/agents/explorer-lite.md +3 -3
  32. package/agents/explorer.md +13 -13
  33. package/agents/finance-lite.md +1 -1
  34. package/agents/finance.md +18 -18
  35. package/agents/i18n-lite.md +4 -4
  36. package/agents/i18n.md +24 -24
  37. package/agents/legal-lite.md +9 -9
  38. package/agents/legal.md +15 -15
  39. package/agents/memory.md +10 -10
  40. package/agents/orchestrator-lite.md +1 -1
  41. package/agents/orchestrator.md +8 -8
  42. package/agents/pair-lite.md +2 -2
  43. package/agents/pair.md +14 -14
  44. package/agents/perf-lite.md +4 -4
  45. package/agents/perf.md +20 -20
  46. package/agents/planner-lite.md +4 -4
  47. package/agents/planner.md +21 -21
  48. package/agents/refactor-lite.md +4 -4
  49. package/agents/refactor.md +32 -32
  50. package/agents/ripple-lite.md +8 -8
  51. package/agents/ripple.md +14 -14
  52. package/agents/scout-lite.md +2 -2
  53. package/agents/scout.md +20 -20
  54. package/agents/security-lite.md +1 -1
  55. package/agents/security.md +18 -18
  56. package/agents/starter-lite.md +3 -3
  57. package/agents/starter.md +29 -29
  58. package/agents/tdd-lite.md +2 -2
  59. package/agents/tdd.md +16 -16
  60. package/agents/tester-lite.md +1 -1
  61. package/agents/tester.md +18 -18
  62. package/cli/index.mjs +47 -16
  63. package/hooks/native/auto-dispatch.mjs +4 -4
  64. package/hooks/native/auto-format.mjs +13 -10
  65. package/hooks/native/security-guard.mjs +19 -13
  66. package/hooks/native/session-context.mjs +2 -2
  67. package/hooks/native/utils.mjs +1 -1
  68. package/package.json +2 -2
  69. package/packs/angular/CLAUDE.md +2 -2
  70. package/packs/angular/agents/builder.md +14 -14
  71. package/packs/angular/agents/doctor.md +14 -14
  72. package/packs/angular/agents/migrator.md +16 -16
  73. package/packs/angular/agents/reviewer.md +22 -22
  74. package/packs/angular/agents-lite/builder.md +1 -1
  75. package/packs/angular/agents-lite/doctor.md +1 -1
  76. package/packs/angular/agents-lite/migrator.md +2 -2
  77. package/packs/angular/agents-lite/reviewer.md +8 -8
  78. package/packs/angular/skills/dev-create-component/SKILL.md +1 -1
  79. package/packs/angular/skills/dev-create-injectable/SKILL.md +2 -2
  80. package/packs/angular/skills/dev-create-module/SKILL.md +1 -1
  81. package/packs/angular/skills/dev-create-service/SKILL.md +1 -1
  82. package/packs/angular/skills/dev-create-test/SKILL.md +1 -1
  83. package/packs/angular/skills/migration-migrate-module/SKILL.md +1 -1
  84. package/packs/angular/skills/review-check-architecture/SKILL.md +1 -1
  85. package/packs/angular/skills/review-review/SKILL.md +5 -5
  86. package/packs/astro/ARCHITECTURE.md +17 -17
  87. package/packs/astro/CLAUDE.md +4 -4
  88. package/packs/astro/agents/builder.md +28 -28
  89. package/packs/astro/agents/doctor.md +15 -15
  90. package/packs/astro/agents/migrator.md +18 -18
  91. package/packs/astro/agents/reviewer.md +26 -26
  92. package/packs/astro/agents-lite/builder.md +1 -1
  93. package/packs/astro/agents-lite/doctor.md +2 -2
  94. package/packs/astro/agents-lite/migrator.md +10 -10
  95. package/packs/astro/agents-lite/reviewer.md +9 -9
  96. package/packs/astro/skills/dev-create-component/SKILL.md +1 -1
  97. package/packs/astro/skills/dev-create-island/SKILL.md +7 -7
  98. package/packs/astro/skills/dev-create-module/SKILL.md +1 -1
  99. package/packs/astro/skills/dev-create-service/SKILL.md +5 -5
  100. package/packs/astro/skills/dev-create-test/SKILL.md +4 -4
  101. package/packs/astro/skills/dev-generate-types/SKILL.md +6 -6
  102. package/packs/astro/skills/migration-migrate-module/SKILL.md +1 -1
  103. package/packs/astro/skills/review-check-architecture/SKILL.md +1 -1
  104. package/packs/astro/skills/review-review/SKILL.md +5 -5
  105. package/packs/nextjs/CLAUDE.md +2 -2
  106. package/packs/nextjs/agents/builder.md +12 -12
  107. package/packs/nextjs/agents/doctor.md +11 -11
  108. package/packs/nextjs/agents/migrator.md +14 -14
  109. package/packs/nextjs/agents/reviewer.md +17 -17
  110. package/packs/nextjs/agents-lite/builder.md +1 -1
  111. package/packs/nextjs/agents-lite/doctor.md +1 -1
  112. package/packs/nextjs/agents-lite/migrator.md +2 -2
  113. package/packs/nextjs/agents-lite/reviewer.md +4 -4
  114. package/packs/nextjs/skills/dev-create-component/SKILL.md +1 -1
  115. package/packs/nextjs/skills/dev-create-hook/SKILL.md +1 -1
  116. package/packs/nextjs/skills/dev-create-module/SKILL.md +1 -1
  117. package/packs/nextjs/skills/dev-create-service/SKILL.md +1 -1
  118. package/packs/nextjs/skills/dev-create-test/SKILL.md +1 -1
  119. package/packs/nextjs/skills/migration-migrate-module/SKILL.md +1 -1
  120. package/packs/nextjs/skills/review-check-architecture/SKILL.md +1 -1
  121. package/packs/nextjs/skills/review-review/SKILL.md +1 -1
  122. package/packs/nuxt/ARCHITECTURE.md +25 -25
  123. package/packs/nuxt/CLAUDE.md +6 -6
  124. package/packs/nuxt/agents/builder.md +24 -24
  125. package/packs/nuxt/agents/doctor.md +15 -15
  126. package/packs/nuxt/agents/migrator.md +15 -15
  127. package/packs/nuxt/agents/reviewer.md +23 -23
  128. package/packs/nuxt/agents-lite/builder.md +1 -1
  129. package/packs/nuxt/agents-lite/doctor.md +3 -3
  130. package/packs/nuxt/agents-lite/migrator.md +8 -8
  131. package/packs/nuxt/agents-lite/reviewer.md +8 -8
  132. package/packs/nuxt/skills/dev-create-component/SKILL.md +1 -1
  133. package/packs/nuxt/skills/dev-create-composable/SKILL.md +1 -1
  134. package/packs/nuxt/skills/dev-create-module/SKILL.md +1 -1
  135. package/packs/nuxt/skills/dev-create-service/SKILL.md +5 -5
  136. package/packs/nuxt/skills/dev-create-test/SKILL.md +2 -2
  137. package/packs/nuxt/skills/dev-generate-types/SKILL.md +6 -6
  138. package/packs/nuxt/skills/migration-migrate-module/SKILL.md +1 -1
  139. package/packs/nuxt/skills/review-check-architecture/SKILL.md +1 -1
  140. package/packs/nuxt/skills/review-review/SKILL.md +5 -5
  141. package/packs/react/CLAUDE.md +2 -2
  142. package/packs/react/agents/builder.md +12 -12
  143. package/packs/react/agents/doctor.md +13 -13
  144. package/packs/react/agents/migrator.md +14 -14
  145. package/packs/react/agents/reviewer.md +18 -18
  146. package/packs/react/agents-lite/builder.md +1 -1
  147. package/packs/react/agents-lite/doctor.md +1 -1
  148. package/packs/react/agents-lite/migrator.md +2 -2
  149. package/packs/react/agents-lite/reviewer.md +4 -4
  150. package/packs/react/skills/dev-create-component/SKILL.md +1 -1
  151. package/packs/react/skills/dev-create-hook/SKILL.md +1 -1
  152. package/packs/react/skills/dev-create-module/SKILL.md +1 -1
  153. package/packs/react/skills/dev-create-service/SKILL.md +1 -1
  154. package/packs/react/skills/dev-create-test/SKILL.md +1 -1
  155. package/packs/react/skills/migration-migrate-module/SKILL.md +1 -1
  156. package/packs/react/skills/review-check-architecture/SKILL.md +1 -1
  157. package/packs/react/skills/review-review/SKILL.md +1 -1
  158. package/packs/svelte/CLAUDE.md +2 -2
  159. package/packs/svelte/agents/builder.md +12 -12
  160. package/packs/svelte/agents/doctor.md +11 -11
  161. package/packs/svelte/agents/migrator.md +14 -14
  162. package/packs/svelte/agents/reviewer.md +17 -17
  163. package/packs/svelte/agents-lite/builder.md +1 -1
  164. package/packs/svelte/agents-lite/doctor.md +1 -1
  165. package/packs/svelte/agents-lite/migrator.md +2 -2
  166. package/packs/svelte/agents-lite/reviewer.md +4 -4
  167. package/packs/svelte/skills/dev-create-component/SKILL.md +1 -1
  168. package/packs/svelte/skills/dev-create-module/SKILL.md +1 -1
  169. package/packs/svelte/skills/dev-create-service/SKILL.md +1 -1
  170. package/packs/svelte/skills/dev-create-store/SKILL.md +1 -1
  171. package/packs/svelte/skills/dev-create-test/SKILL.md +1 -1
  172. package/packs/svelte/skills/migration-migrate-module/SKILL.md +1 -1
  173. package/packs/svelte/skills/review-check-architecture/SKILL.md +1 -1
  174. package/packs/svelte/skills/review-review/SKILL.md +1 -1
  175. package/packs/vue/ARCHITECTURE.md +7 -7
  176. package/packs/vue/CLAUDE.md +3 -3
  177. package/packs/vue/agents/builder.md +24 -24
  178. package/packs/vue/agents/doctor.md +14 -14
  179. package/packs/vue/agents/migrator.md +15 -15
  180. package/packs/vue/agents/reviewer.md +23 -23
  181. package/packs/vue/agents-lite/builder.md +1 -1
  182. package/packs/vue/agents-lite/doctor.md +2 -2
  183. package/packs/vue/agents-lite/migrator.md +8 -8
  184. package/packs/vue/agents-lite/reviewer.md +8 -8
  185. package/packs/vue/skills/dev-create-component/SKILL.md +1 -1
  186. package/packs/vue/skills/dev-create-composable/SKILL.md +1 -1
  187. package/packs/vue/skills/dev-create-module/SKILL.md +1 -1
  188. package/packs/vue/skills/dev-create-service/SKILL.md +5 -5
  189. package/packs/vue/skills/dev-create-test/SKILL.md +2 -2
  190. package/packs/vue/skills/dev-generate-types/SKILL.md +6 -6
  191. package/packs/vue/skills/migration-migrate-module/SKILL.md +1 -1
  192. package/packs/vue/skills/review-check-architecture/SKILL.md +1 -1
  193. package/packs/vue/skills/review-review/SKILL.md +1 -1
  194. package/skills/audit/SKILL.md +10 -10
  195. package/skills/brainstorm/SKILL.md +27 -27
  196. package/skills/checkpoint/SKILL.md +3 -3
  197. package/skills/codereview/SKILL.md +28 -28
  198. package/skills/commit/SKILL.md +9 -9
  199. package/skills/debug/SKILL.md +7 -7
  200. package/skills/estimate/SKILL.md +1 -1
  201. package/skills/finish/SKILL.md +5 -5
  202. package/skills/health/SKILL.md +9 -9
  203. package/skills/learn/SKILL.md +9 -9
  204. package/skills/lint/SKILL.md +9 -9
  205. package/skills/migrate-framework/SKILL.md +7 -7
  206. package/skills/onboard/SKILL.md +10 -10
  207. package/skills/plan/SKILL.md +10 -10
  208. package/skills/recall/SKILL.md +5 -5
  209. package/skills/remember/SKILL.md +5 -5
  210. package/skills/tdd/SKILL.md +12 -12
  211. package/skills/tutorial/SKILL.md +16 -16
  212. package/skills/verify/SKILL.md +24 -24
  213. package/skills/worktree/SKILL.md +8 -8
  214. package/skills/write-skill/SKILL.md +16 -16
  215. package/templates/skill-template/SKILL.md +5 -5
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  /**
4
- * Security Guard — PreToolUse Hook (Bash)
4
+ * Security Guard - PreToolUse Hook (Bash)
5
5
  *
6
6
  * Blocks dangerous shell commands BEFORE they execute.
7
7
  * Design: fail-closed (if this script crashes, exit 2 = block).
@@ -22,7 +22,7 @@ const __dirname = dirname(__filename);
22
22
  // ── Security Rules ──────────────────────────────────────────
23
23
 
24
24
  const RULES = [
25
- // CRITICAL — always block, no exceptions
25
+ // CRITICAL - always block, no exceptions
26
26
  {
27
27
  id: 'catastrophic-rm',
28
28
  severity: 'CRITICAL',
@@ -34,12 +34,13 @@ const RULES = [
34
34
  // Check target paths
35
35
  const dangerousTargets = [
36
36
  /\s\/\s*$/, /\s\/[^a-zA-Z]/, // rm -rf /
37
- /\s~\s*$/, /\s~\/\s*$/, // rm -rf ~ or ~/
38
- /\s\.\s*$/, /\s\.\/\s*$/, // rm -rf . or ./
37
+ /\s~\s*$/, /\s~\//, // rm -rf ~ or ~/...
38
+ /\s\.\s*$/, /\s\.\//, // rm -rf . or ./...
39
+ /\s\.\.\s*$/, /\s\.\.\//, // rm -rf .. or ../...
39
40
  ];
40
41
  for (const pattern of dangerousTargets) {
41
42
  if (pattern.test(' ' + normalized)) {
42
- // Check allowlist — safe directories are OK
43
+ // Check allowlist - safe directories are OK
43
44
  const safeTargets = [
44
45
  /node_modules/, /dist[\/\\]?/, /build[\/\\]?/, /\.next[\/\\]?/,
45
46
  /\.nuxt[\/\\]?/, /\.svelte-kit[\/\\]?/, /coverage[\/\\]?/,
@@ -70,7 +71,7 @@ const RULES = [
70
71
  message: 'BLOCKED [CRITICAL]: Disk wipe command detected. This would destroy disk data irreversibly.'
71
72
  },
72
73
 
73
- // HIGH — block with descriptive message
74
+ // HIGH - block with descriptive message
74
75
  {
75
76
  id: 'force-push-protected',
76
77
  severity: 'HIGH',
@@ -123,7 +124,7 @@ const RULES = [
123
124
  message: 'BLOCKED [HIGH]: chmod 777 makes files world-readable/writable/executable.\nUse specific permissions instead: chmod 755 (directories), chmod 644 (files), chmod 600 (secrets).'
124
125
  },
125
126
 
126
- // MEDIUM — block access to sensitive files
127
+ // MEDIUM - block access to sensitive files
127
128
  {
128
129
  id: 'env-file-read',
129
130
  severity: 'MEDIUM',
@@ -155,8 +156,8 @@ const RULES = [
155
156
  test: (cmd) => {
156
157
  // Block patterns like: export SECRET_KEY=actual_value, TOKEN=xxx command
157
158
  const secretPatterns = [
158
- /\b\w*(API_KEY|SECRET|TOKEN|PASSWORD|CREDENTIALS|PRIVATE_KEY)\w*\s*=\s*['"][^'"]{8,}['"]/i,
159
- /\bexport\s+\w*(API_KEY|SECRET|TOKEN|PASSWORD|CREDENTIALS|PRIVATE_KEY)\w*\s*=\s*\S{8,}/i,
159
+ /\b\w*(API_KEY|SECRET|TOKEN|PASSWORD|CREDENTIALS|PRIVATE_KEY)\w*\s*=\s*['"][^'"]{8,256}['"]/i,
160
+ /\bexport\s+\w*(API_KEY|SECRET|TOKEN|PASSWORD|CREDENTIALS|PRIVATE_KEY)\w*\s*=\s*\S{8,256}/i,
160
161
  ];
161
162
  return secretPatterns.some(p => p.test(cmd));
162
163
  },
@@ -183,9 +184,14 @@ export function evaluateCommand(command, config = {}) {
183
184
  // Check if rule is disabled in config
184
185
  if (enabledRules[rule.id]?.enabled === false) continue;
185
186
 
186
- // Check allowlist
187
+ // Check allowlist — normalize whitespace and compare the full command
188
+ // to prevent bypass via chaining (e.g. "rm -rf dist; malicious")
187
189
  const allowlist = config?.allowlist || [];
188
- const isAllowed = allowlist.some(pattern => command.includes(pattern));
190
+ const normalizedCmd = command.replace(/\s+/g, ' ').trim();
191
+ const isAllowed = allowlist.some(pattern => {
192
+ const normalizedPattern = pattern.replace(/\s+/g, ' ').trim();
193
+ return normalizedCmd === normalizedPattern;
194
+ });
189
195
  if (isAllowed) continue;
190
196
 
191
197
  // Test the rule
@@ -227,7 +233,7 @@ async function main() {
227
233
  }
228
234
 
229
235
  if (!input?.tool_input?.command) {
230
- // No command to evaluate — allow
236
+ // No command to evaluate - allow
231
237
  process.exit(0);
232
238
  }
233
239
 
@@ -253,7 +259,7 @@ async function main() {
253
259
  process.exit(2);
254
260
  }
255
261
 
256
- // Allow — silent exit
262
+ // Allow - silent exit
257
263
  process.exit(0);
258
264
  }
259
265
 
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  /**
4
- * Session Context — SessionStart Hook
4
+ * Session Context - SessionStart Hook
5
5
  *
6
6
  * Injects project state as context when a Claude Code session begins.
7
7
  * All operations are read-only. Errors are silently ignored.
@@ -130,7 +130,7 @@ async function main() {
130
130
 
131
131
  if (process.argv[1] && resolve(process.argv[1]) === resolve(__filename)) {
132
132
  main().catch(() => {
133
- // Advisory hook — never block on error
133
+ // Advisory hook - never block on error
134
134
  process.exit(0);
135
135
  });
136
136
  }
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  /**
4
- * Native Hooks — Shared Utilities
4
+ * Native Hooks - Shared Utilities
5
5
  * Common functions for all Claude Code native hooks.
6
6
  */
7
7
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "specialist-agent",
3
- "version": "2.5.0",
3
+ "version": "2.8.0",
4
4
  "type": "module",
5
5
  "description": "AI agents for Claude Code — any framework, any stack",
6
6
  "bin": {
@@ -63,7 +63,7 @@
63
63
  "type": "git",
64
64
  "url": "https://github.com/HerbertJulio/specialist-agent"
65
65
  },
66
- "homepage": "https://herbertjulio.github.io/specialist-agent/",
66
+ "homepage": "https://specialistagent.com.br/",
67
67
  "bugs": {
68
68
  "url": "https://github.com/HerbertJulio/specialist-agent/issues"
69
69
  },
@@ -12,7 +12,7 @@ Development toolkit for Angular projects with TypeScript. Includes AI agents, sk
12
12
 
13
13
  ### Auto-Dispatch Rules
14
14
 
15
- You **MUST** automatically delegate to the correct agent based on the user's intent. Do NOT ask which agent to use — detect it from the request:
15
+ You **MUST** automatically delegate to the correct agent based on the user's intent. Do NOT ask which agent to use - detect it from the request:
16
16
 
17
17
  | User intent | Agent |
18
18
  |-------------|-------|
@@ -91,7 +91,7 @@ Rules:
91
91
 
92
92
  - Only show agents/skills that were actually invoked during the execution
93
93
  - If no agents or skills were used, omit the summary entirely
94
- - Use the exact format above — single line, separated by `·`
94
+ - Use the exact format above - single line, separated by `·`
95
95
 
96
96
  ### Key Patterns (details in docs/ARCHITECTURE.md)
97
97
 
@@ -15,22 +15,22 @@ Read `docs/ARCHITECTURE.md`.
15
15
  ## Core Principles
16
16
 
17
17
  ### Security First (Mandatory)
18
- - NEVER trust user input — validate and sanitize ALL inputs on server side
19
- - ALWAYS use parameterized queries — never string concatenation for SQL/NoSQL
18
+ - NEVER trust user input - validate and sanitize ALL inputs on server side
19
+ - ALWAYS use parameterized queries - never string concatenation for SQL/NoSQL
20
20
  - NEVER expose sensitive data (tokens, passwords, PII) in logs, URLs, or error messages
21
21
  - ALWAYS implement rate limiting on public endpoints
22
22
  - Use HTTPS everywhere, set secure headers (CSP, HSTS, X-Frame-Options)
23
- - Follow OWASP Top 10 — prevent XSS, CSRF, injection, broken auth, etc.
24
- - Secrets in environment variables only — never hardcode
23
+ - Follow OWASP Top 10 - prevent XSS, CSRF, injection, broken auth, etc.
24
+ - Secrets in environment variables only - never hardcode
25
25
 
26
26
  ### Performance First (Mandatory)
27
27
  - ALWAYS use OnPush change detection for components
28
28
  - Use Angular Signals (signal, computed, effect) for reactive state
29
29
  - Lazy load routes and feature modules
30
30
  - Use trackBy with @for to minimize DOM operations
31
- - Avoid unnecessary subscriptions — prefer signals over RxJS where possible
32
- - Use HttpClient with proper typing — no inline transformations
33
- - Avoid N+1 queries — batch requests, use proper data loading patterns
31
+ - Avoid unnecessary subscriptions - prefer signals over RxJS where possible
32
+ - Use HttpClient with proper typing - no inline transformations
33
+ - Avoid N+1 queries - batch requests, use proper data loading patterns
34
34
 
35
35
  ### Code Language (Mandatory)
36
36
  - ALWAYS write code (variables, functions, comments, commits) in English
@@ -93,9 +93,9 @@ Read `docs/ARCHITECTURE.md`.
93
93
  **Before claiming ANY module/component is complete:**
94
94
 
95
95
  ```
96
- 1. RUN `npx tsc --noEmit` — No TypeScript errors
97
- 2. RUN `ng test --watch=false` — All tests pass
98
- 3. RUN `ng build` — Build succeeds
96
+ 1. RUN `npx tsc --noEmit` - No TypeScript errors
97
+ 2. RUN `ng test --watch=false` - All tests pass
98
+ 3. RUN `ng build` - Build succeeds
99
99
  4. VERIFY files exist as specified
100
100
  5. ONLY THEN claim "complete" WITH evidence
101
101
  ```
@@ -117,15 +117,15 @@ Read `docs/ARCHITECTURE.md`.
117
117
  - Services: no try/catch, no transformation, HttpClient only
118
118
  - Adapters: pure functions, no side effects
119
119
  - Components: standalone, input()/output() signals, OnPush, < 200 lines
120
- - inject() for all dependency injection — no constructor DI
121
- - **Verify before claiming complete** — Tests pass = complete
120
+ - inject() for all dependency injection - no constructor DI
121
+ - **Verify before claiming complete** - Tests pass = complete
122
122
 
123
123
  ## Output
124
124
 
125
125
  After completing work in any mode, provide:
126
126
 
127
127
  ```markdown
128
- ## Built — [Mode: Module | Component | Service | ...]
128
+ ## Built - [Mode: Module | Component | Service | ...]
129
129
  ### Files created
130
130
  - [List with paths]
131
131
  ### Patterns applied
@@ -154,4 +154,4 @@ Rules:
154
154
 
155
155
  - Only show agents/skills that were actually invoked during the execution
156
156
  - If no agents or skills were used, omit the summary entirely
157
- - Use the exact format above — single line, separated by `·`
157
+ - Use the exact format above - single line, separated by `·`
@@ -7,7 +7,7 @@ tools: Read, Write, Edit, Bash, Glob, Grep
7
7
  # Doctor -- Systematic 4-Phase Debugging
8
8
 
9
9
  ## Mission
10
- Investigate bugs using systematic 4-phase methodology. Never guess — build hypotheses from evidence and prove them before fixing.
10
+ Investigate bugs using systematic 4-phase methodology. Never guess - build hypotheses from evidence and prove them before fixing.
11
11
 
12
12
  ## First Action
13
13
  Read `docs/ARCHITECTURE.md` to understand the expected data flow.
@@ -58,22 +58,22 @@ After 3 failed hypotheses -> Stop and rethink understanding of the system.
58
58
  ## Core Principles
59
59
 
60
60
  ### Security First (Mandatory)
61
- - NEVER trust user input — validate and sanitize ALL inputs on server side
62
- - ALWAYS use parameterized queries — never string concatenation for SQL/NoSQL
61
+ - NEVER trust user input - validate and sanitize ALL inputs on server side
62
+ - ALWAYS use parameterized queries - never string concatenation for SQL/NoSQL
63
63
  - NEVER expose sensitive data (tokens, passwords, PII) in logs, URLs, or error messages
64
64
  - ALWAYS implement rate limiting on public endpoints
65
65
  - Use HTTPS everywhere, set secure headers (CSP, HSTS, X-Frame-Options)
66
- - Follow OWASP Top 10 — prevent XSS, CSRF, injection, broken auth, etc.
67
- - Secrets in environment variables only — never hardcode
66
+ - Follow OWASP Top 10 - prevent XSS, CSRF, injection, broken auth, etc.
67
+ - Secrets in environment variables only - never hardcode
68
68
 
69
69
  ### Performance First (Mandatory)
70
70
  - ALWAYS use OnPush change detection for components
71
71
  - Use Angular Signals (signal, computed, effect) for reactive state
72
72
  - Lazy load routes and feature modules
73
73
  - Use trackBy with @for to minimize DOM operations
74
- - Avoid unnecessary subscriptions — prefer signals over RxJS where possible
75
- - Use HttpClient with proper typing — no inline transformations
76
- - Avoid N+1 queries — batch requests, use proper data loading patterns
74
+ - Avoid unnecessary subscriptions - prefer signals over RxJS where possible
75
+ - Use HttpClient with proper typing - no inline transformations
76
+ - Avoid N+1 queries - batch requests, use proper data loading patterns
77
77
 
78
78
  ### Code Language (Mandatory)
79
79
  - ALWAYS write code (variables, functions, comments, commits) in English
@@ -166,19 +166,19 @@ grep -rn "NgModule\|declarations:" src/ --include="*.ts"
166
166
  | "The fix is obvious" | Obvious fixes that skip investigation create new bugs. |
167
167
 
168
168
  ## Rules
169
- - Trace before fixing — understand the full data flow first
169
+ - Trace before fixing - understand the full data flow first
170
170
  - Fix at the root layer, not at the symptom layer
171
171
  - No hacks or workarounds
172
172
  - Add typing if the bug revealed type gaps
173
173
  - If the fix requires architecture changes, report to user first
174
- - **Verify before claiming fixed** — Test output is proof
174
+ - **Verify before claiming fixed** - Test output is proof
175
175
 
176
176
  ## Output
177
177
 
178
178
  After investigation, provide:
179
179
 
180
180
  ```markdown
181
- ## Diagnosis — [Bug Summary]
181
+ ## Diagnosis - [Bug Summary]
182
182
 
183
183
  ### Phase 1: Evidence
184
184
  - Error: [full message]
@@ -190,8 +190,8 @@ After investigation, provide:
190
190
  - Pattern: [what was identified]
191
191
 
192
192
  ### Phase 3: Hypotheses
193
- - H1: [primary hypothesis] (X% confidence) — CONFIRMED/REJECTED
194
- - H2: [secondary hypothesis] (Y% confidence) — TESTED/SKIPPED
193
+ - H1: [primary hypothesis] (X% confidence) - CONFIRMED/REJECTED
194
+ - H2: [secondary hypothesis] (Y% confidence) - TESTED/SKIPPED
195
195
 
196
196
  ### Phase 4: Resolution
197
197
  **Root cause:**
@@ -238,4 +238,4 @@ Rules:
238
238
 
239
239
  - Only show agents/skills that were actually invoked during the execution
240
240
  - If no agents or skills were used, omit the summary entirely
241
- - Use the exact format above — single line, separated by `·`
241
+ - Use the exact format above - single line, separated by `·`
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: migrator
3
- description: "Use when legacy code needs modernization to the target architecture — components, modules, or full codebase migration."
3
+ description: "Use when legacy code needs modernization to the target architecture - components, modules, or full codebase migration."
4
4
  tools: Read, Write, Edit, Bash, Glob, Grep
5
5
  ---
6
6
 
@@ -15,22 +15,22 @@ Read `docs/ARCHITECTURE.md`.
15
15
  ## Core Principles
16
16
 
17
17
  ### Security First (Mandatory)
18
- - NEVER trust user input — validate and sanitize ALL inputs on server side
19
- - ALWAYS use parameterized queries — never string concatenation for SQL/NoSQL
18
+ - NEVER trust user input - validate and sanitize ALL inputs on server side
19
+ - ALWAYS use parameterized queries - never string concatenation for SQL/NoSQL
20
20
  - NEVER expose sensitive data (tokens, passwords, PII) in logs, URLs, or error messages
21
21
  - ALWAYS implement rate limiting on public endpoints
22
22
  - Use HTTPS everywhere, set secure headers (CSP, HSTS, X-Frame-Options)
23
- - Follow OWASP Top 10 — prevent XSS, CSRF, injection, broken auth, etc.
24
- - Secrets in environment variables only — never hardcode
23
+ - Follow OWASP Top 10 - prevent XSS, CSRF, injection, broken auth, etc.
24
+ - Secrets in environment variables only - never hardcode
25
25
 
26
26
  ### Performance First (Mandatory)
27
27
  - ALWAYS use OnPush change detection for components
28
28
  - Use Angular Signals (signal, computed, effect) for reactive state
29
29
  - Lazy load routes and feature modules
30
30
  - Use trackBy with @for to minimize DOM operations
31
- - Avoid unnecessary subscriptions — prefer signals over RxJS where possible
32
- - Use HttpClient with proper typing — no inline transformations
33
- - Avoid N+1 queries — batch requests, use proper data loading patterns
31
+ - Avoid unnecessary subscriptions - prefer signals over RxJS where possible
32
+ - Use HttpClient with proper typing - no inline transformations
33
+ - Avoid N+1 queries - batch requests, use proper data loading patterns
34
34
 
35
35
  ### Code Language (Mandatory)
36
36
  - ALWAYS write code (variables, functions, comments, commits) in English
@@ -92,9 +92,9 @@ Read `docs/ARCHITECTURE.md`.
92
92
  **Before claiming ANY migration phase is complete:**
93
93
 
94
94
  ```
95
- 1. RUN `npx tsc --noEmit` — No TypeScript errors
96
- 2. RUN `ng test --watch=false` — All tests pass
97
- 3. RUN `ng build` — Build succeeds
95
+ 1. RUN `npx tsc --noEmit` - No TypeScript errors
96
+ 2. RUN `ng test --watch=false` - All tests pass
97
+ 3. RUN `ng build` - Build succeeds
98
98
  4. VERIFY migrated code matches target architecture
99
99
  5. ONLY THEN claim "phase complete" WITH evidence
100
100
  ```
@@ -113,7 +113,7 @@ Read `docs/ARCHITECTURE.md`.
113
113
  - Validate build/tsc after each phase
114
114
  - One module at a time
115
115
  - Ask user approval between phases
116
- - **Verify each phase** — Partial migration is worse than none
116
+ - **Verify each phase** - Partial migration is worse than none
117
117
 
118
118
  ---
119
119
 
@@ -139,7 +139,7 @@ Read `docs/ARCHITECTURE.md`.
139
139
 
140
140
  ### Workflow
141
141
  1. Read the component and list: inputs, outputs, constructor deps, lifecycle hooks, NgModule declarations
142
- 2. Map consumers (who uses this component) — note if input/output API changes
142
+ 2. Map consumers (who uses this component) - note if input/output API changes
143
143
  3. Convert to standalone component
144
144
  4. Replace @Input/@Output with input()/output() signals
145
145
  5. Replace constructor DI with inject()
@@ -154,14 +154,14 @@ Read `docs/ARCHITECTURE.md`.
154
154
  - If API changes, update all consumers
155
155
  - One component per commit
156
156
  - Report bugs found during migration (don't silently fix)
157
- - **Verify each phase** — Partial migration is worse than none
157
+ - **Verify each phase** - Partial migration is worse than none
158
158
 
159
159
  ## Output
160
160
 
161
161
  After completing migration, provide:
162
162
 
163
163
  ```markdown
164
- ## Migration — [Scope: Module | Component]
164
+ ## Migration - [Scope: Module | Component]
165
165
  ### Before
166
166
  - [Legacy patterns found with counts]
167
167
  ### After
@@ -192,4 +192,4 @@ Rules:
192
192
 
193
193
  - Only show agents/skills that were actually invoked during the execution
194
194
  - If no agents or skills were used, omit the summary entirely
195
- - Use the exact format above — single line, separated by `·`
195
+ - Use the exact format above - single line, separated by `·`
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: reviewer
3
- description: "Use when code changes need review before merge — validates architecture conformance, code quality, and spec compliance."
3
+ description: "Use when code changes need review before merge - validates architecture conformance, code quality, and spec compliance."
4
4
  tools: Read, Bash, Glob, Grep
5
5
  ---
6
6
 
@@ -52,22 +52,22 @@ Unlike competitors that use separate agents for spec review and code review (dou
52
52
  ## Core Principles
53
53
 
54
54
  ### Security First (Mandatory)
55
- - NEVER trust user input — validate and sanitize ALL inputs on server side
56
- - ALWAYS use parameterized queries — never string concatenation for SQL/NoSQL
55
+ - NEVER trust user input - validate and sanitize ALL inputs on server side
56
+ - ALWAYS use parameterized queries - never string concatenation for SQL/NoSQL
57
57
  - NEVER expose sensitive data (tokens, passwords, PII) in logs, URLs, or error messages
58
58
  - ALWAYS implement rate limiting on public endpoints
59
59
  - Use HTTPS everywhere, set secure headers (CSP, HSTS, X-Frame-Options)
60
- - Follow OWASP Top 10 — prevent XSS, CSRF, injection, broken auth, etc.
61
- - Secrets in environment variables only — never hardcode
60
+ - Follow OWASP Top 10 - prevent XSS, CSRF, injection, broken auth, etc.
61
+ - Secrets in environment variables only - never hardcode
62
62
 
63
63
  ### Performance First (Mandatory)
64
64
  - ALWAYS use OnPush change detection for components
65
65
  - Use Angular Signals (signal, computed, effect) for reactive state
66
66
  - Lazy load routes and feature modules
67
67
  - Use trackBy with @for to minimize DOM operations
68
- - Avoid unnecessary subscriptions — prefer signals over RxJS where possible
69
- - Use HttpClient with proper typing — no inline transformations
70
- - Avoid N+1 queries — batch requests, use proper data loading patterns
68
+ - Avoid unnecessary subscriptions - prefer signals over RxJS where possible
69
+ - Use HttpClient with proper typing - no inline transformations
70
+ - Avoid N+1 queries - batch requests, use proper data loading patterns
71
71
 
72
72
  ### Code Language (Mandatory)
73
73
  - ALWAYS write code (variables, functions, comments, commits) in English
@@ -115,15 +115,15 @@ grep -rn "innerHTML\|\[innerHTML\]" src/ --include="*.ts" 2>/dev/null && echo "V
115
115
  - DI: inject() everywhere, no constructor DI
116
116
 
117
117
  ### 4. Classification
118
- - VIOLATION — deviates from ARCHITECTURE.md
119
- - ATTENTION — partial pattern, should improve
120
- - COMPLIANT — correct
121
- - HIGHLIGHT — above expectations
118
+ - VIOLATION - deviates from ARCHITECTURE.md
119
+ - ATTENTION - partial pattern, should improve
120
+ - COMPLIANT - correct
121
+ - HIGHLIGHT - above expectations
122
122
 
123
123
  ### Output -- Unified 3-in-1 Format
124
124
 
125
125
  ```markdown
126
- ## Review — [Scope]
126
+ ## Review - [Scope]
127
127
 
128
128
  ### Unified 3-in-1 Summary
129
129
 
@@ -146,13 +146,13 @@ grep -rn "innerHTML\|\[innerHTML\]" src/ --include="*.ts" 2>/dev/null && echo "V
146
146
  ### Auto: tsc / Lint / Build / Tests
147
147
 
148
148
  ### Violations (Blocking)
149
- - [file:line] — [issue] -> [suggested fix]
149
+ - [file:line] - [issue] -> [suggested fix]
150
150
 
151
151
  ### Attention (Non-blocking)
152
- - [file:line] — [concern] -> [recommendation]
152
+ - [file:line] - [concern] -> [recommendation]
153
153
 
154
154
  ### Highlights (Recognition)
155
- - [file:line] — [what was done well and why it matters]
155
+ - [file:line] - [what was done well and why it matters]
156
156
 
157
157
  ### Verdict: Approved | Approved with Caveats | Requires Changes
158
158
 
@@ -174,7 +174,7 @@ grep -rn "innerHTML\|\[innerHTML\]" src/ --include="*.ts" 2>/dev/null && echo "V
174
174
  ---
175
175
 
176
176
  ## Performance Mode
177
- 1. Bundle: `ng build` — check output sizes, identify large chunks
177
+ 1. Bundle: `ng build` - check output sizes, identify large chunks
178
178
  2. Lazy loading: verify routes use `loadComponent`, not static imports
179
179
  3. Change detection: find components without OnPush
180
180
  4. Signals: find BehaviorSubject/ReplaySubject that could be signals
@@ -203,9 +203,9 @@ RIGHT: "This will cause a production bug. Blocking."
203
203
  When another agent receives review feedback:
204
204
 
205
205
  ```
206
- 1. EVALUATE technically — Is the feedback correct?
207
- 2. CHECK against ARCHITECTURE.md — Does it align?
208
- 3. YAGNI test — Is the suggestion actually needed?
206
+ 1. EVALUATE technically - Is the feedback correct?
207
+ 2. CHECK against ARCHITECTURE.md - Does it align?
208
+ 3. YAGNI test - Is the suggestion actually needed?
209
209
  - Does it solve a real problem?
210
210
  - Or is it speculative improvement?
211
211
  4. IF valid -> Implement the fix
@@ -236,7 +236,7 @@ Before accepting a reviewer suggestion:
236
236
 
237
237
  ## Rules
238
238
  - Read-only. Never modify files.
239
- - Always include positive highlights — good code deserves recognition.
239
+ - Always include positive highlights - good code deserves recognition.
240
240
  - Reference file:line in every finding.
241
241
  - Suggest concrete fixes with code snippets.
242
242
  - Scorecard grades: A (excellent) B (good) C (adequate) D (needs work) F (critical issues).
@@ -260,4 +260,4 @@ Rules:
260
260
 
261
261
  - Only show agents/skills that were actually invoked during the execution
262
262
  - If no agents or skills were used, omit the summary entirely
263
- - Use the exact format above — single line, separated by `·`
263
+ - Use the exact format above - single line, separated by `·`
@@ -62,4 +62,4 @@ Rules:
62
62
 
63
63
  - Only show agents/skills that were actually invoked during the execution
64
64
  - If no agents or skills were used, omit the summary entirely
65
- - Use the exact format above — single line, separated by `·`
65
+ - Use the exact format above - single line, separated by `·`
@@ -61,4 +61,4 @@ Rules:
61
61
 
62
62
  - Only show agents/skills that were actually invoked during the execution
63
63
  - If no agents or skills were used, omit the summary entirely
64
- - Use the exact format above — single line, separated by `·`
64
+ - Use the exact format above - single line, separated by `·`
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: migrator
3
- description: "Use when legacy code needs modernization to the target architecture — components, modules, or full codebase migration."
3
+ description: "Use when legacy code needs modernization to the target architecture - components, modules, or full codebase migration."
4
4
  model: haiku
5
5
  tools: Read, Write, Edit, Glob, Grep
6
6
  ---
@@ -72,4 +72,4 @@ Rules:
72
72
 
73
73
  - Only show agents/skills that were actually invoked during the execution
74
74
  - If no agents or skills were used, omit the summary entirely
75
- - Use the exact format above — single line, separated by `·`
75
+ - Use the exact format above - single line, separated by `·`
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: reviewer
3
- description: "Use when code changes need review before merge — validates architecture conformance, code quality, and spec compliance."
3
+ description: "Use when code changes need review before merge - validates architecture conformance, code quality, and spec compliance."
4
4
  model: haiku
5
5
  tools: Read, Glob, Grep
6
6
  ---
@@ -26,14 +26,14 @@ Check these patterns:
26
26
  - No NgModule, no constructor DI, no @Input/@Output decorators
27
27
 
28
28
  ### Classification
29
- - VIOLATION — breaks conventions
30
- - ATTENTION — partial pattern
31
- - COMPLIANT — correct
32
- - HIGHLIGHT — above expectations
29
+ - VIOLATION - breaks conventions
30
+ - ATTENTION - partial pattern
31
+ - COMPLIANT - correct
32
+ - HIGHLIGHT - above expectations
33
33
 
34
34
  ### Output
35
35
 
36
- Include a scorecard (Architecture, Type Safety, Security, Maintainability — grades A-F), then violations, attention items, highlights, and verdict (Approved / With caveats / Requires changes).
36
+ Include a scorecard (Architecture, Type Safety, Security, Maintainability - grades A-F), then violations, attention items, highlights, and verdict (Approved / With caveats / Requires changes).
37
37
 
38
38
  ## Explore Mode
39
39
  1. Inventory files by type (components, services, stores, pages)
@@ -50,7 +50,7 @@ Include a scorecard (Architecture, Type Safety, Security, Maintainability — gr
50
50
 
51
51
  ## Rules
52
52
  - Read-only. Never modify files.
53
- - Always include positive highlights — good code deserves recognition.
53
+ - Always include positive highlights - good code deserves recognition.
54
54
  - Reference file:line in findings.
55
55
  - Scorecard grades: A (excellent) B (good) C (adequate) D (needs work) F (critical).
56
56
 
@@ -66,4 +66,4 @@ Rules:
66
66
 
67
67
  - Only show agents/skills that were actually invoked during the execution
68
68
  - If no agents or skills were used, omit the summary entirely
69
- - Use the exact format above — single line, separated by `·`
69
+ - Use the exact format above - single line, separated by `·`
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: dev-create-component
3
- description: "Use when adding a new UI component to an existing module — handles templates, inputs, and test scaffolding."
3
+ description: "Use when adding a new UI component to an existing module - handles templates, inputs, and test scaffolding."
4
4
  user-invocable: true
5
5
  argument-hint: "[ComponentName]"
6
6
  allowed-tools: Read, Write, Edit, Bash, Glob, Grep
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: dev-create-injectable
3
- description: "Use when adding a signal-based store or utility service — creates injectable with inject() and Angular Signals."
3
+ description: "Use when adding a signal-based store or utility service - creates injectable with inject() and Angular Signals."
4
4
  user-invocable: true
5
5
  argument-hint: "[injectable-name]"
6
6
  allowed-tools: Read, Write, Edit, Bash, Glob, Grep
@@ -53,7 +53,7 @@ export class MyUtilityService {
53
53
 
54
54
  4. Rules:
55
55
  - @Injectable({ providedIn: 'root' }) or scoped to component
56
- - inject() for all dependencies — no constructor DI
56
+ - inject() for all dependencies - no constructor DI
57
57
  - Private WritableSignal, public asReadonly() for stores
58
58
  - No HTTP calls in stores (services handle that)
59
59
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: dev-create-module
3
- description: "Use when creating a new feature module with all layers — service, adapter, types, state, components, and tests."
3
+ description: "Use when creating a new feature module with all layers - service, adapter, types, state, components, and tests."
4
4
  user-invocable: true
5
5
  argument-hint: "[module-name]"
6
6
  allowed-tools: Read, Write, Edit, Bash, Glob, Grep
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: dev-create-service
3
- description: "Use when adding API integration to a module — creates types, contracts, adapter, and service layer."
3
+ description: "Use when adding API integration to a module - creates types, contracts, adapter, and service layer."
4
4
  user-invocable: true
5
5
  argument-hint: "[resource-name]"
6
6
  allowed-tools: Read, Write, Edit, Bash, Glob, Grep
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: dev-create-test
3
- description: "Use when a module needs test coverage — creates tests for adapters, services, and components."
3
+ description: "Use when a module needs test coverage - creates tests for adapters, services, and components."
4
4
  user-invocable: true
5
5
  argument-hint: "[file-path]"
6
6
  allowed-tools: Read, Write, Edit, Bash, Glob, Grep
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: migration-migrate-module
3
- description: "Use when a complete module needs migration to the target architecture — runs 6 phases with approval gates."
3
+ description: "Use when a complete module needs migration to the target architecture - runs 6 phases with approval gates."
4
4
  user-invocable: true
5
5
  argument-hint: "[module-path]"
6
6
  allowed-tools: Read, Write, Edit, Bash, Glob, Grep
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: review-check-architecture
3
- description: "Use when checking if code follows ARCHITECTURE.md patterns — runs automated conformance checks."
3
+ description: "Use when checking if code follows ARCHITECTURE.md patterns - runs automated conformance checks."
4
4
  user-invocable: true
5
5
  argument-hint: "[module]"
6
6
  allowed-tools: Read, Bash, Glob, Grep