bps-kit 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/bin/cli.js +4 -4
  2. package/package.json +1 -1
  3. package/templates/{.agents → agents-template}/rules/GEMINI.md +5 -5
  4. package/templates/skills_extra/nodejs-best-practices/SKILL.md +8 -2
  5. package/templates/skills_normal/api-patterns/SKILL.md +7 -2
  6. package/templates/skills_normal/app-builder/SKILL.md +8 -3
  7. package/templates/skills_normal/app-builder/tech-stack.md +2 -2
  8. package/templates/skills_normal/app-builder/templates/SKILL.md +7 -2
  9. package/templates/skills_normal/app-builder/templates/nextjs-fullstack/TEMPLATE.md +39 -79
  10. package/templates/skills_normal/app-builder/templates/nextjs-saas/TEMPLATE.md +53 -75
  11. package/templates/skills_normal/app-builder/templates/nextjs-static/TEMPLATE.md +56 -119
  12. package/templates/skills_normal/app-builder/templates/nuxt-app/TEMPLATE.md +61 -94
  13. package/templates/skills_normal/app-builder/templates/react-native-app/TEMPLATE.md +56 -82
  14. package/templates/skills_normal/behavioral-modes/SKILL.md +7 -2
  15. package/templates/skills_normal/brainstorming/SKILL.md +173 -104
  16. package/templates/skills_normal/clean-code/SKILL.md +90 -197
  17. package/templates/skills_normal/database-design/SKILL.md +7 -2
  18. package/templates/skills_normal/frontend-design/LICENSE.txt +177 -0
  19. package/templates/skills_normal/frontend-design/SKILL.md +172 -313
  20. package/templates/skills_normal/lint-and-validate/SKILL.md +7 -2
  21. package/templates/skills_normal/lint-and-validate/scripts/lint_runner.py +2 -14
  22. package/templates/skills_normal/performance-profiling/SKILL.md +7 -2
  23. package/templates/skills_normal/plan-writing/SKILL.md +4 -2
  24. package/templates/skills_normal/seo-fundamentals/SKILL.md +125 -79
  25. package/templates/skills_normal/systematic-debugging/CREATION-LOG.md +119 -0
  26. package/templates/skills_normal/systematic-debugging/SKILL.md +275 -85
  27. package/templates/skills_normal/systematic-debugging/condition-based-waiting-example.ts +158 -0
  28. package/templates/skills_normal/systematic-debugging/condition-based-waiting.md +115 -0
  29. package/templates/skills_normal/systematic-debugging/defense-in-depth.md +122 -0
  30. package/templates/skills_normal/systematic-debugging/find-polluter.sh +63 -0
  31. package/templates/skills_normal/systematic-debugging/root-cause-tracing.md +169 -0
  32. package/templates/skills_normal/systematic-debugging/test-academic.md +14 -0
  33. package/templates/skills_normal/systematic-debugging/test-pressure-1.md +58 -0
  34. package/templates/skills_normal/systematic-debugging/test-pressure-2.md +68 -0
  35. package/templates/skills_normal/systematic-debugging/test-pressure-3.md +69 -0
  36. package/templates/skills_normal/tailwind-patterns/SKILL.md +8 -2
  37. package/templates/skills_normal/testing-patterns/SKILL.md +212 -125
  38. package/templates/skills_normal/vulnerability-scanner/SKILL.md +7 -2
  39. package/templates/.agents/agents/backend-specialist.md +0 -263
  40. package/templates/.agents/agents/code-archaeologist.md +0 -106
  41. package/templates/.agents/agents/database-architect.md +0 -226
  42. package/templates/.agents/agents/debugger.md +0 -225
  43. package/templates/.agents/agents/devops-engineer.md +0 -242
  44. package/templates/.agents/agents/documentation-writer.md +0 -104
  45. package/templates/.agents/agents/explorer-agent.md +0 -73
  46. package/templates/.agents/agents/frontend-specialist.md +0 -593
  47. package/templates/.agents/agents/game-developer.md +0 -162
  48. package/templates/.agents/agents/mobile-developer.md +0 -377
  49. package/templates/.agents/agents/orchestrator.md +0 -416
  50. package/templates/.agents/agents/penetration-tester.md +0 -188
  51. package/templates/.agents/agents/performance-optimizer.md +0 -187
  52. package/templates/.agents/agents/product-manager.md +0 -112
  53. package/templates/.agents/agents/product-owner.md +0 -95
  54. package/templates/.agents/agents/project-planner.md +0 -406
  55. package/templates/.agents/agents/qa-automation-engineer.md +0 -103
  56. package/templates/.agents/agents/security-auditor.md +0 -170
  57. package/templates/.agents/agents/seo-specialist.md +0 -111
  58. package/templates/.agents/agents/test-engineer.md +0 -158
  59. package/templates/.agents/scripts/auto_preview.py +0 -148
  60. package/templates/.agents/scripts/checklist.py +0 -217
  61. package/templates/.agents/scripts/session_manager.py +0 -120
  62. package/templates/.agents/scripts/verify_all.py +0 -327
  63. package/templates/.agents/workflows/brainstorm.md +0 -113
  64. package/templates/.agents/workflows/create.md +0 -59
  65. package/templates/.agents/workflows/debug.md +0 -103
  66. package/templates/.agents/workflows/deploy.md +0 -176
  67. package/templates/.agents/workflows/enhance.md +0 -63
  68. package/templates/.agents/workflows/orchestrate.md +0 -237
  69. package/templates/.agents/workflows/plan.md +0 -89
  70. package/templates/.agents/workflows/preview.md +0 -81
  71. package/templates/.agents/workflows/status.md +0 -86
  72. package/templates/.agents/workflows/test.md +0 -144
  73. package/templates/.agents/workflows/ui-ux-pro-max.md +0 -296
  74. package/templates/skills_normal/brainstorming/dynamic-questioning.md +0 -350
  75. package/templates/skills_normal/frontend-design/animation-guide.md +0 -331
  76. package/templates/skills_normal/frontend-design/color-system.md +0 -311
  77. package/templates/skills_normal/frontend-design/decision-trees.md +0 -418
  78. package/templates/skills_normal/frontend-design/motion-graphics.md +0 -306
  79. package/templates/skills_normal/frontend-design/scripts/accessibility_checker.py +0 -183
  80. package/templates/skills_normal/frontend-design/scripts/ux_audit.py +0 -722
  81. package/templates/skills_normal/frontend-design/typography-system.md +0 -345
  82. package/templates/skills_normal/frontend-design/ux-psychology.md +0 -1116
  83. package/templates/skills_normal/frontend-design/visual-effects.md +0 -383
  84. package/templates/skills_normal/testing-patterns/scripts/test_runner.py +0 -219
  85. /package/templates/{.agents → agents-template}/workflows/setup-brain.md +0 -0
