specialist-agent 2.13.0 → 3.3.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 (329) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +36 -206
  3. package/dist/catalog.json +16677 -0
  4. package/dist/hw-worker.mjs +288 -0
  5. package/dist/icones/icone.ico +0 -0
  6. package/dist/icones/icone.png +0 -0
  7. package/dist/interface/assets/figtree-latin-400-normal-g7Dtegnw.woff2 +0 -0
  8. package/dist/interface/assets/figtree-latin-500-normal-BWnGEVsr.woff2 +0 -0
  9. package/dist/interface/assets/figtree-latin-600-normal-Cv_xCTDl.woff2 +0 -0
  10. package/dist/interface/assets/figtree-latin-700-normal-th6qEP7c.woff2 +0 -0
  11. package/dist/interface/assets/figtree-latin-ext-400-normal-CXAzuTZb.woff2 +0 -0
  12. package/dist/interface/assets/figtree-latin-ext-500-normal-Du0rIuHj.woff2 +0 -0
  13. package/dist/interface/assets/figtree-latin-ext-600-normal-DJlfifZj.woff2 +0 -0
  14. package/dist/interface/assets/figtree-latin-ext-700-normal-CS4sQkGV.woff2 +0 -0
  15. package/dist/interface/assets/index-BltVv7tb.js +24 -0
  16. package/dist/interface/assets/index-Cpa6kApK.css +1 -0
  17. package/dist/interface/assets/jetbrains-mono-latin-400-normal-V6pRDFza.woff2 +0 -0
  18. package/dist/interface/assets/jetbrains-mono-latin-500-normal-BWZEU5yA.woff2 +0 -0
  19. package/dist/interface/assets/jetbrains-mono-latin-600-normal-C8RAYTDA.woff2 +0 -0
  20. package/dist/interface/assets/jetbrains-mono-latin-ext-400-normal-Bc8Ftmh3.woff2 +0 -0
  21. package/dist/interface/assets/jetbrains-mono-latin-ext-500-normal-Cut-4mMH.woff2 +0 -0
  22. package/dist/interface/assets/jetbrains-mono-latin-ext-600-normal-BfB_LPfz.woff2 +0 -0
  23. package/dist/interface/assets/unbounded-latin-500-normal-4slEIF53.woff2 +0 -0
  24. package/dist/interface/assets/unbounded-latin-700-normal-CaoNriVp.woff2 +0 -0
  25. package/dist/interface/assets/unbounded-latin-ext-500-normal-BTIpesyw.woff2 +0 -0
  26. package/dist/interface/assets/unbounded-latin-ext-700-normal-BLzWLLjG.woff2 +0 -0
  27. package/dist/interface/icones/apple-touch-icon.png +0 -0
  28. package/dist/interface/icones/favicon-32.png +0 -0
  29. package/dist/interface/icones/icone-192.png +0 -0
  30. package/dist/interface/icones/icone-512.png +0 -0
  31. package/dist/interface/icones/icone-mascara-512.png +0 -0
  32. package/dist/interface/index.html +19 -0
  33. package/dist/interface/manifest.webmanifest +19 -0
  34. package/dist/interface/sw.js +64 -0
  35. package/dist/licencas/BRAND.md +22 -0
  36. package/dist/licencas/LICENSE-CONTENT.md +44 -0
  37. package/dist/licencas/OFL-Figtree.txt +93 -0
  38. package/dist/licencas/OFL-JetBrainsMono.txt +93 -0
  39. package/dist/licencas/OFL-Unbounded.txt +93 -0
  40. package/dist/licencas/TERCEIROS.txt +104 -0
  41. package/dist/specialist-agent.mjs +14515 -0
  42. package/dist/usage-worker.mjs +1077 -0
  43. package/package.json +34 -58
  44. package/.claude-plugin/marketplace.json +0 -52
  45. package/.claude-plugin/plugin.json +0 -37
  46. package/.codex/INSTALL.md +0 -145
  47. package/.cursor-plugin/marketplace.json +0 -52
  48. package/.cursor-plugin/plugin.json +0 -37
  49. package/.opencode/INSTALL.md +0 -127
  50. package/.opencode/opencode.json +0 -186
  51. package/agents/analyst-lite.md +0 -48
  52. package/agents/analyst.md +0 -396
  53. package/agents/api-lite.md +0 -43
  54. package/agents/api.md +0 -427
  55. package/agents/architect-lite.md +0 -104
  56. package/agents/architect.md +0 -571
  57. package/agents/autopilot-lite.md +0 -46
  58. package/agents/autopilot.md +0 -196
  59. package/agents/cloud-lite.md +0 -75
  60. package/agents/cloud.md +0 -213
  61. package/agents/data-lite.md +0 -67
  62. package/agents/data.md +0 -306
  63. package/agents/debugger-lite.md +0 -46
  64. package/agents/debugger.md +0 -410
  65. package/agents/deps-lite.md +0 -41
  66. package/agents/deps.md +0 -363
  67. package/agents/designer-lite.md +0 -67
  68. package/agents/designer.md +0 -195
  69. package/agents/devops-lite.md +0 -67
  70. package/agents/devops.md +0 -205
  71. package/agents/docs-lite.md +0 -42
  72. package/agents/docs.md +0 -454
  73. package/agents/executor-lite.md +0 -61
  74. package/agents/executor.md +0 -695
  75. package/agents/explorer-lite.md +0 -55
  76. package/agents/explorer.md +0 -152
  77. package/agents/finance-lite.md +0 -66
  78. package/agents/finance.md +0 -255
  79. package/agents/i18n-lite.md +0 -44
  80. package/agents/i18n.md +0 -594
  81. package/agents/legal-lite.md +0 -113
  82. package/agents/legal.md +0 -302
  83. package/agents/marketing-lite.md +0 -25
  84. package/agents/marketing.md +0 -188
  85. package/agents/memory.md +0 -166
  86. package/agents/orchestrator-lite.md +0 -40
  87. package/agents/orchestrator.md +0 -512
  88. package/agents/pair-lite.md +0 -38
  89. package/agents/pair.md +0 -310
  90. package/agents/perf-lite.md +0 -42
  91. package/agents/perf.md +0 -320
  92. package/agents/planner-lite.md +0 -59
  93. package/agents/planner.md +0 -272
  94. package/agents/product-lite.md +0 -25
  95. package/agents/product.md +0 -195
  96. package/agents/refactor-lite.md +0 -42
  97. package/agents/refactor.md +0 -467
  98. package/agents/ripple-lite.md +0 -106
  99. package/agents/ripple.md +0 -166
  100. package/agents/scout-lite.md +0 -37
  101. package/agents/scout.md +0 -224
  102. package/agents/security-lite.md +0 -66
  103. package/agents/security.md +0 -252
  104. package/agents/sentry-triage-lite.md +0 -54
  105. package/agents/sentry-triage.md +0 -217
  106. package/agents/starter-lite.md +0 -80
  107. package/agents/starter.md +0 -300
  108. package/agents/support-lite.md +0 -24
  109. package/agents/support.md +0 -191
  110. package/agents/tdd-lite.md +0 -43
  111. package/agents/tdd.md +0 -329
  112. package/agents/tester-lite.md +0 -71
  113. package/agents/tester.md +0 -237
  114. package/cli/architectures.mjs +0 -713
  115. package/cli/detect-architecture.mjs +0 -752
  116. package/cli/generate-architecture.mjs +0 -1096
  117. package/cli/index.mjs +0 -1217
  118. package/cli/recommend-architecture.mjs +0 -870
  119. package/hooks/after-review.mjs +0 -130
  120. package/hooks/after-task.mjs +0 -117
  121. package/hooks/before-plan.mjs +0 -155
  122. package/hooks/before-review.mjs +0 -139
  123. package/hooks/hooks.json +0 -66
  124. package/hooks/lifecycle.json +0 -91
  125. package/hooks/native/auto-dispatch.mjs +0 -207
  126. package/hooks/native/auto-format.mjs +0 -176
  127. package/hooks/native/mcp-discovery.mjs +0 -168
  128. package/hooks/native/security-config.json +0 -38
  129. package/hooks/native/security-guard.mjs +0 -323
  130. package/hooks/native/session-context.mjs +0 -179
  131. package/hooks/native/session-end.mjs +0 -42
  132. package/hooks/native/utils.mjs +0 -62
  133. package/hooks/on-error.mjs +0 -129
  134. package/hooks/session-end.mjs +0 -185
  135. package/hooks/session-start.mjs +0 -154
  136. package/packs/angular/ARCHITECTURE.md +0 -814
  137. package/packs/angular/CLAUDE.md +0 -105
  138. package/packs/angular/agents/builder.md +0 -113
  139. package/packs/angular/agents/doctor.md +0 -187
  140. package/packs/angular/agents/migrator.md +0 -101
  141. package/packs/angular/agents/reviewer.md +0 -252
  142. package/packs/angular/agents-lite/builder.md +0 -65
  143. package/packs/angular/agents-lite/doctor.md +0 -64
  144. package/packs/angular/agents-lite/migrator.md +0 -75
  145. package/packs/angular/agents-lite/reviewer.md +0 -69
  146. package/packs/angular/skills/dev-create-component/SKILL.md +0 -56
  147. package/packs/angular/skills/dev-create-injectable/SKILL.md +0 -60
  148. package/packs/angular/skills/dev-create-module/SKILL.md +0 -49
  149. package/packs/angular/skills/dev-create-service/SKILL.md +0 -34
  150. package/packs/angular/skills/dev-create-test/SKILL.md +0 -78
  151. package/packs/angular/skills/dev-generate-types/SKILL.md +0 -37
  152. package/packs/angular/skills/docs-onboard/SKILL.md +0 -42
  153. package/packs/angular/skills/migration-migrate-component/SKILL.md +0 -42
  154. package/packs/angular/skills/migration-migrate-module/SKILL.md +0 -25
  155. package/packs/angular/skills/review-check-architecture/SKILL.md +0 -67
  156. package/packs/angular/skills/review-fix-violations/SKILL.md +0 -43
  157. package/packs/angular/skills/review-review/SKILL.md +0 -43
  158. package/packs/astro/ARCHITECTURE.md +0 -718
  159. package/packs/astro/CLAUDE.md +0 -106
  160. package/packs/astro/agents/builder.md +0 -123
  161. package/packs/astro/agents/doctor.md +0 -200
  162. package/packs/astro/agents/migrator.md +0 -105
  163. package/packs/astro/agents/reviewer.md +0 -253
  164. package/packs/astro/agents-lite/builder.md +0 -71
  165. package/packs/astro/agents-lite/doctor.md +0 -66
  166. package/packs/astro/agents-lite/migrator.md +0 -71
  167. package/packs/astro/agents-lite/reviewer.md +0 -70
  168. package/packs/astro/skills/dev-create-component/SKILL.md +0 -50
  169. package/packs/astro/skills/dev-create-island/SKILL.md +0 -63
  170. package/packs/astro/skills/dev-create-module/SKILL.md +0 -49
  171. package/packs/astro/skills/dev-create-service/SKILL.md +0 -34
  172. package/packs/astro/skills/dev-create-test/SKILL.md +0 -76
  173. package/packs/astro/skills/dev-generate-types/SKILL.md +0 -37
  174. package/packs/astro/skills/docs-onboard/SKILL.md +0 -51
  175. package/packs/astro/skills/migration-migrate-component/SKILL.md +0 -48
  176. package/packs/astro/skills/migration-migrate-module/SKILL.md +0 -25
  177. package/packs/astro/skills/review-check-architecture/SKILL.md +0 -72
  178. package/packs/astro/skills/review-fix-violations/SKILL.md +0 -43
  179. package/packs/astro/skills/review-review/SKILL.md +0 -45
  180. package/packs/nextjs/ARCHITECTURE.md +0 -1033
  181. package/packs/nextjs/CLAUDE.md +0 -106
  182. package/packs/nextjs/agents/builder.md +0 -132
  183. package/packs/nextjs/agents/doctor.md +0 -226
  184. package/packs/nextjs/agents/migrator.md +0 -101
  185. package/packs/nextjs/agents/reviewer.md +0 -243
  186. package/packs/nextjs/agents-lite/builder.md +0 -74
  187. package/packs/nextjs/agents-lite/doctor.md +0 -74
  188. package/packs/nextjs/agents-lite/migrator.md +0 -75
  189. package/packs/nextjs/agents-lite/reviewer.md +0 -73
  190. package/packs/nextjs/skills/dev-create-component/SKILL.md +0 -82
  191. package/packs/nextjs/skills/dev-create-hook/SKILL.md +0 -90
  192. package/packs/nextjs/skills/dev-create-module/SKILL.md +0 -63
  193. package/packs/nextjs/skills/dev-create-service/SKILL.md +0 -35
  194. package/packs/nextjs/skills/dev-create-test/SKILL.md +0 -106
  195. package/packs/nextjs/skills/dev-generate-types/SKILL.md +0 -37
  196. package/packs/nextjs/skills/docs-onboard/SKILL.md +0 -55
  197. package/packs/nextjs/skills/migration-migrate-component/SKILL.md +0 -58
  198. package/packs/nextjs/skills/migration-migrate-module/SKILL.md +0 -25
  199. package/packs/nextjs/skills/review-check-architecture/SKILL.md +0 -101
  200. package/packs/nextjs/skills/review-fix-violations/SKILL.md +0 -48
  201. package/packs/nextjs/skills/review-review/SKILL.md +0 -47
  202. package/packs/nuxt/ARCHITECTURE.md +0 -831
  203. package/packs/nuxt/CLAUDE.md +0 -111
  204. package/packs/nuxt/agents/builder.md +0 -120
  205. package/packs/nuxt/agents/doctor.md +0 -198
  206. package/packs/nuxt/agents/migrator.md +0 -101
  207. package/packs/nuxt/agents/reviewer.md +0 -255
  208. package/packs/nuxt/agents-lite/builder.md +0 -67
  209. package/packs/nuxt/agents-lite/doctor.md +0 -67
  210. package/packs/nuxt/agents-lite/migrator.md +0 -80
  211. package/packs/nuxt/agents-lite/reviewer.md +0 -71
  212. package/packs/nuxt/skills/dev-create-component/SKILL.md +0 -60
  213. package/packs/nuxt/skills/dev-create-composable/SKILL.md +0 -33
  214. package/packs/nuxt/skills/dev-create-module/SKILL.md +0 -49
  215. package/packs/nuxt/skills/dev-create-service/SKILL.md +0 -34
  216. package/packs/nuxt/skills/dev-create-test/SKILL.md +0 -61
  217. package/packs/nuxt/skills/dev-generate-types/SKILL.md +0 -37
  218. package/packs/nuxt/skills/docs-onboard/SKILL.md +0 -49
  219. package/packs/nuxt/skills/migration-migrate-component/SKILL.md +0 -48
  220. package/packs/nuxt/skills/migration-migrate-module/SKILL.md +0 -25
  221. package/packs/nuxt/skills/review-check-architecture/SKILL.md +0 -71
  222. package/packs/nuxt/skills/review-fix-violations/SKILL.md +0 -43
  223. package/packs/nuxt/skills/review-review/SKILL.md +0 -45
  224. package/packs/react/ARCHITECTURE.md +0 -991
  225. package/packs/react/CLAUDE.md +0 -102
  226. package/packs/react/agents/builder.md +0 -113
  227. package/packs/react/agents/doctor.md +0 -203
  228. package/packs/react/agents/migrator.md +0 -101
  229. package/packs/react/agents/reviewer.md +0 -252
  230. package/packs/react/agents-lite/builder.md +0 -65
  231. package/packs/react/agents-lite/doctor.md +0 -64
  232. package/packs/react/agents-lite/migrator.md +0 -74
  233. package/packs/react/agents-lite/reviewer.md +0 -69
  234. package/packs/react/skills/dev-create-component/SKILL.md +0 -53
  235. package/packs/react/skills/dev-create-hook/SKILL.md +0 -78
  236. package/packs/react/skills/dev-create-module/SKILL.md +0 -51
  237. package/packs/react/skills/dev-create-service/SKILL.md +0 -34
  238. package/packs/react/skills/dev-create-test/SKILL.md +0 -92
  239. package/packs/react/skills/dev-generate-types/SKILL.md +0 -37
  240. package/packs/react/skills/docs-onboard/SKILL.md +0 -42
  241. package/packs/react/skills/migration-migrate-component/SKILL.md +0 -44
  242. package/packs/react/skills/migration-migrate-module/SKILL.md +0 -25
  243. package/packs/react/skills/review-check-architecture/SKILL.md +0 -73
  244. package/packs/react/skills/review-fix-violations/SKILL.md +0 -45
  245. package/packs/react/skills/review-review/SKILL.md +0 -44
  246. package/packs/svelte/ARCHITECTURE.md +0 -975
  247. package/packs/svelte/CLAUDE.md +0 -102
  248. package/packs/svelte/agents/builder.md +0 -114
  249. package/packs/svelte/agents/doctor.md +0 -174
  250. package/packs/svelte/agents/migrator.md +0 -101
  251. package/packs/svelte/agents/reviewer.md +0 -238
  252. package/packs/svelte/agents-lite/builder.md +0 -66
  253. package/packs/svelte/agents-lite/doctor.md +0 -67
  254. package/packs/svelte/agents-lite/migrator.md +0 -82
  255. package/packs/svelte/agents-lite/reviewer.md +0 -70
  256. package/packs/svelte/skills/dev-create-component/SKILL.md +0 -77
  257. package/packs/svelte/skills/dev-create-module/SKILL.md +0 -59
  258. package/packs/svelte/skills/dev-create-service/SKILL.md +0 -35
  259. package/packs/svelte/skills/dev-create-store/SKILL.md +0 -94
  260. package/packs/svelte/skills/dev-create-test/SKILL.md +0 -98
  261. package/packs/svelte/skills/dev-generate-types/SKILL.md +0 -37
  262. package/packs/svelte/skills/docs-onboard/SKILL.md +0 -47
  263. package/packs/svelte/skills/migration-migrate-component/SKILL.md +0 -51
  264. package/packs/svelte/skills/migration-migrate-module/SKILL.md +0 -25
  265. package/packs/svelte/skills/review-check-architecture/SKILL.md +0 -79
  266. package/packs/svelte/skills/review-fix-violations/SKILL.md +0 -47
  267. package/packs/svelte/skills/review-review/SKILL.md +0 -45
  268. package/packs/vue/ARCHITECTURE.md +0 -798
  269. package/packs/vue/CLAUDE.md +0 -102
  270. package/packs/vue/agents/builder.md +0 -112
  271. package/packs/vue/agents/doctor.md +0 -185
  272. package/packs/vue/agents/migrator.md +0 -101
  273. package/packs/vue/agents/reviewer.md +0 -249
  274. package/packs/vue/agents-lite/builder.md +0 -65
  275. package/packs/vue/agents-lite/doctor.md +0 -63
  276. package/packs/vue/agents-lite/migrator.md +0 -73
  277. package/packs/vue/agents-lite/reviewer.md +0 -68
  278. package/packs/vue/skills/dev-create-component/SKILL.md +0 -58
  279. package/packs/vue/skills/dev-create-composable/SKILL.md +0 -31
  280. package/packs/vue/skills/dev-create-module/SKILL.md +0 -50
  281. package/packs/vue/skills/dev-create-service/SKILL.md +0 -34
  282. package/packs/vue/skills/dev-create-test/SKILL.md +0 -62
  283. package/packs/vue/skills/dev-generate-types/SKILL.md +0 -37
  284. package/packs/vue/skills/docs-onboard/SKILL.md +0 -42
  285. package/packs/vue/skills/migration-migrate-component/SKILL.md +0 -41
  286. package/packs/vue/skills/migration-migrate-module/SKILL.md +0 -25
  287. package/packs/vue/skills/review-check-architecture/SKILL.md +0 -73
  288. package/packs/vue/skills/review-fix-violations/SKILL.md +0 -42
  289. package/packs/vue/skills/review-review/SKILL.md +0 -43
  290. package/skills/audit/SKILL.md +0 -231
  291. package/skills/autofix/SKILL.md +0 -166
  292. package/skills/autopilot/SKILL.md +0 -286
  293. package/skills/brainstorm/SKILL.md +0 -298
  294. package/skills/checkpoint/SKILL.md +0 -217
  295. package/skills/codereview/SKILL.md +0 -268
  296. package/skills/commit/SKILL.md +0 -150
  297. package/skills/copywriting/SKILL.md +0 -218
  298. package/skills/cro/SKILL.md +0 -234
  299. package/skills/debug/SKILL.md +0 -210
  300. package/skills/design-review/SKILL.md +0 -217
  301. package/skills/discovery/SKILL.md +0 -218
  302. package/skills/estimate/SKILL.md +0 -154
  303. package/skills/finish/SKILL.md +0 -220
  304. package/skills/grill/SKILL.md +0 -270
  305. package/skills/health/SKILL.md +0 -251
  306. package/skills/improve-architecture/SKILL.md +0 -205
  307. package/skills/learn/SKILL.md +0 -260
  308. package/skills/lint/SKILL.md +0 -126
  309. package/skills/migrate-architecture/SKILL.md +0 -242
  310. package/skills/migrate-framework/SKILL.md +0 -172
  311. package/skills/onboard/SKILL.md +0 -168
  312. package/skills/plan/SKILL.md +0 -141
  313. package/skills/prd/SKILL.md +0 -241
  314. package/skills/recall/SKILL.md +0 -112
  315. package/skills/remember/SKILL.md +0 -108
  316. package/skills/seo-audit/SKILL.md +0 -240
  317. package/skills/tdd/SKILL.md +0 -201
  318. package/skills/tutorial/SKILL.md +0 -346
  319. package/skills/verify/SKILL.md +0 -168
  320. package/skills/worktree/SKILL.md +0 -168
  321. package/skills/write-skill/SKILL.md +0 -225
  322. package/templates/autopilot/PROMPT.md +0 -39
  323. package/templates/autopilot/README.md +0 -122
  324. package/templates/autopilot/devcontainer.json +0 -21
  325. package/templates/industry/ecommerce.md +0 -127
  326. package/templates/industry/fintech.md +0 -161
  327. package/templates/industry/saas.md +0 -134
  328. package/templates/session-memory.json +0 -48
  329. package/templates/skill-template/SKILL.md +0 -90
