Agent skill

Responsive Web Design Skill: Mobile-First CSS Patterns

A short skill that gives your coding agent mobile-first CSS patterns: media queries, grid columns, fluid type with clamp, responsive images and a flexbox navigation.

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

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

What is the responsive-web-design skill?

The responsive-web-design skill is a compact SKILL.md from the secondsky plugin collection. It teaches your coding agent a mobile-first base with min-width breakpoints at 640 and 1024 pixels, a one, two and three column grid, clamp based fluid type, fluid images and a responsive flexbox navigation.

responsive-web-design is a small skill in the secondsky collection. Its SKILL.md describes building adaptive interfaces with Flexbox, CSS Grid and media queries, using a mobile-first approach for multi-device layouts and flexible UI systems.

It is mostly ready to paste CSS. Six short examples show the patterns, followed by a best practices list and links to the MDN Flexbox and Grid guides.

What changes in your agent's output

  • Base styles target a 320 pixel mobile screen, with min-width queries at 640 and 1024 pixels adding padding and max widths
  • Grid layouts start as one column, move to two on tablet and three on desktop
  • Headings and body text use clamp so size scales smoothly between breakpoints
  • Images get max-width 100 percent and auto height, with 16 by 9 aspect ratio and object-fit cover for heroes
  • Navigation stacks in a column on mobile and becomes a row at 768 pixels

The best practices list adds flexible units, testing on real devices, touch targets of at least 48 pixels and line lengths of 45 to 75 characters. For breakpoint and container query depth, see wshobson-responsive-design.

Who it is for

Best for

  • Developers who want a consistent mobile-first baseline in generated CSS
  • Small projects where a short rule set is enough
  • Teams that want the same layout defaults across agents

Not for

  • Container queries or complex fluid systems, which this skill does not cover
  • Auditing an existing layout. It gives patterns, not a review process
  • Projects with a fixed design system whose breakpoints differ from 640 and 1024 pixels

Use it with UiChemy

If you build WordPress pages with UiChemy Composer, you can paste the same breakpoint and fluid type patterns into the CSS it writes, then check each breakpoint in the Elementor or Gutenberg preview.