telo3-ai 5.0.7 → 6.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/README.md +32 -791
- package/SKILL.md +36 -657
- package/bootstrap/TELO3.md +17 -0
- package/cli.js +223 -42
- package/hooks/inject-contract.mjs +23 -0
- package/hooks/session-start.example.json +15 -0
- package/index.js +48 -14
- package/package.json +32 -69
- package/references/accessibility-quality.md +92 -272
- package/references/ai-behavior.md +70 -332
- package/references/anti-slop.md +71 -0
- package/references/document-specification.md +110 -419
- package/references/legal-compliance.md +90 -395
- package/references/performance-quality.md +100 -351
- package/references/privacy-compliance.md +88 -464
- package/references/project-audit.md +79 -440
- package/references/security-quality.md +68 -220
- package/references/seo-quality.md +83 -339
- package/references/smart-skill-delegation.md +73 -419
- package/references/token-optimization.md +83 -450
- package/references/ui-quality.md +106 -481
- package/references/workflow.md +91 -447
- package/scripts/postinstall.mjs +27 -0
- package/src/activate.js +159 -0
- package/src/context.js +72 -0
- package/src/find-context.js +41 -0
- package/src/init.js +38 -0
- package/src/install.js +128 -0
- package/src/paths.js +20 -0
- package/src/status.js +30 -0
- package/src/tokens.js +10 -0
- package/src/validate.js +220 -0
- package/src/version.js +12 -0
- package/templates/architecture.md +17 -398
- package/templates/design.md +22 -631
- package/templates/memory.md +13 -351
- package/templates/prd.md +15 -295
- package/templates/rules.md +20 -600
- package/templates/tasks.md +10 -210
- package/AI-CONTEXT.md +0 -272
- package/ONBOARDING-SKILL.md +0 -738
- package/SKILL-METADATA.json +0 -237
- package/scripts/init-project-context.sh +0 -139
- package/scripts/validate-project-context.sh +0 -164
- package/skills/telo3/SKILL.md +0 -315
- package/skills/telo3-context/SKILL.md +0 -272
- package/skills/telo3-onboarding/SKILL.md +0 -738
package/references/ui-quality.md
CHANGED
|
@@ -1,491 +1,116 @@
|
|
|
1
1
|
# UI Quality & Anti-Vibe-Coding
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
-
|
|
31
|
-
|
|
32
|
-
-
|
|
33
|
-
|
|
34
|
-
-
|
|
35
|
-
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
-
|
|
46
|
-
-
|
|
47
|
-
-
|
|
48
|
-
-
|
|
49
|
-
- Generic pastel palettes
|
|
50
|
-
- Overly saturated colors
|
|
51
|
-
|
|
52
|
-
✅ **Use when:**
|
|
53
|
-
- Brand guidelines specify these colors
|
|
54
|
-
- Design system documents these patterns
|
|
55
|
-
- Product personality justifies the aesthetic
|
|
56
|
-
- Accessibility is maintained
|
|
57
|
-
|
|
58
|
-
#### Shadows & Depth
|
|
59
|
-
❓ **Question before using:**
|
|
60
|
-
- Excessive shadows everywhere
|
|
61
|
-
- Multiple strong shadows on one element
|
|
62
|
-
- Shadow overkill (shadow on every card)
|
|
63
|
-
- Inconsistent shadow usage
|
|
64
|
-
|
|
65
|
-
✅ **Use when:**
|
|
66
|
-
- Design system specifies elevation levels
|
|
67
|
-
- Shadows serve hierarchical purpose
|
|
68
|
-
- Consistently applied across interface
|
|
69
|
-
|
|
70
|
-
#### Borders & Radius
|
|
71
|
-
❓ **Question before using:**
|
|
72
|
-
- Excessive rounded corners (radius > 24px)
|
|
73
|
-
- Inconsistent border radius
|
|
74
|
-
- Pills for everything
|
|
75
|
-
- Arbitrary mix of sharp and rounded
|
|
76
|
-
|
|
77
|
-
✅ **Use when:**
|
|
78
|
-
- Design system documents radius scale
|
|
79
|
-
- Consistently applied across interface
|
|
80
|
-
- Serves brand personality
|
|
81
|
-
|
|
82
|
-
#### Effects
|
|
83
|
-
❓ **Question before using:**
|
|
84
|
-
- Excessive glassmorphism
|
|
85
|
-
- Blur effects on every surface
|
|
86
|
-
- Liquid/blob shapes
|
|
87
|
-
- Radial gradient orbs
|
|
88
|
-
- Dot grid backgrounds
|
|
89
|
-
- Mesh gradients
|
|
90
|
-
- Noise textures
|
|
91
|
-
|
|
92
|
-
✅ **Use when:**
|
|
93
|
-
- Brand aesthetic explicitly uses these
|
|
94
|
-
- Performance is acceptable
|
|
95
|
-
- Accessibility is maintained (contrast, reduced motion)
|
|
96
|
-
|
|
97
|
-
---
|
|
98
|
-
|
|
99
|
-
### Component Patterns to Question
|
|
100
|
-
|
|
101
|
-
#### Layouts
|
|
102
|
-
❓ **Question before using:**
|
|
103
|
-
- Repetitive 3-card feature sections
|
|
104
|
-
- Generic bento grids without purpose
|
|
105
|
-
- Every page uses the same card layout
|
|
106
|
-
- Hero section with blob background
|
|
107
|
-
- Alternating left-right content blocks
|
|
108
|
-
- Centered everything
|
|
109
|
-
- Generic "SaaS landing page" structure
|
|
110
|
-
|
|
111
|
-
✅ **Use when:**
|
|
112
|
-
- Layout serves content structure
|
|
113
|
-
- Consistent with design system
|
|
114
|
-
- Responsive behavior is well-designed
|
|
115
|
-
- Hierarchy is clear
|
|
116
|
-
|
|
117
|
-
#### Icons & Decoration
|
|
118
|
-
❓ **Question before using:**
|
|
119
|
-
- Inconsistent icon usage (multiple icon sets)
|
|
120
|
-
- Decorative emojis as UI elements
|
|
121
|
-
- Sparkle icons everywhere
|
|
122
|
-
- Animated arrows on every CTA
|
|
123
|
-
- Decorative icons with no meaning
|
|
124
|
-
- Random illustration style
|
|
125
|
-
|
|
126
|
-
✅ **Use when:**
|
|
127
|
-
- Icons are from consistent library
|
|
128
|
-
- Icons have semantic meaning
|
|
129
|
-
- Decoration serves brand personality
|
|
130
|
-
- Accessible (aria-hidden for decorative)
|
|
131
|
-
|
|
132
|
-
#### Interactive Elements
|
|
133
|
-
❓ **Question before using:**
|
|
134
|
-
- Terminal window aesthetics without purpose
|
|
135
|
-
- Fake code blocks as decoration
|
|
136
|
-
- Typing animations everywhere
|
|
137
|
-
- Meaningless hover animations
|
|
138
|
-
- Excessive micro-interactions
|
|
139
|
-
- Animated gradients on hover
|
|
140
|
-
- Morphing shapes
|
|
141
|
-
|
|
142
|
-
✅ **Use when:**
|
|
143
|
-
- Animation provides feedback
|
|
144
|
-
- Respects prefers-reduced-motion
|
|
145
|
-
- Performance is acceptable
|
|
146
|
-
- Actually enhances usability
|
|
147
|
-
|
|
148
|
-
---
|
|
149
|
-
|
|
150
|
-
### Content Patterns to Question
|
|
151
|
-
|
|
152
|
-
#### Copy
|
|
153
|
-
❓ **Question before using:**
|
|
154
|
-
- "It's not X, it's Y" formulation
|
|
155
|
-
- "Supercharge your workflow"
|
|
156
|
-
- "10x your productivity"
|
|
157
|
-
- Generic buzzwords without meaning
|
|
158
|
-
- Overpromising language
|
|
159
|
-
|
|
160
|
-
✅ **Use when:**
|
|
161
|
-
- Copy is specific to product
|
|
162
|
-
- Claims are substantiated
|
|
163
|
-
- Tone matches brand personality
|
|
164
|
-
- User-focused, not marketing-focused
|
|
165
|
-
|
|
166
|
-
#### Feature Lists
|
|
167
|
-
❓ **Question before using:**
|
|
168
|
-
- Checkmark-heavy feature lists
|
|
169
|
-
- Generic feature names
|
|
170
|
-
- Every feature as a card
|
|
171
|
-
- Repetitive structure
|
|
172
|
-
|
|
173
|
-
✅ **Use when:**
|
|
174
|
-
- Features are actual product features
|
|
175
|
-
- Structure serves comprehension
|
|
176
|
-
- Visual hierarchy is clear
|
|
177
|
-
|
|
178
|
-
#### Pricing
|
|
179
|
-
❓ **Question before using:**
|
|
180
|
-
- Unnecessary three-tier pricing
|
|
181
|
-
- Generic plan names (Starter, Pro, Enterprise)
|
|
182
|
-
- "Most popular" badge
|
|
183
|
-
- Arbitrary feature differentiation
|
|
184
|
-
|
|
185
|
-
✅ **Use when:**
|
|
186
|
-
- Multiple tiers are actually needed
|
|
187
|
-
- Pricing structure is clear
|
|
188
|
-
- Features genuinely differ between tiers
|
|
189
|
-
- Accessible comparison
|
|
190
|
-
|
|
191
|
-
#### Testimonials & Social Proof
|
|
192
|
-
❓ **Question before using:**
|
|
193
|
-
- Fake testimonials
|
|
194
|
-
- Generic profile pictures
|
|
195
|
-
- Made-up statistics
|
|
196
|
-
- Fake product demonstrations
|
|
197
|
-
- Fabricated company logos
|
|
198
|
-
|
|
199
|
-
✅ **Use when:**
|
|
200
|
-
- Testimonials are real
|
|
201
|
-
- Statistics are factual
|
|
202
|
-
- Demonstrations are actual product
|
|
203
|
-
- Logos represent real integrations/customers
|
|
204
|
-
|
|
205
|
-
---
|
|
206
|
-
|
|
207
|
-
## Design Consistency Checklist
|
|
208
|
-
|
|
209
|
-
### Before Implementing UI
|
|
210
|
-
|
|
211
|
-
- [ ] Have I checked the design system? (design.md)
|
|
212
|
-
- [ ] Am I following existing component patterns?
|
|
213
|
-
- [ ] Is this consistent with the brand personality?
|
|
214
|
-
- [ ] Does this pattern already exist in the codebase?
|
|
215
|
-
- [ ] Am I reusing existing components?
|
|
216
|
-
- [ ] Is this decoration or does it serve a purpose?
|
|
217
|
-
|
|
218
|
-
### Color Usage
|
|
219
|
-
|
|
220
|
-
- [ ] Using colors from design system
|
|
221
|
-
- [ ] Maintaining color contrast (WCAG AA minimum)
|
|
222
|
-
- [ ] Not using color as only indicator
|
|
223
|
-
- [ ] Consistent use of semantic colors
|
|
224
|
-
|
|
225
|
-
### Typography
|
|
226
|
-
|
|
227
|
-
- [ ] Using fonts from design system
|
|
228
|
-
- [ ] Following type scale
|
|
229
|
-
- [ ] Maintaining heading hierarchy
|
|
230
|
-
- [ ] Consistent font weights
|
|
231
|
-
|
|
232
|
-
### Spacing
|
|
233
|
-
|
|
234
|
-
- [ ] Using spacing scale from design system
|
|
235
|
-
- [ ] Consistent spacing between similar elements
|
|
236
|
-
- [ ] Maintaining vertical rhythm
|
|
237
|
-
|
|
238
|
-
### Components
|
|
239
|
-
|
|
240
|
-
- [ ] Reusing existing components
|
|
241
|
-
- [ ] Not creating near-duplicates
|
|
242
|
-
- [ ] Following established patterns
|
|
243
|
-
- [ ] Consistent component variants
|
|
244
|
-
|
|
245
|
-
---
|
|
2
|
+
**Load when:** any UI/component/styling work, landing or marketing pages, or design review.
|
|
3
|
+
|
|
4
|
+
## Core Rule
|
|
5
|
+
|
|
6
|
+
No pattern below is banned outright. Avoid each UNLESS the project's design system, brand, UX, accessibility, or performance needs justify it. Vibe coding = choosing aesthetics from AI trends instead of the actual product. Symptoms: every project looks the same, decoration over function, trends over brand consistency, copy-pasting without adapting, no coherent visual language.
|
|
7
|
+
|
|
8
|
+
## Justification Test — run before adopting any visual pattern
|
|
9
|
+
|
|
10
|
+
1. Does design.md / the design system document it? Yes → follow it; no → proceed with caution.
|
|
11
|
+
2. Does it serve the user? No → don't use it.
|
|
12
|
+
3. Is it consistent with existing UI? No → justify the deviation.
|
|
13
|
+
4. Does it fit brand personality? No → look for alternatives.
|
|
14
|
+
5. Is it accessible and performant? No → find an accessible/performant alternative.
|
|
15
|
+
|
|
16
|
+
When in doubt:
|
|
17
|
+
- Check how similar UI is already implemented in the codebase.
|
|
18
|
+
- Check design.md.
|
|
19
|
+
- Ask the user whether the direction is right.
|
|
20
|
+
- Prefer simple, accessible UI over trendy effects.
|
|
21
|
+
|
|
22
|
+
## Generic AI Aesthetics — avoid unless justified
|
|
23
|
+
|
|
24
|
+
| Category | Question before using | Acceptable only when |
|
|
25
|
+
|---|---|---|
|
|
26
|
+
| Color & gradients | Harsh bright-to-bright gradients; arbitrary rainbow gradients; purple/black "AI" palettes; arbitrary neon colors; generic pastel palettes; over-saturated colors | Brand/design system specifies them; product personality justifies; accessibility (contrast) maintained |
|
|
27
|
+
| Shadows & depth | Shadows everywhere; multiple strong shadows on one element; shadow on every card; inconsistent shadow usage | Design system defines elevation levels; shadows encode hierarchy; applied consistently |
|
|
28
|
+
| Borders & radius | Excessive rounding (radius > 24px); inconsistent border radius; pills for everything; arbitrary sharp/rounded mix | Design system documents a radius scale; consistent application; serves brand |
|
|
29
|
+
| Effects | Excessive glassmorphism; blur on every surface; liquid/blob shapes; radial gradient orbs; dot-grid backgrounds; mesh gradients; noise textures | Brand aesthetic explicitly uses them; performance acceptable; contrast and reduced motion maintained |
|
|
30
|
+
| Layouts | Repetitive 3-card feature sections; purposeless bento grids; same card layout on every page; hero with blob background; alternating left-right blocks; centered everything; generic SaaS landing structure | Layout serves content structure; matches design system; responsive behavior designed; clear hierarchy |
|
|
31
|
+
| Icons & decoration | Multiple icon sets; decorative emoji as UI elements; sparkle icons everywhere; animated arrows on every CTA; meaningless decorative icons; random illustration styles | One consistent library; semantic meaning; decorative icons aria-hidden; serves brand |
|
|
32
|
+
| Interactive | Terminal-window aesthetics without purpose; fake code blocks as decoration; typing animations everywhere; meaningless hover animations; excessive micro-interactions; animated gradients on hover; morphing shapes | Animation provides feedback or usability; respects prefers-reduced-motion; performant |
|
|
33
|
+
| Copy | "It's not X, it's Y"; "Supercharge your workflow"; "10x your productivity"; empty buzzwords; overpromising language | Specific to the product; claims substantiated; tone matches brand; user-focused, not marketing-focused |
|
|
34
|
+
| Feature lists | Checkmark-heavy lists; generic feature names; every feature as a card; repetitive structure | Real product features; structure aids comprehension; clear visual hierarchy |
|
|
35
|
+
| Pricing | Unnecessary three-tier pricing; generic Starter/Pro/Enterprise names; "Most popular" badge; arbitrary tier differentiation | Tiers genuinely needed; clear structure; features truly differ; accessible comparison |
|
|
36
|
+
| Social proof | Fake testimonials; generic profile pictures; made-up statistics; fake product demos; fabricated company logos | Testimonials, statistics, demos, and logos are real (actual customers/integrations) |
|
|
37
|
+
|
|
38
|
+
Not automatically bad: gradients, rounded corners, shadows, cards, bento grids, icons, animations, dark mode, three-tier pricing. Justification is the difference: "design system documents this layout for dashboard widgets" (good) vs "it looks modern" (bad).
|
|
39
|
+
|
|
40
|
+
## Design-System-First Checklist (before implementing)
|
|
41
|
+
|
|
42
|
+
- [ ] Checked design.md; does this pattern already exist in the codebase? Reuse it.
|
|
43
|
+
- [ ] Reusing existing components; no near-duplicates; consistent component variants.
|
|
44
|
+
- [ ] Colors from the design system; WCAG AA contrast; color never the only indicator; semantic colors consistent.
|
|
45
|
+
- [ ] Fonts from the design system; follow the type scale; maintain heading hierarchy; consistent weights.
|
|
46
|
+
- [ ] Spacing scale from the design system; consistent between similar elements; vertical rhythm.
|
|
47
|
+
- [ ] Real content or clearly-labeled placeholders; never invent product claims, features, integrations, statistics, or testimonials.
|
|
48
|
+
- [ ] Decoration serves a purpose; fits brand personality.
|
|
246
49
|
|
|
247
50
|
## Red Flags
|
|
248
51
|
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
-
|
|
252
|
-
-
|
|
253
|
-
-
|
|
254
|
-
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
-
|
|
263
|
-
-
|
|
264
|
-
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
- No → Justify deviation
|
|
294
|
-
|
|
295
|
-
4. **Does this fit brand personality?**
|
|
296
|
-
- Yes → Consider it
|
|
297
|
-
- No → Look for alternatives
|
|
298
|
-
|
|
299
|
-
5. **Is this accessible and performant?**
|
|
300
|
-
- Yes → Consider it
|
|
301
|
-
- No → Find accessible/performant alternative
|
|
302
|
-
|
|
303
|
-
### When in Doubt
|
|
304
|
-
|
|
305
|
-
1. **Check existing implementation** — How is similar UI handled?
|
|
306
|
-
2. **Check design.md** — What does the design system say?
|
|
307
|
-
3. **Ask user** — Is this the right direction?
|
|
308
|
-
4. **Prefer simplicity** — Simple, accessible UI over trendy effects
|
|
309
|
-
|
|
310
|
-
---
|
|
311
|
-
|
|
312
|
-
## Acceptable Patterns
|
|
313
|
-
|
|
314
|
-
### These are NOT automatically bad:
|
|
315
|
-
|
|
316
|
-
- **Gradients** — If brand uses them consistently
|
|
317
|
-
- **Rounded corners** — If design system documents radius scale
|
|
318
|
-
- **Shadows** — If used for elevation hierarchy
|
|
319
|
-
- **Cards** — If appropriate for content structure
|
|
320
|
-
- **Bento grids** — If they serve content organization
|
|
321
|
-
- **Icons** — If from consistent library with semantic meaning
|
|
322
|
-
- **Animations** — If they provide feedback and respect reduced motion
|
|
323
|
-
- **Dark mode** — If implemented consistently
|
|
324
|
-
- **Three-tier pricing** — If business model genuinely needs it
|
|
325
|
-
|
|
326
|
-
### The key is JUSTIFICATION:
|
|
327
|
-
|
|
328
|
-
✅ **Good:** "Using bento grid because design system documents this layout for dashboard widgets"
|
|
329
|
-
|
|
330
|
-
❌ **Bad:** "Using bento grid because it looks modern"
|
|
331
|
-
|
|
332
|
-
---
|
|
333
|
-
|
|
334
|
-
## Maintaining Consistency
|
|
335
|
-
|
|
336
|
-
### Consistency Checks
|
|
337
|
-
|
|
338
|
-
After implementing UI, verify:
|
|
339
|
-
|
|
340
|
-
1. **Color consistency**
|
|
341
|
-
- Are all colors from the design system?
|
|
342
|
-
- Is color usage consistent with similar elements?
|
|
343
|
-
|
|
344
|
-
2. **Typography consistency**
|
|
345
|
-
- Are font families, sizes, weights consistent?
|
|
346
|
-
- Is heading hierarchy maintained?
|
|
347
|
-
|
|
348
|
-
3. **Spacing consistency**
|
|
349
|
-
- Are spacing values from the design system?
|
|
350
|
-
- Is spacing consistent between similar elements?
|
|
351
|
-
|
|
352
|
-
4. **Component consistency**
|
|
353
|
-
- Are existing components reused?
|
|
354
|
-
- Are new components needed or can existing be adapted?
|
|
355
|
-
|
|
356
|
-
5. **Pattern consistency**
|
|
357
|
-
- Do interactions match existing patterns?
|
|
358
|
-
- Is navigation consistent?
|
|
359
|
-
|
|
360
|
-
### Creating New Patterns
|
|
361
|
-
|
|
362
|
-
When creating new patterns:
|
|
363
|
-
|
|
364
|
-
1. **Check if pattern already exists**
|
|
365
|
-
2. **Document in design.md** if it's reusable
|
|
366
|
-
3. **Make it consistent** with existing patterns
|
|
367
|
-
4. **Ensure accessibility**
|
|
368
|
-
5. **Test across breakpoints**
|
|
369
|
-
|
|
370
|
-
---
|
|
371
|
-
|
|
372
|
-
## Accessibility & Quality Standards
|
|
373
|
-
|
|
374
|
-
### All UI Must:
|
|
375
|
-
|
|
376
|
-
- [ ] Use semantic HTML
|
|
377
|
-
- [ ] Be keyboard accessible
|
|
378
|
-
- [ ] Have visible focus states
|
|
379
|
-
- [ ] Meet color contrast requirements
|
|
380
|
-
- [ ] Work with screen readers
|
|
381
|
-
- [ ] Support reduced motion preference
|
|
382
|
-
- [ ] Be responsive across devices
|
|
383
|
-
- [ ] Have touch targets ≥44x44px on mobile
|
|
384
|
-
|
|
385
|
-
See `accessibility-quality.md` for detailed standards.
|
|
386
|
-
|
|
387
|
-
---
|
|
388
|
-
|
|
389
|
-
## Performance Considerations
|
|
390
|
-
|
|
391
|
-
### All UI Should:
|
|
392
|
-
|
|
393
|
-
- [ ] Use optimized images (WebP/AVIF)
|
|
394
|
-
- [ ] Lazy load non-critical resources
|
|
395
|
-
- [ ] Avoid layout shifts
|
|
396
|
-
- [ ] Use CSS transforms for animations (GPU-accelerated)
|
|
397
|
-
- [ ] Respect prefers-reduced-motion
|
|
398
|
-
- [ ] Minimize JavaScript for interactions
|
|
399
|
-
|
|
400
|
-
See `performance-quality.md` for detailed standards.
|
|
401
|
-
|
|
402
|
-
---
|
|
52
|
+
Visual:
|
|
53
|
+
- Multiple font families without justification.
|
|
54
|
+
- Inconsistent border radius; random spacing values.
|
|
55
|
+
- Colors chosen outside the design system.
|
|
56
|
+
- Excessive shadows/gradients/blur; decoration without purpose.
|
|
57
|
+
- Inconsistent icon style.
|
|
58
|
+
|
|
59
|
+
Content:
|
|
60
|
+
- Generic marketing copy; overpromising; buzzwords without meaning.
|
|
61
|
+
- Fake statistics or testimonials.
|
|
62
|
+
- Made-up features or integrations.
|
|
63
|
+
|
|
64
|
+
Pattern:
|
|
65
|
+
- Copy-pasting without adapting; every page looks the same.
|
|
66
|
+
- No coherent visual language.
|
|
67
|
+
- Random component choices; inconsistent interaction patterns.
|
|
68
|
+
|
|
69
|
+
## After Implementing — verify consistency
|
|
70
|
+
|
|
71
|
+
1. Color: all from the design system; usage matches similar elements.
|
|
72
|
+
2. Typography: families/sizes/weights consistent; heading hierarchy intact.
|
|
73
|
+
3. Spacing: values from the scale; consistent between similar elements.
|
|
74
|
+
4. Components: existing ones reused or adapted before creating new.
|
|
75
|
+
5. Patterns: interactions and navigation match existing behavior.
|
|
76
|
+
|
|
77
|
+
Creating a new pattern:
|
|
78
|
+
1. Check it doesn't already exist.
|
|
79
|
+
2. Document it in design.md if reusable.
|
|
80
|
+
3. Keep it consistent with existing patterns.
|
|
81
|
+
4. Ensure accessibility.
|
|
82
|
+
5. Test across breakpoints.
|
|
83
|
+
|
|
84
|
+
## Hard Requirements (all UI)
|
|
85
|
+
|
|
86
|
+
Accessibility (details: accessibility-quality.md):
|
|
87
|
+
- [ ] Semantic HTML; keyboard accessible; visible focus states.
|
|
88
|
+
- [ ] WCAG AA color contrast; works with screen readers.
|
|
89
|
+
- [ ] Supports prefers-reduced-motion; responsive across devices.
|
|
90
|
+
- [ ] Touch targets ≥ 44x44px on mobile.
|
|
91
|
+
|
|
92
|
+
Performance (details: performance-quality.md):
|
|
93
|
+
- [ ] Optimized images (WebP/AVIF); lazy-load non-critical resources.
|
|
94
|
+
- [ ] No layout shifts; CSS transforms for animations (GPU-accelerated).
|
|
95
|
+
- [ ] Respect prefers-reduced-motion; minimize JavaScript for interactions.
|
|
403
96
|
|
|
404
97
|
## Audit Questions
|
|
405
98
|
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
7. **Does this fit the brand personality?**
|
|
415
|
-
8. **Would I recognize this as generic AI-generated UI?**
|
|
416
|
-
|
|
417
|
-
If you answer "no" to 1-3 or "yes" to 8, reconsider the implementation.
|
|
418
|
-
|
|
419
|
-
---
|
|
420
|
-
|
|
421
|
-
## Examples
|
|
422
|
-
|
|
423
|
-
### ❌ Vibe-Coded UI
|
|
424
|
-
|
|
425
|
-
```jsx
|
|
426
|
-
// Generic AI aesthetic without justification
|
|
427
|
-
<div className="rounded-3xl bg-gradient-to-br from-purple-600 via-pink-500 to-orange-400 p-8 shadow-2xl backdrop-blur-xl">
|
|
428
|
-
<h2 className="text-4xl font-bold text-white animate-pulse">
|
|
429
|
-
✨ Supercharge Your Workflow
|
|
430
|
-
</h2>
|
|
431
|
-
<div className="grid grid-cols-3 gap-8 mt-8">
|
|
432
|
-
{/* Three generic feature cards */}
|
|
433
|
-
</div>
|
|
434
|
-
</div>
|
|
435
|
-
```
|
|
436
|
-
|
|
437
|
-
**Problems:**
|
|
438
|
-
- Arbitrary harsh gradient
|
|
439
|
-
- Excessive border radius
|
|
440
|
-
- Excessive shadow
|
|
441
|
-
- Decorative emoji
|
|
442
|
-
- Generic marketing copy
|
|
443
|
-
- Repetitive structure without justification
|
|
444
|
-
|
|
445
|
-
### ✅ Design-System-Driven UI
|
|
446
|
-
|
|
447
|
-
```jsx
|
|
448
|
-
// Follows documented design system
|
|
449
|
-
<Card className="bg-background border border-border rounded-lg shadow-md p-6">
|
|
450
|
-
<h2 className="text-2xl font-semibold text-foreground mb-4">
|
|
451
|
-
Recent Activity
|
|
452
|
-
</h2>
|
|
453
|
-
<ActivityList items={activities} />
|
|
454
|
-
</Card>
|
|
455
|
-
```
|
|
456
|
-
|
|
457
|
-
**Good:**
|
|
458
|
-
- Uses design tokens (bg-background, border-border)
|
|
459
|
-
- Documented border radius (rounded-lg)
|
|
460
|
-
- Appropriate shadow (shadow-md)
|
|
461
|
-
- Semantic HTML
|
|
462
|
-
- Clear purpose
|
|
463
|
-
|
|
464
|
-
---
|
|
465
|
-
|
|
466
|
-
## Summary
|
|
467
|
-
|
|
468
|
-
**Vibe coding is not about prohibiting patterns.**
|
|
469
|
-
|
|
470
|
-
**It's about ensuring patterns are:**
|
|
471
|
-
- ✅ Justified by design system, brand, or user needs
|
|
472
|
-
- ✅ Consistently applied
|
|
473
|
-
- ✅ Accessible and performant
|
|
474
|
-
- ✅ Purposeful, not decorative
|
|
475
|
-
- ✅ Adapted to the product, not copy-pasted
|
|
99
|
+
1. Consistent with the design system?
|
|
100
|
+
2. Does the pattern already exist in the codebase?
|
|
101
|
+
3. Could an existing component be reused instead?
|
|
102
|
+
4. Decoration or purpose?
|
|
103
|
+
5. Accessible?
|
|
104
|
+
6. Performant?
|
|
105
|
+
7. Fits brand personality?
|
|
106
|
+
8. Would I recognize this as generic AI-generated UI?
|
|
476
107
|
|
|
477
|
-
|
|
478
|
-
1. Does the design system document this?
|
|
479
|
-
2. Does this serve the user?
|
|
480
|
-
3. Is this consistent with existing UI?
|
|
481
|
-
4. Does this fit brand personality?
|
|
482
|
-
5. Is this accessible and performant?
|
|
108
|
+
Answer "no" to 1-3 or "yes" to 8 → reconsider the implementation.
|
|
483
109
|
|
|
484
|
-
|
|
485
|
-
- Simplicity over complexity
|
|
486
|
-
- Function over decoration
|
|
487
|
-
- Consistency over novelty
|
|
488
|
-
- Accessibility over aesthetics
|
|
489
|
-
- Performance over effects
|
|
110
|
+
## When in Doubt, Prefer
|
|
490
111
|
|
|
491
|
-
|
|
112
|
+
- Simplicity over complexity.
|
|
113
|
+
- Function over decoration.
|
|
114
|
+
- Consistency over novelty.
|
|
115
|
+
- Accessibility over aesthetics.
|
|
116
|
+
- Performance over effects.
|