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-app
3description: |
4 A mobile-app screen rendered inside a pixel-accurate iPhone 15 Pro frame
5 on the page. Built by copying the seed `assets/template.html` and pasting
6 one screen archetype from `references/layouts.md`. Use when the brief asks
7 for "mobile app", "iOS app", "Android app", "phone screen", or "app UI".
8triggers:
9 - "mobile app"
10 - "ios app"
11 - "android app"
12 - "phone screen"
13 - "app ui"
14 - "app mockup"
15 - "移动端"
16 - "手机 app"
17od:
18 mode: prototype
19 platform: mobile
20 scenario: design
21 preview:
22 type: html
23 entry: index.html
24 design_system:
25 requires: true
26 sections: [color, typography, layout, components]
27 craft:
28 requires: [state-coverage, animation-discipline]
29metadata:
30 source: https://skillmd.com/skills/gabrielmoreira/mobile-app
31---
32
33# Mobile App Skill
34
35Produce a single mobile-app screen mockup, framed inside a real-feeling iPhone 15 Pro device.
36
37## Resource map
38
39```
40mobile-app/
41├── SKILL.md ← you're reading this
42├── assets/
43│ └── template.html ← seed: device frame + screen primitives (READ FIRST)
44└── references/
45 ├── layouts.md ← 6 screen archetypes (Feed / Detail / Onboarding / Profile / Checkout / Focus)
46 └── checklist.md ← P0/P1/P2 self-review (anti-fake-device)
47```
48
49## Workflow
50
51### Step 0 — Pre-flight
52
531. **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.
542. **Read `references/layouts.md`** so you know which 6 archetypes exist.
553. **Read the active DESIGN.md** — map its tokens to the six `:root` variables in the seed.
56
57### Step 1 — Copy the seed
58
59Copy `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.
60
61### Step 2 — Pick exactly one archetype
62
63| Brief language | Use |
64|---|---|
65| feed, inbox, timeline, list, messages, notifications | A — Feed |
66| article, post, item, recipe, song, product, song detail | B — Detail |
67| sign-up, welcome, intro, walkthrough, tour | C — Onboarding |
68| profile, account, user page, someone's bio | D — Profile |
69| checkout, payment, order, form, settings step | E — Checkout |
70| timer, map, dashboard widget, single big number | F — Focus / hero card |
71
72A mobile screen does **one job**. If the brief seems to combine two, ship one screen and offer the other as a follow-up.
73
74### Step 3 — Paste and fill
75
76Copy 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).
77
78### Step 4 — Self-check
79
80Run through `references/checklist.md`. Pay extra attention to:
81- Frame still has the Dynamic Island, status bar SVGs, and home indicator
82- Tap targets ≥ 44px
83- One accent, used ≤ 2× on the screen
84- Display headings still use `var(--font-display)` (serif)
85
86### Step 5 — Emit the artifact
87
88```
89<artifact identifier="mobile-slug" type="text/html" title="Mobile — Screen Name">
90<!doctype html>
91<html>...</html>
92</artifact>
93```
94
95One sentence before describing what's there. Stop after `</artifact>`.
96
97## Hard rules
98
99- **The phone is real.** Dynamic Island gap, SVG status icons, home indicator. The seed protects all three — don't rewrite the frame.
100- **Single screen, single job.** No multi-tab tours, no spliced flows.
101- **Accent budget = 2.** One active tab + one primary action is the default.
102- **Numerics in mono** via `.num` class.
103- **Display in serif** via `var(--font-display)`.
104- **No external images** — use `.ph-img` placeholders.