@theproductguy/create-mission-control 1.0.3 → 1.0.5
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 +63 -7
- package/package.json +2 -2
- package/src/template/.env.example +28 -0
- package/src/template/.github/ISSUE_TEMPLATE/bug_report.md +40 -0
- package/src/template/.github/ISSUE_TEMPLATE/feature_request.md +30 -0
- package/src/template/.github/PULL_REQUEST_TEMPLATE.md +33 -0
- package/src/template/.github/workflows/ci.yml +83 -0
- package/src/template/.husky/commit-msg +1 -0
- package/src/template/.husky/pre-commit +1 -0
- package/src/template/.prettierrc +11 -0
- package/src/template/README.md +78 -0
- package/src/template/agent-os/commands/create-constitution/create-constitution.md +89 -0
- package/src/template/agent-os/commands/export-product/export-product.md +24 -0
- package/src/template/agent-os/commands/initialize-design/initialize-design.md +10 -1
- package/src/template/agent-os/commands/research-tech/research-tech.md +93 -0
- package/src/template/agent-os/commands/shape-spec/shape-spec.md +2 -1
- package/src/template/agent-os/docs/context7.md +20 -0
- package/src/template/commitlint.config.js +25 -0
- package/src/template/control-center/backend/index.js +67 -4
- package/src/template/control-center/frontend/src/App.tsx +193 -64
- package/src/template/design-system/{.claude → .gemini}/commands/design-os/design-shell.md +95 -69
- package/src/template/design-system/.gemini/commands/design-os/design-tokens.md +211 -0
- package/src/template/design-system/.gemini/commands/impeccable/WORKFLOW.md +163 -0
- package/src/template/design-system/.gemini/commands/impeccable/adapt.md +189 -0
- package/src/template/design-system/.gemini/commands/impeccable/animate.md +184 -0
- package/src/template/design-system/.gemini/commands/impeccable/audit.md +123 -0
- package/src/template/design-system/.gemini/commands/impeccable/bolder.md +126 -0
- package/src/template/design-system/.gemini/commands/impeccable/clarify.md +173 -0
- package/src/template/design-system/.gemini/commands/impeccable/colorize.md +152 -0
- package/src/template/design-system/.gemini/commands/impeccable/critique.md +112 -0
- package/src/template/design-system/.gemini/commands/impeccable/delight.md +311 -0
- package/src/template/design-system/.gemini/commands/impeccable/extract.md +88 -0
- package/src/template/design-system/.gemini/commands/impeccable/harden.md +351 -0
- package/src/template/design-system/.gemini/commands/impeccable/normalize.md +61 -0
- package/src/template/design-system/.gemini/commands/impeccable/onboard.md +236 -0
- package/src/template/design-system/.gemini/commands/impeccable/optimize.md +262 -0
- package/src/template/design-system/.gemini/commands/impeccable/polish.md +196 -0
- package/src/template/design-system/.gemini/commands/impeccable/quieter.md +112 -0
- package/src/template/design-system/.gemini/commands/impeccable/simplify.md +131 -0
- package/src/template/design-system/.gemini/commands/impeccable/teach-impeccable.md +67 -0
- package/src/template/design-system/.gemini/hooks/ai-slop-guard.md +80 -0
- package/src/template/design-system/.gemini/hooks/on-design-complete.md +63 -0
- package/src/template/design-system/.gemini/skills/frontend-design/SKILL.md +126 -0
- package/src/template/design-system/.gemini/skills/frontend-design/reference/color-and-contrast.md +132 -0
- package/src/template/design-system/.gemini/skills/frontend-design/reference/interaction-design.md +123 -0
- package/src/template/design-system/.gemini/skills/frontend-design/reference/motion-design.md +99 -0
- package/src/template/design-system/.gemini/skills/frontend-design/reference/responsive-design.md +114 -0
- package/src/template/design-system/.gemini/skills/frontend-design/reference/spatial-design.md +100 -0
- package/src/template/design-system/.gemini/skills/frontend-design/reference/typography.md +131 -0
- package/src/template/design-system/.gemini/skills/frontend-design/reference/ux-writing.md +107 -0
- package/src/template/design-system/src/components/DesignPage.tsx +104 -0
- package/src/template/eslint.config.js +37 -0
- package/src/template/lint-staged.config.js +6 -0
- package/src/template/package-lock.json +10308 -0
- package/src/template/package.json +25 -2
- package/src/template/src/__tests__/example.test.ts +17 -0
- package/src/template/src/__tests__/setup.ts +14 -0
- package/src/template/vitest.config.ts +25 -0
- package/src/template/design-system/.claude/commands/design-os/design-tokens.md +0 -166
- package/src/template/design-system/.claude/skills/frontend-design/SKILL.md +0 -42
- /package/src/template/design-system/{.claude → .gemini}/commands/design-os/data-model.md +0 -0
- /package/src/template/design-system/{.claude → .gemini}/commands/design-os/design-screen.md +0 -0
- /package/src/template/design-system/{.claude → .gemini}/commands/design-os/export-product.md +0 -0
- /package/src/template/design-system/{.claude → .gemini}/commands/design-os/product-roadmap.md +0 -0
- /package/src/template/design-system/{.claude → .gemini}/commands/design-os/product-vision.md +0 -0
- /package/src/template/design-system/{.claude → .gemini}/commands/design-os/sample-data.md +0 -0
- /package/src/template/design-system/{.claude → .gemini}/commands/design-os/screenshot-design.md +0 -0
- /package/src/template/design-system/{.claude → .gemini}/commands/design-os/shape-section.md +0 -0
- /package/src/template/design-system/{claude.md → gemini.md} +0 -0
|
@@ -0,0 +1,351 @@
|
|
|
1
|
+
# COMMAND: Harden
|
|
2
|
+
**Description**: Improve interface resilience through better error handling, i18n support, text overflow handling, and edge case management. Makes interfaces robust and production-ready.
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
Strengthen interfaces against edge cases, errors, internationalization issues, and real-world usage scenarios that break idealized designs.
|
|
6
|
+
|
|
7
|
+
## Assess Hardening Needs
|
|
8
|
+
|
|
9
|
+
Identify weaknesses and edge cases:
|
|
10
|
+
|
|
11
|
+
1. **Test with extreme inputs**:
|
|
12
|
+
- Very long text (names, descriptions, titles)
|
|
13
|
+
- Very short text (empty, single character)
|
|
14
|
+
- Special characters (emoji, RTL text, accents)
|
|
15
|
+
- Large numbers (millions, billions)
|
|
16
|
+
- Many items (1000+ list items, 50+ options)
|
|
17
|
+
- No data (empty states)
|
|
18
|
+
|
|
19
|
+
2. **Test error scenarios**:
|
|
20
|
+
- Network failures (offline, slow, timeout)
|
|
21
|
+
- API errors (400, 401, 403, 404, 500)
|
|
22
|
+
- Validation errors
|
|
23
|
+
- Permission errors
|
|
24
|
+
- Rate limiting
|
|
25
|
+
- Concurrent operations
|
|
26
|
+
|
|
27
|
+
3. **Test internationalization**:
|
|
28
|
+
- Long translations (German is often 30% longer than English)
|
|
29
|
+
- RTL languages (Arabic, Hebrew)
|
|
30
|
+
- Character sets (Chinese, Japanese, Korean, emoji)
|
|
31
|
+
- Date/time formats
|
|
32
|
+
- Number formats (1,000 vs 1.000)
|
|
33
|
+
- Currency symbols
|
|
34
|
+
|
|
35
|
+
**CRITICAL**: Designs that only work with perfect data aren't production-ready. Harden against reality.
|
|
36
|
+
|
|
37
|
+
## Hardening Dimensions
|
|
38
|
+
|
|
39
|
+
Systematically improve resilience:
|
|
40
|
+
|
|
41
|
+
### Text Overflow & Wrapping
|
|
42
|
+
|
|
43
|
+
**Long text handling**:
|
|
44
|
+
```css
|
|
45
|
+
/* Single line with ellipsis */
|
|
46
|
+
.truncate {
|
|
47
|
+
overflow: hidden;
|
|
48
|
+
text-overflow: ellipsis;
|
|
49
|
+
white-space: nowrap;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/* Multi-line with clamp */
|
|
53
|
+
.line-clamp {
|
|
54
|
+
display: -webkit-box;
|
|
55
|
+
-webkit-line-clamp: 3;
|
|
56
|
+
-webkit-box-orient: vertical;
|
|
57
|
+
overflow: hidden;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/* Allow wrapping */
|
|
61
|
+
.wrap {
|
|
62
|
+
word-wrap: break-word;
|
|
63
|
+
overflow-wrap: break-word;
|
|
64
|
+
hyphens: auto;
|
|
65
|
+
}
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
**Flex/Grid overflow**:
|
|
69
|
+
```css
|
|
70
|
+
/* Prevent flex items from overflowing */
|
|
71
|
+
.flex-item {
|
|
72
|
+
min-width: 0; /* Allow shrinking below content size */
|
|
73
|
+
overflow: hidden;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/* Prevent grid items from overflowing */
|
|
77
|
+
.grid-item {
|
|
78
|
+
min-width: 0;
|
|
79
|
+
min-height: 0;
|
|
80
|
+
}
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
**Responsive text sizing**:
|
|
84
|
+
- Use `clamp()` for fluid typography
|
|
85
|
+
- Set minimum readable sizes (14px on mobile)
|
|
86
|
+
- Test text scaling (zoom to 200%)
|
|
87
|
+
- Ensure containers expand with text
|
|
88
|
+
|
|
89
|
+
### Internationalization (i18n)
|
|
90
|
+
|
|
91
|
+
**Text expansion**:
|
|
92
|
+
- Add 30-40% space budget for translations
|
|
93
|
+
- Use flexbox/grid that adapts to content
|
|
94
|
+
- Test with longest language (usually German)
|
|
95
|
+
- Avoid fixed widths on text containers
|
|
96
|
+
|
|
97
|
+
```jsx
|
|
98
|
+
// ❌ Bad: Assumes short English text
|
|
99
|
+
<button className="w-24">Submit</button>
|
|
100
|
+
|
|
101
|
+
// ✅ Good: Adapts to content
|
|
102
|
+
<button className="px-4 py-2">Submit</button>
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
**RTL (Right-to-Left) support**:
|
|
106
|
+
```css
|
|
107
|
+
/* Use logical properties */
|
|
108
|
+
margin-inline-start: 1rem; /* Not margin-left */
|
|
109
|
+
padding-inline: 1rem; /* Not padding-left/right */
|
|
110
|
+
border-inline-end: 1px solid; /* Not border-right */
|
|
111
|
+
|
|
112
|
+
/* Or use dir attribute */
|
|
113
|
+
[dir="rtl"] .arrow { transform: scaleX(-1); }
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
**Character set support**:
|
|
117
|
+
- Use UTF-8 encoding everywhere
|
|
118
|
+
- Test with Chinese/Japanese/Korean (CJK) characters
|
|
119
|
+
- Test with emoji (they can be 2-4 bytes)
|
|
120
|
+
- Handle different scripts (Latin, Cyrillic, Arabic, etc.)
|
|
121
|
+
|
|
122
|
+
**Date/Time formatting**:
|
|
123
|
+
```javascript
|
|
124
|
+
// ✅ Use Intl API for proper formatting
|
|
125
|
+
new Intl.DateTimeFormat('en-US').format(date); // 1/15/2024
|
|
126
|
+
new Intl.DateTimeFormat('de-DE').format(date); // 15.1.2024
|
|
127
|
+
|
|
128
|
+
new Intl.NumberFormat('en-US', {
|
|
129
|
+
style: 'currency',
|
|
130
|
+
currency: 'USD'
|
|
131
|
+
}).format(1234.56); // $1,234.56
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
**Pluralization**:
|
|
135
|
+
```javascript
|
|
136
|
+
// ❌ Bad: Assumes English pluralization
|
|
137
|
+
`${count} item${count !== 1 ? 's' : ''}`
|
|
138
|
+
|
|
139
|
+
// ✅ Good: Use proper i18n library
|
|
140
|
+
t('items', { count }) // Handles complex plural rules
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
### Error Handling
|
|
144
|
+
|
|
145
|
+
**Network errors**:
|
|
146
|
+
- Show clear error messages
|
|
147
|
+
- Provide retry button
|
|
148
|
+
- Explain what happened
|
|
149
|
+
- Offer offline mode (if applicable)
|
|
150
|
+
- Handle timeout scenarios
|
|
151
|
+
|
|
152
|
+
```jsx
|
|
153
|
+
// Error states with recovery
|
|
154
|
+
{error && (
|
|
155
|
+
<ErrorMessage>
|
|
156
|
+
<p>Failed to load data. {error.message}</p>
|
|
157
|
+
<button onClick={retry}>Try again</button>
|
|
158
|
+
</ErrorMessage>
|
|
159
|
+
)}
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
**Form validation errors**:
|
|
163
|
+
- Inline errors near fields
|
|
164
|
+
- Clear, specific messages
|
|
165
|
+
- Suggest corrections
|
|
166
|
+
- Don't block submission unnecessarily
|
|
167
|
+
- Preserve user input on error
|
|
168
|
+
|
|
169
|
+
**API errors**:
|
|
170
|
+
- Handle each status code appropriately
|
|
171
|
+
- 400: Show validation errors
|
|
172
|
+
- 401: Redirect to login
|
|
173
|
+
- 403: Show permission error
|
|
174
|
+
- 404: Show not found state
|
|
175
|
+
- 429: Show rate limit message
|
|
176
|
+
- 500: Show generic error, offer support
|
|
177
|
+
|
|
178
|
+
**Graceful degradation**:
|
|
179
|
+
- Core functionality works without JavaScript
|
|
180
|
+
- Images have alt text
|
|
181
|
+
- Progressive enhancement
|
|
182
|
+
- Fallbacks for unsupported features
|
|
183
|
+
|
|
184
|
+
### Edge Cases & Boundary Conditions
|
|
185
|
+
|
|
186
|
+
**Empty states**:
|
|
187
|
+
- No items in list
|
|
188
|
+
- No search results
|
|
189
|
+
- No notifications
|
|
190
|
+
- No data to display
|
|
191
|
+
- Provide clear next action
|
|
192
|
+
|
|
193
|
+
**Loading states**:
|
|
194
|
+
- Initial load
|
|
195
|
+
- Pagination load
|
|
196
|
+
- Refresh
|
|
197
|
+
- Show what's loading ("Loading your projects...")
|
|
198
|
+
- Time estimates for long operations
|
|
199
|
+
|
|
200
|
+
**Large datasets**:
|
|
201
|
+
- Pagination or virtual scrolling
|
|
202
|
+
- Search/filter capabilities
|
|
203
|
+
- Performance optimization
|
|
204
|
+
- Don't load all 10,000 items at once
|
|
205
|
+
|
|
206
|
+
**Concurrent operations**:
|
|
207
|
+
- Prevent double-submission (disable button while loading)
|
|
208
|
+
- Handle race conditions
|
|
209
|
+
- Optimistic updates with rollback
|
|
210
|
+
- Conflict resolution
|
|
211
|
+
|
|
212
|
+
**Permission states**:
|
|
213
|
+
- No permission to view
|
|
214
|
+
- No permission to edit
|
|
215
|
+
- Read-only mode
|
|
216
|
+
- Clear explanation of why
|
|
217
|
+
|
|
218
|
+
**Browser compatibility**:
|
|
219
|
+
- Polyfills for modern features
|
|
220
|
+
- Fallbacks for unsupported CSS
|
|
221
|
+
- Feature detection (not browser detection)
|
|
222
|
+
- Test in target browsers
|
|
223
|
+
|
|
224
|
+
### Input Validation & Sanitization
|
|
225
|
+
|
|
226
|
+
**Client-side validation**:
|
|
227
|
+
- Required fields
|
|
228
|
+
- Format validation (email, phone, URL)
|
|
229
|
+
- Length limits
|
|
230
|
+
- Pattern matching
|
|
231
|
+
- Custom validation rules
|
|
232
|
+
|
|
233
|
+
**Server-side validation** (always):
|
|
234
|
+
- Never trust client-side only
|
|
235
|
+
- Validate and sanitize all inputs
|
|
236
|
+
- Protect against injection attacks
|
|
237
|
+
- Rate limiting
|
|
238
|
+
|
|
239
|
+
**Constraint handling**:
|
|
240
|
+
```html
|
|
241
|
+
<!-- Set clear constraints -->
|
|
242
|
+
<input
|
|
243
|
+
type="text"
|
|
244
|
+
maxlength="100"
|
|
245
|
+
pattern="[A-Za-z0-9]+"
|
|
246
|
+
required
|
|
247
|
+
aria-describedby="username-hint"
|
|
248
|
+
/>
|
|
249
|
+
<small id="username-hint">
|
|
250
|
+
Letters and numbers only, up to 100 characters
|
|
251
|
+
</small>
|
|
252
|
+
```
|
|
253
|
+
|
|
254
|
+
### Accessibility Resilience
|
|
255
|
+
|
|
256
|
+
**Keyboard navigation**:
|
|
257
|
+
- All functionality accessible via keyboard
|
|
258
|
+
- Logical tab order
|
|
259
|
+
- Focus management in modals
|
|
260
|
+
- Skip links for long content
|
|
261
|
+
|
|
262
|
+
**Screen reader support**:
|
|
263
|
+
- Proper ARIA labels
|
|
264
|
+
- Announce dynamic changes (live regions)
|
|
265
|
+
- Descriptive alt text
|
|
266
|
+
- Semantic HTML
|
|
267
|
+
|
|
268
|
+
**Motion sensitivity**:
|
|
269
|
+
```css
|
|
270
|
+
@media (prefers-reduced-motion: reduce) {
|
|
271
|
+
* {
|
|
272
|
+
animation-duration: 0.01ms !important;
|
|
273
|
+
animation-iteration-count: 1 !important;
|
|
274
|
+
transition-duration: 0.01ms !important;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
```
|
|
278
|
+
|
|
279
|
+
**High contrast mode**:
|
|
280
|
+
- Test in Windows high contrast mode
|
|
281
|
+
- Don't rely only on color
|
|
282
|
+
- Provide alternative visual cues
|
|
283
|
+
|
|
284
|
+
### Performance Resilience
|
|
285
|
+
|
|
286
|
+
**Slow connections**:
|
|
287
|
+
- Progressive image loading
|
|
288
|
+
- Skeleton screens
|
|
289
|
+
- Optimistic UI updates
|
|
290
|
+
- Offline support (service workers)
|
|
291
|
+
|
|
292
|
+
**Memory leaks**:
|
|
293
|
+
- Clean up event listeners
|
|
294
|
+
- Cancel subscriptions
|
|
295
|
+
- Clear timers/intervals
|
|
296
|
+
- Abort pending requests on unmount
|
|
297
|
+
|
|
298
|
+
**Throttling & Debouncing**:
|
|
299
|
+
```javascript
|
|
300
|
+
// Debounce search input
|
|
301
|
+
const debouncedSearch = debounce(handleSearch, 300);
|
|
302
|
+
|
|
303
|
+
// Throttle scroll handler
|
|
304
|
+
const throttledScroll = throttle(handleScroll, 100);
|
|
305
|
+
```
|
|
306
|
+
|
|
307
|
+
## Testing Strategies
|
|
308
|
+
|
|
309
|
+
**Manual testing**:
|
|
310
|
+
- Test with extreme data (very long, very short, empty)
|
|
311
|
+
- Test in different languages
|
|
312
|
+
- Test offline
|
|
313
|
+
- Test slow connection (throttle to 3G)
|
|
314
|
+
- Test with screen reader
|
|
315
|
+
- Test keyboard-only navigation
|
|
316
|
+
- Test on old browsers
|
|
317
|
+
|
|
318
|
+
**Automated testing**:
|
|
319
|
+
- Unit tests for edge cases
|
|
320
|
+
- Integration tests for error scenarios
|
|
321
|
+
- E2E tests for critical paths
|
|
322
|
+
- Visual regression tests
|
|
323
|
+
- Accessibility tests (axe, WAVE)
|
|
324
|
+
|
|
325
|
+
**IMPORTANT**: Hardening is about expecting the unexpected. Real users will do things you never imagined.
|
|
326
|
+
|
|
327
|
+
**NEVER**:
|
|
328
|
+
- Assume perfect input (validate everything)
|
|
329
|
+
- Ignore internationalization (design for global)
|
|
330
|
+
- Leave error messages generic ("Error occurred")
|
|
331
|
+
- Forget offline scenarios
|
|
332
|
+
- Trust client-side validation alone
|
|
333
|
+
- Use fixed widths for text
|
|
334
|
+
- Assume English-length text
|
|
335
|
+
- Block entire interface when one component errors
|
|
336
|
+
|
|
337
|
+
## Verify Hardening
|
|
338
|
+
|
|
339
|
+
Test thoroughly with edge cases:
|
|
340
|
+
|
|
341
|
+
- **Long text**: Try names with 100+ characters
|
|
342
|
+
- **Emoji**: Use emoji in all text fields
|
|
343
|
+
- **RTL**: Test with Arabic or Hebrew
|
|
344
|
+
- **CJK**: Test with Chinese/Japanese/Korean
|
|
345
|
+
- **Network issues**: Disable internet, throttle connection
|
|
346
|
+
- **Large datasets**: Test with 1000+ items
|
|
347
|
+
- **Concurrent actions**: Click submit 10 times rapidly
|
|
348
|
+
- **Errors**: Force API errors, test all error states
|
|
349
|
+
- **Empty**: Remove all data, test empty states
|
|
350
|
+
|
|
351
|
+
Remember: You're hardening for production reality, not demo perfection. Expect users to input weird data, lose connection mid-flow, and use your product in unexpected ways. Build resilience into every component.
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# COMMAND: Normalize
|
|
2
|
+
**Description**: Normalize design to match your design system and ensure consistency
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
Analyze and redesign the feature to perfectly match our design system standards, aesthetics, and established patterns.
|
|
6
|
+
|
|
7
|
+
## Plan
|
|
8
|
+
|
|
9
|
+
Before making changes, deeply understand the context:
|
|
10
|
+
|
|
11
|
+
1. **Discover the design system**: Search for design system documentation, UI guidelines, component libraries, or style guides (grep for "design system", "ui guide", "style guide", etc.). Study it thoroughly until you understand:
|
|
12
|
+
- Core design principles and aesthetic direction
|
|
13
|
+
- Target audience and personas
|
|
14
|
+
- Component patterns and conventions
|
|
15
|
+
- Design tokens (colors, typography, spacing)
|
|
16
|
+
|
|
17
|
+
**CRITICAL**: If something isn't clear, ask. Don't guess at design system principles.
|
|
18
|
+
|
|
19
|
+
2. **Analyze the current feature**: Assess what works and what doesn't:
|
|
20
|
+
- Where does it deviate from design system patterns?
|
|
21
|
+
- Which inconsistencies are cosmetic vs. functional?
|
|
22
|
+
- What's the root cause—missing tokens, one-off implementations, or conceptual misalignment?
|
|
23
|
+
|
|
24
|
+
3. **Create a normalization plan**: Define specific changes that will align the feature with the design system:
|
|
25
|
+
- Which components can be replaced with design system equivalents?
|
|
26
|
+
- Which styles need to use design tokens instead of hard-coded values?
|
|
27
|
+
- How can UX patterns match established user flows?
|
|
28
|
+
|
|
29
|
+
**IMPORTANT**: Great design is effective design. Prioritize UX consistency and usability over visual polish alone. Think through the best possible experience for your use case and personas first.
|
|
30
|
+
|
|
31
|
+
## Execute
|
|
32
|
+
|
|
33
|
+
Systematically address all inconsistencies across these dimensions:
|
|
34
|
+
|
|
35
|
+
- **Typography**: Use design system fonts, sizes, weights, and line heights. Replace hard-coded values with typographic tokens or classes.
|
|
36
|
+
- **Color & Theme**: Apply design system color tokens. Remove one-off color choices that break the palette.
|
|
37
|
+
- **Spacing & Layout**: Use spacing tokens (margins, padding, gaps). Align with grid systems and layout patterns used elsewhere.
|
|
38
|
+
- **Components**: Replace custom implementations with design system components. Ensure props and variants match established patterns.
|
|
39
|
+
- **Motion & Interaction**: Match animation timing, easing, and interaction patterns to other features.
|
|
40
|
+
- **Responsive Behavior**: Ensure breakpoints and responsive patterns align with design system standards.
|
|
41
|
+
- **Accessibility**: Verify contrast ratios, focus states, ARIA labels match design system requirements.
|
|
42
|
+
- **Progressive Disclosure**: Match information hierarchy and complexity management to established patterns.
|
|
43
|
+
|
|
44
|
+
**NEVER**:
|
|
45
|
+
- Create new one-off components when design system equivalents exist
|
|
46
|
+
- Hard-code values that should use design tokens
|
|
47
|
+
- Introduce new patterns that diverge from the design system
|
|
48
|
+
- Compromise accessibility for visual consistency
|
|
49
|
+
|
|
50
|
+
This is not an exhaustive list—apply judgment to identify all areas needing normalization.
|
|
51
|
+
|
|
52
|
+
## Clean Up
|
|
53
|
+
|
|
54
|
+
After normalization, ensure code quality:
|
|
55
|
+
|
|
56
|
+
- **Consolidate reusable components**: If you created new components that should be shared, move them to the design system or shared UI component path.
|
|
57
|
+
- **Remove orphaned code**: Delete unused implementations, styles, or files made obsolete by normalization.
|
|
58
|
+
- **Verify quality**: Lint, type-check, and test according to repository guidelines. Ensure normalization didn't introduce regressions.
|
|
59
|
+
- **Ensure DRYness**: Look for duplication introduced during refactoring and consolidate.
|
|
60
|
+
|
|
61
|
+
Remember: You are a brilliant frontend designer with impeccable taste, equally strong in UX and UI. Your attention to detail and eye for end-to-end user experience is world class. Execute with precision and thoroughness.
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
# COMMAND: Onboard
|
|
2
|
+
**Description**: Design or improve onboarding flows, empty states, and first-time user experiences. Helps users get started successfully and understand value quickly.
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
Create or improve onboarding experiences that help users understand, adopt, and succeed with the product quickly.
|
|
6
|
+
|
|
7
|
+
## Assess Onboarding Needs
|
|
8
|
+
|
|
9
|
+
Understand what users need to learn and why:
|
|
10
|
+
|
|
11
|
+
1. **Identify the challenge**:
|
|
12
|
+
- What are users trying to accomplish?
|
|
13
|
+
- What's confusing or unclear about current experience?
|
|
14
|
+
- Where do users get stuck or drop off?
|
|
15
|
+
- What's the "aha moment" we want users to reach?
|
|
16
|
+
|
|
17
|
+
2. **Understand the users**:
|
|
18
|
+
- What's their experience level? (Beginners, power users, mixed?)
|
|
19
|
+
- What's their motivation? (Excited and exploring? Required by work?)
|
|
20
|
+
- What's their time commitment? (5 minutes? 30 minutes?)
|
|
21
|
+
- What alternatives do they know? (Coming from competitor? New to category?)
|
|
22
|
+
|
|
23
|
+
3. **Define success**:
|
|
24
|
+
- What's the minimum users need to learn to be successful?
|
|
25
|
+
- What's the key action we want them to take? (First project? First invite?)
|
|
26
|
+
- How do we know onboarding worked? (Completion rate? Time to value?)
|
|
27
|
+
|
|
28
|
+
**CRITICAL**: Onboarding should get users to value as quickly as possible, not teach everything possible.
|
|
29
|
+
|
|
30
|
+
## Onboarding Principles
|
|
31
|
+
|
|
32
|
+
Follow these core principles:
|
|
33
|
+
|
|
34
|
+
### Show, Don't Tell
|
|
35
|
+
- Demonstrate with working examples, not just descriptions
|
|
36
|
+
- Provide real functionality in onboarding, not separate tutorial mode
|
|
37
|
+
- Use progressive disclosure - teach one thing at a time
|
|
38
|
+
|
|
39
|
+
### Make It Optional (When Possible)
|
|
40
|
+
- Let experienced users skip onboarding
|
|
41
|
+
- Don't block access to product
|
|
42
|
+
- Provide "Skip" or "I'll explore on my own" options
|
|
43
|
+
|
|
44
|
+
### Time to Value
|
|
45
|
+
- Get users to their "aha moment" ASAP
|
|
46
|
+
- Front-load most important concepts
|
|
47
|
+
- Teach 20% that delivers 80% of value
|
|
48
|
+
- Save advanced features for contextual discovery
|
|
49
|
+
|
|
50
|
+
### Context Over Ceremony
|
|
51
|
+
- Teach features when users need them, not upfront
|
|
52
|
+
- Empty states are onboarding opportunities
|
|
53
|
+
- Tooltips and hints at point of use
|
|
54
|
+
|
|
55
|
+
### Respect User Intelligence
|
|
56
|
+
- Don't patronize or over-explain
|
|
57
|
+
- Be concise and clear
|
|
58
|
+
- Assume users can figure out standard patterns
|
|
59
|
+
|
|
60
|
+
## Design Onboarding Experiences
|
|
61
|
+
|
|
62
|
+
Create appropriate onboarding for the context:
|
|
63
|
+
|
|
64
|
+
### Initial Product Onboarding
|
|
65
|
+
|
|
66
|
+
**Welcome Screen**:
|
|
67
|
+
- Clear value proposition (what is this product?)
|
|
68
|
+
- What users will learn/accomplish
|
|
69
|
+
- Time estimate (honest about commitment)
|
|
70
|
+
- Option to skip (for experienced users)
|
|
71
|
+
|
|
72
|
+
**Account Setup**:
|
|
73
|
+
- Minimal required information (collect more later)
|
|
74
|
+
- Explain why you're asking for each piece of information
|
|
75
|
+
- Smart defaults where possible
|
|
76
|
+
- Social login when appropriate
|
|
77
|
+
|
|
78
|
+
**Core Concept Introduction**:
|
|
79
|
+
- Introduce 1-3 core concepts (not everything)
|
|
80
|
+
- Use simple language and examples
|
|
81
|
+
- Interactive when possible (do, don't just read)
|
|
82
|
+
- Progress indication (step 1 of 3)
|
|
83
|
+
|
|
84
|
+
**First Success**:
|
|
85
|
+
- Guide users to accomplish something real
|
|
86
|
+
- Pre-populated examples or templates
|
|
87
|
+
- Celebrate completion (but don't overdo it)
|
|
88
|
+
- Clear next steps
|
|
89
|
+
|
|
90
|
+
### Feature Discovery & Adoption
|
|
91
|
+
|
|
92
|
+
**Empty States**:
|
|
93
|
+
Instead of blank space, show:
|
|
94
|
+
- What will appear here (description + screenshot/illustration)
|
|
95
|
+
- Why it's valuable
|
|
96
|
+
- Clear CTA to create first item
|
|
97
|
+
- Example or template option
|
|
98
|
+
|
|
99
|
+
Example:
|
|
100
|
+
```
|
|
101
|
+
No projects yet
|
|
102
|
+
Projects help you organize your work and collaborate with your team.
|
|
103
|
+
[Create your first project] or [Start from template]
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
**Contextual Tooltips**:
|
|
107
|
+
- Appear at relevant moment (first time user sees feature)
|
|
108
|
+
- Point directly at relevant UI element
|
|
109
|
+
- Brief explanation + benefit
|
|
110
|
+
- Dismissable (with "Don't show again" option)
|
|
111
|
+
- Optional "Learn more" link
|
|
112
|
+
|
|
113
|
+
**Feature Announcements**:
|
|
114
|
+
- Highlight new features when they're released
|
|
115
|
+
- Show what's new and why it matters
|
|
116
|
+
- Let users try immediately
|
|
117
|
+
- Dismissable
|
|
118
|
+
|
|
119
|
+
**Progressive Onboarding**:
|
|
120
|
+
- Teach features when users encounter them
|
|
121
|
+
- Badges or indicators on new/unused features
|
|
122
|
+
- Unlock complexity gradually (don't show all options immediately)
|
|
123
|
+
|
|
124
|
+
### Guided Tours & Walkthroughs
|
|
125
|
+
|
|
126
|
+
**When to use**:
|
|
127
|
+
- Complex interfaces with many features
|
|
128
|
+
- Significant changes to existing product
|
|
129
|
+
- Industry-specific tools needing domain knowledge
|
|
130
|
+
|
|
131
|
+
**How to design**:
|
|
132
|
+
- Spotlight specific UI elements (dim rest of page)
|
|
133
|
+
- Keep steps short (3-7 steps max per tour)
|
|
134
|
+
- Allow users to click through tour freely
|
|
135
|
+
- Include "Skip tour" option
|
|
136
|
+
- Make replayable (help menu)
|
|
137
|
+
|
|
138
|
+
**Best practices**:
|
|
139
|
+
- Interactive > passive (let users click real buttons)
|
|
140
|
+
- Focus on workflow, not features ("Create a project" not "This is the project button")
|
|
141
|
+
- Provide sample data so actions work
|
|
142
|
+
|
|
143
|
+
### Interactive Tutorials
|
|
144
|
+
|
|
145
|
+
**When to use**:
|
|
146
|
+
- Users need hands-on practice
|
|
147
|
+
- Concepts are complex or unfamiliar
|
|
148
|
+
- High stakes (better to practice in safe environment)
|
|
149
|
+
|
|
150
|
+
**How to design**:
|
|
151
|
+
- Sandbox environment with sample data
|
|
152
|
+
- Clear objectives ("Create a chart showing sales by region")
|
|
153
|
+
- Step-by-step guidance
|
|
154
|
+
- Validation (confirm they did it right)
|
|
155
|
+
- Graduation moment (you're ready!)
|
|
156
|
+
|
|
157
|
+
### Documentation & Help
|
|
158
|
+
|
|
159
|
+
**In-product help**:
|
|
160
|
+
- Contextual help links throughout interface
|
|
161
|
+
- Keyboard shortcut reference
|
|
162
|
+
- Search-able help center
|
|
163
|
+
- Video tutorials for complex workflows
|
|
164
|
+
|
|
165
|
+
**Help patterns**:
|
|
166
|
+
- `?` icon near complex features
|
|
167
|
+
- "Learn more" links in tooltips
|
|
168
|
+
- Keyboard shortcut hints (`⌘K` shown on search box)
|
|
169
|
+
|
|
170
|
+
## Empty State Design
|
|
171
|
+
|
|
172
|
+
Every empty state needs:
|
|
173
|
+
|
|
174
|
+
### What Will Be Here
|
|
175
|
+
"Your recent projects will appear here"
|
|
176
|
+
|
|
177
|
+
### Why It Matters
|
|
178
|
+
"Projects help you organize your work and collaborate with your team"
|
|
179
|
+
|
|
180
|
+
### How to Get Started
|
|
181
|
+
[Create project] or [Import from template]
|
|
182
|
+
|
|
183
|
+
### Visual Interest
|
|
184
|
+
Illustration or icon (not just text on blank page)
|
|
185
|
+
|
|
186
|
+
### Contextual Help
|
|
187
|
+
"Need help getting started? [Watch 2-min tutorial]"
|
|
188
|
+
|
|
189
|
+
**Empty state types**:
|
|
190
|
+
- **First use**: Never used this feature (emphasize value, provide template)
|
|
191
|
+
- **User cleared**: Intentionally deleted everything (light touch, easy to recreate)
|
|
192
|
+
- **No results**: Search or filter returned nothing (suggest different query, clear filters)
|
|
193
|
+
- **No permissions**: Can't access (explain why, how to get access)
|
|
194
|
+
- **Error state**: Failed to load (explain what happened, retry option)
|
|
195
|
+
|
|
196
|
+
## Implementation Patterns
|
|
197
|
+
|
|
198
|
+
### Technical approaches:
|
|
199
|
+
|
|
200
|
+
**Tooltip libraries**: Tippy.js, Popper.js
|
|
201
|
+
**Tour libraries**: Intro.js, Shepherd.js, React Joyride
|
|
202
|
+
**Modal patterns**: Focus trap, backdrop, ESC to close
|
|
203
|
+
**Progress tracking**: LocalStorage for "seen" states
|
|
204
|
+
**Analytics**: Track completion, drop-off points
|
|
205
|
+
|
|
206
|
+
**Storage patterns**:
|
|
207
|
+
```javascript
|
|
208
|
+
// Track which onboarding steps user has seen
|
|
209
|
+
localStorage.setItem('onboarding-completed', 'true');
|
|
210
|
+
localStorage.setItem('feature-tooltip-seen-reports', 'true');
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
**IMPORTANT**: Don't show same onboarding twice (annoying). Track completion and respect dismissals.
|
|
214
|
+
|
|
215
|
+
**NEVER**:
|
|
216
|
+
- Force users through long onboarding before they can use product
|
|
217
|
+
- Patronize users with obvious explanations
|
|
218
|
+
- Show same tooltip repeatedly (respect dismissals)
|
|
219
|
+
- Block all UI during tour (let users explore)
|
|
220
|
+
- Create separate tutorial mode disconnected from real product
|
|
221
|
+
- Overwhelm with information upfront (progressive disclosure!)
|
|
222
|
+
- Hide "Skip" or make it hard to find
|
|
223
|
+
- Forget about returning users (don't show initial onboarding again)
|
|
224
|
+
|
|
225
|
+
## Verify Onboarding Quality
|
|
226
|
+
|
|
227
|
+
Test with real users:
|
|
228
|
+
|
|
229
|
+
- **Time to completion**: Can users complete onboarding quickly?
|
|
230
|
+
- **Comprehension**: Do users understand after completing?
|
|
231
|
+
- **Action**: Do users take desired next step?
|
|
232
|
+
- **Skip rate**: Are too many users skipping? (Maybe it's too long/not valuable)
|
|
233
|
+
- **Completion rate**: Are users completing? (If low, simplify)
|
|
234
|
+
- **Time to value**: How long until users get first value?
|
|
235
|
+
|
|
236
|
+
Remember: You're a product educator with excellent teaching instincts. Get users to their "aha moment" as quickly as possible. Teach the essential, make it contextual, respect user time and intelligence.
|