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.
- package/bin/cli.js +4 -4
- package/package.json +1 -1
- package/templates/{.agents → agents-template}/rules/GEMINI.md +5 -5
- package/templates/skills_extra/nodejs-best-practices/SKILL.md +8 -2
- package/templates/skills_normal/api-patterns/SKILL.md +7 -2
- package/templates/skills_normal/app-builder/SKILL.md +8 -3
- package/templates/skills_normal/app-builder/tech-stack.md +2 -2
- package/templates/skills_normal/app-builder/templates/SKILL.md +7 -2
- package/templates/skills_normal/app-builder/templates/nextjs-fullstack/TEMPLATE.md +39 -79
- package/templates/skills_normal/app-builder/templates/nextjs-saas/TEMPLATE.md +53 -75
- package/templates/skills_normal/app-builder/templates/nextjs-static/TEMPLATE.md +56 -119
- package/templates/skills_normal/app-builder/templates/nuxt-app/TEMPLATE.md +61 -94
- package/templates/skills_normal/app-builder/templates/react-native-app/TEMPLATE.md +56 -82
- package/templates/skills_normal/behavioral-modes/SKILL.md +7 -2
- package/templates/skills_normal/brainstorming/SKILL.md +173 -104
- package/templates/skills_normal/clean-code/SKILL.md +90 -197
- package/templates/skills_normal/database-design/SKILL.md +7 -2
- package/templates/skills_normal/frontend-design/LICENSE.txt +177 -0
- package/templates/skills_normal/frontend-design/SKILL.md +172 -313
- package/templates/skills_normal/lint-and-validate/SKILL.md +7 -2
- package/templates/skills_normal/lint-and-validate/scripts/lint_runner.py +2 -14
- package/templates/skills_normal/performance-profiling/SKILL.md +7 -2
- package/templates/skills_normal/plan-writing/SKILL.md +4 -2
- package/templates/skills_normal/seo-fundamentals/SKILL.md +125 -79
- package/templates/skills_normal/systematic-debugging/CREATION-LOG.md +119 -0
- package/templates/skills_normal/systematic-debugging/SKILL.md +275 -85
- package/templates/skills_normal/systematic-debugging/condition-based-waiting-example.ts +158 -0
- package/templates/skills_normal/systematic-debugging/condition-based-waiting.md +115 -0
- package/templates/skills_normal/systematic-debugging/defense-in-depth.md +122 -0
- package/templates/skills_normal/systematic-debugging/find-polluter.sh +63 -0
- package/templates/skills_normal/systematic-debugging/root-cause-tracing.md +169 -0
- package/templates/skills_normal/systematic-debugging/test-academic.md +14 -0
- package/templates/skills_normal/systematic-debugging/test-pressure-1.md +58 -0
- package/templates/skills_normal/systematic-debugging/test-pressure-2.md +68 -0
- package/templates/skills_normal/systematic-debugging/test-pressure-3.md +69 -0
- package/templates/skills_normal/tailwind-patterns/SKILL.md +8 -2
- package/templates/skills_normal/testing-patterns/SKILL.md +212 -125
- package/templates/skills_normal/vulnerability-scanner/SKILL.md +7 -2
- package/templates/.agents/agents/backend-specialist.md +0 -263
- package/templates/.agents/agents/code-archaeologist.md +0 -106
- package/templates/.agents/agents/database-architect.md +0 -226
- package/templates/.agents/agents/debugger.md +0 -225
- package/templates/.agents/agents/devops-engineer.md +0 -242
- package/templates/.agents/agents/documentation-writer.md +0 -104
- package/templates/.agents/agents/explorer-agent.md +0 -73
- package/templates/.agents/agents/frontend-specialist.md +0 -593
- package/templates/.agents/agents/game-developer.md +0 -162
- package/templates/.agents/agents/mobile-developer.md +0 -377
- package/templates/.agents/agents/orchestrator.md +0 -416
- package/templates/.agents/agents/penetration-tester.md +0 -188
- package/templates/.agents/agents/performance-optimizer.md +0 -187
- package/templates/.agents/agents/product-manager.md +0 -112
- package/templates/.agents/agents/product-owner.md +0 -95
- package/templates/.agents/agents/project-planner.md +0 -406
- package/templates/.agents/agents/qa-automation-engineer.md +0 -103
- package/templates/.agents/agents/security-auditor.md +0 -170
- package/templates/.agents/agents/seo-specialist.md +0 -111
- package/templates/.agents/agents/test-engineer.md +0 -158
- package/templates/.agents/scripts/auto_preview.py +0 -148
- package/templates/.agents/scripts/checklist.py +0 -217
- package/templates/.agents/scripts/session_manager.py +0 -120
- package/templates/.agents/scripts/verify_all.py +0 -327
- package/templates/.agents/workflows/brainstorm.md +0 -113
- package/templates/.agents/workflows/create.md +0 -59
- package/templates/.agents/workflows/debug.md +0 -103
- package/templates/.agents/workflows/deploy.md +0 -176
- package/templates/.agents/workflows/enhance.md +0 -63
- package/templates/.agents/workflows/orchestrate.md +0 -237
- package/templates/.agents/workflows/plan.md +0 -89
- package/templates/.agents/workflows/preview.md +0 -81
- package/templates/.agents/workflows/status.md +0 -86
- package/templates/.agents/workflows/test.md +0 -144
- package/templates/.agents/workflows/ui-ux-pro-max.md +0 -296
- package/templates/skills_normal/brainstorming/dynamic-questioning.md +0 -350
- package/templates/skills_normal/frontend-design/animation-guide.md +0 -331
- package/templates/skills_normal/frontend-design/color-system.md +0 -311
- package/templates/skills_normal/frontend-design/decision-trees.md +0 -418
- package/templates/skills_normal/frontend-design/motion-graphics.md +0 -306
- package/templates/skills_normal/frontend-design/scripts/accessibility_checker.py +0 -183
- package/templates/skills_normal/frontend-design/scripts/ux_audit.py +0 -722
- package/templates/skills_normal/frontend-design/typography-system.md +0 -345
- package/templates/skills_normal/frontend-design/ux-psychology.md +0 -1116
- package/templates/skills_normal/frontend-design/visual-effects.md +0 -383
- package/templates/skills_normal/testing-patterns/scripts/test_runner.py +0 -219
- /package/templates/{.agents → agents-template}/workflows/setup-brain.md +0 -0
|
@@ -1,418 +1,277 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: frontend-design
|
|
3
|
-
description:
|
|
4
|
-
|
|
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
|
|
9
|
+
# Frontend Design (Distinctive, Production-Grade)
|
|
8
10
|
|
|
9
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
##
|
|
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
|
-
|
|
26
|
+
Every output must satisfy **all four**:
|
|
47
27
|
|
|
48
|
-
**
|
|
49
|
-
|
|
28
|
+
1. **Intentional Aesthetic Direction**
|
|
29
|
+
A named, explicit design stance (e.g. *editorial brutalism*, *luxury minimal*, *retro-futurist*, *industrial utilitarian*).
|
|
50
30
|
|
|
51
|
-
**
|
|
52
|
-
|
|
31
|
+
2. **Technical Correctness**
|
|
32
|
+
Real, working HTML/CSS/JS or framework code — not mockups.
|
|
53
33
|
|
|
54
|
-
**
|
|
55
|
-
|
|
34
|
+
3. **Visual Memorability**
|
|
35
|
+
At least one element the user will remember 24 hours later.
|
|
56
36
|
|
|
57
|
-
|
|
37
|
+
4. **Cohesive Restraint**
|
|
38
|
+
No random decoration. Every flourish must serve the aesthetic thesis.
|
|
58
39
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
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
|
-
##
|
|
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
|
-
###
|
|
51
|
+
### DFII Dimensions (1–5)
|
|
102
52
|
|
|
103
|
-
|
|
|
104
|
-
|
|
105
|
-
| **
|
|
106
|
-
| **
|
|
107
|
-
| **
|
|
108
|
-
| **
|
|
109
|
-
| **
|
|
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
|
-
###
|
|
61
|
+
### Scoring Formula
|
|
112
62
|
|
|
113
63
|
```
|
|
114
|
-
|
|
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
|
-
|
|
67
|
+
**Range:** `-5 → +15`
|
|
120
68
|
|
|
121
|
-
|
|
122
|
-
- Social proof where relevant
|
|
123
|
-
- Clear contact/support access
|
|
124
|
-
- Consistent, professional design
|
|
125
|
-
- Transparent policies
|
|
126
|
-
|
|
127
|
-
---
|
|
69
|
+
### Interpretation
|
|
128
70
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
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
|
-
|
|
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
|
-
|
|
82
|
+
Before writing code, explicitly define:
|
|
153
83
|
|
|
154
|
-
|
|
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
|
-
|
|
89
|
+
### 2. Tone (Choose One Dominant Direction)
|
|
165
90
|
|
|
166
|
-
|
|
91
|
+
Examples (non-exhaustive):
|
|
167
92
|
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
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
|
-
|
|
103
|
+
⚠️ Do not blend more than **two**.
|
|
175
104
|
|
|
176
|
-
|
|
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
|
-
|
|
107
|
+
Answer:
|
|
185
108
|
|
|
186
|
-
|
|
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
|
-
|
|
111
|
+
This anchor must be visible in the final UI.
|
|
192
112
|
|
|
193
113
|
---
|
|
194
114
|
|
|
195
|
-
##
|
|
115
|
+
## 4. Aesthetic Execution Rules (Non-Negotiable)
|
|
196
116
|
|
|
197
|
-
###
|
|
117
|
+
### Typography
|
|
198
118
|
|
|
199
|
-
|
|
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
|
-
|
|
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
|
-
|
|
128
|
+
* Commit to a **dominant color story**
|
|
129
|
+
* Use CSS variables exclusively
|
|
130
|
+
* Prefer:
|
|
216
131
|
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
132
|
+
* One dominant tone
|
|
133
|
+
* One accent
|
|
134
|
+
* One neutral system
|
|
135
|
+
* Avoid evenly-balanced palettes
|
|
221
136
|
|
|
222
|
-
|
|
137
|
+
### Spatial Composition
|
|
223
138
|
|
|
224
|
-
|
|
139
|
+
* Break the grid intentionally
|
|
140
|
+
* Use:
|
|
225
141
|
|
|
226
|
-
|
|
142
|
+
* Asymmetry
|
|
143
|
+
* Overlap
|
|
144
|
+
* Negative space OR controlled density
|
|
145
|
+
* White space is a design element, not absence
|
|
227
146
|
|
|
228
|
-
###
|
|
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
|
-
|
|
151
|
+
* Purposeful
|
|
152
|
+
* Sparse
|
|
153
|
+
* High-impact
|
|
154
|
+
* Prefer:
|
|
239
155
|
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
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
|
-
###
|
|
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
|
-
|
|
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
|
-
##
|
|
172
|
+
## 5. Implementation Standards
|
|
264
173
|
|
|
265
|
-
###
|
|
174
|
+
### Code Requirements
|
|
266
175
|
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
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
|
-
###
|
|
182
|
+
### Framework Guidance
|
|
276
183
|
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
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
|
-
|
|
188
|
+
* CSS-first
|
|
189
|
+
* Framer Motion only when justified
|
|
285
190
|
|
|
286
|
-
|
|
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
|
-
|
|
193
|
+
* Maximalist design → complex code (animations, layers)
|
|
194
|
+
* Minimalist design → extremely precise spacing & type
|
|
295
195
|
|
|
296
|
-
|
|
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
|
-
##
|
|
200
|
+
## 6. Required Output Structure
|
|
323
201
|
|
|
324
|
-
|
|
202
|
+
When generating frontend work:
|
|
325
203
|
|
|
326
|
-
|
|
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
|
-
|
|
206
|
+
* Aesthetic name
|
|
207
|
+
* DFII score
|
|
208
|
+
* Key inspiration (conceptual, not visual plagiarism)
|
|
334
209
|
|
|
335
|
-
|
|
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
|
-
|
|
212
|
+
* Fonts (with rationale)
|
|
213
|
+
* Color variables
|
|
214
|
+
* Spacing rhythm
|
|
215
|
+
* Motion philosophy
|
|
344
216
|
|
|
345
|
-
|
|
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
|
-
|
|
222
|
+
### 4. Differentiation Callout
|
|
354
223
|
|
|
355
|
-
|
|
356
|
-
For EVERY design task:
|
|
224
|
+
Explicitly state:
|
|
357
225
|
|
|
358
|
-
|
|
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
|
-
|
|
363
|
-
└── What content exists?
|
|
364
|
-
└── What's the hierarchy?
|
|
228
|
+
---
|
|
365
229
|
|
|
366
|
-
|
|
367
|
-
└── What's appropriate for context?
|
|
368
|
-
└── If unclear → ASK (don't default!)
|
|
230
|
+
## 7. Anti-Patterns (Immediate Failure)
|
|
369
231
|
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
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
|
-
|
|
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
|
-
##
|
|
383
|
-
|
|
384
|
-
For deeper guidance on specific areas:
|
|
243
|
+
## 8. Integration With Other Skills
|
|
385
244
|
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
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
|
-
##
|
|
253
|
+
## 9. Operator Checklist
|
|
397
254
|
|
|
398
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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,
|
|
4
|
-
|
|
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
|
-
|
|
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.
|