mobile-app
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseMobile App Skill
Mobile App Skill
Produce a single mobile-app screen mockup, framed inside a real-feeling iPhone 15 Pro device.
制作单个移动应用屏幕原型,嵌入具有真实质感的iPhone 15 Pro设备框架中。
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)mobile-app/
├── SKILL.md ← 你正在阅读此文件
├── assets/
│ └── template.html ← 种子文件:设备框架 + 屏幕基础元素(请先阅读)
└── references/
├── layouts.md ← 6种屏幕原型(信息流 / 详情页 / 引导页 / 个人资料页 / 结账页 / 聚焦页)
└── checklist.md ← P0/P1/P2自我检查清单(避免伪设备效果)Workflow
工作流程
Step 0 — Pre-flight
步骤0 — 前期准备
- Read end-to-end through the
assets/template.htmlblock. 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.<style> - Read so you know which 6 archetypes exist.
references/layouts.md - Read the active DESIGN.md — map its tokens to the six variables in the seed.
:root
- **通读**的
assets/template.html区块。Dynamic Island、状态栏SVG图标、Home指示器、侧边栏和标签栏均已通过HTML/SVG绘制完成——请勿在每个屏幕中重新实现这些元素。<style> - 阅读,了解现有的6种原型类型。
references/layouts.md - 阅读当前的DESIGN.md——将其中的设计令牌映射到种子文件中的六个变量。
:root
Step 1 — Copy the seed
步骤1 — 复制种子文件
Copy to the project root as . Replace the six variables with the active design system's tokens. Replace the page and the caption above the device.
assets/template.htmlindex.html:root<title>将复制到项目根目录并重命名为。将六个变量替换为当前设计系统的令牌。替换页面和设备上方的说明文字。
assets/template.htmlindex.html:root<title>Step 2 — Pick exactly one archetype
步骤2 — 选择恰好一种原型
| 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.
| 需求术语 | 对应原型 |
|---|---|
| feed、inbox、timeline、list、messages、notifications | A — 信息流 |
| article、post、item、recipe、song、product、song detail | B — 详情页 |
| sign-up、welcome、intro、walkthrough、tour | C — 引导页 |
| profile、account、user page、someone's bio | D — 个人资料页 |
| checkout、payment、order、form、settings step | E — 结账页 |
| timer、map、dashboard widget、single big number | F — 聚焦页 / 主卡片 |
一个移动屏幕只承担一项功能。如果需求似乎结合了两种功能,先交付一个屏幕,并提议将另一个作为后续任务。
Step 3 — Paste and fill
步骤3 — 粘贴并填充内容
Copy the archetype block from into , replacing the placeholder card. Fill bracketed text with real, specific copy from the brief. Drop the block entirely for archetypes that don't show one (B, C, E).
layouts.md<main class="content"><nav class="tabbar">将中的原型代码块复制到中,替换占位卡片。用需求中的真实、具体文案替换带括号的文本。对于不需要标签栏的原型(B、C、E),完全删除区块。
layouts.md<main class="content"><nav class="tabbar">Step 4 — Self-check
步骤4 — 自我检查
Run through . Pay extra attention to:
references/checklist.md- 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 (serif)
var(--font-display)
对照进行检查。特别注意:
references/checklist.md- 框架仍保留Dynamic Island、状态栏SVG图标和Home指示器
- 可点击目标尺寸≥44px
- 仅使用一种强调色,且在屏幕中使用次数≤2次
- 标题仍使用(衬线字体)
var(--font-display)
Step 5 — Emit the artifact
步骤5 — 生成产物
<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><artifact identifier="mobile-slug" type="text/html" title="Mobile — Screen Name">
<!doctype html>
<html>...</html>
</artifact>在产物前用一句话描述其内容。写完后停止。
</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 class.
.num - Display in serif via .
var(--font-display) - No external images — use placeholders.
.ph-img
- 设备需真实还原:保留Dynamic Island缺口、SVG状态图标、Home指示器。种子文件已保护这些元素——请勿重写框架。
- 单屏单功能:不支持多标签引导,不拼接流程。
- 强调色使用次数≤2:默认是一个激活标签 + 一个主要操作按钮。
- 数字使用等宽字体:通过类实现。
.num - 标题使用衬线字体:通过实现。
var(--font-display) - 禁止使用外部图片:使用占位符。
.ph-img