Agent Skills › mocasus/unprompted › unprompted-mobile

unprompted-mobile

GitHub

针对移动端响应式重构与触控交互规范的技能,解决窄屏布局错位、横向滚动及触控目标过小等问题。适用于构建响应式页面、导航栏、仪表盘及表单等场景。

skills/unprompted-mobile/SKILL.md mocasus/unprompted

Trigger Scenarios

构建响应式页面 优化移动端触控体验 处理窄屏数据展示 调整表单与导航栏

Install

npx skills add mocasus/unprompted --skill unprompted-mobile -g -y
More Options

Use without installing

npx skills use mocasus/unprompted@unprompted-mobile

指定 Agent (Claude Code)

npx skills add mocasus/unprompted --skill unprompted-mobile -a claude-code -g -y

安装 repo 全部 skill

npx skills add mocasus/unprompted --all -g -y

预览 repo 内 skill

npx skills add mocasus/unprompted --list

SKILL.md

Frontmatter
{
    "name": "unprompted-mobile",
    "license": "MIT",
    "version": "4.0.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 v4 S-09, S-10, A-08, A-12, E-02, and E-05. 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 (S-10, E-05)

  • Every layout must adapt cleanly down to 320px CSS width without causing document.documentElement.scrollWidth > window.innerWidth.
  • Always apply min-width: 0 (minmax(0, 1fr) in CSS Grid, min-w-0 in 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.
  • Bounded-scroll is allowed only inside a deliberate container (overflow-x: auto on a table or code block); the page itself must not scroll sideways.
  • Attach E-05 proof at the narrowest supported width.

2. Touch target & spacing ergonomics (A-08)

  • Every interactive tap target (menu triggers, icon buttons, pagination links, filter pills, checkboxes, close buttons) must provide at least 44×44 CSS px of clickable hit area (min-height: 44px; min-width: 44px or invisible pseudo-element hit expansion), separated by at least 8px from 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 of 100vh for full-height mobile drawers and hero shells so mobile browser address bars never clip bottom primary buttons, and respect env(safe-area-inset-bottom).

3. Responsive priority (S-09)

Narrow layouts reorder, stack, or bound-scroll by importance. Do not solve a narrow layout by clipping or hiding essential content.

  1. Tables -> structured ledger cards or bounded scroll:
    • When <= 4 key attributes matter per row, transform rows below 640px into 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 explicit overflow-x: auto container with a sticky first column—never let the whole page scroll horizontally.
  2. Multi-column grids:
    • Collapse 7fr/5fr asymmetric splits and 3-column hairline matrices cleanly to 1fr single-column stacks below 840px, re-ordering visual proofs only when reading logic demands it.
  3. 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.
  4. Navigation:
    • Keep the primary action reachable; do not hide it behind a hamburger when one direct action would fit. If a drawer is necessary, trap focus, close on Escape, and restore focus (A-03).

4. Zoom & reflow (A-12, E-02)

  • At 200% zoom, content reflows without loss, clipping, or horizontal scroll.
  • Evidence must include 320, 768, 1440, and 1920 widths (or documented breakpoints plus 320 and the maximum supported width). A mobile pass without a desktop maximum-width check is UNVERIFIED.

Version History

  • 5f9ec34 Current 2026-12-05 03:22

    新增第3节响应式优先级规范,细化表格转卡片、网格折叠、图表适配及导航交互策略;规则引用从U系列更新为S/A/E系列。

  • 10cd954 2026-12-03 02:10

Same Skill Collection

skills/unprompted-a11y/SKILL.md
skills/unprompted-code/SKILL.md
skills/unprompted-copywriting/SKILL.md
skills/unprompted-direction/SKILL.md
skills/unprompted-ui/SKILL.md
skills/unprompted/SKILL.md

Metadata

Files
0
Version
5f9ec34
Hash
93da66d6
Indexed
2026-12-03 02:10

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.156.0. UTC+08:00, 2026-12-05 05:44
浙ICP备14020137号-1