Agent skill

Responsive Design Skill: Container Queries and Fluid Layouts

The responsive-design skill from wshobson/agents steers an AI coding agent toward mobile-first breakpoints, container queries, fluid type and CSS Grid, with a short list of common layout bugs.

Install
gh skill install wshobson/agents responsive-design
View on GitHub

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

What is the responsive design skill?

The responsive-design skill is a SKILL.md in the ui-design plugin of wshobson/agents. It tells an AI coding agent to build adaptive interfaces mobile first, set breakpoints by content, use container queries for components and fluid values for type and spacing, and watch for overflow, tiny tap targets and viewport height bugs.

The skill's own description names four techniques: container queries, fluid typography, CSS Grid and mobile-first breakpoint strategies. It targets adaptive interfaces, fluid layouts and component level responsive behavior, and it sits in the ui-design plugin of wshobson/agents.

The SKILL.md itself is a navigation layer. Worked examples live in references/details.md, and the folder adds breakpoint-strategies.md, container-queries.md and fluid-layouts.md for the agent to open when the short rules are not enough.

Rules the agent follows

  1. Start with mobile styles, then enhance for larger screens.
  2. Set breakpoints from content, not from named devices.
  3. Prefer fluid values over fixed ones for type and spacing.
  4. Use container queries when a component should respond to its own space.
  5. Keep touch targets at 44 by 44 pixels or more on mobile.
  6. Use logical properties, inline and block, for internationalization.

Bugs it is told to look for

  • Horizontal overflow, where content breaks out of the viewport.
  • Fixed pixel widths instead of relative units.
  • The 100vh problem on mobile browsers.
  • Text that is too small on a phone and buttons too small to tap.
  • Images that squish or stretch, and overlays that stack wrongly across screens.

Who should install it

Best for

  • Front end work where the agent writes the CSS, from a single card to a full page layout.
  • Design systems that need a breakpoint strategy.
  • Reviews of generated layouts. Related: layout and fixing-accessibility.

Not for

  • Choosing a visual style. Related: frontend-design.
  • Native mobile apps, because the rules cover CSS and web media.
  • Verifying results. The skill says to test real devices, so it does not replace that step.

Use it with UiChemy

This skill shapes CSS your agent writes. For WordPress, UiChemy Composer is an AI visual editor that writes real HTML, CSS and JS inside Elementor or Gutenberg, and you can still check the result against these rules. Click Get Started on uichemy.com.