Skip to main content
skill CX Codex

responsive-web-design — Claude Code skill for adaptive layouts

A skill that steers your coding agent toward mobile-first CSS with Flexbox, Grid and media queries. Useful when one layout has to hold up on phones and desktops.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add aj-geddes/useful-ai-prompts --skill responsive-web-design -a claude-code
Open on GitHub

What responsive-web-design does

The skill hands the agent a mobile-first workflow: base styles for narrow screens first, breakpoints after, written as @media (min-width: ...). The quick-start example covers a flex .container, a card and a grid-template-columns: 1fr grid, then extends them for tablet and desktop.

Five reference files sit in the references/ directory: media query strategy, Flexbox navigation, CSS Grid layout, responsive typography and a cards component. The agent pulls the one that matches the piece of UI you are working on.

One thing to watch: the inline example cuts off mid-media-query, so the full implementations live in the reference guides. If your project already has its own breakpoint scale, swap the sample values for yours — otherwise you end up maintaining two grids that disagree.

What it helps with

  • build a layout that reflows from one column to several
  • write navigation that collapses on narrow screens
  • set breakpoints the mobile-first way
  • scale typography across viewport widths
  • turn cards into a reusable responsive component

Example prompts for the agent

  • build a responsive card grid with CSS Grid, mobile-first
  • rewrite the nav with Flexbox so it collapses on phones
  • add tablet and desktop media queries to this component

How to install responsive-web-design

1Skills CLI (Vercel)

npx skills add aj-geddes/useful-ai-prompts --skill responsive-web-design -a claude-code

2Manually: put the files in place

~/.claude/skills/responsive-web-design/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/responsive-web-design/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about responsive-web-design

How do I install responsive-web-design in Claude?

Run npx skills add aj-geddes/useful-ai-prompts --skill responsive-web-design -a claude-code. The skill file lands at ~/.claude/skills/responsive-web-design/SKILL.md.

What does responsive-web-design do?

It guides the agent through responsive CSS: Flexbox, Grid, media queries and mobile-first structure. Five reference guides ship with it.

Which platforms support the skill?

Claude, Codex, Cursor, GitHub Copilot, Gemini CLI and OpenCode. Each one has its own install command.

Source text

SKILL.md · MIT
---
name: responsive-web-design
description: >
  Create responsive layouts using CSS Grid, Flexbox, media queries, and
  mobile-first design. Use when building adaptive interfaces that work across
  all devices.
---

# Responsive Web 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

Build mobile-first responsive interfaces using modern CSS techniques including Flexbox, Grid, and media queries to create adaptable user experiences.

## When to Use

- Multi-device applications
- Mobile-first development
- Accessible layouts
- Flexible UI systems
- Cross-browser compatibility

## Quick Start

Minimal working example:

```css
/* Mobile styles (default) */
.container {
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 16px;
}

.card {
  padding: 16px;
  border-radius: 8px;
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* Tablet (640px and up) */
@media (min-width: 640px) {
  .container {
    flex-direction: row;
// ... (see reference guides for full implementation)
```

## Reference Guides

Detailed implementations in the `references/` directory:

| Guide | Contents |
|---|---|
| [Mobile-First Media Query Strategy](references/mobile-first-media-query-strategy.md) | Mobile-First Media Query Strategy |
| [Flexbox Responsive Navigation](references/flexbox-responsive-navigation.md) | Flexbox Responsive Navigation |
| [CSS Grid Responsive Layout](references/css-grid-responsive-layout.md) | CSS Grid Responsive Layout |
| [Responsive Typography](references/responsive-typography.md) | Responsive Typography |
| [Responsive Cards Component](references/responsive-cards-component.md) | Responsive Cards Component |

## Best Practices

### ✅ DO

- Follow established patterns and conventions
- Write clean, maintainable code
- Add appropriate documentation
- Test thoroughly before deploying

### ❌ DON'T

- Skip testing or validation
- Ignore error handling
- Hard-code configuration values

© aj-geddes · MIT · aj-geddes/useful-ai-prompts

Similar skills

Everything for Frontend and UI →

From the same set118

wireframe-prototyping Sketch a UI and build a prototype before development starts. Useful when you need early feedback from a team or a client. CX Codex +1 1,400installs markdown-documentation A skill that gives the agent a fixed set of Markdown rules for READMEs, wikis and docs pages. Useful when the model writes the text and it has to look consistent. CX Codex +1 1,300installs terraform-infrastructure Guides the agent in configuring cloud infrastructure with Terraform modules and remote state. Useful when managing dev, staging, and prod environments. CX Codex +1 1,200installs penetration-testing Security testing skill that guides ethical hacking, simulated attacks, and vulnerability documentation across applications and infrastructure. CX Codex +1 1,100installs css-architecture A skill that gives your coding agent conventions for structuring CSS with BEM, SMACSS and CSS-in-JS. Handy when stylesheets outgrow the naming scheme you started with. CX Codex +1 959installs api-contract-testing Verifies API contracts between consumers and providers without full integration tests. Helps stop breaking schema changes before deploying microservices. CX Codex +1 913installs event-sourcing A skill that guides your coding agent through event sourcing and CQRS: an event store, aggregates, projections and snapshots. Useful when you need a full change history and queries against past state. CX Codex +1 886installs root-cause-analysis A skill that walks an incident down to the cause you can actually fix, instead of patching the symptom again. CX Codex +1 884installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor