Agent Skills
› mocasus/unprompted
› unprompted-mobile
unprompted-mobile
GitHub提供移动端响应式布局、触摸交互及小屏数据展示规范,解决水平滚动、点击区域过小及iOS缩放等问题。
触发场景
构建响应式页面
设计导航栏
开发仪表盘
制作表格
编写表单
安装
npx skills add mocasus/unprompted --skill unprompted-mobile -g -y
SKILL.md
Frontmatter
{
"name": "unprompted-mobile",
"license": "MIT",
"version": "3.2.0",
"metadata": {
"author": "mocasus",
"category": "responsive",
"openclaw": {
"emoji": "📱"
},
"repository": "https:\/\/github.com\/mocasus\/unprompted"
},
"description": "Responsive mobile reflow, breakpoint choreography, touch target sizing, overflow prevention, and small-screen data density rules. Load whenever building responsive pages, navigation bars, dashboards, tables, or forms.",
"compatibility": [
"windows",
"macos",
"linux"
]
}
unprompted-mobile — Responsive Reflow & Touch Ergonomics
Extends core rules U-11, U-24, and U-25. Desktop screens shrunk onto a 375px phone with clipped headlines, horizontal page scroll, and 24px buttons are a classic AI blind spot.
1. Zero Unintended Horizontal Scroll (U-11)
- Every layout must adapt cleanly down to
320pxCSS width without causingdocument.documentElement.scrollWidth > window.innerWidth. - Always apply
min-width: 0(minmax(0, 1fr)in CSS Grid,min-w-0in Flex/Grid children) around code blocks, URLs, long identifiers, and charts so intrinsic content never blows out its parent track. - Fluid display sizing (
clamp(2.1rem, 1.6rem + 3vw, 4.1rem)) prevents long words from clipping off the right viewport edge on narrow screens.
2. Touch Target & Spacing Ergonomics (U-24)
- Every interactive tap target (menu triggers, icon buttons, pagination links, filter pills, checkboxes, close buttons) must provide at least
44x44 CSS pxof clickable hit area (min-height: 44px; min-width: 44pxor invisible pseudo-element hit expansion), separated by at least8pxfrom adjacent actions. - Set form control font size to
>= 16px(1rem) on mobile viewports so iOS Safari does not trigger jarring auto-zoom on input focus. - Use
100dvh(dynamic viewport height) instead of100vhfor full-height mobile drawers and hero shells so mobile browser address bars never clip bottom primary buttons, and respectenv(safe-area-inset-bottom).
3. Data Tables, Dashboards & Navigation Reflow (U-25)
Never squeeze a 6-column desktop table or 5-item horizontal toolbar into unreadable 9px columns on mobile:
- Tables -> Structured Ledger Cards or Bounded Scroll:
- When
<= 4key attributes matter per row, transform rows below640pxinto compact stacked ledger items (primary identifier + right-aligned tabular metric on top, secondary metadata underneath). - When exact cross-row column comparison is essential, wrap the
<table>inside an explicitoverflow-x: autocontainer with a sticky first column—never let the whole page scroll horizontally.
- When
- Multi-Column Grids:
- Collapse
7fr/5frasymmetric splits and 3-column hairline matrices cleanly to1frsingle-column stacks below840px, re-ordering visual proofs only when reading logic demands it.
- Collapse
- Charts & KPI Strips:
- Replace wide multi-axis desktop charts on phone viewports with single-column stacked bars, compact sparklines, or 2-up metric cells with
tabular-nums.
- Replace wide multi-axis desktop charts on phone viewports with single-column stacked bars, compact sparklines, or 2-up metric cells with
版本历史
- 10cd954 当前 2026-12-03 02:10


