Command Palette

Search for a command to run...

Назад к скиллам
скилл № 34248

mobile-native

Make a web app feel native on a phone — CSS and meta-tag fixes for sticky hover, tap highlight, the 100vh bug, input zoom, tap delay, pull-to-refresh, safe…

БесплатноБез исполняемых скриптов
Asymmetric-alот Asymmetric-al★ 354 звезды на GitHub

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

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

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

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

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

Feeling Native On Mobile

This repository (Asymmetric-al/core)

Use this for web-on-phone platform tells after Core's frontend and motion contracts. It does not replace animate-expo or authorize a visual redesign. Keep Core's Base UI, base-maia style, Zinc tokens, and docs/ai/rules/frontend.md authoritative. Reconcile this overlay after upstream refreshes before running bun run skills:sync.

Triggers

  • Explicit native-feel, mobile web, PWA, touch, viewport, or safe-area work.
  • Keep disable-model-invocation: true. Do not load it for ordinary desktop frontend work.
  • Do not use it for React Native (animate-expo) or motion implementation (animate).

Workflow

  1. Load frontend.md and keep base-maia / Base UI.
  2. Prefer CSS/meta-tag fixes over device-sniffing hooks.
  3. Never disable zoom. Keep reduced-motion and existing Core viewport setup.
  4. Motion still starts with emil-design-engineering and anim.

Checklist

  • Fixes are capability-gated, not UA-sniffed.
  • Core tokens and base-maia were preserved.

When invoked without a concrete task, briefly ask for the objective. If a task or question is already present, continue its workflow immediately.

A fix-it skill. It does ONE thing: take a web app that feels like a website on a phone and remove, one by one, the tells that give it away. It does not design motion (that's animate), review motion (that's review-animations), or build for React Native (that's animate-expo). The rules here are about the platform layer — viewport, touch, scroll, safe areas, the browser chrome — where a handful of lines decide whether the app feels installed or embedded.

Operating Posture

You are a senior design engineer who has shipped drawers, sheets, and gesture-driven UI to real phones and has been burned by every item below. You know that a desktop browser with the device toolbar on is not a phone. You know that most "the app feels janky on mobile" reports are not animation problems — they're a 300ms tap delay, a gray flash on tap, or a hover state that won't let go.

The user's phone is the source of truth. If you can't run it on hardware, say which of the fixes below you can verify from code and which need a real device.

Two failure modes, and the first is worse:

  1. Fixing what the desktop shows you. Chrome device mode can check a mobile viewport and some touch layout. It does not reproduce sticky hover, tap delay, rubber-banding, safe areas, or the keyboard. If you only test there, you ship those.
  2. Reaching for JavaScript when CSS or a meta tag does it. Almost every item here is one declaration. A useIsTouchDevice() hook to hide hover states is the wrong tool; a media query is the right one.

Hard Rules

  1. Every fix ships with the reason. Each rule below has a why. Apply it where the why applies, not globally out of habit — user-select: none on body text is a defect, on a button it's correct.
  2. Media queries over device sniffing. (hover: hover), (pointer: fine), env(), dvh — the platform tells you what it can do. Never branch on user agent strings or screen width to guess at touch.
  3. Touch and mouse are not exclusive. iPads with trackpads, laptops with touchscreens, phones with a mouse. Write for both at once; gate by capability, not by device.
  4. Never disable zoom. user-scalable=no and maximum-scale=1 are accessibility failures. Fix the input font size instead, which is what was causing the zoom.
  5. Test on hardware before calling it done. Connect the phone, open the dev server by IP, use Safari's Web Inspector or Chrome remote debugging. Device mode can check viewport and some touch layout; it cannot reproduce sticky hover, tap delay, rubber-banding, safe areas, or the keyboard.

The Symptom Table

Start here. Match what the user is seeing, then read the matching section for the why and the exact code.

Problem Solution
Hover state stuck after tap Wrap in @media (hover: hover) and (pointer: fine)
Gray/blue flash on tap Kill -webkit-tap-highlight-color
Layout has wrong height 100dvh (app) or 100svh (hero)
Page zooms into input Input font size 16px at the minimum
Tap feels laggy Feedback on pointer-down + touch-action: manipulation
Pull-to-refresh hijacks scroll overscroll-behavior: none on html, body
Content stops at the notch viewport-fit=cover + env(safe-area-inset-*)
Long-press selects button text Add user-select: none
Carousel scrolls vertically touch-action: pan-y on the gesture surfa
Полный SKILL.md на GitHub

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

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

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

Вложенные файлы

  • agents/openai.yaml
  • references/LICENSE.md
  • references/upstream.md

FAQ

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

Make a web app feel native on a phone — CSS and meta-tag fixes for sticky hover, tap highlight, the 100vh bug, input zoom, tap delay, pull-to-refresh, safe areas, and real-device checks. Use only when the user explicitly asks for mobile-web native feel, a PWA, or viewport, touch, or safe-area behavior. Do not use it for React Native or motion. Only runs when explicitly invoked; it does not trigger on its own.

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

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

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

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

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

Сравнить mobile-native с