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,1296 @@
|
|
|
1
|
+
Yes. I’d make this a **separate control file**, not another numbered UI/UX knowledge file. Its job is to tell the agent **how to discover, load, prioritize, combine, and stop reading skills**.
|
|
2
|
+
|
|
3
|
+
I’d call it:
|
|
4
|
+
|
|
5
|
+
**`00-SKILL-READING-PROTOCOL.md`**
|
|
6
|
+
|
|
7
|
+
# UI/UX Agent Skill Reading Protocol
|
|
8
|
+
|
|
9
|
+
## Purpose
|
|
10
|
+
|
|
11
|
+
This document defines **how the UI/UX agent should read, select, combine, prioritize, and apply the skill files in this repository**.
|
|
12
|
+
|
|
13
|
+
The skill library contains specialized knowledge. The agent must not blindly read every file for every task.
|
|
14
|
+
|
|
15
|
+
The objective is:
|
|
16
|
+
|
|
17
|
+
> **Read the minimum necessary knowledge to solve the task correctly, while expanding the skill set when the task requires deeper reasoning.**
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
# 1. The Core Reading Flow
|
|
22
|
+
|
|
23
|
+
Every task should follow this sequence:
|
|
24
|
+
|
|
25
|
+
```text
|
|
26
|
+
USER REQUEST
|
|
27
|
+
↓
|
|
28
|
+
UNDERSTAND THE TASK
|
|
29
|
+
↓
|
|
30
|
+
IDENTIFY THE PRODUCT / SCREEN / FEATURE
|
|
31
|
+
↓
|
|
32
|
+
CLASSIFY THE REQUEST
|
|
33
|
+
↓
|
|
34
|
+
IDENTIFY REQUIRED CAPABILITIES
|
|
35
|
+
↓
|
|
36
|
+
LOCATE RELEVANT SKILL FILES
|
|
37
|
+
↓
|
|
38
|
+
READ FOUNDATION SKILLS
|
|
39
|
+
↓
|
|
40
|
+
READ SPECIALIZED SKILLS
|
|
41
|
+
↓
|
|
42
|
+
COMBINE THEIR RULES
|
|
43
|
+
↓
|
|
44
|
+
EXECUTE THE TASK
|
|
45
|
+
↓
|
|
46
|
+
READ VALIDATION SKILLS
|
|
47
|
+
↓
|
|
48
|
+
VALIDATE THE RESULT
|
|
49
|
+
↓
|
|
50
|
+
CRITIQUE
|
|
51
|
+
↓
|
|
52
|
+
REFINE
|
|
53
|
+
↓
|
|
54
|
+
DELIVER
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Never begin by randomly opening files.
|
|
58
|
+
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
# 2. First Principle: Understand Before Reading
|
|
62
|
+
|
|
63
|
+
Before selecting skills, determine:
|
|
64
|
+
|
|
65
|
+
```text
|
|
66
|
+
WHAT is being requested?
|
|
67
|
+
WHY is it needed?
|
|
68
|
+
WHAT already exists?
|
|
69
|
+
WHO is using it?
|
|
70
|
+
WHAT platform is involved?
|
|
71
|
+
WHAT technology is involved?
|
|
72
|
+
WHAT constraints exist?
|
|
73
|
+
WHAT outcome is expected?
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
The agent should extract the task's actual requirements before deciding which files matter.
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
80
|
+
# 3. Classify the Request
|
|
81
|
+
|
|
82
|
+
Assign one or more task categories.
|
|
83
|
+
|
|
84
|
+
Possible categories include:
|
|
85
|
+
|
|
86
|
+
```text
|
|
87
|
+
AUDIT
|
|
88
|
+
REDESIGN
|
|
89
|
+
NEW DESIGN
|
|
90
|
+
NEW FEATURE
|
|
91
|
+
SCREEN DESIGN
|
|
92
|
+
COMPONENT
|
|
93
|
+
NAVIGATION
|
|
94
|
+
FORM
|
|
95
|
+
DATA UI
|
|
96
|
+
INTERACTION
|
|
97
|
+
ANIMATION
|
|
98
|
+
ACCESSIBILITY
|
|
99
|
+
RESPONSIVENESS
|
|
100
|
+
PERFORMANCE
|
|
101
|
+
THEMING
|
|
102
|
+
DESIGN SYSTEM
|
|
103
|
+
IMPLEMENTATION
|
|
104
|
+
REFACTORING
|
|
105
|
+
QA
|
|
106
|
+
FULL PRODUCT
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
Multiple categories may apply.
|
|
110
|
+
|
|
111
|
+
Example:
|
|
112
|
+
|
|
113
|
+
```text
|
|
114
|
+
"Redesign the music player screen and make it work better on tablets."
|
|
115
|
+
|
|
116
|
+
Classification:
|
|
117
|
+
|
|
118
|
+
REDESIGN
|
|
119
|
+
+
|
|
120
|
+
MEDIA UI
|
|
121
|
+
+
|
|
122
|
+
RESPONSIVE
|
|
123
|
+
+
|
|
124
|
+
INTERACTION
|
|
125
|
+
+
|
|
126
|
+
VISUAL SYSTEM
|
|
127
|
+
+
|
|
128
|
+
PERFORMANCE
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
---
|
|
132
|
+
|
|
133
|
+
# 4. Skill Reading Levels
|
|
134
|
+
|
|
135
|
+
Skills should be read in layers.
|
|
136
|
+
|
|
137
|
+
## Level 0 — Orchestrator
|
|
138
|
+
|
|
139
|
+
Always begin with:
|
|
140
|
+
|
|
141
|
+
```text
|
|
142
|
+
File 75 — Master UI/UX Orchestrator
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
File 75 determines:
|
|
146
|
+
|
|
147
|
+
* how to reason about the task
|
|
148
|
+
* which capabilities are required
|
|
149
|
+
* what order to apply them
|
|
150
|
+
* what validation is necessary
|
|
151
|
+
|
|
152
|
+
---
|
|
153
|
+
|
|
154
|
+
## Level 1 — Foundation
|
|
155
|
+
|
|
156
|
+
Read the relevant foundational files before specialized files.
|
|
157
|
+
|
|
158
|
+
These establish the basic reasoning model of the agent.
|
|
159
|
+
|
|
160
|
+
```text
|
|
161
|
+
Files 1–54
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
Do not automatically read all of them.
|
|
165
|
+
|
|
166
|
+
Select only the files relevant to the task.
|
|
167
|
+
|
|
168
|
+
---
|
|
169
|
+
|
|
170
|
+
## Level 2 — Consolidated Advanced Skills
|
|
171
|
+
|
|
172
|
+
Use:
|
|
173
|
+
|
|
174
|
+
```text
|
|
175
|
+
Files 55–74
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
for advanced capabilities.
|
|
179
|
+
|
|
180
|
+
These files intentionally consolidate related knowledge.
|
|
181
|
+
|
|
182
|
+
Examples:
|
|
183
|
+
|
|
184
|
+
```text
|
|
185
|
+
55–64
|
|
186
|
+
Core agentic workflow and decision intelligence
|
|
187
|
+
|
|
188
|
+
65–69
|
|
189
|
+
UI patterns and specialized interface structures
|
|
190
|
+
|
|
191
|
+
70
|
|
192
|
+
Responsive and cross-platform
|
|
193
|
+
|
|
194
|
+
71
|
|
195
|
+
Accessibility and human factors
|
|
196
|
+
|
|
197
|
+
72
|
|
198
|
+
Performance and rendering
|
|
199
|
+
|
|
200
|
+
73
|
|
201
|
+
Visual systems and theming
|
|
202
|
+
|
|
203
|
+
74
|
|
204
|
+
Advanced interactions and state transitions
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
---
|
|
208
|
+
|
|
209
|
+
## Level 3 — Validation
|
|
210
|
+
|
|
211
|
+
After creating or modifying the design, read the relevant validation-oriented knowledge.
|
|
212
|
+
|
|
213
|
+
Check:
|
|
214
|
+
|
|
215
|
+
```text
|
|
216
|
+
UX
|
|
217
|
+
Accessibility
|
|
218
|
+
Performance
|
|
219
|
+
Responsive behavior
|
|
220
|
+
Interaction
|
|
221
|
+
Visual consistency
|
|
222
|
+
Implementation feasibility
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
Validation should be selected according to the task.
|
|
226
|
+
|
|
227
|
+
---
|
|
228
|
+
|
|
229
|
+
# 5. File Selection Rule
|
|
230
|
+
|
|
231
|
+
Use this decision:
|
|
232
|
+
|
|
233
|
+
```text
|
|
234
|
+
Is this file directly relevant?
|
|
235
|
+
↓
|
|
236
|
+
YES
|
|
237
|
+
↓
|
|
238
|
+
READ IT
|
|
239
|
+
|
|
240
|
+
NO
|
|
241
|
+
↓
|
|
242
|
+
Could it materially affect the solution?
|
|
243
|
+
↓
|
|
244
|
+
YES
|
|
245
|
+
↓
|
|
246
|
+
READ IT
|
|
247
|
+
|
|
248
|
+
NO
|
|
249
|
+
↓
|
|
250
|
+
SKIP IT
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
The agent should avoid reading unrelated files simply because they exist.
|
|
254
|
+
|
|
255
|
+
---
|
|
256
|
+
|
|
257
|
+
# 6. Primary vs Secondary Skills
|
|
258
|
+
|
|
259
|
+
Separate selected skills into:
|
|
260
|
+
|
|
261
|
+
### Primary
|
|
262
|
+
|
|
263
|
+
Skills directly responsible for solving the request.
|
|
264
|
+
|
|
265
|
+
### Secondary
|
|
266
|
+
|
|
267
|
+
Skills that protect quality or address important side effects.
|
|
268
|
+
|
|
269
|
+
Example:
|
|
270
|
+
|
|
271
|
+
```text
|
|
272
|
+
Task:
|
|
273
|
+
"Create a settings screen."
|
|
274
|
+
|
|
275
|
+
PRIMARY:
|
|
276
|
+
Forms / settings patterns
|
|
277
|
+
Navigation
|
|
278
|
+
Visual system
|
|
279
|
+
|
|
280
|
+
SECONDARY:
|
|
281
|
+
Accessibility
|
|
282
|
+
Responsive design
|
|
283
|
+
Interaction states
|
|
284
|
+
```
|
|
285
|
+
|
|
286
|
+
---
|
|
287
|
+
|
|
288
|
+
# 7. Skill Dependency Chain
|
|
289
|
+
|
|
290
|
+
Some skills naturally depend on others.
|
|
291
|
+
|
|
292
|
+
The agent should generally follow:
|
|
293
|
+
|
|
294
|
+
```text
|
|
295
|
+
PROBLEM
|
|
296
|
+
↓
|
|
297
|
+
USER GOAL
|
|
298
|
+
↓
|
|
299
|
+
INFORMATION ARCHITECTURE
|
|
300
|
+
↓
|
|
301
|
+
USER FLOW
|
|
302
|
+
↓
|
|
303
|
+
INTERACTION
|
|
304
|
+
↓
|
|
305
|
+
VISUAL SYSTEM
|
|
306
|
+
↓
|
|
307
|
+
COMPONENTS
|
|
308
|
+
↓
|
|
309
|
+
RESPONSIVE
|
|
310
|
+
↓
|
|
311
|
+
ACCESSIBILITY
|
|
312
|
+
↓
|
|
313
|
+
PERFORMANCE
|
|
314
|
+
↓
|
|
315
|
+
QA
|
|
316
|
+
```
|
|
317
|
+
|
|
318
|
+
Do not start with visual styling when the information architecture is unresolved.
|
|
319
|
+
|
|
320
|
+
---
|
|
321
|
+
|
|
322
|
+
# 8. Reading Order for New Screens
|
|
323
|
+
|
|
324
|
+
For a new screen:
|
|
325
|
+
|
|
326
|
+
```text
|
|
327
|
+
1. File 75
|
|
328
|
+
2. Relevant foundational files
|
|
329
|
+
3. Navigation / IA
|
|
330
|
+
4. User-flow knowledge
|
|
331
|
+
5. Relevant interface pattern
|
|
332
|
+
6. Visual design system
|
|
333
|
+
7. Interaction/state design
|
|
334
|
+
8. Responsive design
|
|
335
|
+
9. Accessibility
|
|
336
|
+
10. Performance
|
|
337
|
+
11. QA / validation
|
|
338
|
+
```
|
|
339
|
+
|
|
340
|
+
Then design.
|
|
341
|
+
|
|
342
|
+
---
|
|
343
|
+
|
|
344
|
+
# 9. Reading Order for Redesigns
|
|
345
|
+
|
|
346
|
+
For an existing screen:
|
|
347
|
+
|
|
348
|
+
```text
|
|
349
|
+
1. File 75
|
|
350
|
+
2. Existing UI/context
|
|
351
|
+
3. Audit / diagnosis skills
|
|
352
|
+
4. Relevant UX / IA skills
|
|
353
|
+
5. Relevant interface pattern
|
|
354
|
+
6. Visual system
|
|
355
|
+
7. Interaction
|
|
356
|
+
8. Responsive
|
|
357
|
+
9. Accessibility
|
|
358
|
+
10. Performance
|
|
359
|
+
11. QA
|
|
360
|
+
```
|
|
361
|
+
|
|
362
|
+
The agent should identify what is already working before replacing anything.
|
|
363
|
+
|
|
364
|
+
---
|
|
365
|
+
|
|
366
|
+
# 10. Reading Order for Components
|
|
367
|
+
|
|
368
|
+
For a component:
|
|
369
|
+
|
|
370
|
+
```text
|
|
371
|
+
1. File 75
|
|
372
|
+
2. Component/composition knowledge
|
|
373
|
+
3. Visual system
|
|
374
|
+
4. Interaction states
|
|
375
|
+
5. Accessibility
|
|
376
|
+
6. Responsive behavior
|
|
377
|
+
7. Performance
|
|
378
|
+
8. Validation
|
|
379
|
+
```
|
|
380
|
+
|
|
381
|
+
The agent should check whether an existing component can be reused before creating a new one.
|
|
382
|
+
|
|
383
|
+
---
|
|
384
|
+
|
|
385
|
+
# 11. Reading Order for Forms
|
|
386
|
+
|
|
387
|
+
For forms:
|
|
388
|
+
|
|
389
|
+
```text
|
|
390
|
+
1. File 75
|
|
391
|
+
2. Form/input skills
|
|
392
|
+
3. Validation
|
|
393
|
+
4. Error handling
|
|
394
|
+
5. Interaction states
|
|
395
|
+
6. Accessibility
|
|
396
|
+
7. Responsive behavior
|
|
397
|
+
8. Performance
|
|
398
|
+
9. QA
|
|
399
|
+
```
|
|
400
|
+
|
|
401
|
+
Always consider:
|
|
402
|
+
|
|
403
|
+
```text
|
|
404
|
+
Empty
|
|
405
|
+
Focused
|
|
406
|
+
Typing
|
|
407
|
+
Invalid
|
|
408
|
+
Valid
|
|
409
|
+
Loading
|
|
410
|
+
Submitting
|
|
411
|
+
Success
|
|
412
|
+
Failure
|
|
413
|
+
Disabled
|
|
414
|
+
```
|
|
415
|
+
|
|
416
|
+
---
|
|
417
|
+
|
|
418
|
+
# 12. Reading Order for Data-Heavy Interfaces
|
|
419
|
+
|
|
420
|
+
For dashboards, tables, analytics, file managers, and large lists:
|
|
421
|
+
|
|
422
|
+
```text
|
|
423
|
+
1. File 75
|
|
424
|
+
2. Information architecture
|
|
425
|
+
3. Data-heavy UI
|
|
426
|
+
4. Navigation
|
|
427
|
+
5. Interaction
|
|
428
|
+
6. Visual hierarchy
|
|
429
|
+
7. Responsive behavior
|
|
430
|
+
8. Accessibility
|
|
431
|
+
9. Performance
|
|
432
|
+
10. QA
|
|
433
|
+
```
|
|
434
|
+
|
|
435
|
+
Performance and information density should be considered early.
|
|
436
|
+
|
|
437
|
+
---
|
|
438
|
+
|
|
439
|
+
# 13. Reading Order for Animation / Interaction
|
|
440
|
+
|
|
441
|
+
For animation-heavy requests:
|
|
442
|
+
|
|
443
|
+
```text
|
|
444
|
+
1. File 75
|
|
445
|
+
2. Interaction
|
|
446
|
+
3. Motion
|
|
447
|
+
4. Component states
|
|
448
|
+
5. Accessibility
|
|
449
|
+
6. Performance
|
|
450
|
+
7. Responsive behavior
|
|
451
|
+
8. QA
|
|
452
|
+
```
|
|
453
|
+
|
|
454
|
+
The agent must ask:
|
|
455
|
+
|
|
456
|
+
```text
|
|
457
|
+
Why does this animation exist?
|
|
458
|
+
What does it communicate?
|
|
459
|
+
Can it be interrupted?
|
|
460
|
+
Does reduced motion affect it?
|
|
461
|
+
Is it performant?
|
|
462
|
+
```
|
|
463
|
+
|
|
464
|
+
---
|
|
465
|
+
|
|
466
|
+
# 14. Reading Order for Accessibility Tasks
|
|
467
|
+
|
|
468
|
+
For accessibility-specific tasks:
|
|
469
|
+
|
|
470
|
+
```text
|
|
471
|
+
1. File 75
|
|
472
|
+
2. Accessibility
|
|
473
|
+
3. Human factors
|
|
474
|
+
4. Interaction
|
|
475
|
+
5. Responsive behavior
|
|
476
|
+
6. Visual system
|
|
477
|
+
7. Forms/navigation where relevant
|
|
478
|
+
8. QA
|
|
479
|
+
```
|
|
480
|
+
|
|
481
|
+
Accessibility should not be treated as an afterthought.
|
|
482
|
+
|
|
483
|
+
---
|
|
484
|
+
|
|
485
|
+
# 15. Reading Order for Performance Tasks
|
|
486
|
+
|
|
487
|
+
For performance problems:
|
|
488
|
+
|
|
489
|
+
```text
|
|
490
|
+
1. File 75
|
|
491
|
+
2. Performance
|
|
492
|
+
3. Rendering/component architecture
|
|
493
|
+
4. Interaction
|
|
494
|
+
5. Responsive behavior
|
|
495
|
+
6. Data architecture where relevant
|
|
496
|
+
7. QA
|
|
497
|
+
```
|
|
498
|
+
|
|
499
|
+
Measure before recommending optimization.
|
|
500
|
+
|
|
501
|
+
---
|
|
502
|
+
|
|
503
|
+
# 16. Reading Order for Design-System Tasks
|
|
504
|
+
|
|
505
|
+
For design-system work:
|
|
506
|
+
|
|
507
|
+
```text
|
|
508
|
+
1. File 75
|
|
509
|
+
2. Visual design system
|
|
510
|
+
3. Tokens
|
|
511
|
+
4. Components
|
|
512
|
+
5. Patterns
|
|
513
|
+
6. Accessibility
|
|
514
|
+
7. Responsive behavior
|
|
515
|
+
8. Cross-platform considerations
|
|
516
|
+
9. QA
|
|
517
|
+
```
|
|
518
|
+
|
|
519
|
+
The agent should prioritize semantic consistency over arbitrary visual uniformity.
|
|
520
|
+
|
|
521
|
+
---
|
|
522
|
+
|
|
523
|
+
# 17. Cross-Platform Tasks
|
|
524
|
+
|
|
525
|
+
For React Native / Expo / web / mobile / tablet / desktop tasks:
|
|
526
|
+
|
|
527
|
+
```text
|
|
528
|
+
1. File 75
|
|
529
|
+
2. Relevant platform skills
|
|
530
|
+
3. Responsive/adaptive design
|
|
531
|
+
4. Visual system
|
|
532
|
+
5. Interaction
|
|
533
|
+
6. Accessibility
|
|
534
|
+
7. Performance
|
|
535
|
+
8. QA
|
|
536
|
+
```
|
|
537
|
+
|
|
538
|
+
The agent should distinguish:
|
|
539
|
+
|
|
540
|
+
```text
|
|
541
|
+
Shared behavior
|
|
542
|
+
vs
|
|
543
|
+
Platform-specific behavior
|
|
544
|
+
```
|
|
545
|
+
|
|
546
|
+
---
|
|
547
|
+
|
|
548
|
+
# 18. Reading Multiple Files
|
|
549
|
+
|
|
550
|
+
When several files are selected, the agent should not treat them as independent instructions.
|
|
551
|
+
|
|
552
|
+
Instead:
|
|
553
|
+
|
|
554
|
+
```text
|
|
555
|
+
FILE A
|
|
556
|
+
+
|
|
557
|
+
FILE B
|
|
558
|
+
+
|
|
559
|
+
FILE C
|
|
560
|
+
↓
|
|
561
|
+
COMBINED DESIGN MODEL
|
|
562
|
+
```
|
|
563
|
+
|
|
564
|
+
Resolve conflicts using:
|
|
565
|
+
|
|
566
|
+
```text
|
|
567
|
+
1. User requirements
|
|
568
|
+
2. Product context
|
|
569
|
+
3. Accessibility
|
|
570
|
+
4. Platform constraints
|
|
571
|
+
5. Technical constraints
|
|
572
|
+
6. Existing design system
|
|
573
|
+
7. Specialized skill guidance
|
|
574
|
+
8. Aesthetic preference
|
|
575
|
+
```
|
|
576
|
+
|
|
577
|
+
---
|
|
578
|
+
|
|
579
|
+
# 19. Handling Conflicting Skills
|
|
580
|
+
|
|
581
|
+
If two skills appear to conflict:
|
|
582
|
+
|
|
583
|
+
```text
|
|
584
|
+
STOP
|
|
585
|
+
↓
|
|
586
|
+
IDENTIFY THE CONFLICT
|
|
587
|
+
↓
|
|
588
|
+
IDENTIFY WHY EACH RULE EXISTS
|
|
589
|
+
↓
|
|
590
|
+
CHECK PRODUCT CONTEXT
|
|
591
|
+
↓
|
|
592
|
+
CHECK HIGHER-PRIORITY CONSTRAINTS
|
|
593
|
+
↓
|
|
594
|
+
CHOOSE THE BEST TRADE-OFF
|
|
595
|
+
```
|
|
596
|
+
|
|
597
|
+
Do not blindly apply whichever file was read last.
|
|
598
|
+
|
|
599
|
+
---
|
|
600
|
+
|
|
601
|
+
# 20. Do Not Duplicate Knowledge
|
|
602
|
+
|
|
603
|
+
If File 71 says:
|
|
604
|
+
|
|
605
|
+
```text
|
|
606
|
+
Accessibility should be considered during design.
|
|
607
|
+
```
|
|
608
|
+
|
|
609
|
+
and File 74 contains interaction-specific accessibility guidance, the agent should combine them.
|
|
610
|
+
|
|
611
|
+
Do not treat the second rule as replacing the first.
|
|
612
|
+
|
|
613
|
+
Think:
|
|
614
|
+
|
|
615
|
+
```text
|
|
616
|
+
GENERAL RULE
|
|
617
|
+
+
|
|
618
|
+
SPECIALIZED RULE
|
|
619
|
+
=
|
|
620
|
+
MORE PRECISE APPLICATION
|
|
621
|
+
```
|
|
622
|
+
|
|
623
|
+
---
|
|
624
|
+
|
|
625
|
+
# 21. Progressive Skill Loading
|
|
626
|
+
|
|
627
|
+
Start narrow.
|
|
628
|
+
|
|
629
|
+
```text
|
|
630
|
+
START
|
|
631
|
+
↓
|
|
632
|
+
Read minimum required skills
|
|
633
|
+
↓
|
|
634
|
+
Begin analysis
|
|
635
|
+
↓
|
|
636
|
+
Encounter unresolved issue?
|
|
637
|
+
↓
|
|
638
|
+
Load additional skill
|
|
639
|
+
↓
|
|
640
|
+
Continue
|
|
641
|
+
```
|
|
642
|
+
|
|
643
|
+
This is preferable to loading the entire library immediately.
|
|
644
|
+
|
|
645
|
+
---
|
|
646
|
+
|
|
647
|
+
# 22. Trigger-Based Expansion
|
|
648
|
+
|
|
649
|
+
Load additional skills when the task reveals new requirements.
|
|
650
|
+
|
|
651
|
+
Example:
|
|
652
|
+
|
|
653
|
+
```text
|
|
654
|
+
Initial request:
|
|
655
|
+
"Redesign file manager."
|
|
656
|
+
|
|
657
|
+
Load:
|
|
658
|
+
IA
|
|
659
|
+
Data UI
|
|
660
|
+
Visual
|
|
661
|
+
Interaction
|
|
662
|
+
|
|
663
|
+
During analysis:
|
|
664
|
+
"Thousands of files."
|
|
665
|
+
|
|
666
|
+
Trigger:
|
|
667
|
+
Performance
|
|
668
|
+
Virtualization
|
|
669
|
+
Search
|
|
670
|
+
Filtering
|
|
671
|
+
Responsive data UI
|
|
672
|
+
```
|
|
673
|
+
|
|
674
|
+
The agent expands its knowledge dynamically.
|
|
675
|
+
|
|
676
|
+
---
|
|
677
|
+
|
|
678
|
+
# 23. Stop Reading Rule
|
|
679
|
+
|
|
680
|
+
Stop loading files when:
|
|
681
|
+
|
|
682
|
+
```text
|
|
683
|
+
The relevant problem is understood
|
|
684
|
+
+
|
|
685
|
+
Required design principles are known
|
|
686
|
+
+
|
|
687
|
+
Required implementation constraints are known
|
|
688
|
+
+
|
|
689
|
+
Validation criteria are covered
|
|
690
|
+
```
|
|
691
|
+
|
|
692
|
+
Do not continue reading merely to increase the number of files consulted.
|
|
693
|
+
|
|
694
|
+
---
|
|
695
|
+
|
|
696
|
+
# 24. Avoid Skill Overload
|
|
697
|
+
|
|
698
|
+
Too many irrelevant skills can create:
|
|
699
|
+
|
|
700
|
+
```text
|
|
701
|
+
Conflicting instructions
|
|
702
|
+
Analysis paralysis
|
|
703
|
+
Over-engineering
|
|
704
|
+
Unnecessary complexity
|
|
705
|
+
Slower execution
|
|
706
|
+
Loss of task focus
|
|
707
|
+
```
|
|
708
|
+
|
|
709
|
+
The objective is:
|
|
710
|
+
|
|
711
|
+
> **Maximum relevant intelligence, minimum irrelevant context.**
|
|
712
|
+
|
|
713
|
+
---
|
|
714
|
+
|
|
715
|
+
# 25. Implementation Phase
|
|
716
|
+
|
|
717
|
+
After reading the required skills:
|
|
718
|
+
|
|
719
|
+
```text
|
|
720
|
+
SKILLS
|
|
721
|
+
↓
|
|
722
|
+
SYNTHESIZE
|
|
723
|
+
↓
|
|
724
|
+
PLAN
|
|
725
|
+
↓
|
|
726
|
+
IMPLEMENT
|
|
727
|
+
```
|
|
728
|
+
|
|
729
|
+
The agent should not repeatedly reopen the same files unless clarification is required.
|
|
730
|
+
|
|
731
|
+
---
|
|
732
|
+
|
|
733
|
+
# 26. Validation Phase
|
|
734
|
+
|
|
735
|
+
After implementation/design:
|
|
736
|
+
|
|
737
|
+
```text
|
|
738
|
+
RESULT
|
|
739
|
+
↓
|
|
740
|
+
WHAT CAN FAIL?
|
|
741
|
+
↓
|
|
742
|
+
SELECT VALIDATION SKILLS
|
|
743
|
+
↓
|
|
744
|
+
TEST
|
|
745
|
+
↓
|
|
746
|
+
CRITIQUE
|
|
747
|
+
↓
|
|
748
|
+
FIX
|
|
749
|
+
```
|
|
750
|
+
|
|
751
|
+
Validation is part of the skill-reading process.
|
|
752
|
+
|
|
753
|
+
---
|
|
754
|
+
|
|
755
|
+
# 27. Re-reading Rule
|
|
756
|
+
|
|
757
|
+
Re-read a skill when:
|
|
758
|
+
|
|
759
|
+
```text
|
|
760
|
+
A conflict appears
|
|
761
|
+
A requirement changes
|
|
762
|
+
A major design decision changes
|
|
763
|
+
Implementation reveals a hidden constraint
|
|
764
|
+
A validation failure requires specialized knowledge
|
|
765
|
+
```
|
|
766
|
+
|
|
767
|
+
Otherwise, avoid unnecessary repetition.
|
|
768
|
+
|
|
769
|
+
---
|
|
770
|
+
|
|
771
|
+
# 28. File 75 as the Router
|
|
772
|
+
|
|
773
|
+
The agent should treat File 75 as the central router:
|
|
774
|
+
|
|
775
|
+
```text
|
|
776
|
+
FILE 75
|
|
777
|
+
│
|
|
778
|
+
┌───────────┼───────────┐
|
|
779
|
+
↓ ↓ ↓
|
|
780
|
+
FOUNDATION SPECIALIZED VALIDATION
|
|
781
|
+
│ │ │
|
|
782
|
+
└───────────┼───────────┘
|
|
783
|
+
↓
|
|
784
|
+
SYNTHESIS
|
|
785
|
+
↓
|
|
786
|
+
OUTPUT
|
|
787
|
+
```
|
|
788
|
+
|
|
789
|
+
File 75 decides **what knowledge is needed**.
|
|
790
|
+
|
|
791
|
+
The individual files provide **the knowledge itself**.
|
|
792
|
+
|
|
793
|
+
---
|
|
794
|
+
|
|
795
|
+
# 29. Recommended Skill Manifest
|
|
796
|
+
|
|
797
|
+
Maintain a lightweight manifest describing each file.
|
|
798
|
+
|
|
799
|
+
Example:
|
|
800
|
+
|
|
801
|
+
```yaml
|
|
802
|
+
skills:
|
|
803
|
+
- id: 01
|
|
804
|
+
name: Foundation
|
|
805
|
+
category: foundation
|
|
806
|
+
priority: core
|
|
807
|
+
|
|
808
|
+
- id: 70
|
|
809
|
+
name: Responsive Adaptive Cross Platform
|
|
810
|
+
category: responsive
|
|
811
|
+
triggers:
|
|
812
|
+
- mobile
|
|
813
|
+
- tablet
|
|
814
|
+
- desktop
|
|
815
|
+
- responsive
|
|
816
|
+
- cross-platform
|
|
817
|
+
|
|
818
|
+
- id: 71
|
|
819
|
+
name: Accessibility Human Factors
|
|
820
|
+
category: accessibility
|
|
821
|
+
triggers:
|
|
822
|
+
- accessibility
|
|
823
|
+
- screen reader
|
|
824
|
+
- keyboard
|
|
825
|
+
- inclusive
|
|
826
|
+
- WCAG
|
|
827
|
+
|
|
828
|
+
- id: 72
|
|
829
|
+
name: Performance Rendering
|
|
830
|
+
category: performance
|
|
831
|
+
triggers:
|
|
832
|
+
- slow
|
|
833
|
+
- performance
|
|
834
|
+
- rendering
|
|
835
|
+
- lag
|
|
836
|
+
- memory
|
|
837
|
+
|
|
838
|
+
- id: 73
|
|
839
|
+
name: Visual Design System
|
|
840
|
+
category: visual
|
|
841
|
+
triggers:
|
|
842
|
+
- theme
|
|
843
|
+
- tokens
|
|
844
|
+
- typography
|
|
845
|
+
- colors
|
|
846
|
+
- design system
|
|
847
|
+
|
|
848
|
+
- id: 74
|
|
849
|
+
name: Advanced Interaction
|
|
850
|
+
category: interaction
|
|
851
|
+
triggers:
|
|
852
|
+
- gestures
|
|
853
|
+
- animation
|
|
854
|
+
- transitions
|
|
855
|
+
- drag
|
|
856
|
+
- swipe
|
|
857
|
+
- interaction
|
|
858
|
+
```
|
|
859
|
+
|
|
860
|
+
The manifest should remain lightweight.
|
|
861
|
+
|
|
862
|
+
Its job is discovery, not duplication.
|
|
863
|
+
|
|
864
|
+
---
|
|
865
|
+
|
|
866
|
+
# 30. Trigger Matching
|
|
867
|
+
|
|
868
|
+
The agent can use:
|
|
869
|
+
|
|
870
|
+
```text
|
|
871
|
+
USER LANGUAGE
|
|
872
|
+
↓
|
|
873
|
+
KEYWORDS
|
|
874
|
+
↓
|
|
875
|
+
TASK CATEGORY
|
|
876
|
+
↓
|
|
877
|
+
SKILL TRIGGERS
|
|
878
|
+
↓
|
|
879
|
+
CANDIDATE FILES
|
|
880
|
+
```
|
|
881
|
+
|
|
882
|
+
But keyword matching must not be the only mechanism.
|
|
883
|
+
|
|
884
|
+
Semantic relevance matters more than exact word matching.
|
|
885
|
+
|
|
886
|
+
---
|
|
887
|
+
|
|
888
|
+
# 31. Example: Music Player
|
|
889
|
+
|
|
890
|
+
Request:
|
|
891
|
+
|
|
892
|
+
> "Redesign my music player so it feels premium and handles queue operations better."
|
|
893
|
+
|
|
894
|
+
The agent should identify:
|
|
895
|
+
|
|
896
|
+
```text
|
|
897
|
+
Product:
|
|
898
|
+
Music player
|
|
899
|
+
|
|
900
|
+
Goals:
|
|
901
|
+
Premium visual experience
|
|
902
|
+
Better queue interaction
|
|
903
|
+
|
|
904
|
+
Capabilities:
|
|
905
|
+
Media UI
|
|
906
|
+
Interaction
|
|
907
|
+
Queue/state management
|
|
908
|
+
Visual system
|
|
909
|
+
Navigation
|
|
910
|
+
Accessibility
|
|
911
|
+
Responsive
|
|
912
|
+
Performance
|
|
913
|
+
```
|
|
914
|
+
|
|
915
|
+
Then select the relevant skills.
|
|
916
|
+
|
|
917
|
+
---
|
|
918
|
+
|
|
919
|
+
# 32. Example: Calculator
|
|
920
|
+
|
|
921
|
+
Request:
|
|
922
|
+
|
|
923
|
+
> "Design a modern calculator UI."
|
|
924
|
+
|
|
925
|
+
Likely reading path:
|
|
926
|
+
|
|
927
|
+
```text
|
|
928
|
+
75
|
|
929
|
+
↓
|
|
930
|
+
Foundation
|
|
931
|
+
↓
|
|
932
|
+
Information architecture
|
|
933
|
+
↓
|
|
934
|
+
Component patterns
|
|
935
|
+
↓
|
|
936
|
+
Visual system
|
|
937
|
+
↓
|
|
938
|
+
Interaction/state
|
|
939
|
+
↓
|
|
940
|
+
Responsive
|
|
941
|
+
↓
|
|
942
|
+
Accessibility
|
|
943
|
+
↓
|
|
944
|
+
Performance
|
|
945
|
+
↓
|
|
946
|
+
QA
|
|
947
|
+
```
|
|
948
|
+
|
|
949
|
+
No need to load data-heavy interface skills unless the calculator actually contains a complex history/data system.
|
|
950
|
+
|
|
951
|
+
---
|
|
952
|
+
|
|
953
|
+
# 33. Example: Dashboard
|
|
954
|
+
|
|
955
|
+
Request:
|
|
956
|
+
|
|
957
|
+
> "Make my dashboard less cluttered."
|
|
958
|
+
|
|
959
|
+
Reading path:
|
|
960
|
+
|
|
961
|
+
```text
|
|
962
|
+
75
|
|
963
|
+
↓
|
|
964
|
+
Audit
|
|
965
|
+
↓
|
|
966
|
+
Information architecture
|
|
967
|
+
↓
|
|
968
|
+
Data-heavy UI
|
|
969
|
+
↓
|
|
970
|
+
Visual hierarchy
|
|
971
|
+
↓
|
|
972
|
+
Responsive
|
|
973
|
+
↓
|
|
974
|
+
Accessibility
|
|
975
|
+
↓
|
|
976
|
+
Performance
|
|
977
|
+
↓
|
|
978
|
+
QA
|
|
979
|
+
```
|
|
980
|
+
|
|
981
|
+
---
|
|
982
|
+
|
|
983
|
+
# 34. Example: Button Problem
|
|
984
|
+
|
|
985
|
+
Request:
|
|
986
|
+
|
|
987
|
+
> "The button feels wrong."
|
|
988
|
+
|
|
989
|
+
Reading path:
|
|
990
|
+
|
|
991
|
+
```text
|
|
992
|
+
75
|
|
993
|
+
↓
|
|
994
|
+
Component
|
|
995
|
+
↓
|
|
996
|
+
Visual system
|
|
997
|
+
↓
|
|
998
|
+
Interaction
|
|
999
|
+
↓
|
|
1000
|
+
Accessibility
|
|
1001
|
+
```
|
|
1002
|
+
|
|
1003
|
+
No need to load the entire product architecture.
|
|
1004
|
+
|
|
1005
|
+
---
|
|
1006
|
+
|
|
1007
|
+
# 35. Example: Full Product Redesign
|
|
1008
|
+
|
|
1009
|
+
Request:
|
|
1010
|
+
|
|
1011
|
+
> "Redesign the whole app."
|
|
1012
|
+
|
|
1013
|
+
Reading path:
|
|
1014
|
+
|
|
1015
|
+
```text
|
|
1016
|
+
75
|
|
1017
|
+
↓
|
|
1018
|
+
Foundation
|
|
1019
|
+
↓
|
|
1020
|
+
Product architecture
|
|
1021
|
+
↓
|
|
1022
|
+
IA
|
|
1023
|
+
↓
|
|
1024
|
+
Navigation
|
|
1025
|
+
↓
|
|
1026
|
+
Flows
|
|
1027
|
+
↓
|
|
1028
|
+
Design system
|
|
1029
|
+
↓
|
|
1030
|
+
Components
|
|
1031
|
+
↓
|
|
1032
|
+
Interaction
|
|
1033
|
+
↓
|
|
1034
|
+
Responsive
|
|
1035
|
+
↓
|
|
1036
|
+
Accessibility
|
|
1037
|
+
↓
|
|
1038
|
+
Performance
|
|
1039
|
+
↓
|
|
1040
|
+
QA
|
|
1041
|
+
```
|
|
1042
|
+
|
|
1043
|
+
This is a high-complexity task and justifies broad skill loading.
|
|
1044
|
+
|
|
1045
|
+
---
|
|
1046
|
+
|
|
1047
|
+
# 36. The Golden Rule
|
|
1048
|
+
|
|
1049
|
+
The agent should always ask:
|
|
1050
|
+
|
|
1051
|
+
> **"What knowledge do I need to make this decision correctly?"**
|
|
1052
|
+
|
|
1053
|
+
Then:
|
|
1054
|
+
|
|
1055
|
+
```text
|
|
1056
|
+
FIND IT
|
|
1057
|
+
↓
|
|
1058
|
+
READ IT
|
|
1059
|
+
↓
|
|
1060
|
+
APPLY IT
|
|
1061
|
+
↓
|
|
1062
|
+
VALIDATE IT
|
|
1063
|
+
```
|
|
1064
|
+
|
|
1065
|
+
Not:
|
|
1066
|
+
|
|
1067
|
+
```text
|
|
1068
|
+
OPEN EVERYTHING
|
|
1069
|
+
↓
|
|
1070
|
+
HOPE SOMETHING IS RELEVANT
|
|
1071
|
+
```
|
|
1072
|
+
|
|
1073
|
+
---
|
|
1074
|
+
|
|
1075
|
+
# 37. Final Skill Reading Algorithm
|
|
1076
|
+
|
|
1077
|
+
```text
|
|
1078
|
+
FUNCTION solve_uiux_task(request):
|
|
1079
|
+
|
|
1080
|
+
context = understand(request)
|
|
1081
|
+
|
|
1082
|
+
task_types = classify(context)
|
|
1083
|
+
|
|
1084
|
+
complexity = assess_complexity(context)
|
|
1085
|
+
|
|
1086
|
+
risks = identify_risks(context)
|
|
1087
|
+
|
|
1088
|
+
read(File_75)
|
|
1089
|
+
|
|
1090
|
+
required_skills = select_skills(
|
|
1091
|
+
task_types,
|
|
1092
|
+
context,
|
|
1093
|
+
complexity,
|
|
1094
|
+
risks
|
|
1095
|
+
)
|
|
1096
|
+
|
|
1097
|
+
foundation_skills = select_foundations(required_skills)
|
|
1098
|
+
|
|
1099
|
+
read(foundation_skills)
|
|
1100
|
+
|
|
1101
|
+
specialized_skills = select_specialized(required_skills)
|
|
1102
|
+
|
|
1103
|
+
read(specialized_skills)
|
|
1104
|
+
|
|
1105
|
+
knowledge = synthesize_all_read_skills()
|
|
1106
|
+
|
|
1107
|
+
plan = create_plan(knowledge, context)
|
|
1108
|
+
|
|
1109
|
+
result = execute(plan)
|
|
1110
|
+
|
|
1111
|
+
validation_skills = select_validation_skills(
|
|
1112
|
+
result,
|
|
1113
|
+
context,
|
|
1114
|
+
risks
|
|
1115
|
+
)
|
|
1116
|
+
|
|
1117
|
+
read(validation_skills)
|
|
1118
|
+
|
|
1119
|
+
validation = validate(result)
|
|
1120
|
+
|
|
1121
|
+
IF validation.has_issues:
|
|
1122
|
+
|
|
1123
|
+
identify_high_priority_issues()
|
|
1124
|
+
|
|
1125
|
+
load_additional_skills_if_required()
|
|
1126
|
+
|
|
1127
|
+
refine(result)
|
|
1128
|
+
|
|
1129
|
+
validate_again()
|
|
1130
|
+
|
|
1131
|
+
critique(result)
|
|
1132
|
+
|
|
1133
|
+
deliver(result)
|
|
1134
|
+
```
|
|
1135
|
+
|
|
1136
|
+
---
|
|
1137
|
+
|
|
1138
|
+
# 38. Reading Philosophy
|
|
1139
|
+
|
|
1140
|
+
The skill library should function like a **human expert's mental toolbox**.
|
|
1141
|
+
|
|
1142
|
+
An expert doesn't read an entire textbook every time someone asks:
|
|
1143
|
+
|
|
1144
|
+
> "How should I style this button?"
|
|
1145
|
+
|
|
1146
|
+
They identify the problem, retrieve the relevant knowledge, apply it, and validate the result.
|
|
1147
|
+
|
|
1148
|
+
The agent should behave similarly.
|
|
1149
|
+
|
|
1150
|
+
---
|
|
1151
|
+
|
|
1152
|
+
# 39. Final Architecture
|
|
1153
|
+
|
|
1154
|
+
```text
|
|
1155
|
+
┌─────────────────────┐
|
|
1156
|
+
│ USER TASK │
|
|
1157
|
+
└──────────┬──────────┘
|
|
1158
|
+
↓
|
|
1159
|
+
┌─────────────────────┐
|
|
1160
|
+
│ FILE 75 ROUTER │
|
|
1161
|
+
└──────────┬──────────┘
|
|
1162
|
+
↓
|
|
1163
|
+
┌─────────────────────┐
|
|
1164
|
+
│ TASK CLASSIFICATION │
|
|
1165
|
+
└──────────┬──────────┘
|
|
1166
|
+
↓
|
|
1167
|
+
┌────────────────┴────────────────┐
|
|
1168
|
+
↓ ↓
|
|
1169
|
+
FOUNDATION SKILLS SPECIALIZED SKILLS
|
|
1170
|
+
│ │
|
|
1171
|
+
└────────────────┬────────────────┘
|
|
1172
|
+
↓
|
|
1173
|
+
┌─────────────────────┐
|
|
1174
|
+
│ SKILL SYNTHESIS │
|
|
1175
|
+
└──────────┬──────────┘
|
|
1176
|
+
↓
|
|
1177
|
+
┌─────────────────────┐
|
|
1178
|
+
│ DESIGN / EXECUTE │
|
|
1179
|
+
└──────────┬──────────┘
|
|
1180
|
+
↓
|
|
1181
|
+
┌─────────────────────┐
|
|
1182
|
+
│ VALIDATION SKILLS │
|
|
1183
|
+
└──────────┬──────────┘
|
|
1184
|
+
↓
|
|
1185
|
+
┌─────────────────────┐
|
|
1186
|
+
│ CRITIQUE + REFINE │
|
|
1187
|
+
└──────────┬──────────┘
|
|
1188
|
+
↓
|
|
1189
|
+
┌─────────────────────┐
|
|
1190
|
+
│ DELIVER │
|
|
1191
|
+
└─────────────────────┘
|
|
1192
|
+
```
|
|
1193
|
+
|
|
1194
|
+
# 40. Final Principle
|
|
1195
|
+
|
|
1196
|
+
> **The agent should never read skills because they exist. It should read skills because the task requires the knowledge they contain.**
|
|
1197
|
+
|
|
1198
|
+
The library is the **knowledge base**.
|
|
1199
|
+
|
|
1200
|
+
File 75 is the **orchestrator**.
|
|
1201
|
+
|
|
1202
|
+
This protocol is the **reading/loading mechanism**.
|
|
1203
|
+
|
|
1204
|
+
Together:
|
|
1205
|
+
|
|
1206
|
+
```text
|
|
1207
|
+
SKILL FILES
|
|
1208
|
+
↓
|
|
1209
|
+
READING PROTOCOL
|
|
1210
|
+
↓
|
|
1211
|
+
MASTER ORCHESTRATOR
|
|
1212
|
+
↓
|
|
1213
|
+
RELEVANT KNOWLEDGE
|
|
1214
|
+
↓
|
|
1215
|
+
AGENTIC UI/UX REASONING
|
|
1216
|
+
↓
|
|
1217
|
+
HIGH-QUALITY PRODUCT
|
|
1218
|
+
```
|
|
1219
|
+
|
|
1220
|
+
This file should sit **above Files 1–75 in the repository**, ideally as `00-SKILL-READING-PROTOCOL.md`, because the agent needs to understand *how to consume the library before consuming the library itself*.
|
|
1221
|
+
|
|
1222
|
+
Yep. Since we're now treating the library as a **75-file system**, I'd keep a definitive numbered manifest so the agent always knows exactly what exists and what each file is for.
|
|
1223
|
+
|
|
1224
|
+
One caveat: I have the exact titles for the files we've explicitly established in this conversation for **55–75**, but not the exact canonical titles of **1–54** in the visible context. I don't want to invent those and accidentally corrupt the manifest.
|
|
1225
|
+
|
|
1226
|
+
### Definitive structure
|
|
1227
|
+
|
|
1228
|
+
| # | File | Role |
|
|
1229
|
+
| --------: | ------------------------------------------------------- | -------------------------------------------------------------- |
|
|
1230
|
+
| **00** | **SKILL-READING-PROTOCOL.md** | How the agent discovers, reads, combines, and validates skills |
|
|
1231
|
+
| **01–54** | **Existing UI/UX Foundation Skills** | Original specialized knowledge library |
|
|
1232
|
+
| **55** | **Diagnosis & UI Problem Analysis** | Diagnose interface problems before proposing solutions |
|
|
1233
|
+
| **56** | **Design-System Systemization** | Convert visual decisions into reusable systems |
|
|
1234
|
+
| **57** | **User-Flow Architecture** | Structure tasks, journeys, and interaction flows |
|
|
1235
|
+
| **58** | **Interaction & State Engineering** | Model UI states, transitions, and behavioral logic |
|
|
1236
|
+
| **59** | **Responsive, Accessibility & Performance Foundations** | Core cross-device and quality considerations |
|
|
1237
|
+
| **60** | **Implementation & Refactoring** | Translate design decisions into maintainable implementation |
|
|
1238
|
+
| **61** | **QA & Validation** | Validate UI/UX quality and identify regressions |
|
|
1239
|
+
| **62** | **Autonomous Improvement** | Enable iterative critique and self-improvement |
|
|
1240
|
+
| **63** | **Project Lifecycle** | Manage UI/UX work across the project lifecycle |
|
|
1241
|
+
| **64** | **Decision-Making & Trade-Offs** | Make rational design and implementation decisions |
|
|
1242
|
+
| **65** | **UI Patterns & Composition** | Compose interfaces from reusable patterns |
|
|
1243
|
+
| **66** | **Content, Microcopy & Microinteractions** | UX writing, content hierarchy, and subtle feedback |
|
|
1244
|
+
| **67** | **Navigation, IA & Wayfinding** | Information architecture and navigation systems |
|
|
1245
|
+
| **68** | **Forms, Input & Validation** | Input design, validation, errors, and submission states |
|
|
1246
|
+
| **69** | **Data-Heavy Interfaces** | Tables, dashboards, lists, filters, sorting, dense data |
|
|
1247
|
+
| **70** | **Responsive, Adaptive & Cross-Platform UI** | Adapt interfaces across devices and platforms |
|
|
1248
|
+
| **71** | **Accessibility & Human Factors** | Inclusive design and human-centered interaction |
|
|
1249
|
+
| **72** | **Performance & Rendering Intelligence** | Rendering, responsiveness, memory, and performance |
|
|
1250
|
+
| **73** | **Visual Design Systems, Theming & Tokens** | Visual language, tokens, themes, typography, color |
|
|
1251
|
+
| **74** | **Advanced Interactions, Gestures & State Transitions** | Gestures, motion, feedback, interruptions, complex states |
|
|
1252
|
+
| **75** | **Master UI/UX Orchestrator** | Coordinates the entire skill system |
|
|
1253
|
+
|
|
1254
|
+
### The architecture
|
|
1255
|
+
|
|
1256
|
+
```text
|
|
1257
|
+
00 — HOW TO READ THE LIBRARY
|
|
1258
|
+
↓
|
|
1259
|
+
01–54 — FOUNDATION / SPECIALIZED KNOWLEDGE
|
|
1260
|
+
↓
|
|
1261
|
+
55–74 — CONSOLIDATED ADVANCED CAPABILITIES
|
|
1262
|
+
↓
|
|
1263
|
+
75 — MASTER ORCHESTRATOR
|
|
1264
|
+
```
|
|
1265
|
+
|
|
1266
|
+
And conceptually:
|
|
1267
|
+
|
|
1268
|
+
```text
|
|
1269
|
+
┌─────────────────────┐
|
|
1270
|
+
│ 00 READING PROTOCOL│
|
|
1271
|
+
└──────────┬──────────┘
|
|
1272
|
+
↓
|
|
1273
|
+
┌─────────────────────┐
|
|
1274
|
+
│ 75 MASTER ROUTER │
|
|
1275
|
+
└──────────┬──────────┘
|
|
1276
|
+
↓
|
|
1277
|
+
┌─────────────┴─────────────┐
|
|
1278
|
+
↓ ↓
|
|
1279
|
+
01–54 FOUNDATION 55–74 ADVANCED
|
|
1280
|
+
│ │
|
|
1281
|
+
└─────────────┬─────────────┘
|
|
1282
|
+
↓
|
|
1283
|
+
SYNTHESIZE
|
|
1284
|
+
↓
|
|
1285
|
+
EXECUTE
|
|
1286
|
+
↓
|
|
1287
|
+
VALIDATE
|
|
1288
|
+
↓
|
|
1289
|
+
REFINE
|
|
1290
|
+
```
|
|
1291
|
+
|
|
1292
|
+
**Important:** I would make `00` the only file outside the numbered 1–75 sequence. That gives us a clean convention:
|
|
1293
|
+
|
|
1294
|
+
**00 = protocol → 01–75 = knowledge/agent system.**
|
|
1295
|
+
|
|
1296
|
+
If you give me the existing **01–54 filenames** (or the folder containing them), I can turn this into the **complete exact 00–75 manifest without guessing any names**.
|