mobileui-os 1.0.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/AGENTS.md +13 -0
  2. package/CHANGELOG.md +30 -17
  3. package/LICENSE +21 -0
  4. package/README.md +63 -18
  5. package/bin/cli.mjs +157 -211
  6. package/bin/generate.mjs +216 -0
  7. package/knowledge/INDEX.md +118 -0
  8. package/knowledge/android/00-android-reading-protocol.md +48 -0
  9. package/knowledge/android/01-android-decision-framework.md +58 -0
  10. package/knowledge/android/02-android-information-architecture.md +76 -0
  11. package/knowledge/android/03-android-interaction-and-state-engineering.md +87 -0
  12. package/knowledge/android/04-android-visual-system-and-theming.md +77 -0
  13. package/knowledge/android/05-android-implementation-and-refactoring.md +80 -0
  14. package/knowledge/android/06-android-qa-and-audit-loop.md +82 -0
  15. package/knowledge/android/adaptive-and-tablets.md +83 -0
  16. package/knowledge/android/forms-and-input.md +91 -0
  17. package/knowledge/android/gestures.md +81 -0
  18. package/knowledge/android/lists-and-data-heavy.md +88 -0
  19. package/knowledge/android/motion.md +71 -0
  20. package/knowledge/android/notifications-and-permissions.md +89 -0
  21. package/knowledge/android/performance.md +93 -0
  22. package/knowledge/android/search-and-discovery.md +84 -0
  23. package/knowledge/android/sheets-dialogs-and-menus.md +94 -0
  24. package/knowledge/android/states-and-recovery.md +85 -0
  25. package/knowledge/android/typography.md +74 -0
  26. package/knowledge/android/visual-qa.md +93 -0
  27. package/knowledge/android/worked-examples-lists-and-navigation.md +143 -0
  28. package/knowledge/android/worked-examples-permissions-and-adaptive.md +133 -0
  29. package/knowledge/android/worked-examples-state-and-forms.md +156 -0
  30. package/package.json +7 -4
  31. package/principles/platform-principles.md +3 -3
  32. package/scripts/sync-platform-adapters.mjs +23 -0
  33. package/scripts/sync-platform-adapters.ps1 +30 -0
  34. package/skills/accessibility-engineer/SKILL.md +5 -0
  35. package/skills/analytics-engineer/SKILL.md +5 -0
  36. package/skills/animation-engineer/SKILL.md +5 -0
  37. package/skills/component-designer/SKILL.md +5 -0
  38. package/skills/component-library-engineer/SKILL.md +8 -1
  39. package/skills/component-library-ops/SKILL.md +9 -2
  40. package/skills/design-system/SKILL.md +5 -0
  41. package/skills/design-token-engineer/SKILL.md +7 -0
  42. package/skills/design-token-pipeline/SKILL.md +7 -0
  43. package/skills/device-lab-engineer/SKILL.md +5 -0
  44. package/skills/forms-engineer/SKILL.md +5 -0
  45. package/skills/internationalization-engineer/SKILL.md +5 -0
  46. package/skills/motion-designer/SKILL.md +5 -0
  47. package/skills/native-data-fetching/SKILL.md +5 -0
  48. package/skills/navigation-architect/SKILL.md +5 -0
  49. package/skills/performance-engineer/SKILL.md +5 -0
  50. package/skills/platform-specialist/SKILL.md +5 -0
  51. package/skills/pre-release-gate/SKILL.md +5 -0
  52. package/skills/screen-designer/SKILL.md +5 -0
  53. package/skills/security-engineer/SKILL.md +5 -0
  54. package/skills/skill-router/SKILL.md +82 -0
  55. package/skills/skills.json +139 -134
  56. package/skills/testing-auditor/SKILL.md +5 -0
  57. package/skills/ui-architect/SKILL.md +5 -0
  58. package/skills/ui-implementer/SKILL.md +5 -0
  59. package/skills/ux-architect/SKILL.md +5 -0
  60. package/skills/ux-auditor/SKILL.md +5 -0
  61. package/skills/visual-auditor/SKILL.md +5 -0
  62. package/workflows/new-screen.md +2 -0
  63. package/workflows/pre-release.md +2 -0
  64. package/workflows/redesign.md +2 -0
  65. package/workflows/ui-audit.md +2 -0