@@ -1,240 +0,0 @@
1
- ---
2
- name: seo-audit
3
- description: "Use when auditing a website or web application for SEO issues - covering meta tags, structured data, content structure, Core Web Vitals indicators, and crawlability."
4
- user-invocable: true
5
- argument-hint: "[path or URL]"
6
- allowed-tools: Read, Bash, Glob, Grep
7
- ---
8
-
9
- # /seo-audit - SEO Technical Audit
10
-
11
- Audit web application source code for SEO issues - meta tags, structured data, content structure, Core Web Vitals indicators, and crawlability - producing a scored report with actionable fixes.
12
-
13
- **Target:** $ARGUMENTS
14
-
15
- ## When to Use
16
-
17
- - Before launching a new website or landing page
18
- - After major frontend refactors that may have broken SEO
19
- - When organic search traffic has dropped
20
- - During framework migration (SSR/SSG changes)
21
- - When adding i18n and need hreflang setup
22
- - Before a marketing campaign that depends on organic traffic
23
- - NOT for: content strategy or keyword research (use `@marketing` SEO mode)
24
- - NOT for: design or UX issues (use `/design-review`)
25
- - NOT for: pure performance optimization (use `@perf`)
26
-
27
- ## Workflow
28
-
29
- ### Step 1: Scope & Rendering Strategy Detection
30
-
31
- 1. **Identify pages/routes to audit:**
32
-
33
- ```bash
34
- # Find page/route files
35
- find $TARGET -path "*/pages/*" -o -path "*/app/*" -o -path "*/routes/*" | grep -E "\.(tsx?|vue|svelte|astro)$" | grep -v "_\|layout\|error\|loading" | head -30
36
- ```
37
-
38
- 2. **Detect rendering strategy:**
39
-
40
- ```bash
41
- # Check for SSR/SSG configuration
42
- grep -rn "getStaticProps\|getServerSideProps\|generateStaticParams\|getStaticPaths" $TARGET --include="*.ts" --include="*.tsx" 2>/dev/null | head -10
43
- grep -rn "defineNuxtConfig\|ssr:\|prerender" $TARGET --include="*.ts" --include="*.config.*" 2>/dev/null | head -5
44
- grep -rn "export const prerender\|export const ssr" $TARGET --include="*.ts" --include="*.svelte" 2>/dev/null | head -5
45
- ```
46
-
47
- 3. **Classify:** SSR (server-rendered), SSG (static), CSR (client-only), ISR (incremental), Hybrid
48
-
49
- **Output:**
50
- ```markdown
51
- ## Scope
52
- - Pages: [N] routes detected
53
- - Framework: [Next.js/Nuxt/SvelteKit/Astro/other]
54
- - Rendering: [SSR/SSG/CSR/ISR/Hybrid]
55
- - i18n: [detected/not detected]
56
- ```
57
-
58
- ### Step 2: Technical SEO Audit
59
-
60
- Check meta tags and structured data for each page:
61
-
62
- | Check | What to Look For | Impact |
63
- |-------|------------------|--------|
64
- | Title tag | Unique, 50-60 chars, keyword-rich | HIGH |
65
- | Meta description | Unique, 150-160 chars, compelling | HIGH |
66
- | Open Graph tags | og:title, og:description, og:image, og:url | MEDIUM |
67
- | Twitter cards | twitter:card, twitter:title, twitter:image | MEDIUM |
68
- | Canonical URL | Self-referencing canonical on every page | HIGH |
69
- | Robots meta | Proper noindex/nofollow where needed | HIGH |
70
- | Structured data | JSON-LD for relevant schema types | MEDIUM |
71
- | Hreflang | Present if multi-language | HIGH (if i18n) |
72
- | Favicon | Present and proper size | LOW |
73
-
74
- ```bash
75
- # Check for meta tag implementation
76
- grep -rn "title\|meta.*description\|og:title\|twitter:card" $TARGET --include="*.tsx" --include="*.vue" --include="*.svelte" --include="*.astro" 2>/dev/null | head -20
77
-
78
- # Check for Head/Meta components (framework-specific)
79
- grep -rn "Head>\|useHead\|useSeoMeta\|<svelte:head\|Astro.props" $TARGET --include="*.tsx" --include="*.vue" --include="*.svelte" --include="*.astro" 2>/dev/null | head -15
80
-
81
- # Check for JSON-LD structured data
82
- grep -rn "application/ld+json\|structuredData\|jsonLd" $TARGET --include="*.tsx" --include="*.vue" --include="*.svelte" 2>/dev/null | head -10
83
- ```
84
-
85
- ### Step 3: Content Structure Audit
86
-
87
- | Check | Criteria | Severity |
88
- |-------|----------|----------|
89
- | H1 tag | Exactly one H1 per page | HIGH |
90
- | Heading hierarchy | Logical H1 → H2 → H3, no skipped levels | MEDIUM |
91
- | Alt text | All images have descriptive alt text | HIGH |
92
- | Internal links | Meaningful anchor text, no "click here" | MEDIUM |
93
- | Content length | Adequate content for the page type | LOW |
94
- | Semantic HTML | Proper use of `<article>`, `<nav>`, `<main>`, `<section>` | MEDIUM |
95
-
96
- ```bash
97
- # Check heading usage
98
- grep -rn "<h1\|<h2\|<h3\|<H1\|<H2\|<H3" $TARGET --include="*.tsx" --include="*.vue" --include="*.svelte" 2>/dev/null | head -20
99
-
100
- # Check for missing alt text
101
- grep -rn "<img\|<Image" $TARGET --include="*.tsx" --include="*.vue" --include="*.svelte" 2>/dev/null | grep -v "alt=" | head -10
102
-
103
- # Check semantic HTML usage
104
- grep -rn "<article\|<section\|<nav\|<main\|<aside\|<header\|<footer" $TARGET --include="*.tsx" --include="*.vue" --include="*.svelte" 2>/dev/null | wc -l
105
- ```
106
-
107
- ### Step 4: Performance & Core Web Vitals Indicators
108
-
109
- Check code-level indicators that affect CWV:
110
-
111
- | Check | CWV Metric | What to Look For |
112
- |-------|-----------|------------------|
113
- | Image optimization | LCP | next/image, lazy loading, srcset, WebP/AVIF |
114
- | Font loading | CLS | display:swap, font preloading, system font fallback |
115
- | JS bundle size | FID/INP | Dynamic imports, code splitting, tree shaking |
116
- | CSS loading | CLS | Critical CSS inline, non-blocking stylesheet loading |
117
- | Layout shifts | CLS | Explicit width/height on images, skeleton screens |
118
- | Third-party scripts | FID/INP | Deferred/async loading, script placement |
119
-
120
- ```bash
121
- # Image optimization
122
- grep -rn "<img\|<Image" $TARGET --include="*.tsx" --include="*.vue" 2>/dev/null | grep -v "loading=\|lazy\|next/image\|nuxt-img" | head -10
123
-
124
- # Font loading strategy
125
- grep -rn "font-display\|@font-face\|display.*swap" $TARGET --include="*.css" --include="*.tsx" 2>/dev/null | head -5
126
-
127
- # Dynamic imports (code splitting)
128
- grep -rn "dynamic(\|lazy(\|import(" $TARGET --include="*.tsx" --include="*.vue" --include="*.ts" 2>/dev/null | grep -v "node_modules" | head -10
129
-
130
- # Third-party scripts
131
- grep -rn "<script.*src=\|<Script" $TARGET --include="*.tsx" --include="*.vue" --include="*.html" 2>/dev/null | head -10
132
- ```
133
-
134
- ### Step 5: Crawlability Audit
135
-
136
- | Check | What to Look For |
137
- |-------|------------------|
138
- | robots.txt | Exists, allows critical paths, blocks /api and admin |
139
- | Sitemap | sitemap.xml exists and includes all public routes |
140
- | 404 page | Custom 404 with navigation, proper status code |
141
- | Redirects | No redirect chains (>2 hops), 301 for permanent |
142
- | URL structure | Clean, descriptive slugs, no query params for content |
143
- | SPA concerns | Prerendering for CSR apps, proper hydration |
144
- | Dynamic routes | Meta tags set per-route, not hardcoded |
145
-
146
- ```bash
147
- # Check for robots.txt
148
- find . -name "robots.txt" -not -path "*/node_modules/*" 2>/dev/null
149
-
150
- # Check for sitemap
151
- find . -name "sitemap*" -not -path "*/node_modules/*" 2>/dev/null
152
- grep -rn "sitemap" $TARGET --include="*.ts" --include="*.config.*" 2>/dev/null | head -5
153
-
154
- # Check for 404 page
155
- find $TARGET -name "404*" -o -name "not-found*" -o -name "\[...slug\]*" 2>/dev/null | head -5
156
-
157
- # Check for redirect configuration
158
- grep -rn "redirect\|rewrite" $TARGET --include="*.config.*" --include="*.ts" 2>/dev/null | head -10
159
- ```
160
-
161
- ### Step 6: Scoring & Report
162
-
163
- Score each category 0-100:
164
-
165
- | Score Range | Rating |
166
- |-------------|--------|
167
- | 90-100 | Excellent |
168
- | 70-89 | Good |
169
- | 50-69 | Needs Work |
170
- | 0-49 | Critical |
171
-
172
- **Scoring formula per category:**
173
- - Start at 100
174
- - CRITICAL finding: -25 points
175
- - HIGH finding: -15 points
176
- - MEDIUM finding: -10 points
177
- - LOW finding: -5 points
178
- - Minimum: 0
179
-
180
- ## Verification Protocol
181
-
182
- **Before claiming the audit is complete:**
183
-
184
- 1. All 5 audit dimensions were checked (technical SEO, content, CWV, crawlability, rendering)
185
- 2. Every finding has severity level and file:line reference
186
- 3. Rendering strategy was correctly identified and audit was adapted to it
187
- 4. Framework-specific meta patterns were checked (not just raw HTML)
188
- 5. At least 3 pages/routes were individually scanned
189
- 6. Scores were calculated with the formula above
190
-
191
- ## Anti-Rationalization
192
-
193
- | Excuse | Reality |
194
- |--------|---------|
195
- | "SEO doesn't matter for our app" | Even SaaS apps need landing pages that rank. SEO drives organic acquisition at zero marginal cost. |
196
- | "We'll add meta tags later" | Missing meta tags from day 1 means lost indexing time. Search engines need weeks to crawl and rank. |
197
- | "It's a SPA, SEO doesn't apply" | SPAs need SSR/SSG for SEO. If Google can't render it, it doesn't exist in search results. |
198
- | "Our content is good enough" | Good content with bad technical SEO is invisible. Fix the plumbing so the content can flow. |
199
- | "The framework handles SEO" | Frameworks provide tools, not configuration. You still need proper meta, structured data, and sitemap. |
200
- | "We don't need structured data" | Rich snippets increase CTR by 20-40%. Structured data is free visibility in search results. |
201
- | "We'll do SEO after launch" | Retrofitting SEO is 3-5x more expensive than building it in. Especially for routing and rendering changes. |
202
-
203
- ## Rules
204
-
205
- 1. **Read-only** - Never modify files during an audit
206
- 2. **Framework-aware** - Check framework-specific meta patterns, not just raw HTML
207
- 3. **Rendering-aware** - Adapt checks to SSR/SSG/CSR strategy
208
- 4. **Score every category** - Use the scoring formula consistently
209
- 5. **Evidence required** - Every finding needs a file:line reference
210
- 6. **Prioritize by impact** - CRITICAL findings first, always
211
- 7. **No vanity metrics** - Focus on technical SEO, not keyword density or word count
212
-
213
- ## Output
214
-
215
- ```
216
- ──── /seo-audit ────
217
- Target: $ARGUMENTS
218
- Framework: [detected]
219
- Rendering: [SSR/SSG/CSR/Hybrid]
220
- Pages scanned: [N]
221
-
222
- Technical SEO: [score]/100 - [N findings]
223
- Content: [score]/100 - [N findings]
224
- Performance: [score]/100 - [N findings]
225
- Crawlability: [score]/100 - [N findings]
226
-
227
- Severity:
228
- CRITICAL: N
229
- HIGH: N
230
- MEDIUM: N
231
- LOW: N
232
-
233
- Top Findings:
234
- 1. [CRITICAL] [description] - [file:line]
235
- 2. [HIGH] [description] - [file:line]
236
- 3. [HIGH] [description] - [file:line]
237
-
238
- Overall SEO Score: [N]/100
239
- Rating: [Excellent | Good | Needs Work | Critical]
240
- ```
@@ -1,201 +0,0 @@
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
- ## When to Use
16
-
17
- - Implementing a new function, service, or module where correctness is critical
18
- - Fixing a bug that needs a regression test to prove it's fixed
19
- - Building business logic (calculations, validations, state machines)
20
- - When code handles money, auth, or sensitive data
21
- - Refactoring existing code that lacks test coverage
22
- - NOT for: quick prototypes or throwaway code
23
- - NOT for: pure UI layout changes with no logic
24
- - NOT for: configuration changes (env vars, build config)
25
- - NOT for: code that already has comprehensive tests (just add to existing suite)
26
-
27
- ## Iron Law
28
-
29
- ```
30
- ╔══════════════════════════════════════════════════════════════╗
31
- ║ NO IMPLEMENTATION CODE WITHOUT A FAILING TEST FIRST ║
32
- ╚══════════════════════════════════════════════════════════════╝
33
- ```
34
-
35
- ## Workflow
36
-
37
- ### Cycle Structure
38
-
39
- For each behavior to implement:
40
-
41
- ```
42
- ┌───────┐ ┌───────┐ ┌──────────┐
43
- │ RED │ ───► │ GREEN │ ───► │ REFACTOR │
44
- └───────┘ └───────┘ └──────────┘
45
- ```
46
-
47
- ### Step 0: Detect Test Runner
48
-
49
- Auto-detect the project's test runner before starting:
50
-
51
- ```bash
52
- # Detect test runner from package.json or config files
53
- if [ -f "vitest.config.ts" ] || [ -f "vitest.config.js" ] || grep -q '"vitest"' package.json 2>/dev/null; then
54
- TEST_CMD="npx vitest run"
55
- TEST_FILTER="--testNamePattern"
56
- elif [ -f "jest.config.ts" ] || [ -f "jest.config.js" ] || grep -q '"jest"' package.json 2>/dev/null; then
57
- TEST_CMD="npx jest"
58
- TEST_FILTER="--testNamePattern"
59
- elif [ -f "playwright.config.ts" ] || [ -f "playwright.config.js" ]; then
60
- TEST_CMD="npx playwright test"
61
- TEST_FILTER="--grep"
62
- elif grep -q '"mocha"' package.json 2>/dev/null; then
63
- TEST_CMD="npx mocha"
64
- TEST_FILTER="--grep"
65
- else
66
- TEST_CMD="npm test --"
67
- TEST_FILTER="--testNamePattern"
68
- fi
69
- echo "Test runner: $TEST_CMD"
70
- ```
71
-
72
- Use the detected `$TEST_CMD` and `$TEST_FILTER` throughout all cycles.
73
-
74
- ### Step 1: RED - Write Failing Test
75
-
76
- 1. **Create/open test file**
77
- 2. **Write test for ONE behavior:**
78
- ```typescript
79
- it('should [expected behavior] when [condition]', () => {
80
- // Arrange
81
- const input = ...;
82
-
83
- // Act
84
- const result = functionUnderTest(input);
85
-
86
- // Assert
87
- expect(result).toBe(expected);
88
- });
89
- ```
90
- 3. **Run test:**
91
- ```bash
92
- $TEST_CMD $TEST_FILTER="[test name]"
93
- ```
94
- 4. **Verify FAILS** - Capture output showing failure
95
- 5. **BLOCKED** if test passes (wrong test or code exists)
96
-
97
- ### Step 2: GREEN - Minimal Implementation
98
-
99
- 1. **Write minimum code to pass:**
100
- - No extra features
101
- - No optimization
102
- - Just enough to pass
103
-
104
- 2. **Run test:**
105
- ```bash
106
- $TEST_CMD $TEST_FILTER="[test name]"
107
- ```
108
- 3. **Verify PASSES** - Capture output showing success
109
- 4. **BLOCKED** if test fails (fix before continuing)
110
-
111
- ### Step 3: REFACTOR - Improve
112
-
113
- 1. **Improve code quality:**
114
- - Remove duplication
115
- - Improve naming
116
- - Simplify logic
117
-
118
- 2. **Run ALL tests:**
119
- ```bash
120
- $TEST_CMD
121
- ```
122
- 3. **Verify ALL PASS**
123
- 4. **Check coverage change** (if coverage tool is available):
124
- ```bash
125
- $TEST_CMD --coverage 2>/dev/null | grep -A 5 "Stmts\|Lines\|%" || true
126
- ```
127
- 5. **Commit cycle:**
128
- ```bash
129
- git add -A && git commit -m "feat: [behavior] (TDD cycle N)"
130
- ```
131
-
132
- ### Repeat
133
-
134
- Continue cycles until feature is complete.
135
-
136
- ## Verification Protocol
137
-
138
- Every test run must be captured:
139
-
140
- ```
141
- ──── RED Phase ────
142
- Test: should calculate discount for valid coupon
143
- Running: npm test -- --testNamePattern="calculate discount"
144
- Output:
145
- FAIL src/discount.test.ts
146
- ✕ should calculate discount for valid coupon
147
- Expected: 90
148
- Received: undefined
149
- Status: FAIL ✓ - Proceeding to GREEN
150
-
151
- ──── GREEN Phase ────
152
- Running: npm test -- --testNamePattern="calculate discount"
153
- Output:
154
- PASS src/discount.test.ts
155
- ✓ should calculate discount for valid coupon
156
- Status: PASS ✓ - Proceeding to REFACTOR
157
- ```
158
-
159
- ## Output
160
-
161
- ```
162
- ──── /tdd ────
163
- Feature: [name]
164
-
165
- Cycle #1: [behavior]
166
- RED: Test written, FAIL ✓
167
- GREEN: Implemented, PASS ✓
168
- REFACTOR: Cleaned, PASS ✓
169
-
170
- Cycle #2: [behavior]
171
- RED: Test written, FAIL ✓
172
- GREEN: Implemented, PASS ✓
173
- REFACTOR: Cleaned, PASS ✓
174
-
175
- ──── TDD Summary ────
176
- Cycles completed: 2
177
- Tests added: 2
178
- All tests passing: ✓
179
- Coverage: [if available]
180
- ```
181
-
182
- ## Anti-Rationalization
183
-
184
- | Excuse | Reality |
185
- |--------|---------|
186
- | "I know it works, no need to test first" | Write the test. If it works, RED phase takes 30 seconds. |
187
- | "This is too simple for TDD" | Simple code has simple tests. No excuse to skip. |
188
- | "I'll write tests after" | Tests written after implementation verify your bias, not correctness. |
189
- | "The test framework isn't set up" | Set it up. That's part of the task. |
190
- | "Just this once I'll skip RED" | "Just this once" is how every shortcut becomes a habit. |
191
- | "The existing tests are enough" | Enough for what? New behavior needs new tests. Existing tests verify old assumptions. |
192
- | "I'll test the integration, not the unit" | Integration tests verify wiring. Unit tests verify logic. You need both. Start with unit. |
193
-
194
- ## Rules
195
-
196
- 1. **Never implement before RED**
197
- 2. **Capture all test output** - Proof, not trust
198
- 3. **One behavior per test**
199
- 4. **Minimal GREEN** - Just enough to pass
200
- 5. **Always REFACTOR** - Don't skip
201
- 6. **Document each cycle**