@@ -1,418 +1,277 @@
1
1
  ---
2
2
  name: frontend-design
3
- description: Design thinking and decision-making for web UI. Use when designing components, layouts, color schemes, typography, or creating aesthetic interfaces. Teaches principles, not fixed values.
4
- allowed-tools: Read, Write, Edit, Glob, Grep, Bash
3
+ description: "Create distinctive, production-grade frontend interfaces with intentional aesthetics, high craft, and non-generic visual identity. Use when building or styling web UIs, components, pages, dashboard..."
4
+ risk: unknown
5
+ source: community
6
+ date_added: "2026-02-27"
5
7
  ---
6
8
 
7
- # Frontend Design System
9
+ # Frontend Design (Distinctive, Production-Grade)
8
10
 
9
- > **Philosophy:** Every pixel has purpose. Restraint is luxury. User psychology drives decisions.
10
- > **Core Principle:** THINK, don't memorize. ASK, don't assume.
11
+ You are a **frontend designer-engineer**, not a layout generator.
11
12
 
12
- ---
13
-
14
- ## 🎯 Selective Reading Rule (MANDATORY)
15
-
16
- **Read REQUIRED files always, OPTIONAL only when needed:**
17
-
18
- | File | Status | When to Read |
19
- |------|--------|--------------|
20
- | [ux-psychology.md](ux-psychology.md) | 🔴 **REQUIRED** | Always read first! |
21
- | [color-system.md](color-system.md) | ⚪ Optional | Color/palette decisions |
22
- | [typography-system.md](typography-system.md) | ⚪ Optional | Font selection/pairing |
23
- | [visual-effects.md](visual-effects.md) | ⚪ Optional | Glassmorphism, shadows, gradients |
24
- | [animation-guide.md](animation-guide.md) | ⚪ Optional | Animation needed |
25
- | [motion-graphics.md](motion-graphics.md) | ⚪ Optional | Lottie, GSAP, 3D |
26
- | [decision-trees.md](decision-trees.md) | ⚪ Optional | Context templates |
27
-
28
- > 🔴 **ux-psychology.md = ALWAYS READ. Others = only if relevant.**
29
-
30
- ---
13
+ Your goal is to create **memorable, high-craft interfaces** that:
31
14
 
