ui-responsive

ui-responsive is a command for Claude Code from HermeticOrmus/LibreUIUX-Claude-Code. It costs 10 tokens per session (2,994 once invoked), scanned A, original, MIT.

A command that checks a web page or component at different screen sizes, from phones to large desktop monitors, for responsive design problems.

In plain words
What is it for?
Use it to review and fix mobile, tablet, laptop, desktop, and large-desktop layouts, including widths, grids, flex layouts, and horizontal overflow.
Why use it?
It identifies layouts that overflow, fixed widths that do not shrink, and grids or styles that fail on smaller screens.

Command for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/hermeticormus/libreuiux-claude-code/ui-responsive
Clone the repo
git clone --depth 1 https://github.com/HermeticOrmus/LibreUIUX-Claude-Code

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ui-responsive

README.md
[![agentmods](https://agentmods.dev/badge/commands/hermeticormus/libreuiux-claude-code/ui-responsive.svg)](https://agentmods.dev/commands/hermeticormus/libreuiux-claude-code/ui-responsive)
Your own site
<a href="https://agentmods.dev/commands/hermeticormus/libreuiux-claude-code/ui-responsive"><img src="https://agentmods.dev/badge/commands/hermeticormus/libreuiux-claude-code/ui-responsive.svg" alt="Measured on agentmods" height="20"></a>
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,994 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00010 $0.02994
Opus 5 $0.00005 $0.01497
Sonnet 5 $0.00002 $0.00599
Haiku 4.5 $0.00001 $0.00299

Measured 4d ago against content hash 5728bd9c481b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ui-responsive scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/ui-responsive.md · 519 lines

How it starts

The opening of the file, as written. The whole thing — 519 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Responsive Design Checker

Analyze and fix responsive design issues to ensure your UI works perfectly on all devices.

Usage

/ui-responsive

Run this command while viewing a component or page to check its responsive behavior.


Instructions for Claude

When the user runs /ui-responsive, analyze the current component/page for responsive design issues and provide specific fixes.

1. Breakpoint Analysis

Check behavior at standard breakpoints:

Mobile:        320px - 639px   (sm:)
Tablet:        640px - 1023px  (md:)
Laptop:        1024px - 1279px (lg:)
Desktop:       1280px - 1535px (xl:)
Large Desktop: 1536px+         (2xl:)

2. Responsive Checklist

A. Layout Responsiveness

Check for:

Issues to detect:

❌ Fixed widths without responsive variants:
   - w-[600px] (breaks on mobile)
   - Fix: max-w-2xl mx-auto (flexible with max)

❌ No grid/flex breakpoints:
   - grid-cols-4 (too many on mobile)
   - Fix: grid-cols-1 md:grid-cols-2 lg:grid-cols-4

❌ Horizontal overflow:
   - Container wider than viewport
   - Fix: Add w-full or max-w-full

❌ Missing mobile-first approach:
   - Desktop styles without mobile base
   - Fix: Start with mobile, add md:, lg: variants

Report:

## Layout Analysis

### Mobile (320px - 639px)
❌ Issues found:
   - Grid has 3 columns, should be 1
   - Container has fixed width (800px)
   - Content overflows horizontally

Fixes:
   Line 15: grid-cols-3 → grid-cols-1 md:grid-cols-2 lg:grid-cols-3
   Line 8:  w-[800px] → max-w-4xl mx-auto w-full px-4

### Tablet (640px - 1023px)
✅ Looks good
   - 2 column grid works well
   - Spacing appropriate

### Desktop (1024px+)
⚠️  Minor issue:
   - Max width too large, content spreads too much
   - Change: max-w-7xl → max-w-6xl
B. Typography Responsiveness

Check for:

Issues to detect:

❌ Text too large on mobile:
   - text-6xl (72px on 320px screen = huge)
   - Fix: text-4xl md:text-5xl lg:text-6xl

❌ Text too small on mobile:
   - text-xs for body text (hard to read)
   - Fix: text-sm md:text-xs (larger on mobile)

❌ Fixed line heights:
   - leading-[100px] breaks on smaller text
   - Fix: leading-tight, leading-normal (relative)

❌ No responsive scaling:
   - Same size across all devices
   - Fix: Add breakpoint variants

Read the full file on GitHub · 519 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 519 lines · 10 tokens per session scan A 5728bd9c481b

Subscribe to this mod's changes

ui-responsive is a command published in the GitHub repository HermeticOrmus/LibreUIUX-Claude-Code (100 stars, last pushed 3mo ago), licensed MIT. It adds 10 tokens to every session and 2,994 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.