specialist-agent 2.11.4 → 2.12.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/.claude-plugin/marketplace.json +4 -4
- package/.claude-plugin/plugin.json +2 -2
- package/.codex/INSTALL.md +32 -9
- package/.cursor-plugin/marketplace.json +4 -4
- package/.cursor-plugin/plugin.json +2 -2
- package/.opencode/opencode.json +45 -0
- package/README.md +18 -2
- package/agents/analyst-lite.md +1 -1
- package/agents/analyst.md +5 -1
- package/agents/api.md +1 -0
- package/agents/architect-lite.md +1 -1
- package/agents/architect.md +10 -1
- package/agents/autopilot-lite.md +46 -0
- package/agents/autopilot.md +196 -0
- package/agents/cloud-lite.md +1 -1
- package/agents/cloud.md +2 -1
- package/agents/data.md +1 -0
- package/agents/debugger.md +3 -0
- package/agents/deps-lite.md +1 -1
- package/agents/deps.md +2 -1
- package/agents/designer.md +8 -0
- package/agents/devops-lite.md +1 -1
- package/agents/devops.md +2 -1
- package/agents/docs-lite.md +1 -1
- package/agents/docs.md +2 -1
- package/agents/executor-lite.md +1 -1
- package/agents/executor.md +58 -31
- package/agents/explorer-lite.md +1 -1
- package/agents/explorer.md +14 -1
- package/agents/finance.md +1 -0
- package/agents/i18n.md +1 -0
- package/agents/legal.md +1 -0
- package/agents/marketing.md +9 -0
- package/agents/memory.md +103 -178
- package/agents/orchestrator-lite.md +1 -1
- package/agents/orchestrator.md +62 -39
- package/agents/pair-lite.md +1 -1
- package/agents/pair.md +2 -1
- package/agents/perf.md +1 -0
- package/agents/planner-lite.md +1 -1
- package/agents/planner.md +17 -11
- package/agents/product.md +9 -0
- package/agents/refactor.md +1 -0
- package/agents/ripple-lite.md +1 -1
- package/agents/ripple.md +4 -1
- package/agents/scout-lite.md +1 -1
- package/agents/scout.md +2 -1
- package/agents/security-lite.md +1 -1
- package/agents/security.md +4 -1
- package/agents/sentry-triage-lite.md +1 -1
- package/agents/sentry-triage.md +4 -1
- package/agents/starter-lite.md +1 -1
- package/agents/starter.md +2 -1
- package/agents/support.md +1 -0
- package/agents/tdd.md +3 -0
- package/agents/tester.md +1 -0
- package/cli/index.mjs +1 -1
- package/hooks/hooks.json +11 -0
- package/hooks/lifecycle.json +10 -0
- package/hooks/native/auto-dispatch.mjs +7 -2
- package/hooks/native/session-end.mjs +42 -0
- package/package.json +1 -1
- package/skills/audit/SKILL.md +71 -9
- package/skills/autopilot/SKILL.md +286 -0
- package/skills/brainstorm/SKILL.md +60 -7
- package/skills/codereview/SKILL.md +16 -3
- package/skills/copywriting/SKILL.md +218 -0
- package/skills/cro/SKILL.md +234 -0
- package/skills/design-review/SKILL.md +217 -0
- package/skills/grill/SKILL.md +270 -0
- package/skills/improve-architecture/SKILL.md +205 -0
- package/skills/prd/SKILL.md +241 -0
- package/skills/recall/SKILL.md +36 -74
- package/skills/remember/SKILL.md +41 -91
- package/skills/seo-audit/SKILL.md +240 -0
- package/skills/tdd/SKILL.md +49 -4
- package/skills/write-skill/SKILL.md +18 -6
- package/templates/autopilot/PROMPT.md +39 -0
- package/templates/autopilot/README.md +122 -0
- package/templates/autopilot/devcontainer.json +21 -0
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: copywriting
|
|
3
|
+
description: "Use when creating marketing copy for landing pages, email campaigns, product descriptions, or social media - with A/B variants and conversion-focused frameworks."
|
|
4
|
+
user-invocable: true
|
|
5
|
+
argument-hint: "[product/feature and target audience]"
|
|
6
|
+
allowed-tools: Read, Write, Edit, Glob, Grep
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# /copywriting - Conversion-Focused Marketing Copy
|
|
10
|
+
|
|
11
|
+
Generate marketing copy using proven copywriting frameworks, with A/B variants and compliance checks - bridging the gap between product features and user motivation.
|
|
12
|
+
|
|
13
|
+
**Target:** $ARGUMENTS
|
|
14
|
+
|
|
15
|
+
## When to Use
|
|
16
|
+
|
|
17
|
+
- Writing landing page copy (hero, features, CTA, testimonials)
|
|
18
|
+
- Creating email marketing sequences (welcome, onboarding, re-engagement)
|
|
19
|
+
- Writing product descriptions for e-commerce or SaaS
|
|
20
|
+
- Generating social media content (posts, threads, ads)
|
|
21
|
+
- Crafting ad creative copy (Google Ads, Meta Ads)
|
|
22
|
+
- When `@marketing` Copy mode needs a structured output
|
|
23
|
+
- NOT for: SEO technical optimization (use `/seo-audit`)
|
|
24
|
+
- NOT for: content strategy or keyword research (use `@marketing` SEO mode)
|
|
25
|
+
- NOT for: copyediting existing content (use a proofreading tool)
|
|
26
|
+
|
|
27
|
+
## Workflow
|
|
28
|
+
|
|
29
|
+
### Step 1: Brief Capture
|
|
30
|
+
|
|
31
|
+
1. **Identify the product/feature** from $ARGUMENTS
|
|
32
|
+
2. **Scan existing copy** in the codebase:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
# Find existing marketing copy, landing pages, meta descriptions
|
|
36
|
+
grep -rl "hero\|landing\|cta\|pricing\|testimonial" $TARGET --include="*.tsx" --include="*.vue" --include="*.astro" --include="*.mdx" 2>/dev/null | head -10
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
3. **Define the brief:**
|
|
40
|
+
|
|
41
|
+
```markdown
|
|
42
|
+
## Brief
|
|
43
|
+
|
|
44
|
+
**Product/Feature:** [what we're writing about]
|
|
45
|
+
**Target Audience:** [who reads this copy]
|
|
46
|
+
**Channel:** [landing page | email | social | ad | product description]
|
|
47
|
+
**Tone of Voice:** [professional | casual | bold | friendly | authoritative]
|
|
48
|
+
**Key Differentiators:** [what makes this unique]
|
|
49
|
+
**CTA Goal:** [signup | purchase | download | contact | share]
|
|
50
|
+
**Constraints:** [character limits, brand guidelines, compliance needs]
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
**BLOCKED** until brief is complete. Ask the user for missing fields.
|
|
54
|
+
|
|
55
|
+
### Step 2: Framework Selection
|
|
56
|
+
|
|
57
|
+
Select the copywriting framework based on channel:
|
|
58
|
+
|
|
59
|
+
| Channel | Primary Framework | Alternative |
|
|
60
|
+
|---------|------------------|-------------|
|
|
61
|
+
| Landing page (hero) | PAS (Problem-Agitate-Solution) | AIDA (Attention-Interest-Desire-Action) |
|
|
62
|
+
| Landing page (features) | FAB (Features-Advantages-Benefits) | Before/After/Bridge |
|
|
63
|
+
| Email sequence | BAB (Before-After-Bridge) | 4Ps (Promise-Picture-Proof-Push) |
|
|
64
|
+
| Social media | Hook-Story-Offer | PAS (condensed) |
|
|
65
|
+
| Ad creative | Headline formulas | AIDA (condensed) |
|
|
66
|
+
| Product description | FAB | Problem-Solution |
|
|
67
|
+
|
|
68
|
+
**Framework Definitions:**
|
|
69
|
+
|
|
70
|
+
- **PAS:** Identify the Problem → Agitate the pain → Present the Solution
|
|
71
|
+
- **AIDA:** Grab Attention → Build Interest → Create Desire → Call to Action
|
|
72
|
+
- **BAB:** Paint the Before (current pain) → Show the After (desired state) → Bridge (your product)
|
|
73
|
+
- **FAB:** Feature (what it does) → Advantage (why it matters) → Benefit (what user gains)
|
|
74
|
+
- **4Ps:** Promise (hook) → Picture (visualize success) → Proof (evidence) → Push (CTA)
|
|
75
|
+
- **Hook-Story-Offer:** Hook (stop scrolling) → Story (relatable narrative) → Offer (clear CTA)
|
|
76
|
+
|
|
77
|
+
### Step 3: Copy Generation
|
|
78
|
+
|
|
79
|
+
1. **Apply the selected framework** to write primary copy
|
|
80
|
+
2. **Include all required elements** for the channel:
|
|
81
|
+
|
|
82
|
+
**Landing Page Elements:**
|
|
83
|
+
- Headline (max 10 words, clear value proposition)
|
|
84
|
+
- Subheadline (expand on headline, 15-25 words)
|
|
85
|
+
- Hero body (2-3 sentences, pain → solution → benefit)
|
|
86
|
+
- Feature blocks (3-5 features with FAB format)
|
|
87
|
+
- Social proof placement (testimonials, logos, stats)
|
|
88
|
+
- CTA button text (action verb + benefit, max 5 words)
|
|
89
|
+
- Objection handlers (FAQ or trust signals)
|
|
90
|
+
|
|
91
|
+
**Email Elements:**
|
|
92
|
+
- Subject line (max 50 chars, curiosity or benefit)
|
|
93
|
+
- Preview text (max 90 chars, complement subject)
|
|
94
|
+
- Body (framework-structured, single CTA)
|
|
95
|
+
- PS line (urgency or bonus)
|
|
96
|
+
|
|
97
|
+
**Social Media Elements:**
|
|
98
|
+
- Hook (first line that stops scrolling)
|
|
99
|
+
- Body (value or story, framework-structured)
|
|
100
|
+
- CTA (clear next step)
|
|
101
|
+
- Hashtags (3-5 relevant)
|
|
102
|
+
|
|
103
|
+
### Step 4: A/B Variant Generation
|
|
104
|
+
|
|
105
|
+
For each key element, generate 2-3 variants with rationale:
|
|
106
|
+
|
|
107
|
+
```markdown
|
|
108
|
+
## A/B Variants
|
|
109
|
+
|
|
110
|
+
### Headlines
|
|
111
|
+
| Variant | Copy | Strategy |
|
|
112
|
+
|---------|------|----------|
|
|
113
|
+
| A (control) | "[headline]" | Benefit-focused, direct |
|
|
114
|
+
| B | "[headline]" | Curiosity-driven, question |
|
|
115
|
+
| C | "[headline]" | Social proof, authority |
|
|
116
|
+
|
|
117
|
+
### CTAs
|
|
118
|
+
| Variant | Copy | Strategy |
|
|
119
|
+
|---------|------|----------|
|
|
120
|
+
| A (control) | "[CTA text]" | Action + benefit |
|
|
121
|
+
| B | "[CTA text]" | Urgency + action |
|
|
122
|
+
|
|
123
|
+
### Subject Lines (if email)
|
|
124
|
+
| Variant | Copy | Strategy |
|
|
125
|
+
|---------|------|----------|
|
|
126
|
+
| A | "[subject]" | Benefit-focused |
|
|
127
|
+
| B | "[subject]" | Curiosity gap |
|
|
128
|
+
| C | "[subject]" | Personalized |
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
### Step 5: Compliance Check
|
|
132
|
+
|
|
133
|
+
| Check | Description |
|
|
134
|
+
|-------|-------------|
|
|
135
|
+
| No unsubstantiated claims | Avoid "best", "#1", "guaranteed" without proof |
|
|
136
|
+
| CAN-SPAM compliance | Email includes unsubscribe, physical address (note to implement) |
|
|
137
|
+
| FTC testimonial guidelines | Testimonials must be genuine, disclose material connections |
|
|
138
|
+
| Accessibility | Alt text for images, readable font sizes, color contrast |
|
|
139
|
+
| Brand consistency | Tone matches existing copy in codebase |
|
|
140
|
+
| Legal disclaimers | Financial, health claims need disclaimers |
|
|
141
|
+
|
|
142
|
+
### Step 6: Output Document
|
|
143
|
+
|
|
144
|
+
Write the final copy document:
|
|
145
|
+
|
|
146
|
+
```markdown
|
|
147
|
+
## Copy Deck: [Product/Feature]
|
|
148
|
+
|
|
149
|
+
### Channel: [landing page | email | social | ad]
|
|
150
|
+
### Framework: [PAS | AIDA | BAB | FAB | 4Ps | Hook-Story-Offer]
|
|
151
|
+
|
|
152
|
+
[Structured copy with all elements]
|
|
153
|
+
|
|
154
|
+
### A/B Variants
|
|
155
|
+
[Variant tables]
|
|
156
|
+
|
|
157
|
+
### Implementation Notes
|
|
158
|
+
- [File paths where copy should be placed]
|
|
159
|
+
- [Component names to update]
|
|
160
|
+
- [i18n keys if applicable]
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
## Verification Protocol
|
|
164
|
+
|
|
165
|
+
**Before claiming the copy is complete:**
|
|
166
|
+
|
|
167
|
+
1. Brief was completed with all required fields
|
|
168
|
+
2. Appropriate framework was selected for the channel
|
|
169
|
+
3. All required elements for the channel are present
|
|
170
|
+
4. At least 2 A/B variants exist for headline and CTA
|
|
171
|
+
5. Compliance check was performed
|
|
172
|
+
6. Existing copy in codebase was read for tone consistency
|
|
173
|
+
7. Copy is implementation-ready with file paths or component references
|
|
174
|
+
8. No unsubstantiated superlative claims
|
|
175
|
+
|
|
176
|
+
## Anti-Rationalization
|
|
177
|
+
|
|
178
|
+
| Excuse | Reality |
|
|
179
|
+
|--------|---------|
|
|
180
|
+
| "Good copy writes itself" | Good copy follows frameworks refined over decades. Intuition produces mediocre copy. |
|
|
181
|
+
| "We don't need A/B variants" | You can't predict what converts. Testing headlines alone can improve conversion 20-50%. |
|
|
182
|
+
| "The product sells itself" | No product sells itself. Users need to understand value before they buy. That's copy's job. |
|
|
183
|
+
| "Long copy doesn't convert" | Long copy outsells short copy when the reader is problem-aware. Match length to awareness level. |
|
|
184
|
+
| "We'll optimize copy later" | Launch copy sets the baseline. Bad copy means bad data. Start with framework-driven copy. |
|
|
185
|
+
| "Compliance doesn't apply to us" | FTC and CAN-SPAM apply to everyone. One "guaranteed" claim without proof is a legal risk. |
|
|
186
|
+
| "Just use what competitors write" | Competitor copy might not convert either. Use proven frameworks, test your own message. |
|
|
187
|
+
|
|
188
|
+
## Rules
|
|
189
|
+
|
|
190
|
+
1. **Framework first** - Never write copy without selecting a framework
|
|
191
|
+
2. **Brief before writing** - No copy without a complete brief
|
|
192
|
+
3. **Benefits over features** - Users care about outcomes, not specifications
|
|
193
|
+
4. **One CTA per context** - Each page section or email has ONE clear call to action
|
|
194
|
+
5. **Scan existing copy** - Read the codebase for tone, terminology, and brand voice before writing
|
|
195
|
+
6. **Variants are mandatory** - At least 2 headline variants and 2 CTA variants
|
|
196
|
+
7. **Implementation-ready** - Include file paths or component references, not just raw text
|
|
197
|
+
8. **No fluff** - Every sentence must earn its place. Cut filler words ruthlessly.
|
|
198
|
+
|
|
199
|
+
## Output
|
|
200
|
+
|
|
201
|
+
```
|
|
202
|
+
──── /copywriting ────
|
|
203
|
+
Product: [product/feature]
|
|
204
|
+
Channel: [landing page | email | social | ad]
|
|
205
|
+
Framework: [PAS | AIDA | BAB | FAB | 4Ps | Hook-Story-Offer]
|
|
206
|
+
Audience: [target audience]
|
|
207
|
+
|
|
208
|
+
Copy Elements:
|
|
209
|
+
Headlines: [N] variants
|
|
210
|
+
CTAs: [N] variants
|
|
211
|
+
Body sections: [N]
|
|
212
|
+
Subject lines: [N] (if email)
|
|
213
|
+
|
|
214
|
+
Compliance: ✓ checked
|
|
215
|
+
Tone match: ✓ consistent with existing copy
|
|
216
|
+
|
|
217
|
+
──── Copy deck ready for implementation ────
|
|
218
|
+
```
|
|
@@ -0,0 +1,234 @@
|
|
|
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
|
+
```
|
|
@@ -0,0 +1,217 @@
|
|
|
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
|
+
```
|