Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By xiaolaiv0.1.4ISCIn 2 marketplaces
Advisory responsive-design coach — flags non-responsive patterns post-write; never blocks tool calls
You run one by typing its /name in Claude Code.
Public GitHub repos that commit this plugin as enabled in their Claude Code settings
1 caution to review before installing
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
2 marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
A Claude Code plugin that flags non-responsive CSS patterns as advisory context, not as a blocker. Sibling to ui-tokenize; deliberately the inverse stance.
When the agent writes a CSS / SCSS / LESS / JSX-style file, ui-responsive scans for four patterns and surfaces findings as PostToolUse additionalContext:
@media breakpoint values that don't match the configured catalog (e.g. 801px when the catalog has 768/1024).100vh (the iOS Safari address-bar bug). Suggests 100dvh.width ≥ 320px without a paired max-width. Suggests max-width: <N>; width: 100%;.@media rules.Plus an MCP server with three read-only tools (responsive__check_file, responsive__list_breakpoints, responsive__suggest_dvh) and an audit CLI.
Responsive design is a layout-intent concern, not a literal-substitution concern. width: 1200px may be a deliberate max-width container; missing @media may be fine on a fixed admin page; 100vh on a kiosk is correct. There are no confidence-1.0 rewrites in this domain.
A plugin that denies on heuristics gets disabled on day three. A plugin that whispers gets listened to. So:
PreToolUse hook. The agent's edit always lands.--strict is opt-in for CI. Default audit always exits 0.This is the inverse of ui-tokenize's rewrite-first stance, on purpose. Same internals (catalog discovery, NDJSON ledger pattern, ESM-zero-deps); different user-visible behavior.
claude plugin install ui-responsive@xiaolai --scope project
Install fails with "Plugin not found in marketplace 'xiaolai'"? Your local marketplace clone is stale. Run
claude plugin marketplace update xiaolaiand retry —plugin installdoes not auto-refresh.
/ui-responsive:init
Creates .responsive/config.json with default breakpoints (640 / 768 / 1024 / 1280). Edit it to match your design system, list mobile-targeted file globs in mobileSurfaces, or adjust the C3 threshold:
{
"breakpoints": { "sm": 640, "md": 768, "lg": 1024, "xl": 1280 },
"mobileSurfaces": ["src/mobile/**", "**/*.mobile.css"],
"minWidthThreshold": 320,
"ignore": [],
"disabled": false
}
The plugin works without this file — defaults are sensible for the common case.
After install, every Write/Edit/MultiEdit to a stylesheet is scanned post-write. Findings appear as additionalContext for the agent's next turn. No tool calls are blocked.
| Command | Purpose |
|---|---|
/ui-responsive:catalog | Print the configured breakpoint catalog |
/ui-responsive:audit [--changed-only|--full-repo] [--baseline <ref>] [--json|--markdown] | Scan; advisory by default |
/ui-responsive:audit --strict [--severity warn|concern] | CI mode — exits non-zero on findings at or above the severity floor |
| Severity | Meaning | Default --strict exits non-zero? |
|---|---|---|
info | Notable but probably fine (e.g. 100vh on a non-mobile file) | no |
warn | Likely a problem in responsive contexts | yes |
concern | Almost certainly a problem (e.g. stylesheet with no @media at all) | yes |
npm test
41 / 41 passing.
v0.1 — pre-release. Four checks for v0.1; two more (Tailwind-in-flex, touch-target size) deferred to v0.2 because they need cross-line context that regex can't see cleanly.
See dev-docs/02-spec.md for the architectural commitment, the four checks, and what's explicitly out of scope. See dev-docs/05-decisions.md for the eight decisions that shape the plugin's contract.
ISC License — free to use, copy, modify, and distribute.
A file can be responsive through container queries, flexible layout or shared rules without a local media query. Treat findings as leads, then check representative browser widths, overflow and touch targets. Keep heuristic rules advisory. Regression fixtures must include valid container-query and fluid layouts alongside real failures; a finding count is not a quality metric.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub xiaolai/ui-responsive --plugin ui-responsivePlugins from other owners that cover similar ground