/officialunofficial-skills:mobile-nativefrom Official Unofficial Skills
Fixes common mobile web issues: stuck hover states, tap highlight flash, 100vh bug, input zoom, slow taps, pull-to-refresh conflicts, notch overlap, text selection on controls, and carousel scroll direction. Use CSS and meta tags before JavaScript.
Ships in Official Unofficial Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Remove the signs that a web app is a website in a browser. This skill covers the platform layer: viewport, touch, scroll, safe areas and browser chrome. It does not design motion (animate) and does not cover React Native (animate-expo).
Most reports that an app feels janky on mobile are not animation problems. They are a tap delay, a gray flash on tap, or a hover state that stays on.
user-select: none is correct on a button and a defect on body text.(hover: hover), (pointer: fine), env() and dvh. Do not branch on the user agent or the screen width to detect touch.useIsTouchDevice() hook is the wrong tool.user-scalable=no and maximum-scale=1 fail accessibility. The cause of the zoom is the input font size, so fix that.Find the symptom, apply the fix, and read the linked section of FIXES.md when you need the reason, the full code or the edge cases.
| Symptom | Fix | Section |
|---|---|---|
| Hover state stays after a tap | Wrap hover styles in @media (hover: hover) and (pointer: fine) | Hover |
| Gray or blue flash on tap | -webkit-tap-highlight-color: transparent on html, plus an :active state | Tap highlight |
| Layout has the wrong height | 100dvh for an app shell, 100svh for a hero | Viewport height |
| Page zooms into an input | Input font size of 16px or more | Input zoom |
| Tap feels slow | Feedback on pointer-down, plus touch-action: manipulation | Tap delay |
| Pull-to-refresh takes over scroll | overscroll-behavior: none on html, body, contain on inner scrollers | Overscroll |
| Content stops at the notch | viewport-fit=cover plus env(safe-area-inset-*) | Safe areas |
| Long press selects button text | user-select: none on controls only | Selection |
| Carousel scrolls the page | touch-action: pan-y on the gesture surface | Touch action |
| Status bar color does not match | One theme-color per color scheme | Theme color |
| Correct in Chrome, wrong on a phone | Test on hardware | Hardware |
Ship this before the first component of a mobile-facing app.
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover, interactive-widget=resizes-content" />
<meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff" />
<meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0a0a0a" />
html {
-webkit-tap-highlight-color: transparent;
-webkit-text-size-adjust: 100%; /* no font inflation in landscape */
overscroll-behavior: none;
}
input, textarea, select {
font-size: 16px;
}
button, a, [role="button"] {
touch-action: manipulation;
user-select: none;
-webkit-user-select: none;
}
@media (hover: hover) and (pointer: fine) {
/* every :hover rule goes here */
}
interactive-widget=resizes-content makes the Android keyboard shrink the layout viewport, so 100dvh and bottom-pinned inputs react as they do on iOS. Remove overscroll-behavior: none from html when the app is a scrolling document that wants pull-to-refresh.
| Found in the code | Replace with |
|---|---|
user-scalable=no or maximum-scale=1 | 16px inputs |
A :hover rule with no media query | @media (hover: hover) and (pointer: fine) |
100vh on an app shell or bottom-pinned UI | 100dvh |
100dvh on a marketing hero | 100svh, which does not shift on scroll |
Press feedback on click only | :active or pointerdown |
touchmove with preventDefault() to stop overscroll | overscroll-behavior |
user-select: none on body | The same rule on controls only |
touch-action: none on an element the user scrolls past | pan-x or pan-y |
env(safe-area-inset-*) with no viewport-fit=cover | Add the meta tag. Without it each inset is 0. |
One theme-color for both schemes | One per prefers-color-scheme |
| User agent checks for touch | (hover) and (pointer) media queries |
Apply the fixes, then report in a few lines:
If you cannot run the app on a device, say so. Do not report a fix as confirmed from device emulation. verify covers the check in the running app.
What SKILL.md sets; muted values are Claude Code's defaults
85 skills in this plugin
/alignmentMeasures a running page for edges, gaps, centres and radii that miss by a pixel or two, judges visual weight, and returns a numbered report with proof./animateBuilds a web animation from scratch and writes the code. Decides in order whether it should animate at all, its purpose, the tool, the properties, the easing and duration or spring, how it interrupts and exits, and reduced motion. Use when asked to animate something, add motion, build a transition, or make a component feel alive. For React Native or Expo use animate-expo. To critique existing motion use review-animations. To audit a whole codebase use improve-animations./animate-expoOther plugins' skills for the same job
npx claudepluginhub officialunofficial/skills --plugin officialunofficial-skills