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.
- package/AGENTS.md +13 -0
- package/CHANGELOG.md +30 -17
- package/LICENSE +21 -0
- package/README.md +63 -18
- package/bin/cli.mjs +157 -211
- package/bin/generate.mjs +216 -0
- package/knowledge/INDEX.md +118 -0
- package/knowledge/android/00-android-reading-protocol.md +48 -0
- package/knowledge/android/01-android-decision-framework.md +58 -0
- package/knowledge/android/02-android-information-architecture.md +76 -0
- package/knowledge/android/03-android-interaction-and-state-engineering.md +87 -0
- package/knowledge/android/04-android-visual-system-and-theming.md +77 -0
- package/knowledge/android/05-android-implementation-and-refactoring.md +80 -0
- package/knowledge/android/06-android-qa-and-audit-loop.md +82 -0
- package/knowledge/android/adaptive-and-tablets.md +83 -0
- package/knowledge/android/forms-and-input.md +91 -0
- package/knowledge/android/gestures.md +81 -0
- package/knowledge/android/lists-and-data-heavy.md +88 -0
- package/knowledge/android/motion.md +71 -0
- package/knowledge/android/notifications-and-permissions.md +89 -0
- package/knowledge/android/performance.md +93 -0
- package/knowledge/android/search-and-discovery.md +84 -0
- package/knowledge/android/sheets-dialogs-and-menus.md +94 -0
- package/knowledge/android/states-and-recovery.md +85 -0
- package/knowledge/android/typography.md +74 -0
- package/knowledge/android/visual-qa.md +93 -0
- package/knowledge/android/worked-examples-lists-and-navigation.md +143 -0
- package/knowledge/android/worked-examples-permissions-and-adaptive.md +133 -0
- package/knowledge/android/worked-examples-state-and-forms.md +156 -0
- package/package.json +7 -4
- package/principles/platform-principles.md +3 -3
- package/scripts/sync-platform-adapters.mjs +23 -0
- package/scripts/sync-platform-adapters.ps1 +30 -0
- package/skills/accessibility-engineer/SKILL.md +5 -0
- package/skills/analytics-engineer/SKILL.md +5 -0
- package/skills/animation-engineer/SKILL.md +5 -0
- package/skills/component-designer/SKILL.md +5 -0
- package/skills/component-library-engineer/SKILL.md +8 -1
- package/skills/component-library-ops/SKILL.md +9 -2
- package/skills/design-system/SKILL.md +5 -0
- package/skills/design-token-engineer/SKILL.md +7 -0
- package/skills/design-token-pipeline/SKILL.md +7 -0
- package/skills/device-lab-engineer/SKILL.md +5 -0
- package/skills/forms-engineer/SKILL.md +5 -0
- package/skills/internationalization-engineer/SKILL.md +5 -0
- package/skills/motion-designer/SKILL.md +5 -0
- package/skills/native-data-fetching/SKILL.md +5 -0
- package/skills/navigation-architect/SKILL.md +5 -0
- package/skills/performance-engineer/SKILL.md +5 -0
- package/skills/platform-specialist/SKILL.md +5 -0
- package/skills/pre-release-gate/SKILL.md +5 -0
- package/skills/screen-designer/SKILL.md +5 -0
- package/skills/security-engineer/SKILL.md +5 -0
- package/skills/skill-router/SKILL.md +82 -0
- package/skills/skills.json +139 -134
- package/skills/testing-auditor/SKILL.md +5 -0
- package/skills/ui-architect/SKILL.md +5 -0
- package/skills/ui-implementer/SKILL.md +5 -0
- package/skills/ux-architect/SKILL.md +5 -0
- package/skills/ux-auditor/SKILL.md +5 -0
- package/skills/visual-auditor/SKILL.md +5 -0
- package/workflows/new-screen.md +2 -0
- package/workflows/pre-release.md +2 -0
- package/workflows/redesign.md +2 -0
- package/workflows/ui-audit.md +2 -0
package/AGENTS.md
CHANGED
|
@@ -21,6 +21,19 @@ You are a UI/UX engineering agent, not merely a code generator.
|
|
|
21
21
|
15. Design for failure and recovery, not only the happy path.
|
|
22
22
|
16. Review the finished implementation visually and behaviorally before declaring it complete.
|
|
23
23
|
|
|
24
|
+
## Skill selection
|
|
25
|
+
|
|
26
|
+
Load the smallest set of skills that covers the task. If the request spans more than one skill, load `skill-router` first — it produces the ordered sequence and the handoff artifact for each step.
|
|
27
|
+
|
|
28
|
+
1. Multi-screen journey → `ux-architect`
|
|
29
|
+
2. Single screen structure → `ui-architect`
|
|
30
|
+
3. Visual composition → `screen-designer`
|
|
31
|
+
4. Component API contract → `component-designer`
|
|
32
|
+
5. Implementation → `ui-implementer`, plus the relevant domain skill (`forms-engineer`, `animation-engineer`, `navigation-architect`, `native-data-fetching`, `security-engineer`, `internationalization-engineer`, `performance-engineer`)
|
|
33
|
+
6. Before shipping → `visual-auditor`, `ux-auditor`, `accessibility-engineer`, `pre-release-gate`
|
|
34
|
+
|
|
35
|
+
Use `platform-specialist` whenever iOS and Android may differ. For deeper platform references, open `knowledge/INDEX.md`. The corpus is Apple-heavy; never assume iOS guidance transfers to Android unchanged.
|
|
36
|
+
|
|
24
37
|
## Before implementation
|
|
25
38
|
|
|
26
39
|
Answer internally:
|
package/CHANGELOG.md
CHANGED
|
@@ -1,25 +1,38 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## v2.0.0 — 2026-11-29
|
|
4
|
+
|
|
5
|
+
Package engineering:
|
|
6
|
+
- Extracted shared generation logic into `bin/generate.mjs`; the CLI and sync script now use one implementation.
|
|
7
|
+
- Replaced the PowerShell-only sync script with `scripts/sync-platform-adapters.mjs` (Node, cross-platform); `.ps1` is now a compatibility shim.
|
|
8
|
+
- Fixed CLI argument parsing so flags may appear before the command, and removed the broken "skill-named directory" special case in `init`.
|
|
9
|
+
- Added platform validation for every command, frontmatter-aware skill metadata parsing, and symlink-safe copying.
|
|
10
|
+
- Wrappers are refreshed by `npm run sync` and preserved by default in installed projects unless `--force` is used.
|
|
11
|
+
- Added `npm test` with 15 tests, GitHub Actions CI (Node 18/20/22 on Linux + Windows), `.gitignore`, `.gitattributes`, and `LICENSE`.
|
|
12
|
+
- Added `knowledge/INDEX.md` and a "Skill selection" section to `AGENTS.md` so the 27 skills and 102 knowledge documents are discoverable.
|
|
13
|
+
- Clarified platform-neutral guidance and the scope of overlapping component-library / design-token skills.
|
|
14
|
+
- Added YAML frontmatter (`name`, `description`) to all 27 canonical skills so they conform to the Agent Skills format; the parser still supports the legacy heading layout.
|
|
15
|
+
- Added 22 Android knowledge documents: 12 topic references (motion, forms, lists, sheets/dialogs, states, gestures, typography, adaptive layout, performance, notifications/permissions, search, visual QA), 7 reasoning modules (`00`–`06`) and 3 worked Compose example guides. Updated `knowledge/INDEX.md`.
|
|
16
|
+
- Added an explicit `update` command as the upgrade path (equivalent to `init --force`).
|
|
17
|
+
- Added `skill-router`, a dedicated orchestration skill that sequences multi-skill work with explicit handoff artifacts; `AGENTS.md` now points to it.
|
|
18
|
+
- `add` now installs only the requested skill and its wrapper by default. Pass `--with-shared` to also copy `AGENTS.md`, `knowledge/`, `templates/`, and the other shared assets.
|
|
19
|
+
- Refreshed `README.md`, CLI help, workflows, and `knowledge/INDEX.md` to document install modes, current corpus counts, and which skill owns each workflow.
|
|
20
|
+
|
|
3
21
|
## v1.0.0 — Foundation
|
|
4
22
|
|
|
5
23
|
Initial MobileUI-OS architecture:
|
|
6
24
|
- Agent constitution
|
|
7
|
-
- Design principles
|
|
8
|
-
-
|
|
9
|
-
-
|
|
10
|
-
-
|
|
11
|
-
- New-screen and redesign workflows
|
|
12
|
-
- UI audit and pre-release workflows
|
|
13
|
-
- Design token template
|
|
14
|
-
- Screen specification template
|
|
15
|
-
- Audit report template
|
|
25
|
+
- Design, UX and platform principles
|
|
26
|
+
- 26 specialized skills
|
|
27
|
+
- New-screen, redesign, UI-audit and pre-release workflows
|
|
28
|
+
- Design-token, screen-specification and audit-report templates
|
|
16
29
|
- Official reference registry
|
|
30
|
+
- Apple and Android platform knowledge corpus
|
|
31
|
+
- Agent Skills manifest plus Claude, opencode, Cursor, Codex and Gemini adapters
|
|
17
32
|
|
|
18
|
-
|
|
19
|
-
-
|
|
20
|
-
-
|
|
21
|
-
-
|
|
22
|
-
-
|
|
23
|
-
-
|
|
24
|
-
- screenshot/vision audit workflow
|
|
25
|
-
- project adapter templates for Claude/Codex/Cursor
|
|
33
|
+
Known follow-ups:
|
|
34
|
+
- More Android worked code examples to approach the depth of the Apple corpus
|
|
35
|
+
- A consolidated component pattern library
|
|
36
|
+
- Detailed Material 3 interaction recipes
|
|
37
|
+
- Motion recipes and an accessibility test matrix
|
|
38
|
+
- Screenshot/vision audit workflow
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 MobileUI-OS
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,39 +1,60 @@
|
|
|
1
|
-
# MobileUI-OS
|
|
1
|
+
# MobileUI-OS v2.0
|
|
2
2
|
|
|
3
3
|
A portable agentic UI/UX quality system for premium mobile applications.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## What's included
|
|
6
|
+
|
|
7
|
+
- 27 canonical Agent Skills in `skills/*/SKILL.md`
|
|
8
|
+
- 102 long-form knowledge references — 75 Apple/iOS and 27 Android
|
|
9
|
+
- Platform and design principles, workflows, templates, and an official-link registry
|
|
10
|
+
- An Agent Skills manifest and thin wrappers for Claude Code, opencode, Cursor, Codex, and Gemini
|
|
11
|
+
- A zero-dependency Node CLI for install, add, update, list, and sync
|
|
12
|
+
|
|
13
|
+
## Install with npx
|
|
6
14
|
|
|
7
15
|
No clone required. Run directly in any project:
|
|
8
16
|
|
|
9
17
|
```bash
|
|
10
|
-
# Install all
|
|
18
|
+
# Install all 27 skills, shared assets, and wrappers for all platforms
|
|
11
19
|
npx mobileui-os init
|
|
12
20
|
|
|
13
|
-
#
|
|
21
|
+
# Install only for specific platforms
|
|
14
22
|
npx mobileui-os init --platforms claude,opencode
|
|
15
23
|
|
|
16
24
|
# Install into another directory
|
|
17
25
|
npx mobileui-os init ./my-app --platforms cursor
|
|
18
26
|
|
|
19
|
-
# Add a single skill
|
|
27
|
+
# Add a single skill (skill files + wrapper + scoped manifest)
|
|
20
28
|
npx mobileui-os add ui-architect
|
|
21
29
|
|
|
30
|
+
# Add a skill and also copy AGENTS.md, knowledge/, templates/, etc.
|
|
31
|
+
npx mobileui-os add ui-architect --with-shared
|
|
32
|
+
|
|
33
|
+
# Upgrade an existing install (force-refresh all vendored files and wrappers)
|
|
34
|
+
npx mobileui-os update
|
|
35
|
+
|
|
22
36
|
# List available skills
|
|
23
37
|
npx mobileui-os list
|
|
24
38
|
npx mobileui-os list --json
|
|
25
39
|
```
|
|
26
40
|
|
|
27
|
-
|
|
41
|
+
Short alias is also available: `npx mobileui init`.
|
|
28
42
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
npx --package mobileui-os mobileui-os --help
|
|
32
|
-
```
|
|
43
|
+
From a local checkout, use `npm exec --package "<path-to-this-repo>" -- mobileui-os init`.
|
|
44
|
+
After publishing, consumers can run `npx mobileui-os@latest init`.
|
|
33
45
|
|
|
34
|
-
|
|
46
|
+
## Commands
|
|
35
47
|
|
|
36
|
-
|
|
48
|
+
| Command | What it does |
|
|
49
|
+
|---------|--------------|
|
|
50
|
+
| `init [dir]` | Installs all skills, shared assets, wrappers, and the full manifest. Existing wrappers are preserved unless `--force` is passed. |
|
|
51
|
+
| `add <skill> [dir]` | Installs only the requested skill and its wrappers; the manifest is scoped to installed skills. Shared assets are omitted. |
|
|
52
|
+
| `add <skill> --with-shared` | Same as `add`, but also copies `AGENTS.md`, `knowledge/`, `templates/`, `principles/`, `references/`, and `workflows/`. |
|
|
53
|
+
| `update [dir]` | Equivalent to `init --force`; refreshes all vendored files and wrappers without requiring the caller to remember the flag. |
|
|
54
|
+
| `list [--json]` | Lists canonical skills, optionally as machine-readable JSON. |
|
|
55
|
+
| `--help`, `--version` | Prints usage or the package version. |
|
|
56
|
+
|
|
57
|
+
Flags may appear before or after the command, and invalid platforms or unknown options fail with a clear message.
|
|
37
58
|
|
|
38
59
|
## Platform compatibility
|
|
39
60
|
|
|
@@ -50,25 +71,49 @@ Skills ship in the Agent Skills format (`skills/<name>/SKILL.md`) and are auto-d
|
|
|
50
71
|
|
|
51
72
|
Regenerate or add platform adapters with:
|
|
52
73
|
|
|
53
|
-
```
|
|
54
|
-
|
|
74
|
+
```bash
|
|
75
|
+
npm run sync
|
|
76
|
+
# or: node scripts/sync-platform-adapters.mjs [root]
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
`pwsh scripts/sync-platform-adapters.ps1` remains as a thin compatibility shim, but Node.js 18+ is the only requirement. Never hand-edit generated wrappers; change the canonical skill and run `npm run sync`.
|
|
80
|
+
|
|
81
|
+
## Working with the skills
|
|
82
|
+
|
|
83
|
+
`AGENTS.md` defines the core loop and a short **skill selection** order (journey → screen → component → implementation → audit). Load only the skills the task needs. `skill-router` is the entry point for multi-skill work: it turns a request into an ordered sequence with an explicit handoff artifact, then gets out of the way.
|
|
84
|
+
|
|
85
|
+
Single-skill installs are intentionally lean. They omit `AGENTS.md` and the shared knowledge corpus; use `init` or `add --with-shared` when you need the long-form references cited by a skill.
|
|
86
|
+
|
|
87
|
+
For deeper platform guidance, start at [`knowledge/INDEX.md`](knowledge/INDEX.md). Android now has a dedicated reference for every major topic, but the Apple corpus is still deeper; the index documents the remaining gap. When guidance conflicts, share intent and tokens but adapt navigation, controls, gestures, and affordances to the platform.
|
|
88
|
+
|
|
89
|
+
## Development
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
npm test # CLI + generator tests (Node built-in test runner, zero dependencies)
|
|
93
|
+
npm run test:cli # help + list smoke check
|
|
94
|
+
npm run sync # regenerate manifest + all platform wrappers
|
|
55
95
|
```
|
|
56
96
|
|
|
57
|
-
|
|
97
|
+
CI runs the tests on Node 18/20/22 across Linux and Windows, verifies that generated adapters are in sync, and dry-runs `npm pack`.
|
|
98
|
+
|
|
99
|
+
## Core loop
|
|
100
|
+
|
|
101
|
+
REQUEST → ANALYZE → PLAN → DESIGN → IMPLEMENT → INSPECT → AUDIT → FIX → RE-AUDIT → SHIP
|
|
58
102
|
|
|
59
103
|
## Mission
|
|
104
|
+
|
|
60
105
|
Combine platform-aware design guidance, UX reasoning, design-system discipline, accessibility, motion, implementation rules, and visual/UX auditing into a reusable skill layer.
|
|
61
106
|
|
|
62
107
|
## Primary target
|
|
108
|
+
|
|
63
109
|
React Native + Expo + TypeScript, while keeping the principles framework-independent.
|
|
64
110
|
|
|
65
111
|
## Quality target
|
|
66
|
-
Apple-level UX discipline + Material systemization + modern premium product design + React Native/Expo engineering discipline.
|
|
67
112
|
|
|
68
|
-
|
|
69
|
-
REQUEST → ANALYZE → PLAN → DESIGN → IMPLEMENT → INSPECT → AUDIT → FIX → RE-AUDIT → SHIP
|
|
113
|
+
Apple-level UX discipline + Material systemization + modern premium product design + React Native/Expo engineering discipline.
|
|
70
114
|
|
|
71
115
|
## Source hierarchy
|
|
116
|
+
|
|
72
117
|
1. Official platform guidance
|
|
73
118
|
2. Project design system
|
|
74
119
|
3. Product-specific UX decisions
|