Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

mobile-first-pass

БесплатноБез исполняемых скриптовНе проверен

Audit the Eva phone app (apps/mobile) against a 20-point mobile-first and native-feel checklist (back, sheets, keyboard, touch targets, gestures, swipes…

vvedantbот vvedantb★ 100 звёзд на GitHub

Об этом скилле

Mobile-first pass

The phone app copies the Eva web look (Inter, Tabler icons, web colours through @vvedantb/native-ui). Its behaviour must be mobile-first: the web is desktop-first, and there is no desktop APK. This pass checks behaviour, layout and accessibility. It never restyles.

Look from the web, ergonomics from the phone

Copy from the web: colours, fonts and weights, icons, radii, borders, component shapes, states and wording.

Do NOT copy the web's desktop density. Spacing, padding, row heights, list density and the size of tappable text follow phone ergonomics, because a finger is not a mouse pointer:

  • Tappable rows in a list are about 56 pt high (one line) or 64 pt (two lines), as the Inbox rows. Never the web's 30 pt drawer rows.
  • Every control reaches 44 pt; tappable titles are at least 14 px in the normal text colour, not muted 12-13 px.
  • Lists get dividers or card spacing so rows read as separate targets.
  • Primary actions sit in thumb reach at the bottom.

When a web measurement is a desktop density value, do not port it. Use the phone value and say so in the report.

Scope

Every screen under apps/mobile/app/ (tabs, pushed screens, auth) and the parts in apps/mobile/src/. If the change is small, audit only the screens it touches, but always run items 1, 3 and 5 on them.

The checklist

Record each screen × item as pass, fixed or left, with evidence (a measurement, a screenshot or a code reference).

  1. Back. Android hardware back and the header back go where the user expects.
    • An open sheet, dialog, menu or select mode closes first.
    • A pushed screen returns to the screen it came from, not to the first tab. The root layout must be a Stack, not a Slot: a Slot unmounts the tabs under a pushed screen.
    • A deep-linked screen (notification, inbox, shared link) uses goBackOrReplace with a sensible fallback.
    • After a submit that leaves the screen (create, start, archive), back cannot return to the dead form: use replace, or go back.
    • Tabs use backBehavior: "firstRoute".
  2. Push, replace or sheet. Section switches, segmented tabs and steppers change params with setParams or replace and add no history. Short choices and pickers are bottom sheets. Long forms are full screens.
  3. Sheets and dialogs. Each one closes on a backdrop tap and on Android back, respects the bottom safe area, and scrolls when taller than the window. Its title stays on screen in a short window: test at about 390 × 460 as a stand-in for an open keyboard. A sheet with a text field focuses it on open (onShow).
  4. Keyboard. Fields and composers stay above the keyboard. The chat keeps the newest message in view. Taps on rows work while the keyboard is up (keyboardShouldPersistTaps). Return submits or moves to the next field, as the web does.
  5. Touch targets. Every control reaches at least 44 pt (hit slop is fine). Measure that hit areas do not overlap: slop larger than half the gap to a neighbour steals its taps. Rows packed in a tight pitch get vertical-only or no slop. Primary actions sit at the bottom, in thumb reach.
  6. Accessibility. Icon-only buttons have accessibilityLabel. Tabs, pills, toggles and folds set selected or expanded state. Headers are marked. Text at 1.3× font scale does not clip.
  7. Motion. Each animation has a purpose, lasts 250 ms or less, runs on the UI thread and respects Reduce Motion (useReduceMotion).
  8. Long lists. Any list that can pass about 50 rows is virtualised with React Native's FlatList or SectionList, with stable keys. Add no new list dependency. For a chat, use native-ui ConversationList: FlatList.scrollToEnd uses estimated row heights, so a long thread can open at the top. Long diffs render in chunks with "Show N more lines".
  9. Light and dark. Spot-check every changed screen in both themes.
  10. States. Each data screen has loading, empty and error states. Use the web's wording where the web has one. Loading keeps the header and back.

Native feel

These rules make the app feel like a phone app, not a web page in a frame. Check them on every screen you change. Read the gestures and animate-expo skills before you build a gesture.

  1. Gestures run on the UI thread. Build drags with Gesture Handler through the kit: use the parts handed over by @vvedantb/native-ui/gesture-handler (GestureHandlerProvider); never import react-native-gesture-handler in a shared kit part. A drag writes shared values only: no React state per move.
  2. Gesture physics. While the finger is down, the element follows it 1:1. On release, a spring starts at the finger's speed. Commit on distance OR velocity. Rubber-band past an edge. A moving element can be caught. A linked value (backdrop, icon) derives from the same shared value. An element leaves the way it came in.
  3. Hover actions become swipes. Where the web shows row actions on hover, the phone row uses the kit `Swipea
Полный SKILL.md на GitHub

Установить mobile-first-pass в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл mobile-first-pass?

Audit the Eva phone app (apps/mobile) against a 20-point mobile-first and native-feel checklist (back, sheets, keyboard, touch targets, gestures, swipes, haptics, motion) and fix what fails, without changing the look. Use after building or changing phone screens, before shipping a mobile PR, or when the user asks for a "mobile-first pass", "mobile checklist", "check it works on a phone", or back/keyboard/touch/list issues on mobile.

Как установить скилл mobile-first-pass?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл mobile-first-pass запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить mobile-first-pass с