@@ -0,0 +1,82 @@
1
+ ---
2
+ name: skill-router
3
+ description: 'Route UI/UX work to the right MobileUI-OS skills and sequence them through the core loop.'
4
+ ---
5
+
6
+ # Skill Router
7
+
8
+ Start here when the task is not tied to one skill. Choose the smallest set of skills that covers the work, define the handoffs, then stop routing and execute.
9
+
10
+ ## Primary goal
11
+
12
+ Convert a request into an ordered sequence of skills with explicit inputs and outputs. Routing ends when the next skill and its input artifact are unambiguous.
13
+
14
+ ## Route by task
15
+
16
+ | Request | First skill | Then |
17
+ |---------|-------------|------|
18
+ | New feature / journey | `ux-architect` | `ui-architect` → `screen-designer` → `ui-implementer` → audits |
19
+ | Single screen structure | `ui-architect` | `screen-designer` → `ui-implementer` → audits |
20
+ | Visual redesign | `visual-auditor` | `ui-architect` → `screen-designer` → `ui-implementer` → re-audit |
21
+ | New component | `component-designer` | `design-system` → `ui-implementer` → `visual-auditor` |
22
+ | Token / theming work | `design-system` | `design-token-engineer` or `design-token-pipeline` → `ui-implementer` |
23
+ | Library packaging | `component-library-engineer` | `component-library-ops` |
24
+ | Form, navigation, data, motion, i18n, security | Domain skill directly | `ui-implementer` → relevant auditor |
25
+ | Accessibility fix | `accessibility-engineer` | `ui-implementer` → `visual-auditor` |
26
+ | Performance problem | `performance-engineer` | `ui-implementer` → `testing-auditor` |
27
+ | Release readiness | `pre-release-gate` | `testing-auditor` / `device-lab-engineer` → `visual-auditor` |
28
+ | Unclear iOS vs Android behavior | `platform-specialist` | Domain skill → `ui-implementer` |
29
+
30
+ ## Sequences by phase
31
+
32
+ ```
33
+ REQUEST → skill-router (this skill)
34
+ ANALYZE → ux-architect or ui-architect
35
+ PLAN → platform-specialist + domain skill
36
+ DESIGN → screen-designer / component-designer / design-system
37
+ IMPLEMENT→ ui-implementer + domain skills
38
+ INSPECT → visual-auditor or ux-auditor
39
+ AUDIT → accessibility-engineer + testing-auditor
40
+ FIX → ui-implementer
41
+ RE-AUDIT → same auditor as before
42
+ SHIP → pre-release-gate
43
+ ```
44
+
45
+ ## Handoff contract
46
+
47
+ Every handoff carries:
48
+ 1. the user goal in one sentence,
49
+ 2. the artifact produced (screen spec, token map, audit report),
50
+ 3. the open decisions and constraints,
51
+ 4. the platform(s) in scope,
52
+ 5. the state matrix or the list of states still missing.
53
+
54
+ Do not route to a second skill without an artifact for it to consume.
55
+
56
+ ## Stop rules
57
+
58
+ - Stop routing once the next skill and its input artifact are clear.
59
+ - Do not load every skill "just in case"; each additional skill adds contradictory guidance.
60
+ - Do not route to an auditor before there is something to inspect.
61
+ - If the request is a single, well-scoped change, skip routing entirely and use the owning skill.
62
+
63
+ ## Knowledge references
64
+
65
+ When the install includes shared assets, use `knowledge/INDEX.md` **after** routing, not before. It maps topics to Apple and Android references. For Android work, apply `knowledge/android/00-apple-to-android-adaption.md` before using any Apple reference.
66
+
67
+ A lean `add` install omits these documents. In that case, route from this skill alone and tell the user to run `npx mobileui-os update` or reinstall with `--with-shared` if deep platform references are needed.
68
+
69
+ ## Anti-patterns
70
+
71
+ - Treating the skill list as a checklist.
72
+ - Routing without writing down the user goal.
73
+ - Skipping the state matrix because the happy path is obvious.
74
+ - Auditing with a different rubric than the one used before the fix.
75
+ - Re-routing after implementation has already started without preserving context.
76
+
77
+ ## Related
78
+
79
+ - `AGENTS.md` — core loop and non-negotiable rules
80
+ - `skills/ux-architect/SKILL.md`
81
+ - `skills/ui-implementer/SKILL.md`
82
+ - `skills/pre-release-gate/SKILL.md`
@@ -1,134 +1,139 @@
1
- {
2
- "skills": [
3
- {
4
- "name": "accessibility-engineer",
5
- "description": "Audit and implement accessibility as architecture, not afterthought.",
6
- "instructions": "accessibility-engineer/SKILL.md"
7
- },
8
- {
9
- "name": "analytics-engineer",
10
- "description": "Implement privacy-compliant, actionable event tracking with clear taxonomy and funnel analysis.",
11
- "instructions": "analytics-engineer/SKILL.md"
12
- },
13
- {
14
- "name": "animation-engineer",
15
- "description": "Build performant, platform-native motion: shared elements, layout animations, spring physics, gesture-driven transitions.",
16
- "instructions": "animation-engineer/SKILL.md"
17
- },
18
- {
19
- "name": "component-designer",
20
- "description": "Create components from repeated semantics, not arbitrary visual fragments.",
21
- "instructions": "component-designer/SKILL.md"
22
- },
23
- {
24
- "name": "component-library-engineer",
25
- "description": "Operate a reusable component library: versioning, releases, documentation, consumption.",
26
- "instructions": "component-library-engineer/SKILL.md"
27
- },
28
- {
29
- "name": "component-library-ops",
30
- "description": "Operate a versioned, documented, tested component library for cross-platform consumption.",
31
- "instructions": "component-library-ops/SKILL.md"
32
- },
33
- {
34
- "name": "design-system",
35
- "description": "Use semantic tokens. Build a shared, versioned, platform-agnostic design system.",
36
- "instructions": "design-system/SKILL.md"
37
- },
38
- {
39
- "name": "design-token-engineer",
40
- "description": "Build and maintain the token pipeline: Figma → semantic tokens → platform outputs.",
41
- "instructions": "design-token-engineer/SKILL.md"
42
- },
43
- {
44
- "name": "design-token-pipeline",
45
- "description": "Transform design decisions into platform-agnostic tokens and deliver them to every target.",
46
- "instructions": "design-token-pipeline/SKILL.md"
47
- },
48
- {
49
- "name": "device-lab-engineer",
50
- "description": "Automate testing across real device matrices: CI integration, flake detection, parallel execution, artifact collection.",
51
- "instructions": "device-lab-engineer/SKILL.md"
52
- },
53
- {
54
- "name": "forms-engineer",
55
- "description": "Build accessible, platform-native forms with validation, error handling, and input optimization.",
56
- "instructions": "forms-engineer/SKILL.md"
57
- },
58
- {
59
- "name": "internationalization-engineer",
60
- "description": "Build apps that work globally: RTL, locales, pluralization, formatting, translation workflow.",
61
- "instructions": "internationalization-engineer/SKILL.md"
62
- },
63
- {
64
- "name": "motion-designer",
65
- "description": "Motion must serve feedback, state change, spatial continuity, hierarchy, or gesture response.",
66
- "instructions": "motion-designer/SKILL.md"
67
- },
68
- {
69
- "name": "native-data-fetching",
70
- "description": "Implement robust data fetching for mobile: loading, error, empty, offline, and recovery states.",
71
- "instructions": "native-data-fetching/SKILL.md"
72
- },
73
- {
74
- "name": "navigation-architect",
75
- "description": "Design and implement Expo Router navigation: structure, deep linking, state restoration, platform adaptations.",
76
- "instructions": "navigation-architect/SKILL.md"
77
- },
78
- {
79
- "name": "performance-engineer",
80
- "description": "Profile, optimize, and enforce performance budgets for mobile apps.",
81
- "instructions": "performance-engineer/SKILL.md"
82
- },
83
- {
84
- "name": "platform-specialist",
85
- "description": "Determine platform-specific vs. shared implementation for every interaction.",
86
- "instructions": "platform-specialist/SKILL.md"
87
- },
88
- {
89
- "name": "pre-release-gate",
90
- "description": "Execute the pre-release workflow: automated checks, manual verification, beta distribution, rollout monitoring.",
91
- "instructions": "pre-release-gate/SKILL.md"
92
- },
93
- {
94
- "name": "screen-designer",
95
- "description": "Translate the screen architecture into a visual composition.",
96
- "instructions": "screen-designer/SKILL.md"
97
- },
98
- {
99
- "name": "security-engineer",
100
- "description": "Implement defense-in-depth: secure storage, network, authentication, data minimization, compliance.",
101
- "instructions": "security-engineer/SKILL.md"
102
- },
103
- {
104
- "name": "testing-auditor",
105
- "description": "Automate visual, accessibility, and performance regression gates for pre-release.",
106
- "instructions": "testing-auditor/SKILL.md"
107
- },
108
- {
109
- "name": "ui-architect",
110
- "description": "Define the structure of a screen or feature before implementation.",
111
- "instructions": "ui-architect/SKILL.md"
112
- },
113
- {
114
- "name": "ui-implementer",
115
- "description": "Implementation order: tokens → primitives → structure → interaction → states → motion → a11y → platform → polish.",
116
- "instructions": "ui-implementer/SKILL.md"
117
- },
118
- {
119
- "name": "ux-architect",
120
- "description": "Map the complete user journey from entry to exit and re-entry.",
121
- "instructions": "ux-architect/SKILL.md"
122
- },
123
- {
124
- "name": "ux-auditor",
125
- "description": "Test the experience against heuristics and user goals.",
126
- "instructions": "ux-auditor/SKILL.md"
127
- },
128
- {
129
- "name": "visual-auditor",
130
- "description": "Inspect the completed UI for visual and behavioral quality.",
131
- "instructions": "visual-auditor/SKILL.md"
132
- }
133
- ]
134
- }
1
+ {
2
+ "skills": [
3
+ {
4
+ "name": "accessibility-engineer",
5
+ "description": "Audit and implement accessibility as architecture, not afterthought.",
6
+ "instructions": "accessibility-engineer/SKILL.md"
7
+ },
8
+ {
9
+ "name": "analytics-engineer",
10
+ "description": "Implement privacy-compliant, actionable event tracking with clear taxonomy and funnel analysis.",
11
+ "instructions": "analytics-engineer/SKILL.md"
12
+ },
13
+ {
14
+ "name": "animation-engineer",
15
+ "description": "Build performant, platform-native motion: shared elements, layout animations, spring physics, gesture-driven transitions.",
16
+ "instructions": "animation-engineer/SKILL.md"
17
+ },
18
+ {
19
+ "name": "component-designer",
20
+ "description": "Create components from repeated semantics, not arbitrary visual fragments.",
21
+ "instructions": "component-designer/SKILL.md"
22
+ },
23
+ {
24
+ "name": "component-library-engineer",
25
+ "description": "Design component APIs and the library structure that ships them.",
26
+ "instructions": "component-library-engineer/SKILL.md"
27
+ },
28
+ {
29
+ "name": "component-library-ops",
30
+ "description": "Operate versioning, releases, documentation sites and deprecation for a component library.",
31
+ "instructions": "component-library-ops/SKILL.md"
32
+ },
33
+ {
34
+ "name": "design-system",
35
+ "description": "Use semantic tokens. Build a shared, versioned, platform-agnostic design system.",
36
+ "instructions": "design-system/SKILL.md"
37
+ },
38
+ {
39
+ "name": "design-token-engineer",
40
+ "description": "Build and maintain the token pipeline: Figma → semantic tokens → platform outputs.",
41
+ "instructions": "design-token-engineer/SKILL.md"
42
+ },
43
+ {
44
+ "name": "design-token-pipeline",
45
+ "description": "Transform design decisions into platform-agnostic tokens and deliver them to every target.",
46
+ "instructions": "design-token-pipeline/SKILL.md"
47
+ },
48
+ {
49
+ "name": "device-lab-engineer",
50
+ "description": "Automate testing across real device matrices: CI integration, flake detection, parallel execution, artifact collection.",
51
+ "instructions": "device-lab-engineer/SKILL.md"
52
+ },
53
+ {
54
+ "name": "forms-engineer",
55
+ "description": "Build accessible, platform-native forms with validation, error handling, and input optimization.",
56
+ "instructions": "forms-engineer/SKILL.md"
57
+ },
58
+ {
59
+ "name": "internationalization-engineer",
60
+ "description": "Build apps that work globally: RTL, locales, pluralization, formatting, translation workflow.",
61
+ "instructions": "internationalization-engineer/SKILL.md"
62
+ },
63
+ {
64
+ "name": "motion-designer",
65
+ "description": "Motion must serve feedback, state change, spatial continuity, hierarchy, or gesture response.",
66
+ "instructions": "motion-designer/SKILL.md"
67
+ },
68
+ {
69
+ "name": "native-data-fetching",
70
+ "description": "Implement robust data fetching for mobile: loading, error, empty, offline, and recovery states.",
71
+ "instructions": "native-data-fetching/SKILL.md"
72
+ },
73
+ {
74
+ "name": "navigation-architect",
75
+ "description": "Design and implement Expo Router navigation: structure, deep linking, state restoration, platform adaptations.",
76
+ "instructions": "navigation-architect/SKILL.md"
77
+ },
78
+ {
79
+ "name": "performance-engineer",
80
+ "description": "Profile, optimize, and enforce performance budgets for mobile apps.",
81
+ "instructions": "performance-engineer/SKILL.md"
82
+ },
83
+ {
84
+ "name": "platform-specialist",
85
+ "description": "Determine platform-specific vs. shared implementation for every interaction.",
86
+ "instructions": "platform-specialist/SKILL.md"
87
+ },
88
+ {
89
+ "name": "pre-release-gate",
90
+ "description": "Execute the pre-release workflow: automated checks, manual verification, beta distribution, rollout monitoring.",
91
+ "instructions": "pre-release-gate/SKILL.md"
92
+ },
93
+ {
94
+ "name": "screen-designer",
95
+ "description": "Translate the screen architecture into a visual composition.",
96
+ "instructions": "screen-designer/SKILL.md"
97
+ },
98
+ {
99
+ "name": "security-engineer",
100
+ "description": "Implement defense-in-depth: secure storage, network, authentication, data minimization, compliance.",
101
+ "instructions": "security-engineer/SKILL.md"
102
+ },
103
+ {
104
+ "name": "skill-router",
105
+ "description": "Route UI/UX work to the right MobileUI-OS skills and sequence them through the core loop.",
106
+ "instructions": "skill-router/SKILL.md"
107
+ },
108
+ {
109
+ "name": "testing-auditor",
110
+ "description": "Automate visual, accessibility, and performance regression gates for pre-release.",
111
+ "instructions": "testing-auditor/SKILL.md"
112
+ },
113
+ {
114
+ "name": "ui-architect",
115
+ "description": "Define the structure of a screen or feature before implementation.",
116
+ "instructions": "ui-architect/SKILL.md"
117
+ },
118
+ {
119
+ "name": "ui-implementer",
120
+ "description": "Implementation order: tokens → primitives → structure → interaction → states → motion → a11y → platform → polish.",
121
+ "instructions": "ui-implementer/SKILL.md"
122
+ },
123
+ {
124
+ "name": "ux-architect",
125
+ "description": "Map the complete user journey from entry to exit and re-entry.",
126
+ "instructions": "ux-architect/SKILL.md"
127
+ },
128
+ {
129
+ "name": "ux-auditor",
130
+ "description": "Test the experience against heuristics and user goals.",
131
+ "instructions": "ux-auditor/SKILL.md"
132
+ },
133
+ {
134
+ "name": "visual-auditor",
135
+ "description": "Inspect the completed UI for visual and behavioral quality.",
136
+ "instructions": "visual-auditor/SKILL.md"
137
+ }
138
+ ]
139
+ }
@@ -1,3 +1,8 @@
1
+ ---
2
+ name: testing-auditor
3
+ description: 'Automate visual, accessibility, and performance regression gates for pre-release.'
4
+ ---
5
+
1
6
  # Testing Auditor
