Responsive Layout Reviewer
Skill9 starsChanged 8 months agoMITView on GitHub
Reviews HTML/CSS or component code for responsive design issues across mobile, tablet, and desktop breakpoints.
In this repository61 other files it gives its agents.
- Accessibility Audit HelperSkill
- Agent Context File WriterSkill
- Agent Evaluation Framework BuilderSkill
- AI Feature Spec WriterSkill
- API Documentation GeneratorSkill
- REST API Endpoint DesignerSkill
- Architecture ExplainerSkill
- Article RepurposerSkill
- Auth Flow PlannerSkill
- Blog Outline GeneratorSkill
- Breaking Change DetectorSkill
- Bug Root Cause AnalyzerSkill
- Caching Strategy AdvisorSkill
- Changelog CuratorSkill
- Code Review ChecklistSkill
- Database Schema ReviewerSkill
- Docker Compose GeneratorSkill
- Documentation Gap FinderSkill
- Edge Case DiscoverySkill
- Error Log SummarizerSkill
- FAQ GeneratorSkill
- Flaky Test AnalyzerSkill
- Form UX OptimizerSkill
- Git Commit WriterSkill
- Hallucination Risk ReviewerSkill
- Hybrid Search ArchitectSkill
- Incident Postmortem WriterSkill
- Issue to PR PlannerSkill
- Landing Page Copy ImproverSkill
- LangGraph State Machine DesignerSkill
- LLM Cost OptimizerSkill
- LLM Tracing and Observability SetupSkill
- MCP Integration AssistantSkill
- MCP Server BuilderSkill
- Migration Guide WriterSkill
- Newsletter Summary WriterSkill
- Observability ChecklistSkill
- Playwright Test BuilderSkill
- PR Description WriterSkill
- Prompt Injection Defense AuditorSkill
- Prompt RefinerSkill
- Prompt Version Control WorkflowSkill
- RAG Chunking Strategy AdvisorSkill
- RAG Workflow PlannerSkill
- React Component ReviewerSkill
- README WriterSkill
- Refactor PlannerSkill
- Release Notes GeneratorSkill
- SDK Quickstart WriterSkill
- SEO Content OptimizerSkill
- SEO Metadata GeneratorSkill
- Social Post Thread WriterSkill
- Sprint Summary GeneratorSkill
- SQL Query OptimizerSkill
- Stack Trace AnalyzerSkill
- Technical Blog Post WriterSkill
- Tech Debt AuditorSkill
- Troubleshooting Guide BuilderSkill
- Unit Test ImproverSkill
- Unit Test WriterSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 20
Use this during code review, before shipping a new component or page, or when a layout is broken on certain screen sizes and you need a …
- Very specific: line 36
Add the instructions below to your .cursorrules or paste them into the Cursor AI pane before sharing the code to review.
- Distinctive: line 44
When asked to review for responsive design issues, check every item in this checklist:
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Responsive Layout Reviewer
What this skill does
This skill reviews HTML/CSS, Tailwind, or React component code for responsive design issues. It checks for layout problems at mobile (320–480px), tablet (768–1024px), and desktop (1280px+) breakpoints, identifies common mistakes like fixed widths, missing overflow handling, inaccessible touch targets, and viewport-breaking elements, and produces a specific list of issues with exact fixes for each.
Use this during code review, before shipping a new component or page, or when a layout is broken on certain screen sizes and you need a systematic diagnosis.
How to use
Claude Code / Cline
Copy this file to .agents/skills/responsive-layout-reviewer/SKILL.md in your project root.
Then ask:
- "Use the Responsive Layout Reviewer skill on
src/components/ProductCard.tsx." - "Review this CSS for responsive issues using the Responsive Layout Reviewer skill."
Provide the component file or the HTML/CSS to review.
Cursor
Add the instructions below to your .cursorrules or paste them into the Cursor AI pane before sharing the code to review.
Codex
Paste the HTML/CSS or component code and ask Codex to follow the instructions below.
The Prompt / Instructions for the Agent
When asked to review for responsive design issues, check every item in this checklist:
Breakpoints to evaluate
Unless the project uses a custom breakpoint system, evaluate at:
- Mobile: 320px (small phone), 375px (iPhone standard)
- Mobile landscape: 667px
- Tablet: 768px, 1024px
- Desktop: 1280px, 1440px
- Wide: 1920px
Note the breakpoint system used by the project (Tailwind defaults, Bootstrap, custom media queries) and use those values.
Checklist
Fixed widths
- Any element with a hardcoded pixel width that could overflow on smaller screens (e.g.,
width: 600pxwithoutmax-width: 100%) - Flex or grid children with
flex: 0 0 [fixed]that could overflow - Tables without
overflow-x: autoon a wrapper
Overflow and clipping
- Long text strings (URLs, email addresses, names) that don't have
overflow-wrap: break-wordortext-overflow: ellipsis - Images without
max-width: 100%orwidth: 100% - Horizontal scroll introduced by an element wider than the viewport
overflow: hiddenon a parent that clips important content on small screens
Typography
- Font sizes below 16px on mobile (causes iOS to auto-zoom on input focus)
line-heighttoo tight for small screens- Heading sizes that remain large on mobile without downscaling
Touch targets
- Clickable elements smaller than 44×44px (Apple HIG) or 48×48dp (Material Design) on mobile
- Links or buttons too close together without sufficient spacing (< 8px gap)
- Hover-only interactions with no touch equivalent
Navigation
- Desktop navigation that doesn't adapt (no mobile menu, items overflow, hamburger missing)
- Dropdown menus that don't work on touch devices
Spacing and padding
- Elements with no padding on small screens, causing content to touch the screen edge
- Fixed margins that eat into usable space on narrow screens
Images and media
<img>withoutwidthandheightattributes (causes layout shift)- Background images without
background-size: coveror equivalent - Video embeds with no responsive wrapper (
padding-top: 56.25%; position: relative)
Flexbox and grid
flex-wrap: nowrapon a row that can't fit all items at small sizes- Grid with fixed column counts that should switch to fewer columns on mobile
gapvalues that are too large on mobile
Input fields and forms
- Inputs without
width: 100%or equivalent on mobile font-sizebelow 16px on inputs (triggers iOS zoom)- Select dropdowns with fixed widths that overflow
Output format
## Responsive Layout Review — [Component/File]
### Critical Issues (will break layout or block usage on mobile)
#### 1. [Issue title]
- **Breakpoint affected**: [e.g., 320px–768px]
- **Location**: [CSS class, line number, or component prop]
- **Problem**: [What breaks and why]
- **Fix**: [Exact CSS/Tailwind/code change]
### High-Priority Issues (visible problems, degrades UX significantly)
[Same format]
### Warnings (minor issues or edge cases)
[Same format]
### What's Working Well
[Brief note on responsive patterns already done correctly]Example
Input to Agent:
"Use the Responsive Layout Reviewer skill on this component:
<div style={{ display: 'flex', gap: 24 }}> <img src={product.image} style={{ width: 300, height: 300 }} /> <div style={{ width: 400 }}> <h2 style={{ fontSize: 28 }}>{product.name}</h2> <p style={{ fontSize: 14 }}>{product.description}</p> <button style={{ padding: '4px 8px', fontSize: 12 }}>Add to cart</button> </div> </div> ```"
Output from Agent:
Responsive Layout Review — ProductCard
Critical Issues
1. Fixed widths cause overflow on mobile
- Breakpoint affected: All screens below 724px (300 + 400 + 24 gap = 724px minimum width)
- Location:
imgwidth 300px, innerdivwidth 400px- Problem: The total minimum width (724px) exceeds most phone screens, causing horizontal scroll
- Fix: Remove fixed widths; use
flex: 1on the text div andflex-shrink: 0on the image, or switch to a column layout below 640px:@media (max-width: 640px) { .card { flex-direction: column; } .card img { width: 100%; height: auto; } }High-Priority Issues
2. Touch target too small
- Breakpoint affected: Mobile
- Location:
buttonwithpadding: 4px 8px- Problem: The button is approximately 30px tall — well below the 44px minimum for comfortable touch interaction
- Fix:
padding: '12px 20px'— this produces a taller target and also improves visual balance3. Font size below 16px on mobile
- Location:
<p>withfontSize: 14and<button>withfontSize: 12- Problem: On iOS, inputs and interactive elements with
font-size < 16pxtrigger page zoom on focus. Also, 12px text is hard to read on small screens.- Fix: Set body text to minimum 16px; button text to 14–16px
Notes
- Static code review can catch most structural issues, but testing in actual browser DevTools (or on a real device) is still necessary for confirming scroll and touch behavior.
- Tailwind projects should use the
sm:,md:,lg:prefixes consistently — look for Tailwind utilities with no mobile-first base value. - For complex layouts, suggest testing with Chrome DevTools Device Mode at 375px width as a baseline.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

