/frontend-css:responsive-layoutfrom frontend-css
Use when creating or editing ANY UI component, page, or layout style — the acceptance bar that it must render validly at every defined viewport breakpoint (no overflow, readable text, discernible images, restrained borders, sane density). Also use when a project has no breakpoint/grid system yet: propose one before verifying. NOT for choosing px→rem (frontend-css:rem), SCSS tokens/BEM structure (frontend-css:scss-modules), or component folder placement (frontend-react:component-structure).
Ships in frontend-css. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Every component and page must render validly at every viewport width, not just the one on your screen. This skill is the acceptance bar you apply while authoring, and the setup step for a project that hasn't defined its breakpoints yet.
Stack-agnostic. This applies to any UI architecture — React, Vue, Angular, Svelte, Salesforce LWC/Aura, Web Components, or plain HTML/CSS. Wherever the examples say "SCSS", read it as "your stack's styling mechanism" (SCSS, CSS Modules, CSS custom properties, Tailwind, CSS-in-JS, a framework theme). The acceptance bar below does not depend on the framework.
In: creating or editing any UI component, page, or layout style — or a project with no breakpoint system yet.
Out: it renders validly at every defined breakpoint and the awkward widths between — no overflow,
readable text, discernible images, reflow rather than shrink, restrained chrome, usable targets, full-
area states, and breakpoints via the token system. The checkable expectations are in
evals/rubric.json.
You cannot verify "valid at every breakpoint" against an undefined set. If the project has no
named breakpoint scale — no SCSS $bp-* map / mixin, no CSS custom properties, no Tailwind
screens, no framework theme tokens:
→ Stop and propose one before writing responsive styles. Offer the user two starting points:
A standard scale as the default (widely-understood, min-width steps):
| name | min-width | target |
|---|---|---|
sm | 40rem (640px) | large phones / landscape |
md | 48rem (768px) | tablets portrait |
lg | 64rem (1024px) | tablets landscape / small laptops |
xl | 80rem (1280px) | desktops |
2xl | 96rem (1536px) | wide monitors |
(Bootstrap's 576/768/992/1200/1400 is an equally fine alternative — offer it if the user leans that way.)
Or the user's own values — if they already have a design grid, adopt those exact numbers.
At minimum, if the user won't commit to a full scale, name the breakpoints actually in use and
record them in one place (a tokens file) so "all breakpoints" has a concrete meaning. Emit media
queries through that system (a respond-to(name) mixin or the framework tokens), never inline
magic-number widths.
evals/rubric.json.@storybook/addon-viewport) with the project's breakpoints registered.A skill description alone triggers unreliably for routine "build/fix a component" work — the model often treats that as something it handles directly and doesn't stop to consult a checklist. To make this bar actually apply on every component edit, wire it into the consuming repo (not the skill — enforcement is per-project because file patterns differ by stack):
PostToolUse hook on Write|Edit matching that repo's component/style files, injecting a
short reminder that points here. Match your stack's patterns, e.g.:
src/**/*.{tsx,jsx,vue,svelte,scss,css}**/*.component.{ts,html,scss}**/lwc/**/*.{html,css,js} · Aura: **/aura/**/*.{cmp,css}CLAUDE.md/AGENTS.md), which is
always in context and names the project's breakpoint tokens.The skill is the shared content; the hook/review/instruction is the per-repo trigger.
| Thought | Reality |
|---|---|
| "Looks fine on my screen." | You tested one width. The bar is every breakpoint. |
| "It's just a small component." | Small components nest into the tightest columns, where overflow bites first. |
| "The text just truncates, that's fine." | Truncated-to-nonsense fails criterion 3 — the user must still be able to read it. |
| "I'll shrink it to keep the columns." | Shrinking below legibility fails 4/5 — reflow to a stack instead. |
| "No grid defined, I'll just eyeball widths." | Undefined breakpoints make "responsive" unverifiable. Pin the scale first (step 0). |
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub aquivalabs/bladeforge --plugin frontend-css3 skills in this plugin
/remCSS Units — Always Use remCSS Units — enforce rem for CSS/SCSS/Tailwind dimensions. Use whenever a hardcoded pixel length appears in a stylesheet or component's layout — spacing, sizing, or typography such as gap, padding, margin, width, height, or font-size — and the user wants it changed, reviewed, made consistent with a spacing scale, or made responsive to browser zoom/font-size. Applies whether the value is stated as px, an arbitrary Tailwind value like p-[10px], or an SCSS property. Do NOT trigger for genuinely pixel-appropriate values that stay in px: border-width, box-shadow offsets, or SVG attributes like width, height, and stroke-width on chart/vector elements./scss-modulesCSS / SCSS — Modules, Colors, and StructureHouse rules for authoring component SCSS — the .scss-over-.css convention, SCSS file structure, the color/spacing/radius variable & token system (never hardcode hex or magic numbers — add to variables first), and BEM structure (block → &__element → &--modifier). Use when writing or refactoring a component's styles, setting up the SCSS token/variable system, or consolidating hardcoded values to the scale. NOT for choosing a dimensional unit or converting px→rem (frontend-css:rem), naming a component's folder or its non-style files (frontend-react:component-structure), style import-alias policy (frontend-js:conventions), LWC/Aura styling (salesforce:lwc_development), or skeleton/Storybook files.