Mobile App Skill
Produce a single mobile-app screen mockup, framed inside a real-feeling iPhone 15 Pro device.
Resource map
mobile-app/
├── SKILL.md ← you're reading this
├── assets/
│ └── template.html ← seed: device frame + screen primitives (READ FIRST)
└── references/
├── layouts.md ← 6 screen archetypes (Feed / Detail / Onboarding / Profile / Checkout / Focus)
└── checklist.md ← P0/P1/P2 self-review (anti-fake-device)
Workflow
Step 0 — Pre-flight
- Read
assets/template.html end-to-end through the <style> block. The Dynamic Island, status bar SVG icons, home indicator, side rails, and tab bar are all already drawn in HTML/SVG — do not re-implement them inline on each screen.
- Read
references/layouts.md so you know which 6 archetypes exist.
- Read the active DESIGN.md — map its tokens to the six
:root variables in the seed.
Step 1 — Copy the seed
Copy assets/template.html to the project root as index.html. Replace the six :root variables with the active design system's tokens. Replace the page <title> and the caption above the device.
Step 2 — Pick exactly one archetype
| Brief language |
Use |
| feed, inbox, timeline, list, messages, notifications |
A — Feed |
| article, post, item, recipe, song, product, song detail |
B — Detail |
| sign-up, welcome, intro, walkthrough, tour |
C — Onboarding |
| profile, account, user page, someone's bio |
D — Profile |
| checkout, payment, order, form, settings step |
E — Checkout |
| timer, map, dashboard widget, single big number |
F — Focus / hero card |
A mobile screen does one job. If the brief seems to combine two, ship one screen and offer the other as a follow-up.
Step 3 — Paste and fill
Copy the archetype block from layouts.md into <main class="content">, replacing the placeholder card. Fill bracketed text with real, specific copy from the brief. Drop the <nav class="tabbar"> block entirely for archetypes that don't show one (B, C, E).
Step 4 — Self-check
Run through references/checklist.md. Pay extra attention to:
- Frame still has the Dynamic Island, status bar SVGs, and home indicator
- Tap targets ≥ 44px
- One accent, used ≤ 2× on the screen
- Display headings still use
var(--font-display) (serif)
Step 5 — Emit the artifact
<artifact identifier="mobile-slug" type="text/html" title="Mobile — Screen Name">
<!doctype html>
<html>...</html>
</artifact>
One sentence before describing what's there. Stop after </artifact>.
Hard rules
- The phone is real. Dynamic Island gap, SVG status icons, home indicator. The seed protects all three — don't rewrite the frame.
- Single screen, single job. No multi-tab tours, no spliced flows.
- Accent budget = 2. One active tab + one primary action is the default.
- Numerics in mono via
.num class.
- Display in serif via
var(--font-display).
- No external images — use
.ph-img placeholders.
1---2name: mobile-app3description: A mobile-app screen rendered inside a pixel-accurate iPhone 15 Pro frame on the page. Built by copying the seed `assets/template.html` and pasting one screen archetype from `references/layouts.md`. Use when the brief asks for "mobile app", "iOS app", "Android app", "phone screen", or "app UI".4---5
6# Mobile App Skill
7
8Produce a single mobile-app screen mockup, framed inside a real-feeling iPhone 15 Pro device.
9
10## Resource map
11
12```
13mobile-app/
14├── SKILL.md ← you're reading this
15├── assets/
16│ └── template.html ← seed: device frame + screen primitives (READ FIRST)
17└── references/
18 ├── layouts.md ← 6 screen archetypes (Feed / Detail / Onboarding / Profile / Checkout / Focus)
19 └── checklist.md ← P0/P1/P2 self-review (anti-fake-device)
20```
21
22## Workflow
23
24### Step 0 — Pre-flight
25
261. **Read `assets/template.html`** end-to-end through the `<style>` block. The Dynamic Island, status bar SVG icons, home indicator, side rails, and tab bar are all already drawn in HTML/SVG — do not re-implement them inline on each screen.
272. **Read `references/layouts.md`** so you know which 6 archetypes exist.
283. **Read the active DESIGN.md** — map its tokens to the six `:root` variables in the seed.
29
30### Step 1 — Copy the seed
31
32Copy `assets/template.html` to the project root as `index.html`. Replace the six `:root` variables with the active design system's tokens. Replace the page `<title>` and the caption above the device.
33
34### Step 2 — Pick exactly one archetype
35
36| Brief language | Use |
37|---|---|
38| feed, inbox, timeline, list, messages, notifications | A — Feed |
39| article, post, item, recipe, song, product, song detail | B — Detail |
40| sign-up, welcome, intro, walkthrough, tour | C — Onboarding |
41| profile, account, user page, someone's bio | D — Profile |
42| checkout, payment, order, form, settings step | E — Checkout |
43| timer, map, dashboard widget, single big number | F — Focus / hero card |
44
45A mobile screen does **one job**. If the brief seems to combine two, ship one screen and offer the other as a follow-up.
46
47### Step 3 — Paste and fill
48
49Copy the archetype block from `layouts.md` into `<main class="content">`, replacing the placeholder card. Fill bracketed text with real, specific copy from the brief. **Drop the `<nav class="tabbar">` block entirely** for archetypes that don't show one (B, C, E).
50
51### Step 4 — Self-check
52
53Run through `references/checklist.md`. Pay extra attention to:
54- Frame still has the Dynamic Island, status bar SVGs, and home indicator
55- Tap targets ≥ 44px
56- One accent, used ≤ 2× on the screen
57- Display headings still use `var(--font-display)` (serif)
58
59### Step 5 — Emit the artifact
60
61```
62<artifact identifier="mobile-slug" type="text/html" title="Mobile — Screen Name">
63<!doctype html>
64<html>...</html>
65</artifact>
66```
67
68One sentence before describing what's there. Stop after `</artifact>`.
69
70## Hard rules
71
72- **The phone is real.** Dynamic Island gap, SVG status icons, home indicator. The seed protects all three — don't rewrite the frame.
73- **Single screen, single job.** No multi-tab tours, no spliced flows.
74- **Accent budget = 2.** One active tab + one primary action is the default.
75- **Numerics in mono** via `.num` class.
76- **Display in serif** via `var(--font-display)`.
77- **No external images** — use `.ph-img` placeholders.