mobileui-os 1.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/AGENTS.md +47 -0
- package/CHANGELOG.md +25 -0
- package/README.md +78 -0
- package/bin/cli.mjs +375 -0
- package/knowledge/android/00-apple-to-android-adaption.md +1499 -0
- package/knowledge/android/accessibility.md +333 -0
- package/knowledge/android/components-controls.md +270 -0
- package/knowledge/android/material-design-3.md +174 -0
- package/knowledge/android/navigation-patterns.md +212 -0
- package/knowledge/apple/00-skill-reading-protocol.md +1296 -0
- package/knowledge/apple/Accessibility, Inclusive Design & Human Factors Intelligence.md +735 -0
- package/knowledge/apple/Advanced Interaction Patterns, Gestures, Feedback & State Transitions.md +1140 -0
- package/knowledge/apple/Advanced Navigation, Information Architecture & Wayfinding.md +551 -0
- package/knowledge/apple/Autonomus Ui-UX Improvement Loop.md +611 -0
- package/knowledge/apple/Color, Materials, Contrast, Themes & Visual Depth.md +1351 -0
- package/knowledge/apple/Content, Copy, Microinteractions & UX Communication.md +642 -0
- package/knowledge/apple/Data-Heavy Interfaces, Tables, Lists, Search, Filtering & Large-Scale Content.md +721 -0
- package/knowledge/apple/Design Systems & Component Architecture.md +412 -0
- package/knowledge/apple/Forms, Input, Data Entry & Validation Intelligence.md +705 -0
- package/knowledge/apple/Interaction, State & Edge-Case Engineering.md +491 -0
- package/knowledge/apple/Interaction-behaviour.md +1378 -0
- package/knowledge/apple/Layout Architecture, Responsive Design & Spatial Systems.md +1365 -0
- package/knowledge/apple/MASTER UI-UX ORCHESTRATOR.md +1210 -0
- package/knowledge/apple/Navigation Architecture, Routing, Deep Linking & State Restoration.md +1392 -0
- package/knowledge/apple/Navigation, Information Architecture & Spatial Hierarchy.md +1613 -0
- package/knowledge/apple/Notifications, Permissions, Privacy and Trust.md +1540 -0
- package/knowledge/apple/Patterns-templates-composition.md +647 -0
- package/knowledge/apple/Performance, Perceived Speed, Motion & Rendering Intelligence.md +855 -0
- package/knowledge/apple/Responsive, Adaptive & Cross-Platform UI Intelligence.md +669 -0
- package/knowledge/apple/Responsive, Adaptive, Accessible & Performant UI.md +545 -0
- package/knowledge/apple/Tablet Adaptation & Multi-Device UX.md +1447 -0
- package/knowledge/apple/UI Implementation & Refactoring.md +498 -0
- package/knowledge/apple/UI-UX Decision-Making, Prioritization & Trade-offs.md +533 -0
- package/knowledge/apple/UI-UX Project Lifecycle & Delivery.md +544 -0
- package/knowledge/apple/User Flows & Experience Architecture.md +335 -0
- package/knowledge/apple/Visual Design Systems, Theming, Tokens & Brand Intelligence.md +764 -0
- package/knowledge/apple/Visual QA, Testing & Validation.md +557 -0
- package/knowledge/apple/accessibility-inclusive-interaction.md +1361 -0
- package/knowledge/apple/accessibility.md +2162 -0
- package/knowledge/apple/color.md +1933 -0
- package/knowledge/apple/component-architecture.md +2208 -0
- package/knowledge/apple/components.md +2172 -0
- package/knowledge/apple/design-decision-framework.md +1883 -0
- package/knowledge/apple/design-review-engine.md +2108 -0
- package/knowledge/apple/design-tokens.md +1943 -0
- package/knowledge/apple/designing-for-ios.md +1680 -0
- package/knowledge/apple/gestures, touch behavior, feedback, motion, and micro-interactions.md +1538 -0
- package/knowledge/apple/hig-foundation.md +1806 -0
- package/knowledge/apple/iconography.md +1903 -0
- package/knowledge/apple/interaction-patterns.md +2513 -0
- package/knowledge/apple/interaction.md +2141 -0
- package/knowledge/apple/ios-alerts-confirmations-destructive-actions.md +1342 -0
- package/knowledge/apple/ios-components-and-controls.md +1634 -0
- package/knowledge/apple/ios-components-patterns.md +1343 -0
- package/knowledge/apple/ios-design-system-architecture.md +1520 -0
- package/knowledge/apple/ios-empty-error-offline-states.md +1370 -0
- package/knowledge/apple/ios-empty-loading-error-recovery.md +1674 -0
- package/knowledge/apple/ios-forms-and-input.md +1458 -0
- package/knowledge/apple/ios-forms-input-data-entry.md +1308 -0
- package/knowledge/apple/ios-gestures-and-touch.md +1272 -0
- package/knowledge/apple/ios-lists-collections-and-data-display.md +1735 -0
- package/knowledge/apple/ios-loading-progress-async-states.md +1378 -0
- package/knowledge/apple/ios-materials-and-surfaces.md +1543 -0
- package/knowledge/apple/ios-motion-animation-transitions.md +1178 -0
- package/knowledge/apple/ios-navigation-and-information-architecture.md +1674 -0
- package/knowledge/apple/ios-navigation-user-flows-design-architecture.md +1195 -0
- package/knowledge/apple/ios-search-and-discovery.md +1456 -0
- package/knowledge/apple/ios-search-filtering-discovery.md +1402 -0
- package/knowledge/apple/ios-sheets-modals-popovers.md +1205 -0
- package/knowledge/apple/ios-typography-icons-visual-hierarchy.md +1431 -0
- package/knowledge/apple/layout.md +2331 -0
- package/knowledge/apple/media-centric-content-ui-patterns.md +1470 -0
- package/knowledge/apple/motion, transitions, physics, and animation language.md +1535 -0
- package/knowledge/apple/motion-and-animation.md +1698 -0
- package/knowledge/apple/motion.md +2087 -0
- package/knowledge/apple/navigation.md +2281 -0
- package/knowledge/apple/responsive-adaptive.md +2159 -0
- package/knowledge/apple/screen-architecture.md +2067 -0
- package/knowledge/apple/typography, Content Hierarchy & Readability.md +1411 -0
- package/knowledge/apple/typography.md +1802 -0
- package/knowledge/apple/ui-ux inteligence audit.md +106 -0
- package/knowledge/apple/visual-design-and-premium-ui.md +1555 -0
- package/knowledge/apple/visual-hierarchy-engine.md +1647 -0
- package/knowledge/apple/visual-materials.md +2189 -0
- package/package.json +53 -0
- package/principles/design-principles.md +37 -0
- package/principles/platform-principles.md +25 -0
- package/principles/ux-principles.md +16 -0
- package/references/official-links.md +11 -0
- package/skills/accessibility-engineer/SKILL.md +125 -0
- package/skills/analytics-engineer/SKILL.md +283 -0
- package/skills/animation-engineer/SKILL.md +316 -0
- package/skills/component-designer/SKILL.md +75 -0
- package/skills/component-library-engineer/SKILL.md +140 -0
- package/skills/component-library-ops/SKILL.md +155 -0
- package/skills/design-system/SKILL.md +77 -0
- package/skills/design-token-engineer/SKILL.md +203 -0
- package/skills/design-token-pipeline/SKILL.md +277 -0
- package/skills/device-lab-engineer/SKILL.md +387 -0
- package/skills/forms-engineer/SKILL.md +79 -0
- package/skills/internationalization-engineer/SKILL.md +256 -0
- package/skills/motion-designer/SKILL.md +77 -0
- package/skills/native-data-fetching/SKILL.md +50 -0
- package/skills/navigation-architect/SKILL.md +65 -0
- package/skills/performance-engineer/SKILL.md +250 -0
- package/skills/platform-specialist/SKILL.md +95 -0
- package/skills/pre-release-gate/SKILL.md +75 -0
- package/skills/screen-designer/SKILL.md +117 -0
- package/skills/security-engineer/SKILL.md +375 -0
- package/skills/skills.json +134 -0
- package/skills/testing-auditor/SKILL.md +62 -0
- package/skills/ui-architect/SKILL.md +86 -0
- package/skills/ui-implementer/SKILL.md +188 -0
- package/skills/ux-architect/SKILL.md +49 -0
- package/skills/ux-auditor/SKILL.md +52 -0
- package/skills/visual-auditor/SKILL.md +71 -0
- package/templates/audit-report.md +29 -0
- package/templates/design-tokens.ts +33 -0
- package/templates/screen-spec.md +61 -0
- package/workflows/new-screen.md +17 -0
- package/workflows/pre-release.md +21 -0
- package/workflows/redesign.md +14 -0
- package/workflows/ui-audit.md +22 -0
|
@@ -0,0 +1,412 @@
|
|
|
1
|
+
## File 56 — Design Systems & Component Architecture
|
|
2
|
+
|
|
3
|
+
File 55 taught the agent **how to inspect and diagnose an interface**.
|
|
4
|
+
|
|
5
|
+
File 56 should teach it **how to turn those findings into a coherent, scalable UI system**.
|
|
6
|
+
|
|
7
|
+
The key principle:
|
|
8
|
+
|
|
9
|
+
> **Do not design screens as isolated compositions. Design a system capable of producing consistent screens.**
|
|
10
|
+
|
|
11
|
+
### Core capability
|
|
12
|
+
|
|
13
|
+
The agent should be able to move through:
|
|
14
|
+
|
|
15
|
+
```text
|
|
16
|
+
PRODUCT REQUIREMENTS
|
|
17
|
+
↓
|
|
18
|
+
DESIGN LANGUAGE
|
|
19
|
+
↓
|
|
20
|
+
DESIGN TOKENS
|
|
21
|
+
↓
|
|
22
|
+
FOUNDATIONS
|
|
23
|
+
↓
|
|
24
|
+
COMPONENTS
|
|
25
|
+
↓
|
|
26
|
+
COMPOSITIONS
|
|
27
|
+
↓
|
|
28
|
+
SCREEN PATTERNS
|
|
29
|
+
↓
|
|
30
|
+
PAGE / FLOW STRUCTURE
|
|
31
|
+
↓
|
|
32
|
+
APPLICATION-WIDE SYSTEM
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### 1. Design-system foundations
|
|
36
|
+
|
|
37
|
+
The skill should cover:
|
|
38
|
+
|
|
39
|
+
* Color systems
|
|
40
|
+
* Typography systems
|
|
41
|
+
* Spacing scales
|
|
42
|
+
* Sizing scales
|
|
43
|
+
* Border radius
|
|
44
|
+
* Borders
|
|
45
|
+
* Elevation
|
|
46
|
+
* Shadows
|
|
47
|
+
* Opacity
|
|
48
|
+
* Iconography
|
|
49
|
+
* Motion tokens
|
|
50
|
+
* Breakpoints
|
|
51
|
+
* Z-index/layering
|
|
52
|
+
* Surface hierarchy
|
|
53
|
+
* Interaction states
|
|
54
|
+
|
|
55
|
+
The agent should **derive relationships**, rather than randomly selecting values.
|
|
56
|
+
|
|
57
|
+
For example:
|
|
58
|
+
|
|
59
|
+
```text
|
|
60
|
+
Spacing
|
|
61
|
+
4 → 8 → 12 → 16 → 24 → 32 → 48
|
|
62
|
+
|
|
63
|
+
Typography
|
|
64
|
+
Display → Heading → Title → Body → Label → Caption
|
|
65
|
+
|
|
66
|
+
Radius
|
|
67
|
+
Small → Medium → Large → Full
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
The exact values can change by product; the important thing is **systematic relationships**.
|
|
71
|
+
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
### 2. Component architecture
|
|
75
|
+
|
|
76
|
+
The agent should understand the hierarchy:
|
|
77
|
+
|
|
78
|
+
```text
|
|
79
|
+
FOUNDATIONS
|
|
80
|
+
↓
|
|
81
|
+
PRIMITIVES
|
|
82
|
+
↓
|
|
83
|
+
COMPONENTS
|
|
84
|
+
↓
|
|
85
|
+
COMPOUNDS
|
|
86
|
+
↓
|
|
87
|
+
PATTERNS
|
|
88
|
+
↓
|
|
89
|
+
SCREEN COMPOSITIONS
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
For example:
|
|
93
|
+
|
|
94
|
+
```text
|
|
95
|
+
Icon
|
|
96
|
+
↓
|
|
97
|
+
IconButton
|
|
98
|
+
↓
|
|
99
|
+
Toolbar
|
|
100
|
+
↓
|
|
101
|
+
NavigationHeader
|
|
102
|
+
↓
|
|
103
|
+
ScreenHeader
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
This prevents every screen from inventing its own version of the same UI.
|
|
107
|
+
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
### 3. Component anatomy
|
|
111
|
+
|
|
112
|
+
Every reusable component should be reasoned about through:
|
|
113
|
+
|
|
114
|
+
```text
|
|
115
|
+
Purpose
|
|
116
|
+
Anatomy
|
|
117
|
+
Variants
|
|
118
|
+
Properties
|
|
119
|
+
States
|
|
120
|
+
Interactions
|
|
121
|
+
Content constraints
|
|
122
|
+
Accessibility
|
|
123
|
+
Responsive behavior
|
|
124
|
+
Motion
|
|
125
|
+
Composition rules
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
For example, a button isn't simply:
|
|
129
|
+
|
|
130
|
+
```text
|
|
131
|
+
<Button />
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
The system should understand:
|
|
135
|
+
|
|
136
|
+
```text
|
|
137
|
+
Button
|
|
138
|
+
├── variant
|
|
139
|
+
│ ├── primary
|
|
140
|
+
│ ├── secondary
|
|
141
|
+
│ ├── tertiary
|
|
142
|
+
│ ├── destructive
|
|
143
|
+
│ └── ghost
|
|
144
|
+
│
|
|
145
|
+
├── size
|
|
146
|
+
│ ├── small
|
|
147
|
+
│ ├── medium
|
|
148
|
+
│ └── large
|
|
149
|
+
│
|
|
150
|
+
├── state
|
|
151
|
+
│ ├── default
|
|
152
|
+
│ ├── pressed
|
|
153
|
+
│ ├── focused
|
|
154
|
+
│ ├── disabled
|
|
155
|
+
│ ├── loading
|
|
156
|
+
│ └── success
|
|
157
|
+
│
|
|
158
|
+
└── content
|
|
159
|
+
├── label
|
|
160
|
+
├── leading icon
|
|
161
|
+
└── trailing icon
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
---
|
|
165
|
+
|
|
166
|
+
### 4. Component decision-making
|
|
167
|
+
|
|
168
|
+
One of the most valuable parts of this skill should be teaching the agent **when NOT to create a component**.
|
|
169
|
+
|
|
170
|
+
It should ask:
|
|
171
|
+
|
|
172
|
+
```text
|
|
173
|
+
Is this reused?
|
|
174
|
+
↓
|
|
175
|
+
Does it have a stable responsibility?
|
|
176
|
+
↓
|
|
177
|
+
Does abstraction reduce duplication?
|
|
178
|
+
↓
|
|
179
|
+
Does it improve consistency?
|
|
180
|
+
↓
|
|
181
|
+
Does it remain understandable?
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
Avoid both:
|
|
185
|
+
|
|
186
|
+
**Under-abstraction**
|
|
187
|
+
|
|
188
|
+
```text
|
|
189
|
+
50 screens
|
|
190
|
+
50 different buttons
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
and:
|
|
194
|
+
|
|
195
|
+
**Over-abstraction**
|
|
196
|
+
|
|
197
|
+
```text
|
|
198
|
+
UniversalConfigurableAdaptiveButtonRenderer
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
The goal is **appropriate abstraction**.
|
|
202
|
+
|
|
203
|
+
---
|
|
204
|
+
|
|
205
|
+
### 5. Variants vs separate components
|
|
206
|
+
|
|
207
|
+
The agent should distinguish:
|
|
208
|
+
|
|
209
|
+
```text
|
|
210
|
+
Same semantic component
|
|
211
|
+
↓
|
|
212
|
+
Variant
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
from:
|
|
216
|
+
|
|
217
|
+
```text
|
|
218
|
+
Different semantic purpose
|
|
219
|
+
↓
|
|
220
|
+
Different component
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
For example:
|
|
224
|
+
|
|
225
|
+
```text
|
|
226
|
+
Button
|
|
227
|
+
├── Primary
|
|
228
|
+
├── Secondary
|
|
229
|
+
└── Destructive
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
makes sense.
|
|
233
|
+
|
|
234
|
+
But:
|
|
235
|
+
|
|
236
|
+
```text
|
|
237
|
+
Button
|
|
238
|
+
├── Card
|
|
239
|
+
├── Avatar
|
|
240
|
+
└── Navigation
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
doesn't.
|
|
244
|
+
|
|
245
|
+
---
|
|
246
|
+
|
|
247
|
+
### 6. Composition rules
|
|
248
|
+
|
|
249
|
+
The system should define **how components are allowed to work together**.
|
|
250
|
+
|
|
251
|
+
For example:
|
|
252
|
+
|
|
253
|
+
```text
|
|
254
|
+
Screen
|
|
255
|
+
├── Header
|
|
256
|
+
├── Content
|
|
257
|
+
│ ├── Section
|
|
258
|
+
│ │ ├── SectionHeader
|
|
259
|
+
│ │ └── List
|
|
260
|
+
│ │ └── ListItem
|
|
261
|
+
│ └── EmptyState
|
|
262
|
+
└── BottomAction
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
This gives the agent structural consistency without making every screen identical.
|
|
266
|
+
|
|
267
|
+
---
|
|
268
|
+
|
|
269
|
+
### 7. Design-system consistency
|
|
270
|
+
|
|
271
|
+
The agent should continuously detect:
|
|
272
|
+
|
|
273
|
+
* duplicate components
|
|
274
|
+
* slightly different buttons
|
|
275
|
+
* inconsistent spacing
|
|
276
|
+
* inconsistent typography
|
|
277
|
+
* inconsistent icon sizes
|
|
278
|
+
* arbitrary colors
|
|
279
|
+
* unnecessary variants
|
|
280
|
+
* conflicting interaction patterns
|
|
281
|
+
* duplicated design tokens
|
|
282
|
+
* screens bypassing the design system
|
|
283
|
+
|
|
284
|
+
And it should recommend **consolidation rather than multiplication**.
|
|
285
|
+
|
|
286
|
+
---
|
|
287
|
+
|
|
288
|
+
### 8. Design tokens → implementation
|
|
289
|
+
|
|
290
|
+
Because we're building this primarily for **agentic Expo/React Native development**, the skill should explicitly bridge design and code.
|
|
291
|
+
|
|
292
|
+
Conceptually:
|
|
293
|
+
|
|
294
|
+
```text
|
|
295
|
+
Design Decision
|
|
296
|
+
↓
|
|
297
|
+
Token
|
|
298
|
+
↓
|
|
299
|
+
Theme
|
|
300
|
+
↓
|
|
301
|
+
Component
|
|
302
|
+
↓
|
|
303
|
+
Screen
|
|
304
|
+
```
|
|
305
|
+
|
|
306
|
+
For example:
|
|
307
|
+
|
|
308
|
+
```text
|
|
309
|
+
color.background.primary
|
|
310
|
+
spacing.md
|
|
311
|
+
radius.lg
|
|
312
|
+
typography.body
|
|
313
|
+
motion.fast
|
|
314
|
+
```
|
|
315
|
+
|
|
316
|
+
rather than scattering arbitrary values throughout the application.
|
|
317
|
+
|
|
318
|
+
The agent should favor:
|
|
319
|
+
|
|
320
|
+
```text
|
|
321
|
+
theme.spacing.md
|
|
322
|
+
```
|
|
323
|
+
|
|
324
|
+
over:
|
|
325
|
+
|
|
326
|
+
```text
|
|
327
|
+
padding: 17
|
|
328
|
+
```
|
|
329
|
+
|
|
330
|
+
when the value represents a system-level decision.
|
|
331
|
+
|
|
332
|
+
---
|
|
333
|
+
|
|
334
|
+
### 9. The component registry
|
|
335
|
+
|
|
336
|
+
The agent should maintain awareness of what already exists.
|
|
337
|
+
|
|
338
|
+
Before creating a new component:
|
|
339
|
+
|
|
340
|
+
```text
|
|
341
|
+
SEARCH EXISTING COMPONENTS
|
|
342
|
+
↓
|
|
343
|
+
SIMILAR COMPONENT?
|
|
344
|
+
↙ ↘
|
|
345
|
+
YES NO
|
|
346
|
+
↓ ↓
|
|
347
|
+
REUSE / EXTEND CREATE
|
|
348
|
+
↓ ↓
|
|
349
|
+
UPDATE SYSTEM ← REGISTER
|
|
350
|
+
```
|
|
351
|
+
|
|
352
|
+
This is extremely important for long-running projects.
|
|
353
|
+
|
|
354
|
+
---
|
|
355
|
+
|
|
356
|
+
### 10. System evolution
|
|
357
|
+
|
|
358
|
+
A design system isn't frozen.
|
|
359
|
+
|
|
360
|
+
When the agent discovers a better pattern:
|
|
361
|
+
|
|
362
|
+
```text
|
|
363
|
+
Problem
|
|
364
|
+
↓
|
|
365
|
+
New solution
|
|
366
|
+
↓
|
|
367
|
+
Evaluate existing components
|
|
368
|
+
↓
|
|
369
|
+
Determine compatibility
|
|
370
|
+
↓
|
|
371
|
+
Migrate affected components
|
|
372
|
+
↓
|
|
373
|
+
Update tokens/patterns
|
|
374
|
+
↓
|
|
375
|
+
Validate application
|
|
376
|
+
```
|
|
377
|
+
|
|
378
|
+
The agent should avoid creating a new pattern every time something changes.
|
|
379
|
+
|
|
380
|
+
---
|
|
381
|
+
|
|
382
|
+
## File 56 operating principle
|
|
383
|
+
|
|
384
|
+
The entire skill can ultimately be reduced to:
|
|
385
|
+
|
|
386
|
+
```text
|
|
387
|
+
UNDERSTAND THE PRODUCT
|
|
388
|
+
↓
|
|
389
|
+
DEFINE THE VISUAL LANGUAGE
|
|
390
|
+
↓
|
|
391
|
+
DEFINE TOKENS
|
|
392
|
+
↓
|
|
393
|
+
BUILD FOUNDATIONS
|
|
394
|
+
↓
|
|
395
|
+
BUILD PRIMITIVES
|
|
396
|
+
↓
|
|
397
|
+
BUILD COMPONENTS
|
|
398
|
+
↓
|
|
399
|
+
BUILD PATTERNS
|
|
400
|
+
↓
|
|
401
|
+
COMPOSE SCREENS
|
|
402
|
+
↓
|
|
403
|
+
CHECK CONSISTENCY
|
|
404
|
+
↓
|
|
405
|
+
EVOLVE THE SYSTEM
|
|
406
|
+
```
|
|
407
|
+
|
|
408
|
+
And the agent should constantly ask:
|
|
409
|
+
|
|
410
|
+
> **"Does this decision strengthen the system, or create another exception?"**
|
|
411
|
+
|
|
412
|
+
|