Agent skill UI design
Mobile Responsiveness
Organize content through layout, alignment and responsive composition.
Install the skill
Run the command from your project root with Node.js and npm.
npx skills@latest add hoodini/ai-agents-skills --skill mobile-responsiveness --agent claude-code --yesCheck this file in your project.claude/skills/mobile-responsiveness/SKILL.md
Other ways to install
Choose an assistant interactively
npx skills@latest add hoodini/ai-agents-skills --skill mobile-responsivenessSelect your assistant and choose the project installation scope.
Official instructions
The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. The real mobile route, existing CSS and breakpoint choices, long content, a primary action, and a device or emulator.
View operation manualWhat this skill helps with
- Organize content through layout, alignment and responsive composition.
Good for
- Composition and spacing
- Task
- Make a fixed mobile action bar usable on narrow and touch screens
- Inputs
- The real mobile route, existing CSS and breakpoint choices, long content, a primary action, and a device or emulator.
- Output
- A mobile action bar that avoids clipping, permits touch and keyboard use, and leaves room for safe-area insets.
- Skill name
mobile-responsiveness- Repository
hoodini/ai-agents-skills
Start from a reproducible real case
A broad request
Shrink the desktop toolbar for mobile.
A narrower toolbar can cover page content, crowd touch targets or draw controls into areas reserved by the device.
A verifiable workflow
- The baseline documents actual scroll width, target size and device-dependent insets.
- The action bar keeps controls reachable while long content reflows beneath it.
- The controls work at target widths and actual hardware insets are reported separately.
Mobile Responsiveness operation manual
A mobile action bar that avoids clipping, permits touch and keyboard use, and leaves room for safe-area insets.
The real mobile route, existing CSS and breakpoint choices, long content, a primary action, and a device or emulator.
Check the failing width and affected action
The baseline documents actual scroll width, target size and device-dependent insets.
Prompt · Step 1Use the installed mobile-responsiveness Skill on [mobile route, widths, and actions]. Reproduce the overflow or covering issue using long text or numbers. Look at the real fixed controls, viewport configuration, and padding. Check whether a touch action and a keyboard path remain usable. Record device-relevant constraints.Implement mobile-first layout and safe-area spacing
The action bar keeps controls reachable while long content reflows beneath it.
Prompt · Step 2Implement [approved mobile layout] with mobile-first styles and wider rules only where needed. Ensure the device viewport is configured when edge-to-edge rendering is used. Apply env(safe-area-inset-bottom) and side insets when applicable, reserve enough content space below scrolling content, preserve native interaction and visible focus, and handle longer labels.Verify resized browser and actual device when available
The controls work at target widths and actual hardware insets are reported separately.
Prompt · Step 3Take [390px and actual target-width preview] and exercise touch, Tab and the main action. Check document scroll width, content clearance and unaffected wider layout. Where available, also inspect one notched device in portrait and landscape and test dropdown or keyboard-open states. Report which inset checks only used emulation.
Look up testing conditions
Use your installed tooling and local evidence.
Why does the safe-area value show zero on desktop?SKILL.md
- Command or reference
viewport-fit=cover · env(safe-area-inset-*)- Examples
- An inset comes from the actual viewport environment. It may be zero in desktop or some emulated contexts. Verify the relevant edge-to-edge configuration and check a representative device as well.
Troubleshooting and FAQ
Why does the safe-area value show zero on desktop?
An inset comes from the actual viewport environment. It may be zero in desktop or some emulated contexts. Verify the relevant edge-to-edge configuration and check a representative device as well.