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.
- package/LICENSE +1 -1
- package/README.md +33 -207
- package/dist/catalog.json +15529 -0
- package/dist/hw-worker.mjs +254 -0
- package/dist/icones/icone.ico +0 -0
- package/dist/icones/icone.png +0 -0
- package/dist/interface/assets/figtree-latin-400-normal-g7Dtegnw.woff2 +0 -0
- package/dist/interface/assets/figtree-latin-500-normal-BWnGEVsr.woff2 +0 -0
- package/dist/interface/assets/figtree-latin-600-normal-Cv_xCTDl.woff2 +0 -0
- package/dist/interface/assets/figtree-latin-700-normal-th6qEP7c.woff2 +0 -0
- package/dist/interface/assets/figtree-latin-ext-400-normal-CXAzuTZb.woff2 +0 -0
- package/dist/interface/assets/figtree-latin-ext-500-normal-Du0rIuHj.woff2 +0 -0
- package/dist/interface/assets/figtree-latin-ext-600-normal-DJlfifZj.woff2 +0 -0
- package/dist/interface/assets/figtree-latin-ext-700-normal-CS4sQkGV.woff2 +0 -0
- package/dist/interface/assets/index-BIyqZkro.css +1 -0
- package/dist/interface/assets/index-zAegy908.js +13 -0
- package/dist/interface/assets/jetbrains-mono-latin-400-normal-V6pRDFza.woff2 +0 -0
- package/dist/interface/assets/jetbrains-mono-latin-500-normal-BWZEU5yA.woff2 +0 -0
- package/dist/interface/assets/jetbrains-mono-latin-600-normal-C8RAYTDA.woff2 +0 -0
- package/dist/interface/assets/jetbrains-mono-latin-ext-400-normal-Bc8Ftmh3.woff2 +0 -0
- package/dist/interface/assets/jetbrains-mono-latin-ext-500-normal-Cut-4mMH.woff2 +0 -0
- package/dist/interface/assets/jetbrains-mono-latin-ext-600-normal-BfB_LPfz.woff2 +0 -0
- package/dist/interface/assets/unbounded-latin-500-normal-4slEIF53.woff2 +0 -0
- package/dist/interface/assets/unbounded-latin-700-normal-CaoNriVp.woff2 +0 -0
- package/dist/interface/assets/unbounded-latin-ext-500-normal-BTIpesyw.woff2 +0 -0
- package/dist/interface/assets/unbounded-latin-ext-700-normal-BLzWLLjG.woff2 +0 -0
- package/dist/interface/icones/apple-touch-icon.png +0 -0
- package/dist/interface/icones/favicon-32.png +0 -0
- package/dist/interface/icones/icone-192.png +0 -0
- package/dist/interface/icones/icone-512.png +0 -0
- package/dist/interface/icones/icone-mascara-512.png +0 -0
- package/dist/interface/index.html +19 -0
- package/dist/interface/manifest.webmanifest +19 -0
- package/dist/interface/sw.js +63 -0
- package/dist/specialist-agent.mjs +6919 -0
- package/dist/usage-worker.mjs +174 -0
- package/package.json +32 -57
- package/.claude-plugin/marketplace.json +0 -52
- package/.claude-plugin/plugin.json +0 -37
- package/.codex/INSTALL.md +0 -145
- package/.cursor-plugin/marketplace.json +0 -52
- package/.cursor-plugin/plugin.json +0 -37
- package/.opencode/INSTALL.md +0 -127
- package/.opencode/opencode.json +0 -186
- package/agents/analyst-lite.md +0 -48
- package/agents/analyst.md +0 -396
- package/agents/api-lite.md +0 -43
- package/agents/api.md +0 -427
- package/agents/architect-lite.md +0 -104
- package/agents/architect.md +0 -571
- package/agents/autopilot-lite.md +0 -46
- package/agents/autopilot.md +0 -196
- package/agents/cloud-lite.md +0 -75
- package/agents/cloud.md +0 -213
- package/agents/data-lite.md +0 -67
- package/agents/data.md +0 -306
- package/agents/debugger-lite.md +0 -46
- package/agents/debugger.md +0 -410
- package/agents/deps-lite.md +0 -41
- package/agents/deps.md +0 -363
- package/agents/designer-lite.md +0 -67
- package/agents/designer.md +0 -195
- package/agents/devops-lite.md +0 -67
- package/agents/devops.md +0 -205
- package/agents/docs-lite.md +0 -42
- package/agents/docs.md +0 -454
- package/agents/executor-lite.md +0 -61
- package/agents/executor.md +0 -695
- package/agents/explorer-lite.md +0 -55
- package/agents/explorer.md +0 -152
- package/agents/finance-lite.md +0 -66
- package/agents/finance.md +0 -255
- package/agents/i18n-lite.md +0 -44
- package/agents/i18n.md +0 -594
- package/agents/legal-lite.md +0 -113
- package/agents/legal.md +0 -302
- package/agents/marketing-lite.md +0 -25
- package/agents/marketing.md +0 -188
- package/agents/memory.md +0 -166
- package/agents/orchestrator-lite.md +0 -40
- package/agents/orchestrator.md +0 -512
- package/agents/pair-lite.md +0 -38
- package/agents/pair.md +0 -310
- package/agents/perf-lite.md +0 -42
- package/agents/perf.md +0 -320
- package/agents/planner-lite.md +0 -59
- package/agents/planner.md +0 -272
- package/agents/product-lite.md +0 -25
- package/agents/product.md +0 -195
- package/agents/refactor-lite.md +0 -42
- package/agents/refactor.md +0 -467
- package/agents/ripple-lite.md +0 -106
- package/agents/ripple.md +0 -166
- package/agents/scout-lite.md +0 -37
- package/agents/scout.md +0 -224
- package/agents/security-lite.md +0 -66
- package/agents/security.md +0 -252
- package/agents/sentry-triage-lite.md +0 -54
- package/agents/sentry-triage.md +0 -217
- package/agents/starter-lite.md +0 -80
- package/agents/starter.md +0 -300
- package/agents/support-lite.md +0 -24
- package/agents/support.md +0 -191
- package/agents/tdd-lite.md +0 -43
- package/agents/tdd.md +0 -329
- package/agents/tester-lite.md +0 -71
- package/agents/tester.md +0 -237
- package/cli/architectures.mjs +0 -713
- package/cli/detect-architecture.mjs +0 -752
- package/cli/generate-architecture.mjs +0 -1096
- package/cli/index.mjs +0 -1217
- package/cli/recommend-architecture.mjs +0 -870
- package/hooks/after-review.mjs +0 -130
- package/hooks/after-task.mjs +0 -117
- package/hooks/before-plan.mjs +0 -155
- package/hooks/before-review.mjs +0 -139
- package/hooks/hooks.json +0 -66
- package/hooks/lifecycle.json +0 -91
- package/hooks/native/auto-dispatch.mjs +0 -207
- package/hooks/native/auto-format.mjs +0 -176
- package/hooks/native/mcp-discovery.mjs +0 -168
- package/hooks/native/security-config.json +0 -38
- package/hooks/native/security-guard.mjs +0 -323
- package/hooks/native/session-context.mjs +0 -179
- package/hooks/native/session-end.mjs +0 -42
- package/hooks/native/utils.mjs +0 -62
- package/hooks/on-error.mjs +0 -129
- package/hooks/session-end.mjs +0 -185
- package/hooks/session-start.mjs +0 -154
- package/packs/angular/ARCHITECTURE.md +0 -814
- package/packs/angular/CLAUDE.md +0 -105
- package/packs/angular/agents/builder.md +0 -113
- package/packs/angular/agents/doctor.md +0 -187
- package/packs/angular/agents/migrator.md +0 -101
- package/packs/angular/agents/reviewer.md +0 -252
- package/packs/angular/agents-lite/builder.md +0 -65
- package/packs/angular/agents-lite/doctor.md +0 -64
- package/packs/angular/agents-lite/migrator.md +0 -75
- package/packs/angular/agents-lite/reviewer.md +0 -69
- package/packs/angular/skills/dev-create-component/SKILL.md +0 -56
- package/packs/angular/skills/dev-create-injectable/SKILL.md +0 -60
- package/packs/angular/skills/dev-create-module/SKILL.md +0 -49
- package/packs/angular/skills/dev-create-service/SKILL.md +0 -34
- package/packs/angular/skills/dev-create-test/SKILL.md +0 -78
- package/packs/angular/skills/dev-generate-types/SKILL.md +0 -37
- package/packs/angular/skills/docs-onboard/SKILL.md +0 -42
- package/packs/angular/skills/migration-migrate-component/SKILL.md +0 -42
- package/packs/angular/skills/migration-migrate-module/SKILL.md +0 -25
- package/packs/angular/skills/review-check-architecture/SKILL.md +0 -67
- package/packs/angular/skills/review-fix-violations/SKILL.md +0 -43
- package/packs/angular/skills/review-review/SKILL.md +0 -43
- package/packs/astro/ARCHITECTURE.md +0 -718
- package/packs/astro/CLAUDE.md +0 -106
- package/packs/astro/agents/builder.md +0 -123
- package/packs/astro/agents/doctor.md +0 -200
- package/packs/astro/agents/migrator.md +0 -105
- package/packs/astro/agents/reviewer.md +0 -253
- package/packs/astro/agents-lite/builder.md +0 -71
- package/packs/astro/agents-lite/doctor.md +0 -66
- package/packs/astro/agents-lite/migrator.md +0 -71
- package/packs/astro/agents-lite/reviewer.md +0 -70
- package/packs/astro/skills/dev-create-component/SKILL.md +0 -50
- package/packs/astro/skills/dev-create-island/SKILL.md +0 -63
- package/packs/astro/skills/dev-create-module/SKILL.md +0 -49
- package/packs/astro/skills/dev-create-service/SKILL.md +0 -34
- package/packs/astro/skills/dev-create-test/SKILL.md +0 -76
- package/packs/astro/skills/dev-generate-types/SKILL.md +0 -37
- package/packs/astro/skills/docs-onboard/SKILL.md +0 -51
- package/packs/astro/skills/migration-migrate-component/SKILL.md +0 -48
- package/packs/astro/skills/migration-migrate-module/SKILL.md +0 -25
- package/packs/astro/skills/review-check-architecture/SKILL.md +0 -72
- package/packs/astro/skills/review-fix-violations/SKILL.md +0 -43
- package/packs/astro/skills/review-review/SKILL.md +0 -45
- package/packs/nextjs/ARCHITECTURE.md +0 -1033
- package/packs/nextjs/CLAUDE.md +0 -106
- package/packs/nextjs/agents/builder.md +0 -132
- package/packs/nextjs/agents/doctor.md +0 -226
- package/packs/nextjs/agents/migrator.md +0 -101
- package/packs/nextjs/agents/reviewer.md +0 -243
- package/packs/nextjs/agents-lite/builder.md +0 -74
- package/packs/nextjs/agents-lite/doctor.md +0 -74
- package/packs/nextjs/agents-lite/migrator.md +0 -75
- package/packs/nextjs/agents-lite/reviewer.md +0 -73
- package/packs/nextjs/skills/dev-create-component/SKILL.md +0 -82
- package/packs/nextjs/skills/dev-create-hook/SKILL.md +0 -90
- package/packs/nextjs/skills/dev-create-module/SKILL.md +0 -63
- package/packs/nextjs/skills/dev-create-service/SKILL.md +0 -35
- package/packs/nextjs/skills/dev-create-test/SKILL.md +0 -106
- package/packs/nextjs/skills/dev-generate-types/SKILL.md +0 -37
- package/packs/nextjs/skills/docs-onboard/SKILL.md +0 -55
- package/packs/nextjs/skills/migration-migrate-component/SKILL.md +0 -58
- package/packs/nextjs/skills/migration-migrate-module/SKILL.md +0 -25
- package/packs/nextjs/skills/review-check-architecture/SKILL.md +0 -101
- package/packs/nextjs/skills/review-fix-violations/SKILL.md +0 -48
- package/packs/nextjs/skills/review-review/SKILL.md +0 -47
- package/packs/nuxt/ARCHITECTURE.md +0 -831
- package/packs/nuxt/CLAUDE.md +0 -111
- package/packs/nuxt/agents/builder.md +0 -120
- package/packs/nuxt/agents/doctor.md +0 -198
- package/packs/nuxt/agents/migrator.md +0 -101
- package/packs/nuxt/agents/reviewer.md +0 -255
- package/packs/nuxt/agents-lite/builder.md +0 -67
- package/packs/nuxt/agents-lite/doctor.md +0 -67
- package/packs/nuxt/agents-lite/migrator.md +0 -80
- package/packs/nuxt/agents-lite/reviewer.md +0 -71
- package/packs/nuxt/skills/dev-create-component/SKILL.md +0 -60
- package/packs/nuxt/skills/dev-create-composable/SKILL.md +0 -33
- package/packs/nuxt/skills/dev-create-module/SKILL.md +0 -49
- package/packs/nuxt/skills/dev-create-service/SKILL.md +0 -34
- package/packs/nuxt/skills/dev-create-test/SKILL.md +0 -61
- package/packs/nuxt/skills/dev-generate-types/SKILL.md +0 -37
- package/packs/nuxt/skills/docs-onboard/SKILL.md +0 -49
- package/packs/nuxt/skills/migration-migrate-component/SKILL.md +0 -48
- package/packs/nuxt/skills/migration-migrate-module/SKILL.md +0 -25
- package/packs/nuxt/skills/review-check-architecture/SKILL.md +0 -71
- package/packs/nuxt/skills/review-fix-violations/SKILL.md +0 -43
- package/packs/nuxt/skills/review-review/SKILL.md +0 -45
- package/packs/react/ARCHITECTURE.md +0 -991
- package/packs/react/CLAUDE.md +0 -102
- package/packs/react/agents/builder.md +0 -113
- package/packs/react/agents/doctor.md +0 -203
- package/packs/react/agents/migrator.md +0 -101
- package/packs/react/agents/reviewer.md +0 -252
- package/packs/react/agents-lite/builder.md +0 -65
- package/packs/react/agents-lite/doctor.md +0 -64
- package/packs/react/agents-lite/migrator.md +0 -74
- package/packs/react/agents-lite/reviewer.md +0 -69
- package/packs/react/skills/dev-create-component/SKILL.md +0 -53
- package/packs/react/skills/dev-create-hook/SKILL.md +0 -78
- package/packs/react/skills/dev-create-module/SKILL.md +0 -51
- package/packs/react/skills/dev-create-service/SKILL.md +0 -34
- package/packs/react/skills/dev-create-test/SKILL.md +0 -92
- package/packs/react/skills/dev-generate-types/SKILL.md +0 -37
- package/packs/react/skills/docs-onboard/SKILL.md +0 -42
- package/packs/react/skills/migration-migrate-component/SKILL.md +0 -44
- package/packs/react/skills/migration-migrate-module/SKILL.md +0 -25
- package/packs/react/skills/review-check-architecture/SKILL.md +0 -73
- package/packs/react/skills/review-fix-violations/SKILL.md +0 -45
- package/packs/react/skills/review-review/SKILL.md +0 -44
- package/packs/svelte/ARCHITECTURE.md +0 -975
- package/packs/svelte/CLAUDE.md +0 -102
- package/packs/svelte/agents/builder.md +0 -114
- package/packs/svelte/agents/doctor.md +0 -174
- package/packs/svelte/agents/migrator.md +0 -101
- package/packs/svelte/agents/reviewer.md +0 -238
- package/packs/svelte/agents-lite/builder.md +0 -66
- package/packs/svelte/agents-lite/doctor.md +0 -67
- package/packs/svelte/agents-lite/migrator.md +0 -82
- package/packs/svelte/agents-lite/reviewer.md +0 -70
- package/packs/svelte/skills/dev-create-component/SKILL.md +0 -77
- package/packs/svelte/skills/dev-create-module/SKILL.md +0 -59
- package/packs/svelte/skills/dev-create-service/SKILL.md +0 -35
- package/packs/svelte/skills/dev-create-store/SKILL.md +0 -94
- package/packs/svelte/skills/dev-create-test/SKILL.md +0 -98
- package/packs/svelte/skills/dev-generate-types/SKILL.md +0 -37
- package/packs/svelte/skills/docs-onboard/SKILL.md +0 -47
- package/packs/svelte/skills/migration-migrate-component/SKILL.md +0 -51
- package/packs/svelte/skills/migration-migrate-module/SKILL.md +0 -25
- package/packs/svelte/skills/review-check-architecture/SKILL.md +0 -79
- package/packs/svelte/skills/review-fix-violations/SKILL.md +0 -47
- package/packs/svelte/skills/review-review/SKILL.md +0 -45
- package/packs/vue/ARCHITECTURE.md +0 -798
- package/packs/vue/CLAUDE.md +0 -102
- package/packs/vue/agents/builder.md +0 -112
- package/packs/vue/agents/doctor.md +0 -185
- package/packs/vue/agents/migrator.md +0 -101
- package/packs/vue/agents/reviewer.md +0 -249
- package/packs/vue/agents-lite/builder.md +0 -65
- package/packs/vue/agents-lite/doctor.md +0 -63
- package/packs/vue/agents-lite/migrator.md +0 -73
- package/packs/vue/agents-lite/reviewer.md +0 -68
- package/packs/vue/skills/dev-create-component/SKILL.md +0 -58
- package/packs/vue/skills/dev-create-composable/SKILL.md +0 -31
- package/packs/vue/skills/dev-create-module/SKILL.md +0 -50
- package/packs/vue/skills/dev-create-service/SKILL.md +0 -34
- package/packs/vue/skills/dev-create-test/SKILL.md +0 -62
- package/packs/vue/skills/dev-generate-types/SKILL.md +0 -37
- package/packs/vue/skills/docs-onboard/SKILL.md +0 -42
- package/packs/vue/skills/migration-migrate-component/SKILL.md +0 -41
- package/packs/vue/skills/migration-migrate-module/SKILL.md +0 -25
- package/packs/vue/skills/review-check-architecture/SKILL.md +0 -73
- package/packs/vue/skills/review-fix-violations/SKILL.md +0 -42
- package/packs/vue/skills/review-review/SKILL.md +0 -43
- package/skills/audit/SKILL.md +0 -231
- package/skills/autofix/SKILL.md +0 -166
- package/skills/autopilot/SKILL.md +0 -286
- package/skills/brainstorm/SKILL.md +0 -298
- package/skills/checkpoint/SKILL.md +0 -217
- package/skills/codereview/SKILL.md +0 -268
- package/skills/commit/SKILL.md +0 -150
- package/skills/copywriting/SKILL.md +0 -218
- package/skills/cro/SKILL.md +0 -234
- package/skills/debug/SKILL.md +0 -210
- package/skills/design-review/SKILL.md +0 -217
- package/skills/discovery/SKILL.md +0 -218
- package/skills/estimate/SKILL.md +0 -154
- package/skills/finish/SKILL.md +0 -220
- package/skills/grill/SKILL.md +0 -270
- package/skills/health/SKILL.md +0 -251
- package/skills/improve-architecture/SKILL.md +0 -205
- package/skills/learn/SKILL.md +0 -260
- package/skills/lint/SKILL.md +0 -126
- package/skills/migrate-architecture/SKILL.md +0 -242
- package/skills/migrate-framework/SKILL.md +0 -172
- package/skills/onboard/SKILL.md +0 -168
- package/skills/plan/SKILL.md +0 -141
- package/skills/prd/SKILL.md +0 -241
- package/skills/recall/SKILL.md +0 -112
- package/skills/remember/SKILL.md +0 -108
- package/skills/seo-audit/SKILL.md +0 -240
- package/skills/tdd/SKILL.md +0 -201
- package/skills/tutorial/SKILL.md +0 -346
- package/skills/verify/SKILL.md +0 -168
- package/skills/worktree/SKILL.md +0 -168
- package/skills/write-skill/SKILL.md +0 -225
- package/templates/autopilot/PROMPT.md +0 -39
- package/templates/autopilot/README.md +0 -122
- package/templates/autopilot/devcontainer.json +0 -21
- package/templates/industry/ecommerce.md +0 -127
- package/templates/industry/fintech.md +0 -161
- package/templates/industry/saas.md +0 -134
- package/templates/session-memory.json +0 -48
- package/templates/skill-template/SKILL.md +0 -90
package/skills/cro/SKILL.md
DELETED
|
@@ -1,234 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: cro
|
|
3
|
-
description: "Use when optimizing landing pages, signup flows, checkout processes, or any user-facing page for higher conversion rates - before A/B testing."
|
|
4
|
-
user-invocable: true
|
|
5
|
-
argument-hint: "[page path or component]"
|
|
6
|
-
allowed-tools: Read, Bash, Glob, Grep
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
# /cro - Conversion Rate Optimization
|
|
10
|
-
|
|
11
|
-
Audit pages and flows for conversion friction - identifying drop-off points, persuasion gaps, and technical blockers - then produce prioritized recommendations with testable A/B hypotheses.
|
|
12
|
-
|
|
13
|
-
**Target:** $ARGUMENTS
|
|
14
|
-
|
|
15
|
-
## When to Use
|
|
16
|
-
|
|
17
|
-
- Before launching a landing page or signup flow
|
|
18
|
-
- When conversion rates are below industry benchmarks
|
|
19
|
-
- After redesigning a checkout or onboarding flow
|
|
20
|
-
- When bounce rate is high on key pages
|
|
21
|
-
- Before running paid traffic to a page
|
|
22
|
-
- When `@marketing` Growth mode needs structured CRO analysis
|
|
23
|
-
- NOT for: SEO issues (use `/seo-audit`)
|
|
24
|
-
- NOT for: general design quality (use `/design-review`)
|
|
25
|
-
- NOT for: copy creation (use `/copywriting`)
|
|
26
|
-
|
|
27
|
-
## Workflow
|
|
28
|
-
|
|
29
|
-
### Step 1: Page & Flow Analysis
|
|
30
|
-
|
|
31
|
-
1. **Read the target page/component:**
|
|
32
|
-
|
|
33
|
-
```bash
|
|
34
|
-
# Find the page/component code
|
|
35
|
-
find $TARGET -type f \( -name "*.tsx" -o -name "*.vue" -o -name "*.svelte" -o -name "*.astro" \) | head -20
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
2. **Identify the conversion goal:**
|
|
39
|
-
- Signup (form submission)
|
|
40
|
-
- Purchase (checkout completion)
|
|
41
|
-
- Download (file/app download)
|
|
42
|
-
- Contact (form/chat initiation)
|
|
43
|
-
- Engagement (feature activation)
|
|
44
|
-
|
|
45
|
-
3. **Map the user flow:**
|
|
46
|
-
```markdown
|
|
47
|
-
## User Flow
|
|
48
|
-
[Entry point] → [Step 1] → [Step 2] → ... → [Conversion]
|
|
49
|
-
|
|
50
|
-
Example:
|
|
51
|
-
Landing page → Pricing section → Signup form → Email verification → Dashboard
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
4. **Identify drop-off points** - Where in the flow might users leave?
|
|
55
|
-
|
|
56
|
-
### Step 2: Friction Audit
|
|
57
|
-
|
|
58
|
-
Check for conversion killers:
|
|
59
|
-
|
|
60
|
-
| Friction Type | What to Look For | Impact |
|
|
61
|
-
|---------------|------------------|--------|
|
|
62
|
-
| Form friction | Too many fields, required fields, no autofill | HIGH |
|
|
63
|
-
| Cognitive load | Too many choices, unclear hierarchy, wall of text | HIGH |
|
|
64
|
-
| Trust deficit | No social proof, no security badges, unclear pricing | HIGH |
|
|
65
|
-
| Speed friction | Slow loading, heavy JS, unoptimized images | HIGH |
|
|
66
|
-
| Navigation friction | Can't find CTA, buried below fold, confusing layout | MEDIUM |
|
|
67
|
-
| Mobile friction | Small touch targets, horizontal scroll, unreadable text | MEDIUM |
|
|
68
|
-
| Copy friction | Unclear value prop, jargon, no urgency | MEDIUM |
|
|
69
|
-
| Technical friction | Broken forms, validation errors, payment failures | CRITICAL |
|
|
70
|
-
|
|
71
|
-
```bash
|
|
72
|
-
# Count form fields (friction indicator)
|
|
73
|
-
grep -rn "<input\|<select\|<textarea" $TARGET --include="*.tsx" --include="*.vue" 2>/dev/null | wc -l
|
|
74
|
-
|
|
75
|
-
# Check for form validation UX
|
|
76
|
-
grep -rn "onBlur\|onChange.*validation\|zod\|yup\|formik\|react-hook-form\|vee-validate" $TARGET --include="*.tsx" --include="*.vue" 2>/dev/null | head -10
|
|
77
|
-
|
|
78
|
-
# Check for loading/performance issues
|
|
79
|
-
grep -rn "useEffect\|onMounted\|onMount" $TARGET --include="*.tsx" --include="*.vue" --include="*.svelte" 2>/dev/null | head -10
|
|
80
|
-
|
|
81
|
-
# Check image optimization
|
|
82
|
-
grep -rn "<img\|<Image" $TARGET --include="*.tsx" --include="*.vue" 2>/dev/null | grep -v "next/image\|nuxt-img\|loading=" | head -10
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
### Step 3: Persuasion Checklist (Cialdini's Principles)
|
|
86
|
-
|
|
87
|
-
Evaluate each persuasion principle:
|
|
88
|
-
|
|
89
|
-
| Principle | Implementation | Status |
|
|
90
|
-
|-----------|---------------|--------|
|
|
91
|
-
| **Reciprocity** | Free value before asking (free trial, guide, tool) | [Present/Missing] |
|
|
92
|
-
| **Scarcity** | Limited time/quantity indicators (genuine, not fake) | [Present/Missing] |
|
|
93
|
-
| **Authority** | Expert endorsements, certifications, press logos | [Present/Missing] |
|
|
94
|
-
| **Social Proof** | Testimonials, user count, ratings, case studies | [Present/Missing] |
|
|
95
|
-
| **Liking** | Relatable brand voice, user stories, team photos | [Present/Missing] |
|
|
96
|
-
| **Commitment** | Micro-conversions (email first, then full signup) | [Present/Missing] |
|
|
97
|
-
| **Unity** | Shared identity ("Join 10,000 developers like you") | [Present/Missing] |
|
|
98
|
-
|
|
99
|
-
```bash
|
|
100
|
-
# Check for social proof elements
|
|
101
|
-
grep -rn "testimonial\|review\|rating\|customer\|users\|trusted" $TARGET --include="*.tsx" --include="*.vue" --include="*.astro" 2>/dev/null | head -10
|
|
102
|
-
|
|
103
|
-
# Check for trust signals
|
|
104
|
-
grep -rn "secure\|ssl\|encrypted\|guarantee\|money-back\|badge" $TARGET --include="*.tsx" --include="*.vue" 2>/dev/null | head -10
|
|
105
|
-
```
|
|
106
|
-
|
|
107
|
-
### Step 4: Copy & CTA Audit
|
|
108
|
-
|
|
109
|
-
| Check | Best Practice |
|
|
110
|
-
|-------|---------------|
|
|
111
|
-
| Headline clarity | Value proposition clear in <3 seconds |
|
|
112
|
-
| Above-the-fold | CTA visible without scrolling |
|
|
113
|
-
| CTA text | Action verb + benefit (not "Submit" or "Click here") |
|
|
114
|
-
| CTA contrast | Visually distinct from surrounding content |
|
|
115
|
-
| Value before form | User understands benefit before filling fields |
|
|
116
|
-
| Objection handling | FAQ, guarantees, or trust signals near CTA |
|
|
117
|
-
| Urgency | Genuine deadline or limited availability (if applicable) |
|
|
118
|
-
|
|
119
|
-
```bash
|
|
120
|
-
# Check CTA button text
|
|
121
|
-
grep -rn "type=\"submit\"\|<button\|<Button" $TARGET --include="*.tsx" --include="*.vue" 2>/dev/null | head -10
|
|
122
|
-
|
|
123
|
-
# Check for "Submit" or generic CTA text (anti-pattern)
|
|
124
|
-
grep -rn ">Submit<\|>Click here<\|>Send<\|>Go<" $TARGET --include="*.tsx" --include="*.vue" 2>/dev/null | head -5
|
|
125
|
-
```
|
|
126
|
-
|
|
127
|
-
### Step 5: Technical CRO
|
|
128
|
-
|
|
129
|
-
Performance directly impacts conversion (every 100ms delay = -1% conversion):
|
|
130
|
-
|
|
131
|
-
| Check | Impact on Conversion |
|
|
132
|
-
|-------|---------------------|
|
|
133
|
-
| Page load time | +1s load time = -7% conversion (Google) |
|
|
134
|
-
| Mobile responsiveness | 53% abandon if >3s load on mobile |
|
|
135
|
-
| Form error recovery | Inline validation saves 22% form abandonment |
|
|
136
|
-
| Payment options | Each additional payment method = +5-10% checkout conversion |
|
|
137
|
-
| Loading states | Skeleton screens reduce perceived wait time by 30% |
|
|
138
|
-
|
|
139
|
-
```bash
|
|
140
|
-
# Check for skeleton/loading states
|
|
141
|
-
grep -rn "skeleton\|Skeleton\|loading\|isLoading\|isPending" $TARGET --include="*.tsx" --include="*.vue" 2>/dev/null | head -10
|
|
142
|
-
|
|
143
|
-
# Check for error boundary/handling in forms
|
|
144
|
-
grep -rn "error\|Error\|catch\|onError\|isError" $TARGET --include="*.tsx" --include="*.vue" 2>/dev/null | head -10
|
|
145
|
-
|
|
146
|
-
# Bundle size indicators
|
|
147
|
-
find $TARGET -name "*.tsx" -o -name "*.ts" | xargs wc -l 2>/dev/null | sort -rn | head -10
|
|
148
|
-
```
|
|
149
|
-
|
|
150
|
-
### Step 6: Prioritized Recommendations
|
|
151
|
-
|
|
152
|
-
For each finding, produce:
|
|
153
|
-
|
|
154
|
-
```markdown
|
|
155
|
-
### Recommendation [N]: [Title]
|
|
156
|
-
|
|
157
|
-
**Finding:** [What's wrong]
|
|
158
|
-
**Impact:** HIGH | MEDIUM | LOW
|
|
159
|
-
**Effort:** S (< 2h) | M (2-4h) | L (4-8h)
|
|
160
|
-
**Priority:** [Impact/Effort ratio]
|
|
161
|
-
|
|
162
|
-
**A/B Hypothesis:**
|
|
163
|
-
> If we [change], then [metric] will [improve] because [reason].
|
|
164
|
-
|
|
165
|
-
**Implementation:**
|
|
166
|
-
- File: [file:line]
|
|
167
|
-
- Change: [specific change]
|
|
168
|
-
```
|
|
169
|
-
|
|
170
|
-
**Prioritize by:** HIGH impact + LOW effort first (quick wins).
|
|
171
|
-
|
|
172
|
-
## Verification Protocol
|
|
173
|
-
|
|
174
|
-
**Before claiming the CRO audit is complete:**
|
|
175
|
-
|
|
176
|
-
1. Conversion goal was explicitly identified
|
|
177
|
-
2. User flow was mapped from entry to conversion
|
|
178
|
-
3. All 7 friction categories were checked
|
|
179
|
-
4. All 7 Cialdini principles were evaluated
|
|
180
|
-
5. At least 3 recommendations have A/B hypotheses
|
|
181
|
-
6. Recommendations are prioritized by impact/effort ratio
|
|
182
|
-
7. Technical CRO checks were performed (performance, form UX)
|
|
183
|
-
8. Each recommendation has a specific file:line reference
|
|
184
|
-
|
|
185
|
-
## Anti-Rationalization
|
|
186
|
-
|
|
187
|
-
| Excuse | Reality |
|
|
188
|
-
|--------|---------|
|
|
189
|
-
| "Our conversion rate is fine" | Fine compared to what? Industry benchmarks? Last month? Without data, you're guessing. |
|
|
190
|
-
| "We need more traffic, not better conversion" | Doubling conversion is cheaper than doubling traffic. Optimize what you have first. |
|
|
191
|
-
| "Users will figure it out" | Users won't. They'll leave. Average attention span is 8 seconds. Remove friction or lose them. |
|
|
192
|
-
| "We can't change the design" | CRO isn't redesign. Changing CTA text from "Submit" to "Start Free Trial" is a 5-minute code change. |
|
|
193
|
-
| "A/B testing is too complex" | You don't need a testing platform to start. Ship Variant B, measure, compare. Manual A/B is still A/B. |
|
|
194
|
-
| "Our product is too technical for CRO" | Technical products still need clear value propositions. Complexity in product ≠ complexity in messaging. |
|
|
195
|
-
| "We already did CRO" | CRO is continuous. User behavior changes, competitors evolve, pages degrade. Audit quarterly. |
|
|
196
|
-
|
|
197
|
-
## Rules
|
|
198
|
-
|
|
199
|
-
1. **Read-only** - Never modify files during a CRO audit
|
|
200
|
-
2. **Data-informed** - Base recommendations on research and benchmarks, not opinions
|
|
201
|
-
3. **Hypothesis-driven** - Every recommendation needs a testable A/B hypothesis
|
|
202
|
-
4. **Quick wins first** - Prioritize high-impact, low-effort changes
|
|
203
|
-
5. **One CTA per view** - Never recommend multiple competing CTAs
|
|
204
|
-
6. **Genuine urgency only** - Never recommend fake scarcity or countdown timers
|
|
205
|
-
7. **Code-grounded** - Every finding must reference specific files and components
|
|
206
|
-
8. **Conversion goal explicit** - Never audit without defining what "conversion" means
|
|
207
|
-
|
|
208
|
-
## Output
|
|
209
|
-
|
|
210
|
-
```
|
|
211
|
-
──── /cro ────
|
|
212
|
-
Target: $ARGUMENTS
|
|
213
|
-
Conversion Goal: [signup | purchase | download | contact]
|
|
214
|
-
User Flow: [entry] → ... → [conversion]
|
|
215
|
-
|
|
216
|
-
Friction Score: [N]/100 (lower = more friction)
|
|
217
|
-
Persuasion Score: [N]/7 principles present
|
|
218
|
-
|
|
219
|
-
Findings:
|
|
220
|
-
CRITICAL: N
|
|
221
|
-
HIGH: N
|
|
222
|
-
MEDIUM: N
|
|
223
|
-
LOW: N
|
|
224
|
-
|
|
225
|
-
Top Recommendations:
|
|
226
|
-
1. [HIGH/S] [recommendation] → Hypothesis: [if/then]
|
|
227
|
-
2. [HIGH/M] [recommendation] → Hypothesis: [if/then]
|
|
228
|
-
3. [MEDIUM/S] [recommendation] → Hypothesis: [if/then]
|
|
229
|
-
|
|
230
|
-
Quick Wins: N (HIGH impact, LOW effort)
|
|
231
|
-
Total Recommendations: N
|
|
232
|
-
|
|
233
|
-
──── CRO audit complete ────
|
|
234
|
-
```
|
package/skills/debug/SKILL.md
DELETED
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: debug
|
|
3
|
-
description: "Use when encountering any bug, test failure, unexpected behavior, or error - before proposing fixes. Use especially when previous fix attempts have failed."
|
|
4
|
-
user-invocable: true
|
|
5
|
-
argument-hint: "[error message or bug description]"
|
|
6
|
-
allowed-tools: Read, Write, Edit, Bash, Glob, Grep
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
# /debug - Systematic Debugging
|
|
10
|
-
|
|
11
|
-
Investigate and fix the bug using 4-phase methodology.
|
|
12
|
-
|
|
13
|
-
**Target:** $ARGUMENTS
|
|
14
|
-
|
|
15
|
-
## The 4 Phases
|
|
16
|
-
|
|
17
|
-
```
|
|
18
|
-
Phase 1 Phase 2 Phase 3 Phase 4
|
|
19
|
-
┌────────┐ ┌─────────┐ ┌───────────┐ ┌───────────┐
|
|
20
|
-
│ GATHER │─►│ ANALYZE │─►│ FORMULATE │─►│ IMPLEMENT │
|
|
21
|
-
│Evidence│ │ Patterns│ │ Hypothesis│ │ & Prove │
|
|
22
|
-
└────────┘ └─────────┘ └───────────┘ └───────────┘
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
## Workflow
|
|
26
|
-
|
|
27
|
-
### Phase 1: GATHER EVIDENCE
|
|
28
|
-
|
|
29
|
-
1. **Read the error completely:**
|
|
30
|
-
- Full error message
|
|
31
|
-
- Stack trace
|
|
32
|
-
- File and line numbers
|
|
33
|
-
|
|
34
|
-
2. **Reproduce the bug:**
|
|
35
|
-
- Document exact steps
|
|
36
|
-
- Confirm reproducible
|
|
37
|
-
|
|
38
|
-
3. **Check recent changes:**
|
|
39
|
-
```bash
|
|
40
|
-
git log --oneline -10
|
|
41
|
-
git diff HEAD~3
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
4. **Search for related code:**
|
|
45
|
-
```bash
|
|
46
|
-
grep -r "error message" .
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
**Output:**
|
|
50
|
-
```markdown
|
|
51
|
-
## Evidence
|
|
52
|
-
|
|
53
|
-
Error: [full message]
|
|
54
|
-
Location: [file:line]
|
|
55
|
-
Stack trace: [trace]
|
|
56
|
-
|
|
57
|
-
Reproduction:
|
|
58
|
-
1. [step]
|
|
59
|
-
2. [step]
|
|
60
|
-
3. Error occurs
|
|
61
|
-
|
|
62
|
-
Recent changes:
|
|
63
|
-
- [commit]: [relevant change]
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
**BLOCKED** until evidence collected.
|
|
67
|
-
|
|
68
|
-
### Phase 2: ANALYZE PATTERNS
|
|
69
|
-
|
|
70
|
-
1. **Trace execution path:**
|
|
71
|
-
- Entry point → Error location
|
|
72
|
-
- Data flow through system
|
|
73
|
-
|
|
74
|
-
2. **Compare with working code:**
|
|
75
|
-
- Find similar code that works
|
|
76
|
-
- Identify differences
|
|
77
|
-
|
|
78
|
-
3. **Identify patterns:**
|
|
79
|
-
- Consistent or intermittent?
|
|
80
|
-
- Data-dependent?
|
|
81
|
-
- Timing-dependent?
|
|
82
|
-
|
|
83
|
-
**Output:**
|
|
84
|
-
```markdown
|
|
85
|
-
## Analysis
|
|
86
|
-
|
|
87
|
-
Execution: [entry] → [fn1] → [fn2] → [error]
|
|
88
|
-
|
|
89
|
-
Working vs Broken:
|
|
90
|
-
| Aspect | Working | Broken |
|
|
91
|
-
|--------|---------|--------|
|
|
92
|
-
| [X] | [value] | [value]|
|
|
93
|
-
|
|
94
|
-
Patterns:
|
|
95
|
-
- [pattern 1]
|
|
96
|
-
- [pattern 2]
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
**BLOCKED** until patterns identified.
|
|
100
|
-
|
|
101
|
-
### Phase 3: FORMULATE HYPOTHESIS
|
|
102
|
-
|
|
103
|
-
1. **Generate hypotheses:**
|
|
104
|
-
- Multiple, not just one
|
|
105
|
-
- Based on evidence
|
|
106
|
-
|
|
107
|
-
2. **Rank by probability:**
|
|
108
|
-
- Which fits all evidence?
|
|
109
|
-
- Simplest explanation?
|
|
110
|
-
|
|
111
|
-
3. **Design tests:**
|
|
112
|
-
- How to prove/disprove each?
|
|
113
|
-
|
|
114
|
-
**Output:**
|
|
115
|
-
```markdown
|
|
116
|
-
## Hypotheses
|
|
117
|
-
|
|
118
|
-
H1: [most likely] (80%)
|
|
119
|
-
Evidence for: [...]
|
|
120
|
-
Test: [how to verify]
|
|
121
|
-
|
|
122
|
-
H2: [second option] (15%)
|
|
123
|
-
Test: [how to verify]
|
|
124
|
-
```
|
|
125
|
-
|
|
126
|
-
**BLOCKED** until hypotheses formulated.
|
|
127
|
-
|
|
128
|
-
### Phase 4: IMPLEMENT & PROVE
|
|
129
|
-
|
|
130
|
-
1. **Test primary hypothesis:**
|
|
131
|
-
- Execute minimal test
|
|
132
|
-
- Capture output
|
|
133
|
-
|
|
134
|
-
2. **If confirmed:**
|
|
135
|
-
- Write test that reproduces bug
|
|
136
|
-
- Implement fix
|
|
137
|
-
- Verify test passes
|
|
138
|
-
|
|
139
|
-
3. **If rejected:**
|
|
140
|
-
- Test next hypothesis
|
|
141
|
-
|
|
142
|
-
4. **Create checkpoint:**
|
|
143
|
-
```bash
|
|
144
|
-
git add -A && git commit -m "fix: [description]"
|
|
145
|
-
git tag checkpoint/bugfix-[name]
|
|
146
|
-
```
|
|
147
|
-
|
|
148
|
-
**Output:**
|
|
149
|
-
```markdown
|
|
150
|
-
## Resolution
|
|
151
|
-
|
|
152
|
-
Hypothesis: H1 - CONFIRMED ✓
|
|
153
|
-
|
|
154
|
-
Root Cause:
|
|
155
|
-
[Clear explanation]
|
|
156
|
-
|
|
157
|
-
Fix:
|
|
158
|
-
```diff
|
|
159
|
-
- [old code]
|
|
160
|
-
+ [new code]
|
|
161
|
-
```
|
|
162
|
-
|
|
163
|
-
Verification:
|
|
164
|
-
- Reproduction test: PASS ✓
|
|
165
|
-
- Existing tests: PASS ✓
|
|
166
|
-
```
|
|
167
|
-
|
|
168
|
-
## Three-Strike Rule
|
|
169
|
-
|
|
170
|
-
After 3 failed hypotheses:
|
|
171
|
-
```
|
|
172
|
-
⚠️ THREE STRIKES
|
|
173
|
-
Re-evaluating understanding of the system.
|
|
174
|
-
Looking for deeper architectural issues.
|
|
175
|
-
```
|
|
176
|
-
|
|
177
|
-
## Output
|
|
178
|
-
|
|
179
|
-
```
|
|
180
|
-
──── /debug ────
|
|
181
|
-
Bug: [description]
|
|
182
|
-
|
|
183
|
-
Phase 1: Evidence gathered ✓
|
|
184
|
-
Phase 2: Patterns identified ✓
|
|
185
|
-
Phase 3: Hypotheses formulated ✓
|
|
186
|
-
Phase 4: Fix implemented ✓
|
|
187
|
-
|
|
188
|
-
──── Debug Summary ────
|
|
189
|
-
Root cause: [explanation]
|
|
190
|
-
Fix: [what changed]
|
|
191
|
-
Checkpoint: checkpoint/bugfix-[name]
|
|
192
|
-
Confidence: HIGH
|
|
193
|
-
```
|
|
194
|
-
|
|
195
|
-
## Anti-Rationalization
|
|
196
|
-
|
|
197
|
-
| Excuse | Reality |
|
|
198
|
-
|--------|---------|
|
|
199
|
-
| "I know the fix already" | You have a hypothesis, not a fix. Follow the phases. |
|
|
200
|
-
| "It's obviously this line" | Obvious fixes that skip investigation create new bugs. |
|
|
201
|
-
| "I'll just try this quickly" | Quick fixes without understanding cause regressions. |
|
|
202
|
-
| "Too slow to gather evidence" | Debugging without evidence takes 3x longer. |
|
|
203
|
-
| "The error message tells me everything" | Error messages are symptoms, not root causes. |
|
|
204
|
-
|
|
205
|
-
## Rules
|
|
206
|
-
|
|
207
|
-
1. **Never guess** - Evidence first
|
|
208
|
-
2. **Never fix without understanding** - Know the root cause
|
|
209
|
-
3. **Never skip phases** - Each prevents blind spots
|
|
210
|
-
4. **Always checkpoint** - Fixes must be reversible
|
|
@@ -1,217 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: design-review
|
|
3
|
-
description: "Use when reviewing frontend code for design consistency, accessibility compliance, responsive behavior, and UI/UX best practices - before deployment or after design system changes."
|
|
4
|
-
user-invocable: true
|
|
5
|
-
argument-hint: "[path, component, or page]"
|
|
6
|
-
allowed-tools: Read, Bash, Glob, Grep
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
# /design-review - Frontend & Design Audit
|
|
10
|
-
|
|
11
|
-
Audit frontend code for design consistency, accessibility compliance, responsive behavior, and UX patterns - producing actionable findings with severity levels and file:line references.
|
|
12
|
-
|
|
13
|
-
**Target:** $ARGUMENTS
|
|
14
|
-
|
|
15
|
-
## When to Use
|
|
16
|
-
|
|
17
|
-
- Before deploying UI changes to production
|
|
18
|
-
- After design system updates or theme changes
|
|
19
|
-
- When accessibility compliance is required (WCAG AA)
|
|
20
|
-
- After new contributor frontend PRs
|
|
21
|
-
- When UI inconsistencies are reported by users
|
|
22
|
-
- When migrating or updating component libraries
|
|
23
|
-
- NOT for: backend-only changes (use `/codereview`)
|
|
24
|
-
- NOT for: performance-only audits (use `@perf` directly)
|
|
25
|
-
- NOT for: creating new designs (use `@designer`)
|
|
26
|
-
|
|
27
|
-
## Workflow
|
|
28
|
-
|
|
29
|
-
### Step 1: Scope & Stack Detection
|
|
30
|
-
|
|
31
|
-
1. **Identify target** - Component, page, module, or full frontend
|
|
32
|
-
2. **Detect CSS framework:**
|
|
33
|
-
|
|
34
|
-
```bash
|
|
35
|
-
# Detect styling approach
|
|
36
|
-
grep -rl "tailwind\|@apply" . --include="*.css" --include="*.config.*" 2>/dev/null | head -5
|
|
37
|
-
grep -rl "styled-components\|@emotion\|css-in-js" . --include="*.ts" --include="*.tsx" 2>/dev/null | head -5
|
|
38
|
-
grep -rl "\.module\.css\|\.module\.scss" $TARGET 2>/dev/null | head -5
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
3. **Detect component library:**
|
|
42
|
-
|
|
43
|
-
```bash
|
|
44
|
-
# Check for UI libraries
|
|
45
|
-
grep -rn "shadcn\|radix\|headlessui\|chakra\|mantine\|vuetify\|primevue" package.json 2>/dev/null
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
4. **Read design tokens** if they exist (theme files, CSS variables, Tailwind config)
|
|
49
|
-
|
|
50
|
-
### Step 2: Design Consistency Audit
|
|
51
|
-
|
|
52
|
-
Check for consistent use of design system:
|
|
53
|
-
|
|
54
|
-
| Check | What to Look For |
|
|
55
|
-
|-------|------------------|
|
|
56
|
-
| Color tokens | Hardcoded hex/rgb instead of CSS variables or theme tokens |
|
|
57
|
-
| Spacing scale | Arbitrary pixel values instead of spacing scale (4px, 8px, 16px...) |
|
|
58
|
-
| Typography | Inline font-size/weight instead of text style tokens |
|
|
59
|
-
| Border radius | Inconsistent rounding across components |
|
|
60
|
-
| Shadow | Hardcoded box-shadow instead of elevation tokens |
|
|
61
|
-
| Z-index | Arbitrary z-index values without a defined scale |
|
|
62
|
-
| Breakpoints | Custom media queries instead of defined breakpoints |
|
|
63
|
-
|
|
64
|
-
```bash
|
|
65
|
-
# Find hardcoded colors (potential token violations)
|
|
66
|
-
grep -rn "#[0-9a-fA-F]\{3,8\}\|rgb(\|rgba(\|hsl(" $TARGET --include="*.tsx" --include="*.vue" --include="*.svelte" --include="*.css" 2>/dev/null | grep -v "node_modules\|\.config\." | head -30
|
|
67
|
-
|
|
68
|
-
# Find hardcoded pixel values (potential spacing violations)
|
|
69
|
-
grep -rn "margin:\|padding:\|gap:" $TARGET --include="*.tsx" --include="*.vue" --include="*.css" 2>/dev/null | grep "[0-9]px" | head -20
|
|
70
|
-
|
|
71
|
-
# Find hardcoded z-index
|
|
72
|
-
grep -rn "z-index:" $TARGET --include="*.tsx" --include="*.vue" --include="*.css" 2>/dev/null | head -10
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
### Step 3: Accessibility Audit (WCAG AA)
|
|
76
|
-
|
|
77
|
-
Check for accessibility compliance:
|
|
78
|
-
|
|
79
|
-
| Check | Criteria | How to Verify |
|
|
80
|
-
|-------|----------|---------------|
|
|
81
|
-
| Alt text | All `<img>` have meaningful `alt` | Grep for `<img` without `alt` |
|
|
82
|
-
| Labels | All form inputs have associated labels | Grep for `<input` without `aria-label` or `<label>` |
|
|
83
|
-
| Headings | Single H1, logical H2-H6 hierarchy | Scan heading structure |
|
|
84
|
-
| Contrast | Text meets 4.5:1 ratio (AA) | Check color token combinations |
|
|
85
|
-
| Focus | Interactive elements have visible focus styles | Check `:focus-visible` usage |
|
|
86
|
-
| Keyboard | All interactions accessible via keyboard | Check for `onClick` without `onKeyDown` |
|
|
87
|
-
| ARIA | Correct ARIA roles, states, properties | Check for misused ARIA attributes |
|
|
88
|
-
| Motion | Respect `prefers-reduced-motion` | Check animations for motion preference |
|
|
89
|
-
| Touch targets | Minimum 44x44px for touch targets | Check button/link sizing |
|
|
90
|
-
|
|
91
|
-
```bash
|
|
92
|
-
# Missing alt text
|
|
93
|
-
grep -rn "<img" $TARGET --include="*.tsx" --include="*.vue" --include="*.svelte" 2>/dev/null | grep -v "alt=" | head -10
|
|
94
|
-
|
|
95
|
-
# Missing form labels
|
|
96
|
-
grep -rn "<input\|<select\|<textarea" $TARGET --include="*.tsx" --include="*.vue" 2>/dev/null | grep -v "aria-label\|aria-labelledby\|id=" | head -10
|
|
97
|
-
|
|
98
|
-
# onClick without keyboard handler
|
|
99
|
-
grep -rn "onClick=" $TARGET --include="*.tsx" 2>/dev/null | grep -v "button\|Button\|<a " | head -10
|
|
100
|
-
|
|
101
|
-
# Check for prefers-reduced-motion
|
|
102
|
-
grep -rn "prefers-reduced-motion" $TARGET --include="*.css" --include="*.tsx" --include="*.vue" 2>/dev/null | wc -l
|
|
103
|
-
```
|
|
104
|
-
|
|
105
|
-
### Step 4: Responsive Review
|
|
106
|
-
|
|
107
|
-
Check responsive behavior:
|
|
108
|
-
|
|
109
|
-
| Check | What to Look For |
|
|
110
|
-
|-------|------------------|
|
|
111
|
-
| Breakpoint usage | Consistent use of defined breakpoints, not arbitrary values |
|
|
112
|
-
| Mobile-first | Styles default to mobile, scale up with min-width queries |
|
|
113
|
-
| Flexible layouts | Flex/Grid instead of fixed widths |
|
|
114
|
-
| Viewport meta | Proper `<meta name="viewport">` configuration |
|
|
115
|
-
| Text overflow | Long text handled with truncation/wrap |
|
|
116
|
-
| Image sizing | Responsive images with `srcset`, `sizes`, or framework equivalents |
|
|
117
|
-
| Container queries | Used where component-level responsiveness is needed |
|
|
118
|
-
|
|
119
|
-
```bash
|
|
120
|
-
# Find fixed widths (potential responsive issues)
|
|
121
|
-
grep -rn "width: [0-9]\+px" $TARGET --include="*.css" --include="*.tsx" --include="*.vue" 2>/dev/null | grep -v "max-width\|min-width" | head -15
|
|
122
|
-
|
|
123
|
-
# Check for responsive image usage
|
|
124
|
-
grep -rn "<img" $TARGET --include="*.tsx" --include="*.vue" 2>/dev/null | grep -v "srcset\|sizes\|next/image\|nuxt-img" | head -10
|
|
125
|
-
```
|
|
126
|
-
|
|
127
|
-
### Step 5: UX Pattern Review
|
|
128
|
-
|
|
129
|
-
Check for complete UX states:
|
|
130
|
-
|
|
131
|
-
| Pattern | Required States |
|
|
132
|
-
|---------|----------------|
|
|
133
|
-
| Data loading | Loading skeleton/spinner, not blank screen |
|
|
134
|
-
| Empty state | Helpful message + action when no data |
|
|
135
|
-
| Error state | User-friendly error with retry action |
|
|
136
|
-
| Form validation | Inline validation, not just submit-time |
|
|
137
|
-
| Success feedback | Confirmation after destructive/important actions |
|
|
138
|
-
| Progressive disclosure | Complex UI revealed progressively |
|
|
139
|
-
| Navigation | Breadcrumbs, back buttons, clear hierarchy |
|
|
140
|
-
|
|
141
|
-
For each component/page in scope, verify that all applicable states are handled.
|
|
142
|
-
|
|
143
|
-
### Step 6: Report & Findings
|
|
144
|
-
|
|
145
|
-
1. **Classify every finding** with severity (CRITICAL/HIGH/MEDIUM/LOW)
|
|
146
|
-
2. **Include file:line references** for every finding
|
|
147
|
-
3. **Provide concrete fix** for every finding
|
|
148
|
-
4. **Calculate scores** per category (0-100)
|
|
149
|
-
|
|
150
|
-
## Severity Levels
|
|
151
|
-
|
|
152
|
-
| Level | Description | Examples |
|
|
153
|
-
|-------|-------------|---------|
|
|
154
|
-
| CRITICAL | Accessibility barrier or legal risk | Missing alt text on critical images, no keyboard navigation, color contrast failure |
|
|
155
|
-
| HIGH | Major UX issue or design system violation | Inconsistent design tokens, missing error states, broken responsive layout |
|
|
156
|
-
| MEDIUM | Minor UX issue or inconsistency | Hardcoded colors that match tokens, missing loading states on fast operations |
|
|
157
|
-
| LOW | Style improvement or polish | Minor spacing inconsistencies, optional animation improvements |
|
|
158
|
-
|
|
159
|
-
## Verification Protocol
|
|
160
|
-
|
|
161
|
-
**Before claiming the review is complete:**
|
|
162
|
-
|
|
163
|
-
1. All 4 audit dimensions were checked (consistency, accessibility, responsive, UX)
|
|
164
|
-
2. Every finding has a severity level and file:line reference
|
|
165
|
-
3. Every CRITICAL/HIGH finding has a concrete fix suggestion
|
|
166
|
-
4. Automated checks were run (grep for hardcoded values, missing alt text, etc.)
|
|
167
|
-
5. Design token/theme files were read before flagging consistency issues
|
|
168
|
-
6. At least one component was traced through all UX states (loading, empty, error, success)
|
|
169
|
-
|
|
170
|
-
## Anti-Rationalization
|
|
171
|
-
|
|
172
|
-
| Excuse | Reality |
|
|
173
|
-
|--------|---------|
|
|
174
|
-
| "Design is subjective" | Accessibility is not. Consistency is not. Review objective criteria, not taste. |
|
|
175
|
-
| "It looks fine on my screen" | Did you test mobile, tablet, desktop? Dark mode? Screen reader? |
|
|
176
|
-
| "We'll fix accessibility later" | WCAG compliance is cheaper to build than retrofit. Lawsuits don't wait. |
|
|
177
|
-
| "The design system handles all this" | Design systems provide tools; developers still misuse them. Verify actual usage. |
|
|
178
|
-
| "Users don't notice small inconsistencies" | Inconsistency erodes trust subconsciously. Death by a thousand cuts. |
|
|
179
|
-
| "It's an internal tool, accessibility doesn't matter" | Internal tools have users with disabilities too. And internal becomes external. |
|
|
180
|
-
| "The component library is accessible by default" | Libraries provide accessible primitives. Composition can break accessibility. |
|
|
181
|
-
|
|
182
|
-
## Rules
|
|
183
|
-
|
|
184
|
-
1. **Read-only** - Never modify files during a review
|
|
185
|
-
2. **Evidence required** - Every finding needs a file:line reference
|
|
186
|
-
3. **Token-first** - Check if design tokens exist before flagging hardcoded values
|
|
187
|
-
4. **Accessibility is non-negotiable** - WCAG AA violations are always HIGH or CRITICAL
|
|
188
|
-
5. **Framework-aware** - Check for framework-specific patterns (next/image, NuxtImg, etc.)
|
|
189
|
-
6. **State completeness** - Every interactive component must handle loading, error, and empty states
|
|
190
|
-
7. **No false positives** - Verify that a "hardcoded value" isn't actually a CSS variable or token
|
|
191
|
-
|
|
192
|
-
## Output
|
|
193
|
-
|
|
194
|
-
```
|
|
195
|
-
──── /design-review ────
|
|
196
|
-
Target: $ARGUMENTS
|
|
197
|
-
Stack: [framework] + [CSS approach] + [component library]
|
|
198
|
-
|
|
199
|
-
Consistency: [score]/100 - [N findings]
|
|
200
|
-
Accessibility: [score]/100 - [N findings]
|
|
201
|
-
Responsive: [score]/100 - [N findings]
|
|
202
|
-
UX Patterns: [score]/100 - [N findings]
|
|
203
|
-
|
|
204
|
-
Severity:
|
|
205
|
-
CRITICAL: N
|
|
206
|
-
HIGH: N
|
|
207
|
-
MEDIUM: N
|
|
208
|
-
LOW: N
|
|
209
|
-
|
|
210
|
-
Top Findings:
|
|
211
|
-
1. [CRITICAL] [description] - [file:line]
|
|
212
|
-
2. [HIGH] [description] - [file:line]
|
|
213
|
-
3. [HIGH] [description] - [file:line]
|
|
214
|
-
|
|
215
|
-
Overall Score: [N]/100
|
|
216
|
-
Verdict: [PASS | PASS WITH NOTES | NEEDS WORK | FAIL]
|
|
217
|
-
```
|