Agent skill

Mobile-First Design Skill: Breakpoints and Touch Targets

The mobile-first design skill gives your AI coding agent a compact checklist for building responsive pages from a 320px base, with min-width breakpoints, 48px touch targets and page weight targets.

Install
git clone https://github.com/secondsky/claude-skills
View on GitHub

Stars, license and last push from GitHub. Install count as reported by the open skills directory.

What is the mobile-first design skill?

Mobile-first design is a short skill in the secondsky skills collection. It tells an AI coding agent to start at mobile width, add min-width media queries for tablet and desktop, keep touch targets at 48px, hold to simple performance targets and layer HTML, CSS and JavaScript as progressive enhancement.

It is a one-page SKILL.md that frames responsive work as designing for mobile screens first, then enhancing for larger ones. The description says it applies to responsive websites, mobile optimization and adaptive layouts.

The file is deliberately brief. It gives a breakpoint table, a CSS pattern, touch rules, performance targets and a short best-practice list, so an agent gets the same starting point every time.

What changes in your agent's output

  • Base styles target mobile, and media queries use min-width at 768px and 1024px.
  • Navigation is hidden on mobile behind a toggle, then shown as a flex row on tablet and up.
  • Buttons get a 48px minimum height and width, with 16px list padding and 8px gaps.
  • Markup starts as semantic HTML that works without CSS or JavaScript.
  • Units lean on rem, percentages and viewport width, not fixed pixel layouts.

Who the mobile-first design skill is for

Best for

  • Teams whose traffic is mostly phones and who need a consistent default.
  • Agents that tend to build desktop layouts and shrink them afterwards.
  • Quick responsive reviews, where a short checklist beats a long guide.
  • Landing pages and content sites with simple navigation.

Not for

  • Deep layout systems with grids, container queries or fluid type. Look at CSS Expert or Layout Grid for that.
  • Native mobile app design.
  • Visual style, brand or color decisions, which it does not cover.

Use it with UiChemy

The skill shapes your front-end CSS. For WordPress, UiChemy Figma to WordPress converts a Figma design, including a mobile frame, into editable pages. Click Get Started on uichemy.com.