/doesntbreak:fix path glob or component to fix defaults to the project's UI filesfrom doesntbreak
Apply the doesntbreak responsive fixes to layout code. Finds the same offenders /doesntbreak:audit reports, edits the source to fix the high-confidence ones, flags the judgment calls, and verifies with a real browser. Leaves changes unstaged for review, never commits.
Ships in doesntbreak. Installing the plugin adds it to Claude Code.
You are running the apply half of doesntbreak. Your job is to fix responsive
layout bugs in the source, then prove the fix worked. This is the write-mode
counterpart to /doesntbreak:audit (which only reports). You edit files, but you
leave every change unstaged for the user to review. You MUST NOT commit, stage, or
reformat anything beyond the targeted fixes.
Apply the doesntbreak rules as your rubric. Read
${CLAUDE_PLUGIN_ROOT}/skills/doesntbreak/SKILL.md for the rules, and read
${CLAUDE_PLUGIN_ROOT}/skills/doesntbreak/references/patterns.md for the exact
corrected snippet for each fix. Use the canonical fix from patterns.md, not one
reasoned from memory. (${CLAUDE_PLUGIN_ROOT} resolves to this plugin's install
directory; the bundled skill files live there, not in the user's project.)
Target: $ARGUMENTS
.html, .css,
.scss, .jsx, .tsx, .vue, .svelte, and class-bearing markup./doesntbreak:screenshot-check browser
pass on the unedited target first and keep the per-width overflow numbers as the
"before". If no browser is available, note that and continue without a baseline.file:line.patterns.md
snippet, matching the surrounding code style. Skip anything already compliant
(idempotent). If a construct cannot be located safely (a framework abstraction
hides the real element), flag it instead of forcing a change./doesntbreak:screenshot-check on the edited target and capture
the "after" numbers.git add, do not commit, do not touch unrelated code.Apply these without asking. Each bullet is labeled with its rule number; rule 2 (reflow) is a judgment call and lives in the Flag section below, which is why the numbers skip it.
width: 1200px becomes width: min(100% - 2rem, 1200px); margin-inline: auto (Tailwind w-[1200px] becomes w-full max-w-[1200px]).height: Npx becomes min-height: Npx. A viewport-unit height (height: 100vh) is rule 8, not this one: fix it there.<style> block exists: add img, video, svg { max-width: 100%; height: auto; } there.min-width: 44px; min-height: 44px.font-size: 16px on the input.min-width: 0 to the flex/grid child and overflow-wrap: break-word to the text node; grid 1fr becomes minmax(0, 1fr).height: 100vh / min-height: 100vh on a full-height section becomes min-height: 100vh; min-height: 100dvh (fallback first, then dvh). Tailwind h-screen / min-h-screen becomes min-h-dvh (needs Tailwind v3.4+; on older versions use the arbitrary value min-h-[100dvh]).<pre>, code block) with no scroll wrapper: wrap it in a container with overflow-x: auto.Report these for the user to decide instead of auto-applying:
flex-wrap: wrap
(keeps the row intent) or an auto-fit grid
(grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr))). Present
both and let the user choose.A table, one row per edit: file:line | rule | before becomes after.
The flagged items, each with its 2 valid options. Omit this section if empty.
Per width, before becomes after, for example 320: FAIL (overflow 1696) becomes PASS (-15).
End with a one-line verdict. If any width still FAILs, say so and name the likely
cause (a flagged item not yet applied, or a cause outside this file).
Remind the user the changes are unstaged: review with git diff, then commit when
satisfied. Nothing was committed or staged.
patterns.md fix. Do not invent changes.What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
3 commands in this plugin
/auditRules sourceReport-only responsive UI audit. Scans HTML/CSS/React/Tailwind layout code for the 9 doesntbreak rules and reports findings with file:line, severity, and exact fixes. Never edits files./screenshot-checkTargetRender a page in a real headless browser at four widths and prove whether it horizontally overflows. The measured counterpart to /doesntbreak:audit. Saves a screenshot per width.npx claudepluginhub codewithasnari/doesntbreak --plugin doesntbreakOther plugins' commands for the same job