mobile-first-design · aj-geddes — Claude Code skill: responsive UI from small
A skill that sets the order of UI work: design the phone screen first, then scale to tablet and desktop. Useful when layouts break on small devices.
npx skills add aj-geddes/useful-ai-prompts --skill mobile-first-design -a claude-codeWhat mobile-first-design does
The skill lays out a three-step approach. Start with the mobile range 320px - 480px: a single column, only essential content, touch targets big enough for a thumb. Then tablet at 768px - 1024px, where a second column, more spacing and hover states come in. Desktop from 1200px gets sidebars and richer layouts.
Reference guides live in the references/ directory: responsive implementation, mobile performance, progressive enhancement. Alongside them is a practice list — touch targets of at least 44x44px, stacking content vertically, testing on real devices and slow networks, handling notches and safe areas.
The skill will not drop ready-made styles into your project. It gives the agent a decision frame, so on a codebase with a fixed desktop grid you apply the single-column advice by hand instead of expecting an automatic refactor.
What it helps with
- plan a layout from the phone screen up to desktop
- fit the key actions into one column on mobile
- pick breakpoints for tablet and desktop
- check touch targets and landscape orientation behaviour
- handle notches and safe areas on phones
Example prompts for the agent
- Design the catalog screen with mobile-first-design: start at 320px, then tablet and desktop
- Review my markup against the mobile-first-design practices and tell me what breaks on a phone
- Rank the profile features for a mobile screen using mobile-first-design
How to install mobile-first-design
1Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill mobile-first-design -a claude-code2Manually: put the files in place
~/.claude/skills/mobile-first-design/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/mobile-first-design/
1Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill mobile-first-design -a codex2Manually: put the files in place
.agents/skills/mobile-first-design/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill mobile-first-design -a cursor2Manually: put the files in place
.cursor/skills/mobile-first-design/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install aj-geddes/useful-ai-prompts mobile-first-design2Manually: put the files in place
.github/skills/mobile-first-design/SKILL.md1Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill mobile-first-design -a gemini-cli2Platform CLI
gemini skills install https://github.com/aj-geddes/useful-ai-prompts --path skills/mobile-first-designManually: put the files in place
.devin/skills/mobile-first-design/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill mobile-first-design -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about mobile-first-design
How do I install mobile-first-design in Claude?
Run npx skills add aj-geddes/useful-ai-prompts --skill mobile-first-design -a claude-code. The skill file lands at ~/.claude/skills/mobile-first-design/SKILL.md.
What does mobile-first-design do?
It gives the agent an order for UI work: the mobile screen as the base, then tablet and desktop with added capability. It ships three reference guides and a practice list covering touch targets, performance and safe areas.
Which platforms can run this skill?
Besides Claude there are installs for Codex, Cursor, GitHub Copilot, Gemini CLI and OpenCode. GitHub Copilot uses a different command: gh skill install aj-geddes/useful-ai-prompts mobile-first-design.
Source text
SKILL.md · MIT
--- name: mobile-first-design description: > Design for mobile devices first, then scale up to larger screens. Create responsive interfaces that work seamlessly across all device sizes. --- # Mobile-First Design ## Table of Contents - [Overview](#overview) - [When to Use](#when-to-use) - [Quick Start](#quick-start) - [Reference Guides](#reference-guides) - [Best Practices](#best-practices) ## Overview Mobile-first design prioritizes small screens as the starting point, ensuring core functionality works on all devices while leveraging larger screens for enhanced experience. ## When to Use - Web application design - Responsive website creation - Feature prioritization - Performance optimization - Progressive enhancement - Cross-device experience design ## Quick Start Minimal working example: ```yaml Mobile-First Approach: Step 1: Design for Mobile (320px - 480px) - Constrained space forces priorities - Focus on essential content and actions - Single column layout - Touch-friendly interactive elements Step 2: Enhance for Tablet (768px - 1024px) - Add secondary content - Multi-column layouts possible - Optimize spacing and readability - Take advantage of hover states Step 3: Optimize for Desktop (1200px+) - Full-featured experience - Advanced layouts - Rich interactions - Multiple columns and sidebars --- ## Responsive Breakpoints: Mobile: 320px - 480px - iPhone SE, older phones // ... (see reference guides for full implementation) ``` ## Reference Guides Detailed implementations in the `references/` directory: | Guide | Contents | |---|---| | [Responsive Design Implementation](references/responsive-design-implementation.md) | Responsive Design Implementation | | [Mobile Performance](references/mobile-performance.md) | Mobile Performance | | [Progressive Enhancement](references/progressive-enhancement.md) | Progressive Enhancement | ## Best Practices ### ✅ DO - Design for smallest screen first - Test on real mobile devices - Use responsive images - Optimize for mobile performance - Make touch targets 44x44px minimum - Stack content vertically on mobile - Use hamburger menu on mobile - Hide non-essential content on mobile - Test with slow networks - Progressive enhancement approach ### ❌ DON'T - Assume all mobile users have fast networks - Use desktop-only patterns on mobile - Ignore touch interaction needs - Make buttons too small - Forget about landscape orientation - Over-complicate mobile layout - Ignore mobile performance - Assume no keyboard (iPad users) - Skip mobile user testing - Forget about notches and safe areas
© aj-geddes · MIT · aj-geddes/useful-ai-prompts
Similar skills
Everything for Frontend and UI →mobile-first-design by other authors comes first.