
Responsive Design
- 27 installs
- 40 repo stars
- Updated August 4, 2026
- akillness/skills-template
Responsive Design is an agent skill that plans mobile-first, container-aware responsive layouts and fixes overflow, wrapping, and reflow bugs.
About
Responsive Design is a skill that plans mobile-first, container-aware responsive layouts before patching breakpoints everywhere. A developer uses it to fix overflow, wrapping, layout collapse, and responsive media, or to decide what should adapt at the viewport level versus inside a component. It classifies the failure, picks the right adaptation surface, and produces a strategy packet with explicit zoom and reflow verification.
- Classifies viewport, container, content-density, and media failures
- Prefers intrinsic layout and container queries over breakpoint soup
- Produces a strategy packet with overflow, zoom, and reflow verification
Responsive Design by the numbers
- 27 all-time installs (skills.sh)
- Ranked #1,483 of 2,245 Frontend Development skills by installs in the Skillselion catalog
- Data as of Aug 5, 2026 (Skillselion catalog sync)
responsive-design capabilities & compatibility
- Capabilities
- responsive design · layout strategy · container queries · css refactoring
- Use cases
- frontend · ui design · web design
What responsive-design says it does
Plan mobile-first, container-aware responsive layouts before patching breakpoints everywhere.
Use container queries when the component’s parent drives the layout
If intrinsic layout solves the problem, do not create a tower of breakpoints.
npx skills add https://github.com/akillness/skills-template --skill responsive-designAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 27 |
|---|---|
| repo stars | ★ 40 |
| Last updated | August 4, 2026 |
| Repository | akillness/skills-template ↗ |
What it does
Classify a responsive failure, choose viewport vs container vs intrinsic layout, and produce a mobile-first strategy with verification for overflow, reflow, and zoom.
Who is it for?
Fixing responsive layout failures and deciding between viewport breakpoints, container queries, and intrinsic layout.
Skip if: Reusable component API design, accessibility remediation, or system-wide design tokens as the primary task.
When should I use this skill?
A layout overflows, wraps badly, or collapses on mobile, or you need a breakpoint/container-query strategy.
What you get
A mobile-first responsive strategy packet with an explicit verification plan.
- Responsive strategy packet with layout strategy, boundaries, and verification
By the numbers
- 8-step responsive workflow
- 5 failure classes (viewport, container, content-density, media, verification)
Files
Responsive Design
Use this skill when the main question is "how should this interface adapt across screen sizes or container sizes, and how do we verify it without turning the codebase into breakpoint soup?"
This skill is not a generic CSS tutorial. It should: 1. classify the responsive problem, 2. choose the right adaptation surface, 3. keep viewport and container decisions explicit, 4. call out verification requirements early, 5. route neighboring concerns to the right frontend skill.
Read references/layout-decision-checklist.md before designing or refactoring a responsive layout. Read references/handoff-boundaries.md when deciding whether responsive-design, ui-component-patterns, web-accessibility, design-system, or web-design-guidelines should own the next step.
When to use this skill
- Fix layouts that overflow, wrap badly, collapse awkwardly, or force horizontal scrolling on smaller screens
- Plan mobile-first page, dashboard, card-grid, form, nav, table, or media layouts
- Decide whether a change belongs in viewport breakpoints, container queries, intrinsic layout rules, or responsive media behavior
- Review whether a layout is overfitted to one screen size or relying on too many one-off overrides
- Turn vague requests like “this page breaks on mobile” into a concrete responsive strategy and verification plan
- Define responsive test cases for zoom/reflow, content density, and breakpoints
- Add container-query thinking to reusable UI without turning every problem into a component-API rewrite
When not to use this skill
- The main task is reusable primitive / variant / slot API design → use
ui-component-patterns - The main task is keyboard/focus behavior, semantics, labels, contrast, reduced motion, or manual a11y remediation → use
web-accessibility - The main task is system-wide tokens, breakpoint policy across many products, naming rules, or contribution governance → use
design-system - The main task is broad UI critique, design polish, or interface-guideline review → use
web-design-guidelines - The task is mostly React/Next.js performance, hydration, or rerender behavior → use
react-best-practices - The layout adaptation rules are already clear and the job is just implementation; in that case implement directly instead of reopening the architecture decision
Instructions
Step 1: Classify the responsive failure before writing CSS
Do not start with “add another breakpoint.”
First decide which kind of problem you have:
- Viewport adaptation — page/grid/nav/layout changes because the available screen width changes
- Container adaptation — a component needs to behave differently depending on the width of its parent, not the whole viewport
- Content-density stress — real text, tables, cards, filters, or localized strings do not fit the assumed layout
- Media adaptation — images/video/embeds crop, distort, or download the wrong asset size
- Verification failure — the layout might look fine at one browser width but fail under zoom, reflow, or narrower containers
Quick framing template:
Responsive problem:
- Surface: dashboard table + filter toolbar
- Failure mode: horizontal scrolling on mobile and at 400% zoom
- Likely owner: responsive-design
- Related handoff: web-accessibility for reflow verification, ui-component-patterns only if the toolbar primitive API is wrongStep 2: Choose the adaptation surface deliberately
Use the smallest surface that actually owns the behavior.
Use viewport rules when
- the whole page or major layout region changes with screen size
- navigation, sidebars, page columns, or full-page density shifts are involved
- the layout decision should be consistent across many containers on the page
Use container rules when
- a reusable card, panel, or embedded module appears in multiple widths
- the component should adapt based on the width of its parent, not the browser window
- the same component can appear in a sidebar, feed, modal, or dashboard slot
Use intrinsic/flexible layout first when possible
Prefer layouts that naturally adapt before adding more conditions:
- fluid widths
minmax()/ auto-fit grid- wrapping flex rows
- sensible
max-width - text wrapping / line length constraints
- content-driven sizing
If intrinsic layout solves the problem, do not create a tower of breakpoints.
Step 3: Start from a mobile-first baseline
Mobile-first is still the safest default for feature delivery.
Healthy baseline rules:
- define the smallest-screen/default layout first
- add complexity only when the space is actually available
- treat larger layouts as progressive enhancement
- write breakpoints around layout pressure, not device brand names
Bad pattern:
@media (max-width: 1024px) { ... }
@media (max-width: 992px) { ... }
@media (max-width: 991px) { ... }
@media (max-width: 768px) { ... }
@media (max-width: 767px) { ... }Better pattern:
.dashboard {
display: grid;
gap: 1rem;
grid-template-columns: 1fr;
}
@media (min-width: 48rem) {
.dashboard {
grid-template-columns: 18rem minmax(0, 1fr);
}
}Use fewer breakpoints with clearer reasons.
Step 4: Use container queries when the component’s parent drives the layout
Container queries are not for every problem, but they are the clean answer when viewport rules create brittle component reuse.
Use them when:
- a card or panel is reused in multiple column widths
- a component should switch density/layout based on the slot it lives in
- the same module appears in a feed, sidebar, modal, or dashboard area
Pattern:
.card-shell {
container-type: inline-size;
}
.card {
display: grid;
gap: 0.75rem;
}
@container (width > 42rem) {
.card {
grid-template-columns: 12rem minmax(0, 1fr);
align-items: start;
}
}Do not use container queries to hide a confused component API. If the real issue is primitive structure, route to ui-component-patterns.
Step 5: Plan for common responsive pressure points
Navigation
Prioritize wrapping, overflow handling, menu trigger behavior, and content hierarchy. Avoid nav bars that only work at one label length.
Forms and toolbars
Prioritize field stacking, button grouping, label/help/error space, and real text length under smaller widths.
Tables and data-heavy views
Prioritize what must remain tabular versus what can stack, collapse, scroll, summarize, or switch presentation. Reflow exceptions can exist, but make them intentional.
Cards, grids, and feeds
Prioritize intrinsic column behavior, readable line lengths, and whether cards should adapt to their container.
Media and embeds
Prioritize aspect ratio, crop strategy, object-fit, srcset / sizes, and whether the layout depends on art direction.
Typography and density
Prioritize readable line lengths, spacing scale, wrapping, and hierarchy; fluid type can help, but do not let it replace layout thinking.
Step 6: Treat accessibility and reflow as verification requirements, not afterthoughts
Responsive design is not just about “looks okay when resized.”
Always check:
- does content avoid unnecessary two-dimensional scrolling?
- do long labels, localization, and user zoom break the layout?
- do controls remain reachable and readable?
- does the layout still make sense at narrow widths and high zoom?
If the main work becomes semantic remediation, touch-target fixes, keyboard/focus behavior, or manual accessibility verification, route to web-accessibility.
Step 7: Keep neighboring concerns as route-outs, not ownership theft
This skill should acknowledge nearby work without absorbing it.
Examples:
- if a responsive problem comes from an overstuffed reusable primitive, route API redesign to
ui-component-patterns - if the team needs one breakpoint/token policy across many apps, route governance to
design-system - if the request is “audit this whole interface,” route broad critique to
web-design-guidelines - if reflow issues become accessibility remediation, route verification/fixes to
web-accessibility
Mixed requests are normal. Split them explicitly instead of forcing one skill to own everything.
Step 8: Produce the responsive strategy packet
End with a concise artifact another engineer or agent can execute.
Preferred format:
# Responsive Strategy Packet
## Surface
- Page / component / container:
- Failure mode:
- Primary owner:
## Layout strategy
- Mobile-first baseline:
- Viewport breakpoints:
- Container-query usage:
- Intrinsic layout rules:
- Media behavior:
## Boundaries
- Keeps:
- Routes to neighboring skills:
## Verification
- Narrow-width checks:
- Zoom/reflow checks:
- Overflow/wrapping checks:
- Responsive media checks:Examples
Example 1: Dashboard overflow on mobile
Input: “This analytics dashboard looks fine on desktop but the filter bar and table break on mobile.”
Good output direction:
- classify the problem as page-level layout + data-view adaptation
- keep a mobile-first single-column baseline
- decide whether the table needs intentional horizontal scroll, summarization, or a stacked representation
- include zoom/reflow verification and route semantic remediation to
web-accessibilityif needed
Example 2: Reusable card in many widths
Input: “The same product card appears in a sidebar, a 2-column grid, and a full-width feed. Should we keep adding viewport breakpoints?”
Good output direction:
- classify the problem as container-driven adaptation
- recommend container queries or intrinsic layout rules at the card-shell boundary
- keep primitive API questions routed to
ui-component-patterns - avoid adding page-level breakpoints when the parent slot is the real driver
Example 3: System-wide breakpoint debate
Input: “Our teams all use different breakpoints and spacing rules. Is this a responsive-design issue?”
Good output direction:
- explain that cross-app breakpoint and token policy is broader
design-systemwork - preserve
responsive-designfor local/page/component adaptation strategy - suggest a clean handoff instead of over-triggering this skill
Best practices
1. Prefer intrinsic layout and content-driven sizing before reaching for many breakpoint overrides. 2. Use mobile-first defaults and add complexity only where space genuinely changes the job to be done. 3. Use container queries when the component’s parent width matters more than the viewport width. 4. Write verification steps for overflow, wrapping, zoom/reflow, and responsive media instead of relying on visual guesswork. 5. Treat tables, nav, forms, and filter bars as high-risk responsive surfaces that need explicit decisions. 6. Route component API redesign to ui-component-patterns, not to more CSS. 7. Route accessibility-heavy remediation to web-accessibility, especially when reflow and usability failures dominate.
References
{
"skill_name": "responsive-design",
"evals": [
{
"id": 1,
"prompt": "Our dashboard filter bar and data table force horizontal scrolling on mobile. Help us fix the responsive behavior.",
"expected_output": "Keeps ownership in responsive-design, proposes a mobile-first layout strategy, and includes verification for overflow/reflow rather than only adding random breakpoints.",
"assertions": [
"Output classifies the task as responsive layout or overflow adaptation work",
"Output discusses mobile-first, layout strategy, or explicit breakpoint/container decisions",
"Output includes verification for overflow, wrapping, or reflow"
]
},
{
"id": 2,
"prompt": "The same card lives in a sidebar, a feed, and a 2-column grid. Should we use container queries or more viewport breakpoints?",
"expected_output": "Explains when container queries are appropriate and keeps reusable component API questions separate from layout adaptation.",
"assertions": [
"Output covers container queries or parent-container adaptation",
"Output distinguishes responsive layout ownership from ui-component-patterns API ownership",
"Output avoids treating viewport breakpoints as the only tool"
]
},
{
"id": 3,
"prompt": "Our teams all use different breakpoint and spacing rules across products. Is responsive-design the right skill?",
"expected_output": "Routes cross-product breakpoint/token governance to design-system instead of over-triggering responsive-design.",
"assertions": [
"Output routes shared breakpoint or token governance to design-system",
"Output explains that responsive-design is narrower than system-level governance"
]
},
{
"id": 4,
"prompt": "This form still breaks at 400% zoom and keyboard users lose context. Should we keep fixing it in responsive-design?",
"expected_output": "Distinguishes responsive layout strategy from accessibility remediation and routes the remediation-heavy portion to web-accessibility.",
"assertions": [
"Output mentions zoom or reflow verification",
"Output routes accessibility-heavy remediation to web-accessibility",
"Output preserves responsive-design for layout-adaptation concerns if relevant"
]
}
]
}
Handoff Boundaries for responsive-design
Use this file when multiple frontend skills could plausibly activate.
Keep work in responsive-design when
- the main job is viewport/container adaptation, overflow control, reflow planning, responsive media, or layout verification
- the user asks about breakpoints, mobile-first baselines, container queries, wrapping, or layout collapse across widths
- the problem is deciding how a page or layout surface should adapt across available space
Route to ui-component-patterns when
- the real question is reusable primitive or component-family API design
- the issue is variants, slots, compound components, or controlled-vs-uncontrolled ownership rather than responsive layout rules
Route to web-accessibility when
- the main problem is reflow remediation, touch targets, semantics, keyboard/focus behavior, labels, or manual accessibility verification
- accessibility is the core task rather than one verification dimension among several
Route to design-system when
- the task is about shared breakpoint policy, token scales, primitive naming, or governance across many products/components
- multiple component families need one system-level responsive rule before local implementation can proceed
Route to web-design-guidelines when
- the user wants a broad UI/design audit instead of implementation-first responsive strategy
- the request is mostly about overall interface quality, consistency, or guideline compliance
Mixed cases
When a request spans multiple skills, split the answer explicitly:
responsive-designowns layout-adaptation strategy and verification- neighboring skills own reusable component APIs, accessibility remediation, system governance, or broad UI review
Do not hide unclear ownership by dumping every frontend concern into breakpoint advice.
Layout Decision Checklist for responsive-design
Use this checklist before adding more breakpoints or local overrides.
1. Problem surface
- Is this mainly a viewport layout problem, a container-driven component problem, a media-sizing problem, or a verification problem?
- Which screen sizes, zoom levels, or parent-container widths expose the failure?
2. Intrinsic layout first
- Can flexible widths, wrapping,
minmax(), auto-fit grid, or sensiblemax-widthsolve the issue before conditional rules? - Is the layout depending on placeholder-short content instead of real content lengths?
3. Viewport vs container ownership
- Does the entire page/region change with viewport size?
- Or does the component simply need to adapt to the width of its parent slot?
- If the latter, should a container query be used instead of more viewport breakpoints?
4. High-risk responsive surfaces
- Navigation: wrapping, menu triggers, label lengths
- Forms/toolbars: stacking, action placement, helper/error text
- Tables/data views: stack, summarize, scroll, or preserve tabular layout intentionally?
- Media: aspect ratio,
srcset,sizes, crop strategy
5. Verification
- What happens at narrow widths and common breakpoints?
- What happens at high zoom / reflow-equivalent conditions?
- Are overflow, clipping, truncation, and two-dimensional scrolling acceptable or accidental?
- Should any follow-up be routed to
web-accessibility?
N:responsive-design
D:Plan mobile-first, container-aware responsive layouts before patching breakpoints everywhere. Use when the user needs help fixing overflow, wrapping, layout collapse, responsive media, breakpoint strategy, container queries, or deciding what should adapt at the viewport level versus inside a component/container.
G:responsive mobile-first layout container-queries breakpoints overflow reflow frontend css
U[4]:
Fix layouts that overflow, wrap badly, collapse awkwardly, or force horizontal scrolling on smaller screens
Plan mobile-first page, dashboard, card-grid, form, nav, table, or media layouts
Decide between viewport breakpoints, container queries, intrinsic layout rules, and responsive media behavior
Define responsive verification for overflow, wrapping, zoom/reflow, and responsive media
S[5]{n,action}:
1,Classify the responsive failure before writing CSS
2,Choose the adaptation surface deliberately
3,Start from a mobile-first baseline
4,Use container queries when the component’s parent drives the layout
5,Produce the responsive strategy packet
Related skills
FAQ
When should I use container queries?
When a component's parent width drives the layout, such as a card reused in a sidebar, feed, or modal.
Is it a CSS tutorial?
No, it is a strategy skill that classifies the failure and picks the right adaptation surface before writing CSS.