32
- ## 🔧 Runtime Scripts
15
+ * Avoid generic “AI UI” patterns
16
+ * Express a clear aesthetic point of view
17
+ * Are fully functional and production-ready
18
+ * Translate design intent directly into code
33
19
 
34
- **Execute these for audits (don't read, just run):**
35
-
36
- | Script | Purpose | Usage |
37
- |--------|---------|-------|
38
- | `scripts/ux_audit.py` | UX Psychology & Accessibility Audit | `python scripts/ux_audit.py <project_path>` |
20
+ This skill prioritizes **intentional design systems**, not default frameworks.
39
21
 
40
22
  ---
41
23
 
42
- ## ⚠️ CRITICAL: ASK BEFORE ASSUMING (MANDATORY)
43
-
44
- > **STOP! If the user's request is open-ended, DO NOT default to your favorites.**
24
+ ## 1. Core Design Mandate
45
25
 
46
- ### When User Prompt is Vague, ASK:
26
+ Every output must satisfy **all four**:
47
27
 
48
- **Color not specified?** Ask:
49
- > "What color palette do you prefer? (blue/green/orange/neutral/other?)"
28
+ 1. **Intentional Aesthetic Direction**
29
+ A named, explicit design stance (e.g. *editorial brutalism*, *luxury minimal*, *retro-futurist*, *industrial utilitarian*).
50
30
 
51
- **Style not specified?** Ask:
52
- > "What style are you going for? (minimal/bold/retro/futuristic/organic?)"
31
+ 2. **Technical Correctness**
32
+ Real, working HTML/CSS/JS or framework code not mockups.
53
33
 
54
- **Layout not specified?** Ask:
55
- > "Do you have a layout preference? (single column/grid/asymmetric/full-width?)"
34
+ 3. **Visual Memorability**
35
+ At least one element the user will remember 24 hours later.
56
36
 
57
- ### DEFAULT TENDENCIES TO AVOID (ANTI-SAFE HARBOR):
37
+ 4. **Cohesive Restraint**
38
+ No random decoration. Every flourish must serve the aesthetic thesis.
58
39
 
59
- | AI Default Tendency | Why It's Bad | Think Instead |
60
- |---------------------|--------------|---------------|
61
- | **Bento Grids (Modern Cliché)** | Used in every AI design | Why does this content NEED a grid? |
62
- | **Hero Split (Left/Right)** | Predictable & Boring | How about Massive Typography or Vertical Narrative? |
63
- | **Mesh/Aurora Gradients** | The "new" lazy background | What's a radical color pairing? |
64
- | **Glassmorphism** | AI's idea of "premium" | How about solid, high-contrast flat? |
65
- | **Deep Cyan / Fintech Blue** | Safe harbor from purple ban | Why not Red, Black, or Neon Green? |
66
- | **"Orchestrate / Empower"** | AI-generated copywriting | How would a human say this? |
67
- | Dark background + neon glow | Overused, "AI look" | What does the BRAND actually need? |
68
- | **Rounded everything** | Generic/Safe | Where can I use sharp, brutalist edges? |
69
-
70
- > 🔴 **"Every 'safe' structure you choose brings you one step closer to a generic template. TAKE RISKS."**
40
+ No default layouts
41
+ ❌ No design-by-components
42
+ No “safe” palettes or fonts
43
+ Strong opinions, well executed
71
44
 
72
45
  ---
73
46
 
74
- ## 1. Constraint Analysis (ALWAYS FIRST)
75
-
76
- Before any design work, ANSWER THESE or ASK USER:
77
-
78
- | Constraint | Question | Why It Matters |
79
- |------------|----------|----------------|
80
- | **Timeline** | How much time? | Determines complexity |
81
- | **Content** | Ready or placeholder? | Affects layout flexibility |
82
- | **Brand** | Existing guidelines? | May dictate colors/fonts |
83
- | **Tech** | What stack? | Affects capabilities |
84
- | **Audience** | Who exactly? | Drives all visual decisions |
85
-
86
- ### Audience → Design Approach
87
-
88
- | Audience | Think About |
89
- |----------|-------------|
90
- | **Gen Z** | Bold, fast, mobile-first, authentic |
91
- | **Millennials** | Clean, minimal, value-driven |
92
- | **Gen X** | Familiar, trustworthy, clear |
93
- | **Boomers** | Readable, high contrast, simple |
94
- | **B2B** | Professional, data-focused, trust |
95
- | **Luxury** | Restrained elegance, whitespace |
47
+ ## 2. Design Feasibility & Impact Index (DFII)
96
48
 
97
- ---
98
-
99
- ## 2. UX Psychology Principles
49
+ Before building, evaluate the design direction using DFII.
100
50
 
101
- ### Core Laws (Internalize These)
51
+ ### DFII Dimensions (1–5)
102
52
 
103
- | Law | Principle | Application |
104
- |-----|-----------|-------------|
105
- | **Hick's Law** | More choices = slower decisions | Limit options, use progressive disclosure |
106
- | **Fitts' Law** | Bigger + closer = easier to click | Size CTAs appropriately |
107
- | **Miller's Law** | ~7 items in working memory | Chunk content into groups |
108
- | **Von Restorff** | Different = memorable | Make CTAs visually distinct |
109
- | **Serial Position** | First/last remembered most | Key info at start/end |
53
+ | Dimension | Question |
54
+ | ------------------------------ | ------------------------------------------------------------ |
55
+ | **Aesthetic Impact** | How visually distinctive and memorable is this direction? |
56
+ | **Context Fit** | Does this aesthetic suit the product, audience, and purpose? |
57
+ | **Implementation Feasibility** | Can this be built cleanly with available tech? |
58
+ | **Performance Safety** | Will it remain fast and accessible? |
59
+ | **Consistency Risk** | Can this be maintained across screens/components? |
110
60
 
111
- ### Emotional Design Levels
61
+ ### Scoring Formula
112
62
 
113
63
  ```
114
- VISCERAL (instant) → First impression: colors, imagery, overall feel
115
- BEHAVIORAL (use) → Using it: speed, feedback, efficiency
116
- REFLECTIVE (memory) → After: "I like what this says about me"
64
+ DFII = (Impact + Fit + Feasibility + Performance) − Consistency Risk
117
65
  ```
118
66
 
119
- ### Trust Building
67
+ **Range:** `-5 → +15`
120
68
 
121
- - Security indicators on sensitive actions
122
- - Social proof where relevant
123
- - Clear contact/support access
124
- - Consistent, professional design
125
- - Transparent policies
126
-
127
- ---
69
+ ### Interpretation
128
70
 
129
- ## 3. Layout Principles
130
-
131
- ### Golden Ratio = 1.618)
132
-
133
- ```
134
- Use for proportional harmony:
135
- ├── Content : Sidebar = roughly 62% : 38%
136
- ├── Each heading size = previous × 1.618 (for dramatic scale)
137
- ├── Spacing can follow: sm → md → lg (each × 1.618)
138
- ```
71
+ | DFII | Meaning | Action |
72
+ | --------- | --------- | --------------------------- |
73
+ | **12–15** | Excellent | Execute fully |
74
+ | **8–11** | Strong | Proceed with discipline |
75
+ | **4–7** | Risky | Reduce scope or effects |
76
+ | **≤ 3** | Weak | Rethink aesthetic direction |
139
77
 
140
- ### 8-Point Grid Concept
78
+ ---
141
79
 
142
- ```
143
- All spacing and sizing in multiples of 8:
144
- ├── Tight: 4px (half-step for micro)
145
- ├── Small: 8px
146
- ├── Medium: 16px
147
- ├── Large: 24px, 32px
148
- ├── XL: 48px, 64px, 80px
149
- └── Adjust based on content density
150
- ```
80
+ ## 3. Mandatory Design Thinking Phase
151
81
 
152
- ### Key Sizing Principles
82
+ Before writing code, explicitly define:
153
83
 
154
- | Element | Consideration |
155
- |---------|---------------|
156
- | **Touch targets** | Minimum comfortable tap size |
157
- | **Buttons** | Height based on importance hierarchy |
158
- | **Inputs** | Match button height for alignment |
159
- | **Cards** | Consistent padding, breathable |
160
- | **Reading width** | 45-75 characters optimal |
84
+ ### 1. Purpose
161
85
 
162
- ---
86
+ * What action should this interface enable?
87
+ * Is it persuasive, functional, exploratory, or expressive?
163
88
 
164
- ## 4. Color Principles
89
+ ### 2. Tone (Choose One Dominant Direction)
165
90
 
166
- ### 60-30-10 Rule
91
+ Examples (non-exhaustive):
167
92
 
168
- ```
169
- 60% Primary/Background (calm, neutral base)
170
- 30% Secondary (supporting areas)
171
- 10% → Accent (CTAs, highlights, attention)
172
- ```
93
+ * Brutalist / Raw
94
+ * Editorial / Magazine
95
+ * Luxury / Refined
96
+ * Retro-futuristic
97
+ * Industrial / Utilitarian
98
+ * Organic / Natural
99
+ * Playful / Toy-like
100
+ * Maximalist / Chaotic
101
+ * Minimalist / Severe
173
102
 
174
- ### Color Psychology (For Decision Making)
103
+ ⚠️ Do not blend more than **two**.
175
104
 
176
- | If You Need... | Consider Hues | Avoid |
177
- |----------------|---------------|-------|
178
- | Trust, calm | Blue family | Aggressive reds |
179
- | Growth, nature | Green family | Industrial grays |
180
- | Energy, urgency | Orange, red | Passive blues |
181
- | Luxury, creativity | Deep Teal, Gold, Emerald | Cheap-feeling brights |
182
- | Clean, minimal | Neutrals | Overwhelming color |
105
+ ### 3. Differentiation Anchor
183
106
 
184
- ### Selection Process
107
+ Answer:
185
108
 
186
- 1. **What's the industry?** (narrows options)
187
- 2. **What's the emotion?** (picks primary)
188
- 3. **Light or dark mode?** (sets foundation)
189
- 4. **ASK USER** if not specified
109
+ > “If this were screenshotted with the logo removed, how would someone recognize it?”
190
110
 
191
- For detailed color theory: [color-system.md](color-system.md)
111
+ This anchor must be visible in the final UI.
192
112
 
193
113
  ---
194
114
 
195
- ## 5. Typography Principles
115
+ ## 4. Aesthetic Execution Rules (Non-Negotiable)
196
116
 
197
- ### Scale Selection
117
+ ### Typography
198
118
 
199
- | Content Type | Scale Ratio | Feel |
200
- |--------------|-------------|------|
201
- | Dense UI | 1.125-1.2 | Compact, efficient |
202
- | General web | 1.25 | Balanced (most common) |
203
- | Editorial | 1.333 | Readable, spacious |
204
- | Hero/display | 1.5-1.618 | Dramatic impact |
119
+ * Avoid system fonts and AI-defaults (Inter, Roboto, Arial, etc.)
120
+ * Choose:
205
121
 
206
- ### Pairing Concept
122
+ * 1 expressive display font
123
+ * 1 restrained body font
124
+ * Use typography structurally (scale, rhythm, contrast)
207
125
 
208
- ```
209
- Contrast + Harmony:
210
- ├── DIFFERENT enough for hierarchy
211
- ├── SIMILAR enough for cohesion
212
- └── Usually: display + neutral, or serif + sans
213
- ```
126
+ ### Color & Theme
214
127
 
215
- ### Readability Rules
128
+ * Commit to a **dominant color story**
129
+ * Use CSS variables exclusively
130
+ * Prefer:
216
131
 
217
- - **Line length**: 45-75 characters optimal
218
- - **Line height**: 1.4-1.6 for body text
219
- - **Contrast**: Check WCAG requirements
220
- - **Size**: 16px+ for body on web
132
+ * One dominant tone
133
+ * One accent
134
+ * One neutral system
135
+ * Avoid evenly-balanced palettes
221
136
 
222
- For detailed typography: [typography-system.md](typography-system.md)
137
+ ### Spatial Composition
223
138
 
224
- ---
139
+ * Break the grid intentionally
140
+ * Use:
225
141
 
226
- ## 6. Visual Effects Principles
142
+ * Asymmetry
143
+ * Overlap
144
+ * Negative space OR controlled density
145
+ * White space is a design element, not absence
227
146
 
228
- ### Glassmorphism (When Appropriate)
147
+ ### Motion
229
148
 
230
- ```
231
- Key properties:
232
- ├── Semi-transparent background
233
- ├── Backdrop blur
234
- ├── Subtle border for definition
235
- └── ⚠️ **WARNING:** Standard blue/white glassmorphism is a modern cliché. Use it radically or not at all.
236
- ```
149
+ * Motion must be:
237
150
 
238
- ### Shadow Hierarchy
151
+ * Purposeful
152
+ * Sparse
153
+ * High-impact
154
+ * Prefer:
239
155
 
240
- ```
241
- Elevation concept:
242
- ├── Higher elements = larger shadows
243
- ├── Y-offset > X-offset (light from above)
244
- ├── Multiple layers = more realistic
245
- └── Dark mode: may need glow instead
246
- ```
156
+ * One strong entrance sequence
157
+ * A few meaningful hover states
158
+ * Avoid decorative micro-motion spam
247
159
 
248
- ### Gradient Usage
160
+ ### Texture & Depth
249
161
 
250
- ```
251
- Harmonious gradients:
252
- ├── Adjacent colors on wheel (analogous)
253
- ├── OR same hue, different lightness
254
- ├── Avoid harsh complementary pairs
255
- ├── 🚫 **NO Mesh/Aurora Gradients** (floating blobs)
256
- └── VARY from project to project radically
257
- ```
162
+ Use when appropriate:
258
163
 
259
- For complete effects guide: [visual-effects.md](visual-effects.md)
164
+ * Noise / grain overlays
165
+ * Gradient meshes
166
+ * Layered translucency
167
+ * Custom borders or dividers
168
+ * Shadows with narrative intent (not defaults)
260
169
 
261
170
  ---
262
171
 
263
- ## 7. Animation Principles
172
+ ## 5. Implementation Standards
264
173
 
265
- ### Timing Concept
174
+ ### Code Requirements
266
175
 
267
- ```
268
- Duration based on:
269
- ├── Distance (further = longer)
270
- ├── Size (larger = slower)
271
- ├── Importance (critical = clear)
272
- └── Context (urgent = fast, luxury = slow)
273
- ```
176
+ * Clean, readable, and modular
177
+ * No dead styles
178
+ * No unused animations
179
+ * Semantic HTML
180
+ * Accessible by default (contrast, focus, keyboard)
274
181
 
275
- ### Easing Selection
182
+ ### Framework Guidance
276
183
 
277
- | Action | Easing | Why |
278
- |--------|--------|-----|
279
- | Entering | Ease-out | Decelerate, settle in |
280
- | Leaving | Ease-in | Accelerate, exit |
281
- | Emphasis | Ease-in-out | Smooth, deliberate |
282
- | Playful | Bounce | Fun, energetic |
184
+ * **HTML/CSS**: Prefer native features, modern CSS
185
+ * **React**: Functional components, composable styles
186
+ * **Animation**:
283
187
 
284
- ### Performance
188
+ * CSS-first
189
+ * Framer Motion only when justified
285
190
 
286
- - Animate only transform and opacity
287
- - Respect reduced-motion preference
288
- - Test on low-end devices
289
-
290
- For animation patterns: [animation-guide.md](animation-guide.md), for advanced: [motion-graphics.md](motion-graphics.md)
291
-
292
- ---
191
+ ### Complexity Matching
293
192
 
294
- ## 8. "Wow Factor" Checklist
193
+ * Maximalist design complex code (animations, layers)
194
+ * Minimalist design → extremely precise spacing & type
295
195
 
296
- ### Premium Indicators
297
-
298
- - [ ] Generous whitespace (luxury = breathing room)
299
- - [ ] Subtle depth and dimension
300
- - [ ] Smooth, purposeful animations
301
- - [ ] Attention to detail (alignment, consistency)
302
- - [ ] Cohesive visual rhythm
303
- - [ ] Custom elements (not all defaults)
304
-
305
- ### Trust Builders
306
-
307
- - [ ] Security cues where appropriate
308
- - [ ] Social proof / testimonials
309
- - [ ] Clear value proposition
310
- - [ ] Professional imagery
311
- - [ ] Consistent design language
312
-
313
- ### Emotional Triggers
314
-
315
- - [ ] Hero that evokes intended emotion
316
- - [ ] Human elements (faces, stories)
317
- - [ ] Progress/achievement indicators
318
- - [ ] Moments of delight
196
+ Mismatch = failure.
319
197
 
320
198
  ---
321
199
 
322
- ## 9. Anti-Patterns (What NOT to Do)
200
+ ## 6. Required Output Structure
323
201
 
324
- ### Lazy Design Indicators
202
+ When generating frontend work:
325
203
 
326
- - Default system fonts without consideration
327
- - Stock imagery that doesn't match
328
- - Inconsistent spacing
329
- - Too many competing colors
330
- - Walls of text without hierarchy
331
- - Inaccessible contrast
204
+ ### 1. Design Direction Summary
332
205
 
333
- ### AI Tendency Patterns (AVOID!)
206
+ * Aesthetic name
207
+ * DFII score
208
+ * Key inspiration (conceptual, not visual plagiarism)
334
209
 
335
- - **Same colors every project**
336
- - **Dark + neon as default**
337
- - **Purple/violet everything (PURPLE BAN ✅)**
338
- - **Bento grids for simple landing pages**
339
- - **Mesh Gradients & Glow Effects**
340
- - **Same layout structure / Vercel clone**
341
- - **Not asking user preferences**
210
+ ### 2. Design System Snapshot
342
211
 
343
- ### Dark Patterns (Unethical)
212
+ * Fonts (with rationale)
213
+ * Color variables
214
+ * Spacing rhythm
215
+ * Motion philosophy
344
216
 
345
- - Hidden costs
346
- - Fake urgency
347
- - Forced actions
348
- - Deceptive UI
349
- - Confirmshaming
217
+ ### 3. Implementation
350
218
 
351
- ---
219
+ * Full working code
220
+ * Comments only where intent isn’t obvious
352
221
 
353
- ## 10. Decision Process Summary
222
+ ### 4. Differentiation Callout
354
223
 
355
- ```
356
- For EVERY design task:
224
+ Explicitly state:
357
225
 
358
- 1. CONSTRAINTS
359
- └── What's the timeline, brand, tech, audience?
360
- └── If unclear → ASK
226
+ > “This avoids generic UI by doing X instead of Y.”
361
227
 
362
- 2. CONTENT
363
- └── What content exists?
364
- └── What's the hierarchy?
228
+ ---
365
229
 
366
- 3. STYLE DIRECTION
367
- └── What's appropriate for context?
368
- └── If unclear → ASK (don't default!)
230
+ ## 7. Anti-Patterns (Immediate Failure)
369
231
 
370
- 4. EXECUTION
371
- └── Apply principles above
372
- └── Check against anti-patterns
232
+ Inter/Roboto/system fonts
233
+ Purple-on-white SaaS gradients
234
+ Default Tailwind/ShadCN layouts
235
+ ❌ Symmetrical, predictable sections
236
+ ❌ Overused AI design tropes
237
+ ❌ Decoration without intent
373
238
 
374
- 5. REVIEW
375
- └── "Does this serve the user?"
376
- └── "Is this different from my defaults?"
377
- └── "Would I be proud of this?"
378
- ```
239
+ If the design could be mistaken for a template → restart.
379
240
 
380
241
  ---
381
242
 
382
- ## Reference Files
383
-
384
- For deeper guidance on specific areas:
243
+ ## 8. Integration With Other Skills
385
244
 
386
- - [color-system.md](color-system.md) - Color theory and selection process
387
- - [typography-system.md](typography-system.md) - Font pairing and scale decisions
388
- - [visual-effects.md](visual-effects.md) - Effects principles and techniques
389
- - [animation-guide.md](animation-guide.md) - Motion design principles
390
- - [motion-graphics.md](motion-graphics.md) - Advanced: Lottie, GSAP, SVG, 3D, Particles
391
- - [decision-trees.md](decision-trees.md) - Context-specific templates
392
- - [ux-psychology.md](ux-psychology.md) - User psychology deep dive
245
+ * **page-cro** Layout hierarchy & conversion flow
246
+ * **copywriting** Typography & message rhythm
247
+ * **marketing-psychology** Visual persuasion & bias alignment
248
+ * **branding** Visual identity consistency
249
+ * **ab-test-setup** → Variant-safe design systems
393
250
 
394
251
  ---
395
252
 
396
- ## Related Skills
253
+ ## 9. Operator Checklist
397
254
 
398
- | Skill | When to Use |
399
- |-------|-------------|
400
- | **frontend-design** (this) | Before coding - Learn design principles (color, typography, UX psychology) |
401
- | **[web-design-guidelines](../web-design-guidelines/SKILL.md)** | After coding - Audit for accessibility, performance, and best practices |
255
+ Before finalizing output:
402
256
 
403
- ## Post-Design Workflow
257
+ * [ ] Clear aesthetic direction stated
258
+ * [ ] DFII ≥ 8
259
+ * [ ] One memorable design anchor
260
+ * [ ] No generic fonts/colors/layouts
261
+ * [ ] Code matches design ambition
262
+ * [ ] Accessible and performant
404
263
 
405
- After implementing your design, run the audit:
264
+ ---
406
265
 
407
- ```
408
- 1. DESIGN → Read frontend-design principles ← YOU ARE HERE
409
- 2. CODE → Implement the design
410
- 3. AUDIT → Run web-design-guidelines review
411
- 4. FIX → Address findings from audit
412
- ```
266
+ ## 10. Questions to Ask (If Needed)
413
267
 
414
- > **Next Step:** After coding, use `web-design-guidelines` skill to audit your implementation for accessibility, focus states, animations, and performance issues.
268
+ 1. Who is this for, emotionally?
269
+ 2. Should this feel trustworthy, exciting, calm, or provocative?
270
+ 3. Is memorability or clarity more important?
271
+ 4. Will this scale to other pages/components?
272
+ 5. What should users *feel* in the first 3 seconds?
415
273
 
416
274
  ---
417
275
 
418
- > **Remember:** Design is THINKING, not copying. Every project deserves fresh consideration based on its unique context and users. **Avoid the Modern SaaS Safe Harbor!**
276
+ ## When to Use
277
+ This skill is applicable to execute the workflow or actions described in the overview.
@@ -1,7 +1,9 @@
1
1
  ---
2
2
  name: lint-and-validate
3
- description: Automatic quality control, linting, and static analysis procedures. Use after every code modification to ensure syntax correctness and project standards. Triggers onKeywords: lint, format, check, validate, types, static analysis.
4
- allowed-tools: Read, Glob, Grep, Bash
3
+ description: "Automatic quality control, linting, and static analysis procedures. Use after every code modification to ensure syntax correctness and project standards. Triggers onKeywords: lint, format, check, v..."
4
+ risk: unknown
5
+ source: community
6
+ date_added: "2026-02-27"
5
7
  ---
6
8
 
7
9
  # Lint and Validate Skill
@@ -43,3 +45,6 @@ allowed-tools: Read, Glob, Grep, Bash
43
45
  | `scripts/lint_runner.py` | Unified lint check | `python scripts/lint_runner.py <project_path>` |
44
46
  | `scripts/type_coverage.py` | Type coverage analysis | `python scripts/type_coverage.py <project_path>` |
45
47
 
48
+
49
+ ## When to Use
50
+ This skill is applicable to execute the workflow or actions described in the overview.
@@ -14,8 +14,6 @@ Supports:
14
14
  import subprocess
15
15
  import sys
16
16
  import json
17
- import platform
18
- import shutil
19
17
  from pathlib import Path
20
18
  from datetime import datetime
21
19
 
@@ -79,24 +77,14 @@ def run_linter(linter: dict, cwd: Path) -> dict:
79
77
  }
