# mobile-responsiveness

Provides mobile-first responsive design patterns, touch gesture handlers, fluid typography rules, and safe area handling for web apps.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 1400 installs · ★ 291
- Author: hoodini
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/hoodini/ai-agents-skills/tree/HEAD/skills/mobile-responsiveness/SKILL.md
- Updated: 2026-10-23
- HTML: https://affpapa.org/en/nevibecode/skills/mobile-responsiveness

## What it does

The skill equips coding agents with reference implementations for mobile-first web layouts. It provides standard media query breakpoints for plain CSS and Tailwind, fluid typography formulas via `clamp()`, and styling rules that respect device display cutouts through `safe-area-inset` variables.

For application logic, it includes React implementations of a slide-out hamburger navigation bar, a `useMediaQuery` listener hook, and touch swipe detection using native `onTouchStart` and `onTouchEnd` events. Gestures rely purely on DOM touch coordinates without third-party gesture libraries, keeping client bundles lightweight.

Styles follow a strict mobile-first structure where baseline rules require no media queries, scaling upward at 768px, 1024px, and 1280px thresholds.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add hoodini/ai-agents-skills --skill mobile-responsiveness -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/mobile-responsiveness/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/mobile-responsiveness/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add hoodini/ai-agents-skills --skill mobile-responsiveness -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/mobile-responsiveness/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add hoodini/ai-agents-skills --skill mobile-responsiveness -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/mobile-responsiveness/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install hoodini/ai-agents-skills mobile-responsiveness
```

2. **Manually: put the files in place**
- File: `.github/skills/mobile-responsiveness/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add hoodini/ai-agents-skills --skill mobile-responsiveness -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/hoodini/ai-agents-skills --path skills/mobile-responsiveness
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/mobile-responsiveness/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add hoodini/ai-agents-skills --skill mobile-responsiveness -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/hoodini/ai-agents-skills/tree/HEAD/skills/mobile-responsiveness/SKILL.md

## When to use it
- set up mobile-first breakpoints in plain CSS and Tailwind
- build a slide-out mobile navigation drawer with a backdrop overlay
- detect left and right touch swipe gestures in React without external dependencies
- adjust interface padding for device notches and home indicators

## Example prompts
- Create a mobile hamburger navigation menu with a sliding drawer in React
- Configure fluid typography using CSS clamp for responsive headings
- Add touch swipe gesture detection to this React card component

## Similar
- [mobile-first-design](https://affpapa.org/en/nevibecode/skills/mobile-first-design.md) — skill · 857 installs
- [tailwindcss](https://affpapa.org/en/nevibecode/skills/mindrally-tailwindcss.md) — skill · 1500 installs
- [good-css](https://affpapa.org/en/nevibecode/skills/good-css.md) — skill · 1500 installs
- [mobile-friendly](https://affpapa.org/en/nevibecode/skills/mobile-friendly.md) — skill · 1100 installs
- [tailwindcss-mobile-first](https://affpapa.org/en/nevibecode/skills/tailwindcss-mobile-first.md) — skill · 2100 installs
- [mobile-native](https://affpapa.org/en/nevibecode/skills/mobile-native.md) — skill · 86600 installs

From the same set: [hoodini/ai-agents-skills](https://affpapa.org/en/nevibecode/by/hoodini/ai-agents-skills.md) — 5 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
