ccg-workflow 1.8.2 → 2.0.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/dist/cli.mjs +1 -1
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +1 -1
- package/dist/shared/{ccg-workflow.B1RHp04H.mjs → ccg-workflow.iK6lgCG3.mjs} +204 -6
- package/package.json +1 -1
- package/templates/commands/agents/team-architect.md +97 -0
- package/templates/commands/agents/team-qa.md +121 -0
- package/templates/commands/agents/team-reviewer.md +112 -0
- package/templates/output-styles/abyss-command.md +56 -0
- package/templates/output-styles/abyss-concise.md +89 -0
- package/templates/output-styles/abyss-ritual.md +70 -0
- package/templates/rules/ccg-skill-routing.md +83 -0
- package/templates/skills/domains/ai/SKILL.md +34 -0
- package/templates/skills/domains/ai/agent-dev.md +242 -0
- package/templates/skills/domains/ai/llm-security.md +288 -0
- package/templates/skills/domains/ai/prompt-and-eval.md +279 -0
- package/templates/skills/domains/ai/rag-system.md +542 -0
- package/templates/skills/domains/architecture/SKILL.md +42 -0
- package/templates/skills/domains/architecture/api-design.md +225 -0
- package/templates/skills/domains/architecture/caching.md +299 -0
- package/templates/skills/domains/architecture/cloud-native.md +285 -0
- package/templates/skills/domains/architecture/message-queue.md +329 -0
- package/templates/skills/domains/architecture/security-arch.md +297 -0
- package/templates/skills/domains/data-engineering/SKILL.md +207 -0
- package/templates/skills/domains/development/SKILL.md +46 -0
- package/templates/skills/domains/development/cpp.md +246 -0
- package/templates/skills/domains/development/go.md +323 -0
- package/templates/skills/domains/development/java.md +277 -0
- package/templates/skills/domains/development/python.md +288 -0
- package/templates/skills/domains/development/rust.md +313 -0
- package/templates/skills/domains/development/shell.md +313 -0
- package/templates/skills/domains/development/typescript.md +277 -0
- package/templates/skills/domains/devops/SKILL.md +39 -0
- package/templates/skills/domains/devops/cost-optimization.md +272 -0
- package/templates/skills/domains/devops/database.md +217 -0
- package/templates/skills/domains/devops/devsecops.md +198 -0
- package/templates/skills/domains/devops/git-workflow.md +181 -0
- package/templates/skills/domains/devops/observability.md +280 -0
- package/templates/skills/domains/devops/performance.md +336 -0
- package/templates/skills/domains/devops/testing.md +283 -0
- package/templates/skills/domains/frontend-design/SKILL.md +242 -0
- package/templates/skills/domains/frontend-design/agents/openai.yaml +4 -0
- package/templates/skills/domains/frontend-design/claymorphism/SKILL.md +119 -0
- package/templates/skills/domains/frontend-design/claymorphism/references/tokens.css +52 -0
- package/templates/skills/domains/frontend-design/component-patterns.md +202 -0
- package/templates/skills/domains/frontend-design/engineering.md +287 -0
- package/templates/skills/domains/frontend-design/glassmorphism/SKILL.md +140 -0
- package/templates/skills/domains/frontend-design/glassmorphism/references/tokens.css +32 -0
- package/templates/skills/domains/frontend-design/liquid-glass/SKILL.md +137 -0
- package/templates/skills/domains/frontend-design/liquid-glass/references/tokens.css +81 -0
- package/templates/skills/domains/frontend-design/neubrutalism/SKILL.md +143 -0
- package/templates/skills/domains/frontend-design/neubrutalism/references/tokens.css +44 -0
- package/templates/skills/domains/frontend-design/reference/color-and-contrast.md +132 -0
- package/templates/skills/domains/frontend-design/reference/interaction-design.md +195 -0
- package/templates/skills/domains/frontend-design/reference/motion-design.md +99 -0
- package/templates/skills/domains/frontend-design/reference/responsive-design.md +114 -0
- package/templates/skills/domains/frontend-design/reference/spatial-design.md +100 -0
- package/templates/skills/domains/frontend-design/reference/typography.md +133 -0
- package/templates/skills/domains/frontend-design/reference/ux-writing.md +107 -0
- package/templates/skills/domains/frontend-design/state-management.md +680 -0
- package/templates/skills/domains/frontend-design/ui-aesthetics.md +110 -0
- package/templates/skills/domains/frontend-design/ux-principles.md +156 -0
- package/templates/skills/domains/infrastructure/SKILL.md +200 -0
- package/templates/skills/domains/mobile/SKILL.md +224 -0
- package/templates/skills/domains/orchestration/SKILL.md +29 -0
- package/templates/skills/domains/orchestration/multi-agent.md +263 -0
- package/templates/skills/domains/security/SKILL.md +72 -0
- package/templates/skills/domains/security/blue-team.md +436 -0
- package/templates/skills/domains/security/code-audit.md +265 -0
- package/templates/skills/domains/security/pentest.md +226 -0
- package/templates/skills/domains/security/red-team.md +374 -0
- package/templates/skills/domains/security/threat-intel.md +372 -0
- package/templates/skills/domains/security/vuln-research.md +369 -0
- package/templates/skills/impeccable/adapt/SKILL.md +199 -0
- package/templates/skills/impeccable/animate/SKILL.md +174 -0
- package/templates/skills/impeccable/arrange/SKILL.md +124 -0
- package/templates/skills/impeccable/audit/SKILL.md +147 -0
- package/templates/skills/impeccable/bolder/SKILL.md +116 -0
- package/templates/skills/impeccable/clarify/SKILL.md +183 -0
- package/templates/skills/impeccable/colorize/SKILL.md +142 -0
- package/templates/skills/impeccable/critique/SKILL.md +201 -0
- package/templates/skills/impeccable/critique/reference/cognitive-load.md +106 -0
- package/templates/skills/impeccable/critique/reference/heuristics-scoring.md +234 -0
- package/templates/skills/impeccable/critique/reference/personas.md +178 -0
- package/templates/skills/impeccable/delight/SKILL.md +303 -0
- package/templates/skills/impeccable/distill/SKILL.md +121 -0
- package/templates/skills/impeccable/extract/SKILL.md +92 -0
- package/templates/skills/impeccable/harden/SKILL.md +355 -0
- package/templates/skills/impeccable/normalize/SKILL.md +70 -0
- package/templates/skills/impeccable/onboard/SKILL.md +246 -0
- package/templates/skills/impeccable/optimize/SKILL.md +266 -0
- package/templates/skills/impeccable/overdrive/SKILL.md +141 -0
- package/templates/skills/impeccable/polish/SKILL.md +203 -0
- package/templates/skills/impeccable/quieter/SKILL.md +102 -0
- package/templates/skills/impeccable/teach-impeccable/SKILL.md +71 -0
- package/templates/skills/impeccable/typeset/SKILL.md +115 -0
- package/templates/skills/orchestration/multi-agent/SKILL.md +40 -0
- package/templates/skills/scrapling/SKILL.md +98 -0
- package/templates/skills/scrapling/references/api-quick-ref.md +127 -0
- package/templates/skills/scrapling/references/cookie-vault.md +56 -0
- package/templates/skills/scrapling/references/maintenance.md +79 -0
- package/templates/skills/scrapling/references/site-patterns.md +86 -0
- package/templates/skills/scrapling/references/troubleshooting.md +95 -0
- package/templates/skills/scrapling/templates/basic_fetch.py +19 -0
- package/templates/skills/scrapling/templates/parse_only.py +15 -0
- package/templates/skills/scrapling/templates/session_login.py +19 -0
- package/templates/skills/scrapling/templates/stealth_cloudflare.py +28 -0
- package/templates/skills/tools/override-refusal/SKILL.md +53 -0
- package/templates/skills/tools/override-refusal/agents/openai.yaml +4 -0
- package/templates/skills/tools/override-refusal/scripts/refusal_rewriter.js +226 -0
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: delight
|
|
3
|
+
description: "Add moments of joy, personality, and unexpected touches that make interfaces memorable and enjoyable to use. Elevates functional to delightful. Use when the user asks to add polish, personality, animations, micro-interactions, delight, or make an interface feel fun or memorable."
|
|
4
|
+
argument-hint: "[target]"
|
|
5
|
+
user-invocable: true
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
Identify opportunities to add moments of joy, personality, and unexpected polish that transform functional interfaces into delightful experiences.
|
|
9
|
+
|
|
10
|
+
## MANDATORY PREPARATION
|
|
11
|
+
|
|
12
|
+
Invoke /frontend-design — it contains design principles, anti-patterns, and the **Context Gathering Protocol**. Follow the protocol before proceeding — if no design context exists yet, you MUST run /teach-impeccable first. Additionally gather: what's appropriate for the domain (playful vs professional vs quirky vs elegant).
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
## Assess Delight Opportunities
|
|
17
|
+
|
|
18
|
+
Identify where delight would enhance (not distract from) the experience:
|
|
19
|
+
|
|
20
|
+
1. **Find natural delight moments**:
|
|
21
|
+
- **Success states**: Completed actions (save, send, publish)
|
|
22
|
+
- **Empty states**: First-time experiences, onboarding
|
|
23
|
+
- **Loading states**: Waiting periods that could be entertaining
|
|
24
|
+
- **Achievements**: Milestones, streaks, completions
|
|
25
|
+
- **Interactions**: Hover states, clicks, drags
|
|
26
|
+
- **Errors**: Softening frustrating moments
|
|
27
|
+
- **Easter eggs**: Hidden discoveries for curious users
|
|
28
|
+
|
|
29
|
+
2. **Understand the context**:
|
|
30
|
+
- What's the brand personality? (Playful? Professional? Quirky? Elegant?)
|
|
31
|
+
- Who's the audience? (Tech-savvy? Creative? Corporate?)
|
|
32
|
+
- What's the emotional context? (Accomplishment? Exploration? Frustration?)
|
|
33
|
+
- What's appropriate? (Banking app ≠ gaming app)
|
|
34
|
+
|
|
35
|
+
3. **Define delight strategy**:
|
|
36
|
+
- **Subtle sophistication**: Refined micro-interactions (luxury brands)
|
|
37
|
+
- **Playful personality**: Whimsical illustrations and copy (consumer apps)
|
|
38
|
+
- **Helpful surprises**: Anticipating needs before users ask (productivity tools)
|
|
39
|
+
- **Sensory richness**: Satisfying sounds, smooth animations (creative tools)
|
|
40
|
+
|
|
41
|
+
If any of these are unclear from the codebase, Ask the user using AskUserQuestion.
|
|
42
|
+
|
|
43
|
+
**CRITICAL**: Delight should enhance usability, never obscure it. If users notice the delight more than accomplishing their goal, you've gone too far.
|
|
44
|
+
|
|
45
|
+
## Delight Principles
|
|
46
|
+
|
|
47
|
+
Follow these guidelines:
|
|
48
|
+
|
|
49
|
+
### Delight Amplifies, Never Blocks
|
|
50
|
+
- Delight moments should be quick (< 1 second)
|
|
51
|
+
- Never delay core functionality for delight
|
|
52
|
+
- Make delight skippable or subtle
|
|
53
|
+
- Respect user's time and task focus
|
|
54
|
+
|
|
55
|
+
### Surprise and Discovery
|
|
56
|
+
- Hide delightful details for users to discover
|
|
57
|
+
- Reward exploration and curiosity
|
|
58
|
+
- Don't announce every delight moment
|
|
59
|
+
- Let users share discoveries with others
|
|
60
|
+
|
|
61
|
+
### Appropriate to Context
|
|
62
|
+
- Match delight to emotional moment (celebrate success, empathize with errors)
|
|
63
|
+
- Respect the user's state (don't be playful during critical errors)
|
|
64
|
+
- Match brand personality and audience expectations
|
|
65
|
+
- Cultural sensitivity (what's delightful varies by culture)
|
|
66
|
+
|
|
67
|
+
### Compound Over Time
|
|
68
|
+
- Delight should remain fresh with repeated use
|
|
69
|
+
- Vary responses (not same animation every time)
|
|
70
|
+
- Reveal deeper layers with continued use
|
|
71
|
+
- Build anticipation through patterns
|
|
72
|
+
|
|
73
|
+
## Delight Techniques
|
|
74
|
+
|
|
75
|
+
Add personality and joy through these methods:
|
|
76
|
+
|
|
77
|
+
### Micro-interactions & Animation
|
|
78
|
+
|
|
79
|
+
**Button delight**:
|
|
80
|
+
```css
|
|
81
|
+
/* Satisfying button press */
|
|
82
|
+
.button {
|
|
83
|
+
transition: transform 0.1s, box-shadow 0.1s;
|
|
84
|
+
}
|
|
85
|
+
.button:active {
|
|
86
|
+
transform: translateY(2px);
|
|
87
|
+
box-shadow: 0 2px 4px rgba(0,0,0,0.2);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/* Ripple effect on click */
|
|
91
|
+
/* Smooth lift on hover */
|
|
92
|
+
.button:hover {
|
|
93
|
+
transform: translateY(-2px);
|
|
94
|
+
transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1); /* ease-out-quart */
|
|
95
|
+
}
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
**Loading delight**:
|
|
99
|
+
- Playful loading animations (not just spinners)
|
|
100
|
+
- Personality in loading messages (write product-specific ones, not generic AI filler)
|
|
101
|
+
- Progress indication with encouraging messages
|
|
102
|
+
- Skeleton screens with subtle animations
|
|
103
|
+
|
|
104
|
+
**Success animations**:
|
|
105
|
+
- Checkmark draw animation
|
|
106
|
+
- Confetti burst for major achievements
|
|
107
|
+
- Gentle scale + fade for confirmation
|
|
108
|
+
- Satisfying sound effects (subtle)
|
|
109
|
+
|
|
110
|
+
**Hover surprises**:
|
|
111
|
+
- Icons that animate on hover
|
|
112
|
+
- Color shifts or glow effects
|
|
113
|
+
- Tooltip reveals with personality
|
|
114
|
+
- Cursor changes (custom cursors for branded experiences)
|
|
115
|
+
|
|
116
|
+
### Personality in Copy
|
|
117
|
+
|
|
118
|
+
**Playful error messages**:
|
|
119
|
+
```
|
|
120
|
+
"Error 404"
|
|
121
|
+
"This page is playing hide and seek. (And winning)"
|
|
122
|
+
|
|
123
|
+
"Connection failed"
|
|
124
|
+
"Looks like the internet took a coffee break. Want to retry?"
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
**Encouraging empty states**:
|
|
128
|
+
```
|
|
129
|
+
"No projects"
|
|
130
|
+
"Your canvas awaits. Create something amazing."
|
|
131
|
+
|
|
132
|
+
"No messages"
|
|
133
|
+
"Inbox zero! You're crushing it today."
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
**Playful labels & tooltips**:
|
|
137
|
+
```
|
|
138
|
+
"Delete"
|
|
139
|
+
"Send to void" (for playful brand)
|
|
140
|
+
|
|
141
|
+
"Help"
|
|
142
|
+
"Rescue me" (tooltip)
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
**IMPORTANT**: Match copy personality to brand. Banks shouldn't be wacky, but they can be warm.
|
|
146
|
+
|
|
147
|
+
### Illustrations & Visual Personality
|
|
148
|
+
|
|
149
|
+
**Custom illustrations**:
|
|
150
|
+
- Empty state illustrations (not stock icons)
|
|
151
|
+
- Error state illustrations (friendly monsters, quirky characters)
|
|
152
|
+
- Loading state illustrations (animated characters)
|
|
153
|
+
- Success state illustrations (celebrations)
|
|
154
|
+
|
|
155
|
+
**Icon personality**:
|
|
156
|
+
- Custom icon set matching brand personality
|
|
157
|
+
- Animated icons (subtle motion on hover/click)
|
|
158
|
+
- Illustrative icons (more detailed than generic)
|
|
159
|
+
- Consistent style across all icons
|
|
160
|
+
|
|
161
|
+
**Background effects**:
|
|
162
|
+
- Subtle particle effects
|
|
163
|
+
- Gradient mesh backgrounds
|
|
164
|
+
- Geometric patterns
|
|
165
|
+
- Parallax depth
|
|
166
|
+
- Time-of-day themes (morning vs night)
|
|
167
|
+
|
|
168
|
+
### Satisfying Interactions
|
|
169
|
+
|
|
170
|
+
**Drag and drop delight**:
|
|
171
|
+
- Lift effect on drag (shadow, scale)
|
|
172
|
+
- Snap animation when dropped
|
|
173
|
+
- Satisfying placement sound
|
|
174
|
+
- Undo toast ("Dropped in wrong place? [Undo]")
|
|
175
|
+
|
|
176
|
+
**Toggle switches**:
|
|
177
|
+
- Smooth slide with spring physics
|
|
178
|
+
- Color transition
|
|
179
|
+
- Haptic feedback on mobile
|
|
180
|
+
- Optional sound effect
|
|
181
|
+
|
|
182
|
+
**Progress & achievements**:
|
|
183
|
+
- Streak counters with celebratory milestones
|
|
184
|
+
- Progress bars that "celebrate" at 100%
|
|
185
|
+
- Badge unlocks with animation
|
|
186
|
+
- Playful stats ("You're on fire! 5 days in a row")
|
|
187
|
+
|
|
188
|
+
**Form interactions**:
|
|
189
|
+
- Input fields that animate on focus
|
|
190
|
+
- Checkboxes with a satisfying scale pulse when checked
|
|
191
|
+
- Success state that celebrates valid input
|
|
192
|
+
- Auto-grow textareas
|
|
193
|
+
|
|
194
|
+
### Sound Design
|
|
195
|
+
|
|
196
|
+
**Subtle audio cues** (when appropriate):
|
|
197
|
+
- Notification sounds (distinctive but not annoying)
|
|
198
|
+
- Success sounds (satisfying "ding")
|
|
199
|
+
- Error sounds (empathetic, not harsh)
|
|
200
|
+
- Typing sounds for chat/messaging
|
|
201
|
+
- Ambient background audio (very subtle)
|
|
202
|
+
|
|
203
|
+
**IMPORTANT**:
|
|
204
|
+
- Respect system sound settings
|
|
205
|
+
- Provide mute option
|
|
206
|
+
- Keep volumes quiet (subtle cues, not alarms)
|
|
207
|
+
- Don't play on every interaction (sound fatigue is real)
|
|
208
|
+
|
|
209
|
+
### Easter Eggs & Hidden Delights
|
|
210
|
+
|
|
211
|
+
**Discovery rewards**:
|
|
212
|
+
- Konami code unlocks special theme
|
|
213
|
+
- Hidden keyboard shortcuts (Cmd+K for special features)
|
|
214
|
+
- Hover reveals on logos or illustrations
|
|
215
|
+
- Alt text jokes on images (for screen reader users too!)
|
|
216
|
+
- Console messages for developers ("Like what you see? We're hiring!")
|
|
217
|
+
|
|
218
|
+
**Seasonal touches**:
|
|
219
|
+
- Holiday themes (subtle, tasteful)
|
|
220
|
+
- Seasonal color shifts
|
|
221
|
+
- Weather-based variations
|
|
222
|
+
- Time-based changes (dark at night, light during day)
|
|
223
|
+
|
|
224
|
+
**Contextual personality**:
|
|
225
|
+
- Different messages based on time of day
|
|
226
|
+
- Responses to specific user actions
|
|
227
|
+
- Randomized variations (not same every time)
|
|
228
|
+
- Progressive reveals with continued use
|
|
229
|
+
|
|
230
|
+
### Loading & Waiting States
|
|
231
|
+
|
|
232
|
+
**Make waiting engaging**:
|
|
233
|
+
- Interesting loading messages that rotate
|
|
234
|
+
- Progress bars with personality
|
|
235
|
+
- Mini-games during long loads
|
|
236
|
+
- Fun facts or tips while waiting
|
|
237
|
+
- Countdown with encouraging messages
|
|
238
|
+
|
|
239
|
+
```
|
|
240
|
+
Loading messages — write ones specific to your product, not generic AI filler:
|
|
241
|
+
- "Crunching your latest numbers..."
|
|
242
|
+
- "Syncing with your team's changes..."
|
|
243
|
+
- "Preparing your dashboard..."
|
|
244
|
+
- "Checking for updates since yesterday..."
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
**WARNING**: Avoid cliched loading messages like "Herding pixels", "Teaching robots to dance", "Consulting the magic 8-ball", "Counting backwards from infinity". These are AI-slop copy — instantly recognizable as machine-generated. Write messages that are specific to what your product actually does.
|
|
248
|
+
|
|
249
|
+
### Celebration Moments
|
|
250
|
+
|
|
251
|
+
**Success celebrations**:
|
|
252
|
+
- Confetti for major milestones
|
|
253
|
+
- Animated checkmarks for completions
|
|
254
|
+
- Progress bar celebrations at 100%
|
|
255
|
+
- "Achievement unlocked" style notifications
|
|
256
|
+
- Personalized messages ("You published your 10th article!")
|
|
257
|
+
|
|
258
|
+
**Milestone recognition**:
|
|
259
|
+
- First-time actions get special treatment
|
|
260
|
+
- Streak tracking and celebration
|
|
261
|
+
- Progress toward goals
|
|
262
|
+
- Anniversary celebrations
|
|
263
|
+
|
|
264
|
+
## Implementation Patterns
|
|
265
|
+
|
|
266
|
+
**Animation libraries**:
|
|
267
|
+
- Framer Motion (React)
|
|
268
|
+
- GSAP (universal)
|
|
269
|
+
- Lottie (After Effects animations)
|
|
270
|
+
- Canvas confetti (party effects)
|
|
271
|
+
|
|
272
|
+
**Sound libraries**:
|
|
273
|
+
- Howler.js (audio management)
|
|
274
|
+
- Use-sound (React hook)
|
|
275
|
+
|
|
276
|
+
**Physics libraries**:
|
|
277
|
+
- React Spring (spring physics)
|
|
278
|
+
- Popmotion (animation primitives)
|
|
279
|
+
|
|
280
|
+
**IMPORTANT**: File size matters. Compress images, optimize animations, lazy load delight features.
|
|
281
|
+
|
|
282
|
+
**NEVER**:
|
|
283
|
+
- Delay core functionality for delight
|
|
284
|
+
- Force users through delightful moments (make skippable)
|
|
285
|
+
- Use delight to hide poor UX
|
|
286
|
+
- Overdo it (less is more)
|
|
287
|
+
- Ignore accessibility (animate responsibly, provide alternatives)
|
|
288
|
+
- Make every interaction delightful (special moments should be special)
|
|
289
|
+
- Sacrifice performance for delight
|
|
290
|
+
- Be inappropriate for context (read the room)
|
|
291
|
+
|
|
292
|
+
## Verify Delight Quality
|
|
293
|
+
|
|
294
|
+
Test that delight actually delights:
|
|
295
|
+
|
|
296
|
+
- **User reactions**: Do users smile? Share screenshots?
|
|
297
|
+
- **Doesn't annoy**: Still pleasant after 100th time?
|
|
298
|
+
- **Doesn't block**: Can users opt out or skip?
|
|
299
|
+
- **Performant**: No jank, no slowdown
|
|
300
|
+
- **Appropriate**: Matches brand and context
|
|
301
|
+
- **Accessible**: Works with reduced motion, screen readers
|
|
302
|
+
|
|
303
|
+
Remember: Delight is the difference between a tool and an experience. Add personality, surprise users positively, and create moments worth sharing. But always respect usability - delight should enhance, never obstruct.
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: distill
|
|
3
|
+
description: "Strip designs to their essence by removing unnecessary complexity. Great design is simple, powerful, and clean. Use when the user asks to simplify, declutter, reduce noise, remove elements, or make a UI cleaner and more focused."
|
|
4
|
+
argument-hint: "[target]"
|
|
5
|
+
user-invocable: true
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
Remove unnecessary complexity from designs, revealing the essential elements and creating clarity through ruthless simplification.
|
|
9
|
+
|
|
10
|
+
## MANDATORY PREPARATION
|
|
11
|
+
|
|
12
|
+
Invoke /frontend-design — it contains design principles, anti-patterns, and the **Context Gathering Protocol**. Follow the protocol before proceeding — if no design context exists yet, you MUST run /teach-impeccable first.
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
## Assess Current State
|
|
17
|
+
|
|
18
|
+
Analyze what makes the design feel complex or cluttered:
|
|
19
|
+
|
|
20
|
+
1. **Identify complexity sources**:
|
|
21
|
+
- **Too many elements**: Competing buttons, redundant information, visual clutter
|
|
22
|
+
- **Excessive variation**: Too many colors, fonts, sizes, styles without purpose
|
|
23
|
+
- **Information overload**: Everything visible at once, no progressive disclosure
|
|
24
|
+
- **Visual noise**: Unnecessary borders, shadows, backgrounds, decorations
|
|
25
|
+
- **Confusing hierarchy**: Unclear what matters most
|
|
26
|
+
- **Feature creep**: Too many options, actions, or paths forward
|
|
27
|
+
|
|
28
|
+
2. **Find the essence**:
|
|
29
|
+
- What's the primary user goal? (There should be ONE)
|
|
30
|
+
- What's actually necessary vs nice-to-have?
|
|
31
|
+
- What can be removed, hidden, or combined?
|
|
32
|
+
- What's the 20% that delivers 80% of value?
|
|
33
|
+
|
|
34
|
+
If any of these are unclear from the codebase, Ask the user using AskUserQuestion.
|
|
35
|
+
|
|
36
|
+
**CRITICAL**: Simplicity is not about removing features - it's about removing obstacles between users and their goals. Every element should justify its existence.
|
|
37
|
+
|
|
38
|
+
## Plan Simplification
|
|
39
|
+
|
|
40
|
+
Create a ruthless editing strategy:
|
|
41
|
+
|
|
42
|
+
- **Core purpose**: What's the ONE thing this should accomplish?
|
|
43
|
+
- **Essential elements**: What's truly necessary to achieve that purpose?
|
|
44
|
+
- **Progressive disclosure**: What can be hidden until needed?
|
|
45
|
+
- **Consolidation opportunities**: What can be combined or integrated?
|
|
46
|
+
|
|
47
|
+
**IMPORTANT**: Simplification is hard. It requires saying no to good ideas to make room for great execution. Be ruthless.
|
|
48
|
+
|
|
49
|
+
## Simplify the Design
|
|
50
|
+
|
|
51
|
+
Systematically remove complexity across these dimensions:
|
|
52
|
+
|
|
53
|
+
### Information Architecture
|
|
54
|
+
- **Reduce scope**: Remove secondary actions, optional features, redundant information
|
|
55
|
+
- **Progressive disclosure**: Hide complexity behind clear entry points (accordions, modals, step-through flows)
|
|
56
|
+
- **Combine related actions**: Merge similar buttons, consolidate forms, group related content
|
|
57
|
+
- **Clear hierarchy**: ONE primary action, few secondary actions, everything else tertiary or hidden
|
|
58
|
+
- **Remove redundancy**: If it's said elsewhere, don't repeat it here
|
|
59
|
+
|
|
60
|
+
### Visual Simplification
|
|
61
|
+
- **Reduce color palette**: Use 1-2 colors plus neutrals, not 5-7 colors
|
|
62
|
+
- **Limit typography**: One font family, 3-4 sizes maximum, 2-3 weights
|
|
63
|
+
- **Remove decorations**: Eliminate borders, shadows, backgrounds that don't serve hierarchy or function
|
|
64
|
+
- **Flatten structure**: Reduce nesting, remove unnecessary containers—never nest cards inside cards
|
|
65
|
+
- **Remove unnecessary cards**: Cards aren't needed for basic layout; use spacing and alignment instead
|
|
66
|
+
- **Consistent spacing**: Use one spacing scale, remove arbitrary gaps
|
|
67
|
+
|
|
68
|
+
### Layout Simplification
|
|
69
|
+
- **Linear flow**: Replace complex grids with simple vertical flow where possible
|
|
70
|
+
- **Remove sidebars**: Move secondary content inline or hide it
|
|
71
|
+
- **Full-width**: Use available space generously instead of complex multi-column layouts
|
|
72
|
+
- **Consistent alignment**: Pick left or center, stick with it
|
|
73
|
+
- **Generous white space**: Let content breathe, don't pack everything tight
|
|
74
|
+
|
|
75
|
+
### Interaction Simplification
|
|
76
|
+
- **Reduce choices**: Fewer buttons, fewer options, clearer path forward (paradox of choice is real)
|
|
77
|
+
- **Smart defaults**: Make common choices automatic, only ask when necessary
|
|
78
|
+
- **Inline actions**: Replace modal flows with inline editing where possible
|
|
79
|
+
- **Remove steps**: Can signup be one step instead of three? Can checkout be simplified?
|
|
80
|
+
- **Clear CTAs**: ONE obvious next step, not five competing actions
|
|
81
|
+
|
|
82
|
+
### Content Simplification
|
|
83
|
+
- **Shorter copy**: Cut every sentence in half, then do it again
|
|
84
|
+
- **Active voice**: "Save changes" not "Changes will be saved"
|
|
85
|
+
- **Remove jargon**: Plain language always wins
|
|
86
|
+
- **Scannable structure**: Short paragraphs, bullet points, clear headings
|
|
87
|
+
- **Essential information only**: Remove marketing fluff, legalese, hedging
|
|
88
|
+
- **Remove redundant copy**: No headers restating intros, no repeated explanations, say it once
|
|
89
|
+
|
|
90
|
+
### Code Simplification
|
|
91
|
+
- **Remove unused code**: Dead CSS, unused components, orphaned files
|
|
92
|
+
- **Flatten component trees**: Reduce nesting depth
|
|
93
|
+
- **Consolidate styles**: Merge similar styles, use utilities consistently
|
|
94
|
+
- **Reduce variants**: Does that component need 12 variations, or can 3 cover 90% of cases?
|
|
95
|
+
|
|
96
|
+
**NEVER**:
|
|
97
|
+
- Remove necessary functionality (simplicity ≠ feature-less)
|
|
98
|
+
- Sacrifice accessibility for simplicity (clear labels and ARIA still required)
|
|
99
|
+
- Make things so simple they're unclear (mystery ≠ minimalism)
|
|
100
|
+
- Remove information users need to make decisions
|
|
101
|
+
- Eliminate hierarchy completely (some things should stand out)
|
|
102
|
+
- Oversimplify complex domains (match complexity to actual task complexity)
|
|
103
|
+
|
|
104
|
+
## Verify Simplification
|
|
105
|
+
|
|
106
|
+
Ensure simplification improves usability:
|
|
107
|
+
|
|
108
|
+
- **Faster task completion**: Can users accomplish goals more quickly?
|
|
109
|
+
- **Reduced cognitive load**: Is it easier to understand what to do?
|
|
110
|
+
- **Still complete**: Are all necessary features still accessible?
|
|
111
|
+
- **Clearer hierarchy**: Is it obvious what matters most?
|
|
112
|
+
- **Better performance**: Does simpler design load faster?
|
|
113
|
+
|
|
114
|
+
## Document Removed Complexity
|
|
115
|
+
|
|
116
|
+
If you removed features or options:
|
|
117
|
+
- Document why they were removed
|
|
118
|
+
- Consider if they need alternative access points
|
|
119
|
+
- Note any user feedback to monitor
|
|
120
|
+
|
|
121
|
+
Remember: You have great taste and judgment. Simplification is an act of confidence - knowing what to keep and courage to remove the rest. As Antoine de Saint-Exupéry said: "Perfection is achieved not when there is nothing more to add, but when there is nothing left to take away."
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: extract
|
|
3
|
+
description: "Extract and consolidate reusable components, design tokens, and patterns into your design system. Identifies opportunities for systematic reuse and enriches your component library. Use when the user asks to create components, refactor repeated UI patterns, build a design system, or extract tokens."
|
|
4
|
+
argument-hint: "[target]"
|
|
5
|
+
user-invocable: true
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
Identify reusable patterns, components, and design tokens, then extract and consolidate them into the design system for systematic reuse.
|
|
9
|
+
|
|
10
|
+
## Discover
|
|
11
|
+
|
|
12
|
+
Analyze the target area to identify extraction opportunities:
|
|
13
|
+
|
|
14
|
+
1. **Find the design system**: Locate your design system, component library, or shared UI directory (grep for "design system", "ui", "components", etc.). Understand its structure:
|
|
15
|
+
- Component organization and naming conventions
|
|
16
|
+
- Design token structure (if any)
|
|
17
|
+
- Documentation patterns
|
|
18
|
+
- Import/export conventions
|
|
19
|
+
|
|
20
|
+
**CRITICAL**: If no design system exists, ask before creating one. Understand the preferred location and structure first.
|
|
21
|
+
|
|
22
|
+
2. **Identify patterns**: Look for:
|
|
23
|
+
- **Repeated components**: Similar UI patterns used multiple times (buttons, cards, inputs, etc.)
|
|
24
|
+
- **Hard-coded values**: Colors, spacing, typography, shadows that should be tokens
|
|
25
|
+
- **Inconsistent variations**: Multiple implementations of the same concept (3 different button styles)
|
|
26
|
+
- **Reusable patterns**: Layout patterns, composition patterns, interaction patterns worth systematizing
|
|
27
|
+
|
|
28
|
+
3. **Assess value**: Not everything should be extracted. Consider:
|
|
29
|
+
- Is this used 3+ times, or likely to be reused?
|
|
30
|
+
- Would systematizing this improve consistency?
|
|
31
|
+
- Is this a general pattern or context-specific?
|
|
32
|
+
- What's the maintenance cost vs benefit?
|
|
33
|
+
|
|
34
|
+
## Plan Extraction
|
|
35
|
+
|
|
36
|
+
Create a systematic extraction plan:
|
|
37
|
+
|
|
38
|
+
- **Components to extract**: Which UI elements become reusable components?
|
|
39
|
+
- **Tokens to create**: Which hard-coded values become design tokens?
|
|
40
|
+
- **Variants to support**: What variations does each component need?
|
|
41
|
+
- **Naming conventions**: Component names, token names, prop names that match existing patterns
|
|
42
|
+
- **Migration path**: How to refactor existing uses to consume the new shared versions
|
|
43
|
+
|
|
44
|
+
**IMPORTANT**: Design systems grow incrementally. Extract what's clearly reusable now, not everything that might someday be reusable.
|
|
45
|
+
|
|
46
|
+
## Extract & Enrich
|
|
47
|
+
|
|
48
|
+
Build improved, reusable versions:
|
|
49
|
+
|
|
50
|
+
- **Components**: Create well-designed components with:
|
|
51
|
+
- Clear props API with sensible defaults
|
|
52
|
+
- Proper variants for different use cases
|
|
53
|
+
- Accessibility built in (ARIA, keyboard navigation, focus management)
|
|
54
|
+
- Documentation and usage examples
|
|
55
|
+
|
|
56
|
+
- **Design tokens**: Create tokens with:
|
|
57
|
+
- Clear naming (primitive vs semantic)
|
|
58
|
+
- Proper hierarchy and organization
|
|
59
|
+
- Documentation of when to use each token
|
|
60
|
+
|
|
61
|
+
- **Patterns**: Document patterns with:
|
|
62
|
+
- When to use this pattern
|
|
63
|
+
- Code examples
|
|
64
|
+
- Variations and combinations
|
|
65
|
+
|
|
66
|
+
**NEVER**:
|
|
67
|
+
- Extract one-off, context-specific implementations without generalization
|
|
68
|
+
- Create components so generic they're useless
|
|
69
|
+
- Extract without considering existing design system conventions
|
|
70
|
+
- Skip proper TypeScript types or prop documentation
|
|
71
|
+
- Create tokens for every single value (tokens should have semantic meaning)
|
|
72
|
+
|
|
73
|
+
## Migrate
|
|
74
|
+
|
|
75
|
+
Replace existing uses with the new shared versions:
|
|
76
|
+
|
|
77
|
+
- **Find all instances**: Search for the patterns you've extracted
|
|
78
|
+
- **Replace systematically**: Update each use to consume the shared version
|
|
79
|
+
- **Test thoroughly**: Ensure visual and functional parity
|
|
80
|
+
- **Delete dead code**: Remove the old implementations
|
|
81
|
+
|
|
82
|
+
## Document
|
|
83
|
+
|
|
84
|
+
Update design system documentation:
|
|
85
|
+
|
|
86
|
+
- Add new components to the component library
|
|
87
|
+
- Document token usage and values
|
|
88
|
+
- Add examples and guidelines
|
|
89
|
+
- Update any Storybook or component catalog
|
|
90
|
+
|
|
91
|
+
Remember: A good design system is a living system. Extract patterns as they emerge, enrich them thoughtfully, and maintain them consistently.
|
|
92
|
+
|