specialist-agent 2.12.0 → 3.2.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 (323) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +33 -207
  3. package/dist/catalog.json +15529 -0
  4. package/dist/hw-worker.mjs +254 -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-BIyqZkro.css +1 -0
  16. package/dist/interface/assets/index-zAegy908.js +13 -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 +63 -0
  35. package/dist/specialist-agent.mjs +6919 -0
  36. package/dist/usage-worker.mjs +174 -0
  37. package/package.json +32 -57
  38. package/.claude-plugin/marketplace.json +0 -52
  39. package/.claude-plugin/plugin.json +0 -37
  40. package/.codex/INSTALL.md +0 -145
  41. package/.cursor-plugin/marketplace.json +0 -52
  42. package/.cursor-plugin/plugin.json +0 -37
  43. package/.opencode/INSTALL.md +0 -127
  44. package/.opencode/opencode.json +0 -186
  45. package/agents/analyst-lite.md +0 -48
  46. package/agents/analyst.md +0 -396
  47. package/agents/api-lite.md +0 -43
  48. package/agents/api.md +0 -427
  49. package/agents/architect-lite.md +0 -104
  50. package/agents/architect.md +0 -571
  51. package/agents/autopilot-lite.md +0 -46
  52. package/agents/autopilot.md +0 -196
  53. package/agents/cloud-lite.md +0 -75
  54. package/agents/cloud.md +0 -213
  55. package/agents/data-lite.md +0 -67
  56. package/agents/data.md +0 -306
  57. package/agents/debugger-lite.md +0 -46
  58. package/agents/debugger.md +0 -410
  59. package/agents/deps-lite.md +0 -41
  60. package/agents/deps.md +0 -363
  61. package/agents/designer-lite.md +0 -67
  62. package/agents/designer.md +0 -195
  63. package/agents/devops-lite.md +0 -67
  64. package/agents/devops.md +0 -205
  65. package/agents/docs-lite.md +0 -42
  66. package/agents/docs.md +0 -454
  67. package/agents/executor-lite.md +0 -61
  68. package/agents/executor.md +0 -695
  69. package/agents/explorer-lite.md +0 -55
  70. package/agents/explorer.md +0 -152
  71. package/agents/finance-lite.md +0 -66
  72. package/agents/finance.md +0 -255
  73. package/agents/i18n-lite.md +0 -44
  74. package/agents/i18n.md +0 -594
  75. package/agents/legal-lite.md +0 -113
  76. package/agents/legal.md +0 -302
  77. package/agents/marketing-lite.md +0 -25
  78. package/agents/marketing.md +0 -188
  79. package/agents/memory.md +0 -166
  80. package/agents/orchestrator-lite.md +0 -40
  81. package/agents/orchestrator.md +0 -512
  82. package/agents/pair-lite.md +0 -38
  83. package/agents/pair.md +0 -310
  84. package/agents/perf-lite.md +0 -42
  85. package/agents/perf.md +0 -320
  86. package/agents/planner-lite.md +0 -59
  87. package/agents/planner.md +0 -272
  88. package/agents/product-lite.md +0 -25
  89. package/agents/product.md +0 -195
  90. package/agents/refactor-lite.md +0 -42
  91. package/agents/refactor.md +0 -467
  92. package/agents/ripple-lite.md +0 -106
  93. package/agents/ripple.md +0 -166
  94. package/agents/scout-lite.md +0 -37
  95. package/agents/scout.md +0 -224
  96. package/agents/security-lite.md +0 -66
  97. package/agents/security.md +0 -252
  98. package/agents/sentry-triage-lite.md +0 -54
  99. package/agents/sentry-triage.md +0 -217
  100. package/agents/starter-lite.md +0 -80
  101. package/agents/starter.md +0 -300
  102. package/agents/support-lite.md +0 -24
  103. package/agents/support.md +0 -191
  104. package/agents/tdd-lite.md +0 -43
  105. package/agents/tdd.md +0 -329
  106. package/agents/tester-lite.md +0 -71
  107. package/agents/tester.md +0 -237
  108. package/cli/architectures.mjs +0 -713
  109. package/cli/detect-architecture.mjs +0 -752
  110. package/cli/generate-architecture.mjs +0 -1096
  111. package/cli/index.mjs +0 -1217
  112. package/cli/recommend-architecture.mjs +0 -870
  113. package/hooks/after-review.mjs +0 -130
  114. package/hooks/after-task.mjs +0 -117
  115. package/hooks/before-plan.mjs +0 -155
  116. package/hooks/before-review.mjs +0 -139
  117. package/hooks/hooks.json +0 -66
  118. package/hooks/lifecycle.json +0 -91
  119. package/hooks/native/auto-dispatch.mjs +0 -207
  120. package/hooks/native/auto-format.mjs +0 -176
  121. package/hooks/native/mcp-discovery.mjs +0 -168
  122. package/hooks/native/security-config.json +0 -38
  123. package/hooks/native/security-guard.mjs +0 -323
  124. package/hooks/native/session-context.mjs +0 -179
  125. package/hooks/native/session-end.mjs +0 -42
  126. package/hooks/native/utils.mjs +0 -62
  127. package/hooks/on-error.mjs +0 -129
  128. package/hooks/session-end.mjs +0 -185
  129. package/hooks/session-start.mjs +0 -154
  130. package/packs/angular/ARCHITECTURE.md +0 -814
  131. package/packs/angular/CLAUDE.md +0 -105
  132. package/packs/angular/agents/builder.md +0 -113
  133. package/packs/angular/agents/doctor.md +0 -187
  134. package/packs/angular/agents/migrator.md +0 -101
  135. package/packs/angular/agents/reviewer.md +0 -252
  136. package/packs/angular/agents-lite/builder.md +0 -65
  137. package/packs/angular/agents-lite/doctor.md +0 -64
  138. package/packs/angular/agents-lite/migrator.md +0 -75
  139. package/packs/angular/agents-lite/reviewer.md +0 -69
  140. package/packs/angular/skills/dev-create-component/SKILL.md +0 -56
  141. package/packs/angular/skills/dev-create-injectable/SKILL.md +0 -60
  142. package/packs/angular/skills/dev-create-module/SKILL.md +0 -49
  143. package/packs/angular/skills/dev-create-service/SKILL.md +0 -34
  144. package/packs/angular/skills/dev-create-test/SKILL.md +0 -78
  145. package/packs/angular/skills/dev-generate-types/SKILL.md +0 -37
  146. package/packs/angular/skills/docs-onboard/SKILL.md +0 -42
  147. package/packs/angular/skills/migration-migrate-component/SKILL.md +0 -42
  148. package/packs/angular/skills/migration-migrate-module/SKILL.md +0 -25
  149. package/packs/angular/skills/review-check-architecture/SKILL.md +0 -67
  150. package/packs/angular/skills/review-fix-violations/SKILL.md +0 -43
  151. package/packs/angular/skills/review-review/SKILL.md +0 -43
  152. package/packs/astro/ARCHITECTURE.md +0 -718
  153. package/packs/astro/CLAUDE.md +0 -106
  154. package/packs/astro/agents/builder.md +0 -123
  155. package/packs/astro/agents/doctor.md +0 -200
  156. package/packs/astro/agents/migrator.md +0 -105
  157. package/packs/astro/agents/reviewer.md +0 -253
  158. package/packs/astro/agents-lite/builder.md +0 -71
  159. package/packs/astro/agents-lite/doctor.md +0 -66
  160. package/packs/astro/agents-lite/migrator.md +0 -71
  161. package/packs/astro/agents-lite/reviewer.md +0 -70
  162. package/packs/astro/skills/dev-create-component/SKILL.md +0 -50
  163. package/packs/astro/skills/dev-create-island/SKILL.md +0 -63
  164. package/packs/astro/skills/dev-create-module/SKILL.md +0 -49
  165. package/packs/astro/skills/dev-create-service/SKILL.md +0 -34
  166. package/packs/astro/skills/dev-create-test/SKILL.md +0 -76
  167. package/packs/astro/skills/dev-generate-types/SKILL.md +0 -37
  168. package/packs/astro/skills/docs-onboard/SKILL.md +0 -51
  169. package/packs/astro/skills/migration-migrate-component/SKILL.md +0 -48
  170. package/packs/astro/skills/migration-migrate-module/SKILL.md +0 -25
  171. package/packs/astro/skills/review-check-architecture/SKILL.md +0 -72
  172. package/packs/astro/skills/review-fix-violations/SKILL.md +0 -43
  173. package/packs/astro/skills/review-review/SKILL.md +0 -45
  174. package/packs/nextjs/ARCHITECTURE.md +0 -1033
  175. package/packs/nextjs/CLAUDE.md +0 -106
  176. package/packs/nextjs/agents/builder.md +0 -132
  177. package/packs/nextjs/agents/doctor.md +0 -226
  178. package/packs/nextjs/agents/migrator.md +0 -101
  179. package/packs/nextjs/agents/reviewer.md +0 -243
  180. package/packs/nextjs/agents-lite/builder.md +0 -74
  181. package/packs/nextjs/agents-lite/doctor.md +0 -74
  182. package/packs/nextjs/agents-lite/migrator.md +0 -75
  183. package/packs/nextjs/agents-lite/reviewer.md +0 -73
  184. package/packs/nextjs/skills/dev-create-component/SKILL.md +0 -82
  185. package/packs/nextjs/skills/dev-create-hook/SKILL.md +0 -90
  186. package/packs/nextjs/skills/dev-create-module/SKILL.md +0 -63
  187. package/packs/nextjs/skills/dev-create-service/SKILL.md +0 -35
  188. package/packs/nextjs/skills/dev-create-test/SKILL.md +0 -106
  189. package/packs/nextjs/skills/dev-generate-types/SKILL.md +0 -37
  190. package/packs/nextjs/skills/docs-onboard/SKILL.md +0 -55
  191. package/packs/nextjs/skills/migration-migrate-component/SKILL.md +0 -58
  192. package/packs/nextjs/skills/migration-migrate-module/SKILL.md +0 -25
  193. package/packs/nextjs/skills/review-check-architecture/SKILL.md +0 -101
  194. package/packs/nextjs/skills/review-fix-violations/SKILL.md +0 -48
  195. package/packs/nextjs/skills/review-review/SKILL.md +0 -47
  196. package/packs/nuxt/ARCHITECTURE.md +0 -831
  197. package/packs/nuxt/CLAUDE.md +0 -111
  198. package/packs/nuxt/agents/builder.md +0 -120
  199. package/packs/nuxt/agents/doctor.md +0 -198
  200. package/packs/nuxt/agents/migrator.md +0 -101
  201. package/packs/nuxt/agents/reviewer.md +0 -255
  202. package/packs/nuxt/agents-lite/builder.md +0 -67
  203. package/packs/nuxt/agents-lite/doctor.md +0 -67
  204. package/packs/nuxt/agents-lite/migrator.md +0 -80
  205. package/packs/nuxt/agents-lite/reviewer.md +0 -71
  206. package/packs/nuxt/skills/dev-create-component/SKILL.md +0 -60
  207. package/packs/nuxt/skills/dev-create-composable/SKILL.md +0 -33
  208. package/packs/nuxt/skills/dev-create-module/SKILL.md +0 -49
  209. package/packs/nuxt/skills/dev-create-service/SKILL.md +0 -34
  210. package/packs/nuxt/skills/dev-create-test/SKILL.md +0 -61
  211. package/packs/nuxt/skills/dev-generate-types/SKILL.md +0 -37
  212. package/packs/nuxt/skills/docs-onboard/SKILL.md +0 -49
  213. package/packs/nuxt/skills/migration-migrate-component/SKILL.md +0 -48
  214. package/packs/nuxt/skills/migration-migrate-module/SKILL.md +0 -25
  215. package/packs/nuxt/skills/review-check-architecture/SKILL.md +0 -71
  216. package/packs/nuxt/skills/review-fix-violations/SKILL.md +0 -43
  217. package/packs/nuxt/skills/review-review/SKILL.md +0 -45
  218. package/packs/react/ARCHITECTURE.md +0 -991
  219. package/packs/react/CLAUDE.md +0 -102
  220. package/packs/react/agents/builder.md +0 -113
  221. package/packs/react/agents/doctor.md +0 -203
  222. package/packs/react/agents/migrator.md +0 -101
  223. package/packs/react/agents/reviewer.md +0 -252
  224. package/packs/react/agents-lite/builder.md +0 -65
  225. package/packs/react/agents-lite/doctor.md +0 -64
  226. package/packs/react/agents-lite/migrator.md +0 -74
  227. package/packs/react/agents-lite/reviewer.md +0 -69
  228. package/packs/react/skills/dev-create-component/SKILL.md +0 -53
  229. package/packs/react/skills/dev-create-hook/SKILL.md +0 -78
  230. package/packs/react/skills/dev-create-module/SKILL.md +0 -51
  231. package/packs/react/skills/dev-create-service/SKILL.md +0 -34
  232. package/packs/react/skills/dev-create-test/SKILL.md +0 -92
  233. package/packs/react/skills/dev-generate-types/SKILL.md +0 -37
  234. package/packs/react/skills/docs-onboard/SKILL.md +0 -42
  235. package/packs/react/skills/migration-migrate-component/SKILL.md +0 -44
  236. package/packs/react/skills/migration-migrate-module/SKILL.md +0 -25
  237. package/packs/react/skills/review-check-architecture/SKILL.md +0 -73
  238. package/packs/react/skills/review-fix-violations/SKILL.md +0 -45
  239. package/packs/react/skills/review-review/SKILL.md +0 -44
  240. package/packs/svelte/ARCHITECTURE.md +0 -975
  241. package/packs/svelte/CLAUDE.md +0 -102
  242. package/packs/svelte/agents/builder.md +0 -114
  243. package/packs/svelte/agents/doctor.md +0 -174
  244. package/packs/svelte/agents/migrator.md +0 -101
  245. package/packs/svelte/agents/reviewer.md +0 -238
  246. package/packs/svelte/agents-lite/builder.md +0 -66
  247. package/packs/svelte/agents-lite/doctor.md +0 -67
  248. package/packs/svelte/agents-lite/migrator.md +0 -82
  249. package/packs/svelte/agents-lite/reviewer.md +0 -70
  250. package/packs/svelte/skills/dev-create-component/SKILL.md +0 -77
  251. package/packs/svelte/skills/dev-create-module/SKILL.md +0 -59
  252. package/packs/svelte/skills/dev-create-service/SKILL.md +0 -35
  253. package/packs/svelte/skills/dev-create-store/SKILL.md +0 -94
  254. package/packs/svelte/skills/dev-create-test/SKILL.md +0 -98
  255. package/packs/svelte/skills/dev-generate-types/SKILL.md +0 -37
  256. package/packs/svelte/skills/docs-onboard/SKILL.md +0 -47
  257. package/packs/svelte/skills/migration-migrate-component/SKILL.md +0 -51
  258. package/packs/svelte/skills/migration-migrate-module/SKILL.md +0 -25
  259. package/packs/svelte/skills/review-check-architecture/SKILL.md +0 -79
  260. package/packs/svelte/skills/review-fix-violations/SKILL.md +0 -47
  261. package/packs/svelte/skills/review-review/SKILL.md +0 -45
  262. package/packs/vue/ARCHITECTURE.md +0 -798
  263. package/packs/vue/CLAUDE.md +0 -102
  264. package/packs/vue/agents/builder.md +0 -112
  265. package/packs/vue/agents/doctor.md +0 -185
  266. package/packs/vue/agents/migrator.md +0 -101
  267. package/packs/vue/agents/reviewer.md +0 -249
  268. package/packs/vue/agents-lite/builder.md +0 -65
  269. package/packs/vue/agents-lite/doctor.md +0 -63
  270. package/packs/vue/agents-lite/migrator.md +0 -73
  271. package/packs/vue/agents-lite/reviewer.md +0 -68
  272. package/packs/vue/skills/dev-create-component/SKILL.md +0 -58
  273. package/packs/vue/skills/dev-create-composable/SKILL.md +0 -31
  274. package/packs/vue/skills/dev-create-module/SKILL.md +0 -50
  275. package/packs/vue/skills/dev-create-service/SKILL.md +0 -34
  276. package/packs/vue/skills/dev-create-test/SKILL.md +0 -62
  277. package/packs/vue/skills/dev-generate-types/SKILL.md +0 -37
  278. package/packs/vue/skills/docs-onboard/SKILL.md +0 -42
  279. package/packs/vue/skills/migration-migrate-component/SKILL.md +0 -41
  280. package/packs/vue/skills/migration-migrate-module/SKILL.md +0 -25
  281. package/packs/vue/skills/review-check-architecture/SKILL.md +0 -73
  282. package/packs/vue/skills/review-fix-violations/SKILL.md +0 -42
  283. package/packs/vue/skills/review-review/SKILL.md +0 -43
  284. package/skills/audit/SKILL.md +0 -231
  285. package/skills/autofix/SKILL.md +0 -166
  286. package/skills/autopilot/SKILL.md +0 -286
  287. package/skills/brainstorm/SKILL.md +0 -298
  288. package/skills/checkpoint/SKILL.md +0 -217
  289. package/skills/codereview/SKILL.md +0 -268
  290. package/skills/commit/SKILL.md +0 -150
  291. package/skills/copywriting/SKILL.md +0 -218
  292. package/skills/cro/SKILL.md +0 -234
  293. package/skills/debug/SKILL.md +0 -210
  294. package/skills/design-review/SKILL.md +0 -217
  295. package/skills/discovery/SKILL.md +0 -218
  296. package/skills/estimate/SKILL.md +0 -154
  297. package/skills/finish/SKILL.md +0 -220
  298. package/skills/grill/SKILL.md +0 -270
  299. package/skills/health/SKILL.md +0 -251
  300. package/skills/improve-architecture/SKILL.md +0 -205
  301. package/skills/learn/SKILL.md +0 -260
  302. package/skills/lint/SKILL.md +0 -126
  303. package/skills/migrate-architecture/SKILL.md +0 -242
  304. package/skills/migrate-framework/SKILL.md +0 -172
  305. package/skills/onboard/SKILL.md +0 -168
  306. package/skills/plan/SKILL.md +0 -141
  307. package/skills/prd/SKILL.md +0 -241
  308. package/skills/recall/SKILL.md +0 -112
  309. package/skills/remember/SKILL.md +0 -108
  310. package/skills/seo-audit/SKILL.md +0 -240
  311. package/skills/tdd/SKILL.md +0 -201
  312. package/skills/tutorial/SKILL.md +0 -346
  313. package/skills/verify/SKILL.md +0 -168
  314. package/skills/worktree/SKILL.md +0 -168
  315. package/skills/write-skill/SKILL.md +0 -225
  316. package/templates/autopilot/PROMPT.md +0 -39
  317. package/templates/autopilot/README.md +0 -122
  318. package/templates/autopilot/devcontainer.json +0 -21
  319. package/templates/industry/ecommerce.md +0 -127
  320. package/templates/industry/fintech.md +0 -161
  321. package/templates/industry/saas.md +0 -134
  322. package/templates/session-memory.json +0 -48
  323. 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**