2
7
 
3
8
  Automate visual, accessibility, and performance regression gates for pre-release.
@@ -1,3 +1,8 @@
1
+ ---
2
+ name: ui-architect
3
+ description: 'Define the structure of a screen or feature before implementation.'
4
+ ---
5
+
1
6
  # UI Architect
2
7
 
3
8
  Define the structure of a screen or feature before implementation.
@@ -1,3 +1,8 @@
1
+ ---
2
+ name: ui-implementer
3
+ description: 'Implementation order: tokens → primitives → structure → interaction → states → motion → a11y → platform → polish.'
4
+ ---
5
+
1
6
  # UI Implementer
2
7
 
3
8
  Implementation order: tokens → primitives → structure → interaction → states → motion → a11y → platform → polish.
@@ -1,3 +1,8 @@
1
+ ---
2
+ name: ux-architect
3
+ description: 'Map the complete user journey from entry to exit and re-entry.'
4
+ ---
5
+
1
6
  # UX Architect
2
7
 
3
8
  Map the complete user journey from entry to exit and re-entry.
@@ -1,3 +1,8 @@
1
+ ---
2
+ name: ux-auditor
3
+ description: 'Test the experience against heuristics and user goals.'
4
+ ---
5
+
1
6
  # UX Auditor
2
7
 