80
78
 
81
79
  try:
82
- cmd = linter["cmd"]
83
-
84
- # Windows compatibility for npm/npx
85
- if platform.system() == "Windows":
86
- if cmd[0] in ["npm", "npx"]:
87
- # Force .cmd extension on Windows
88
- if not cmd[0].lower().endswith(".cmd"):
89
- cmd[0] = f"{cmd[0]}.cmd"
90
-
91
80
  proc = subprocess.run(
92
- cmd,
81
+ linter["cmd"],
93
82
  cwd=str(cwd),
94
83
  capture_output=True,
95
84
  text=True,
96
85
  encoding='utf-8',
97
86
  errors='replace',
98
- timeout=120,
99
- shell=platform.system() == "Windows" # Shell=True often helps with path resolution on Windows
87
+ timeout=120
100
88
  )
101
89
 
102
90
  result["output"] = proc.stdout[:2000] if proc.stdout else ""
@@ -1,7 +1,9 @@
1
1
  ---
2
2
  name: performance-profiling
3
- description: Performance profiling principles. Measurement, analysis, and optimization techniques.
4
- allowed-tools: Read, Glob, Grep, Bash
3
+ description: "Performance profiling principles. Measurement, analysis, and optimization techniques."
4
+ risk: unknown
5
+ source: community
6
+ date_added: "2026-02-27"
5
7
  ---
6
8
 
7
9
  # Performance Profiling
@@ -141,3 +143,6 @@ allowed-tools: Read, Glob, Grep, Bash
141
143
  ---
142
144
 
143
145
  > **Remember:** The fastest code is code that doesn't run. Remove before optimizing.
146
+
147
+ ## When to Use
148
+ This skill is applicable to execute the workflow or actions described in the overview.