Command Palette

Search for a command to run...

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

emil-mobile-native

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

Make a web app feel native on a phone. The small CSS and meta-tag fixes that separate "a website in a browser" from something that feels installed. Covers…

freekmurzeот freekmurze★ 1 019 звёзд на GitHub

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

Feeling Native On Mobile

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. The rules here are about the platform layer (viewport, touch, scroll, safe areas, the keyboard, the browser chrome), where a handful of lines decide whether the app feels installed or embedded.

It does not design motion (that's emil-animations), cover keyboard and screen-reader access (that's emil-touch-and-accessibility), or sweep a whole app before launch (that's emil-prep-for-prod, which runs a subset of this skill as its mobile lane).

All CSS below is plain CSS for clarity. When implementing, write it in the project's existing styling system (Tailwind, CSS Modules, CSS-in-JS). The values matter, the syntax doesn't.

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 fixes you verified from code and which need a real device.

Two failure modes, and the first is worse:

  1. Fixing what the desktop shows you. The bugs in this skill don't reproduce in Chrome's device emulation. If you only test there, you ship all of them.
  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 and gate by capability, not by device.
  4. Never disable zoom. user-scalable=no and maximum-scale=1 are accessibility failures. Safari ignores them for pinch zoom anyway while other browsers obey and lock low-vision users out. 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. Emulation 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 Section
Hover state stuck after tap Wrap in @media (hover: hover) and (pointer: fine) 1
Gray/blue flash on tap Kill -webkit-tap-highlight-color 2
Layout has the wrong height 100dvh (app) or 100svh (hero) 3
Page zooms into input Input font size 16px at the minimum 4
Tap feels laggy Feedback on pointer-down + touch-action: manipulation 5
Taps miss small buttons 44px hit area through a pseudo-element 6
Pull-to-refresh hijacks scroll overscroll-behavior: none on html, body 7
Content stops at the notch viewport-fit=cover + env(safe-area-inset-*) 8
Keyboard covers the input or the CTA interactive-widget=resizes-content + dvh 9
Keyboard opens by itself No autoFocus on coarse pointers 9
Long-press selects button text user-select: none on controls only 10
Carousel scrolls vertically touch-action: pan-y on the gesture surface 11
Video opens fullscreen or won't autoplay muted + playsinline 12
Status bar color doesn't match theme-color per color scheme 13
Anchor links land under the sticky header scroll-margin-top 14
Right in Chrome, wrong on phone Test on real hardware 15

The Fixes

1. Hover state stuck after tap

Touch has no hover, so browsers fake one: the first tap on an element applies :hover and leaves it there until the user taps somewhere else. A button that scales up on hover stays scaled up after being tapped. Gate every hover style behind a capability query.

@media (hover: hover) and (pointer: fine) {
  .button:hover {
    background: var(--gray-3);
    transform: scale(1.02);
  }
}

Both conditions matter. (hover: hover) means the primary input can hover. (pointer: fine) means it's precise, like a mouse, which rules out styluses and the odd Android device that claims hover support. In Tailwind v4 the hover: variant already compiles

Полный SKILL.md на GitHub

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

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

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

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

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

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

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

FAQ

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

Make a web app feel native on a phone. The small CSS and meta-tag fixes that separate "a website in a browser" from something that feels installed. Covers sticky hover states, tap highlight flashes, the 100vh bug, inputs that zoom the page, laggy taps, missed tap targets, pull-to-refresh hijacking scroll, content under the notch, the software keyboard covering inputs, long-press selecting button text, carousels that scroll the wrong way, video that opens fullscreen, mismatched status bars, and the rule that you test on real hardware. Use when a web app is being built for or reviewed on mobile, when something "works in Chrome but feels wrong on my phone", or when building a PWA, a bottom sheet, a carousel, a full-screen layout, or any touch interaction. Triggers on: mobile, phone, iPhone, iOS, Safari, Android, touch, tap, native feel, feels like a website, PWA, installed app, standalone, sticky hover, tap highlight, 100vh, dvh, svh, URL bar, input zoom, 16px, tap delay, 300ms, touch-action, pull-to-refresh, overscroll, rubber band, notch, Dynamic Island, home indicator, safe area, viewport-fit, keyboard covers input, interactive-widget, long press, user-select, touch-callout, carousel, swipe, scroll snap, bottom sheet, theme-color, status bar, playsinline, device emulation, remote debugging.

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

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

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

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

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

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