3
8
  Test the experience against heuristics and user goals.
@@ -1,3 +1,8 @@
1
+ ---
2
+ name: visual-auditor
3
+ description: 'Inspect the completed UI for visual and behavioral quality.'
4
+ ---
5
+
1
6
  # Visual Auditor
2
7
 
3
8
  Inspect the completed UI for visual and behavioral quality.
@@ -1,5 +1,7 @@
1
1
  # New Screen Workflow
2
2
 
3
+ Owned by `ui-architect`. If the screen belongs to a larger journey, start with `skill-router` → `ux-architect` and preserve the handoff artifact.
4
+
3
5
  1. Define user goal.
4
6
  2. Define primary action.
5
7
  3. Define information hierarchy.
@@ -1,5 +1,7 @@
1
1
  # Pre-release UX Gate
2
2
 
3
+ Owned by `pre-release-gate`; use `testing-auditor` and `device-lab-engineer` for automated evidence before the final visual/UX pass.
4
+
3
5
  Do not call a screen finished until:
4
6
 
5
7
  [ ] Primary task is obvious
@@ -1,5 +1,7 @@
1
1
  # Redesign Workflow
2
2
 
3
+ Owned by `visual-auditor` for the initial assessment, then `ui-architect` → `screen-designer` → `ui-implementer` → re-audit. Use `skill-router` when the redesign spans multiple surfaces.
4
+
3
5
  1. Preserve known functional requirements.
4
6
  2. Audit the existing UX before changing visuals.
5
7
  3. Identify friction and unnecessary complexity.
@@ -1,5 +1,7 @@
1
1
  # UI Audit Workflow
2
2
 
3
+ Owned by `visual-auditor` and `ux-auditor`; add `accessibility-engineer` and `platform-specialist` when their domains are in scope.
4
+
3
5
  Review:
4
6
  - hierarchy
5
7
  - spacing