用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Dev-Toolbelt/dev-team-agents --skill mobile-design命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | mobile-design |
| description | Mobile-first responsive UI specs — breakpoints, navigation, spacing, touch targets. |
Every UI task must produce mobile specifications. Designs without mobile coverage are incomplete. Apply these rules regardless of whether the user mentions mobile.
| Breakpoint | Width | Layout |
|---|---|---|
| Mobile S | 320px | Single column, full-width blocks |
| Mobile L | 375px–428px | Single column, standard mobile |
| Tablet | 768px | 2-column or adaptive single |
| Desktop | 1280px+ | Full multi-column |
Default breakpoints (adapt to project's system): sm: 640px · md: 768px · lg: 1024px · xl: 1280px
Mobile-first rule: design the 375px layout first, then expand. Never design desktop-first and shrink.
| Pattern | Mobile | Desktop |
|---|---|---|
| Primary nav | Bottom tab bar (≤ 5 items) or hamburger drawer | Top horizontal nav or sidebar |
| Secondary nav | Drawer, bottom sheet, or accordion | Sidebar or breadcrumb |
| Search | Full-screen overlay | Inline search bar |
| Modals | Bottom sheet (full or partial) | Centered modal |
| Element | Desktop | Mobile |
|---|---|---|
| H1 | 36–48px | 24–30px |
| H2 | 24–30px | 20–24px |
| Body | 16px | 16px (never below 14px) |
| Caption | 14px | 13–14px |
| Line height | 1.5 | 1.5–1.6 |
font-size ≥ 16px on all form inputs (prevents iOS auto-zoom)| Component | Mobile behavior |
|---|---|
| Button group | Stack vertically; full-width primary button |
| Data table | Horizontal scroll or transform to card list |
| Tabs | Horizontal scroll if > 4; consider bottom nav |
| Dropdown/Select | Native OS picker preferred |
| Toast/Snackbar | Bottom of screen, above nav bar |
| Pagination | Infinite scroll or "Load more" preferred |
Instruct the frontend-developer to write mobile-first CSS:
/* Base = mobile */
.card { padding: 16px; flex-direction: column; }
/* Expand up */
@media (min-width: 768px) {
.card { padding: 24px; flex-direction: row; }
}
Never write desktop-first and override with max-width queries.