/playwright:test-responsive-designfrom playwright
Verifies UI responsiveness across mobile, tablet, and desktop breakpoints using Playwright. Includes scrollbar testing, overflow detection, and layout validation.
Ships in playwright. 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.
None: SKILL.md is the whole skill.
Ensure all UI features are fully responsive and work correctly across all device sizes, from mobile to desktop.
| Breakpoint | Min Width | Device Type |
|---|---|---|
| default | 0px | Mobile |
sm: | 640px | Large mobile |
md: | 768px | Tablet |
lg: | 1024px | Laptop |
xl: | 1280px | Desktop |
2xl: | 1536px | Large Desktop |
const testSizes = [
{ width: 375, height: 667, name: 'Mobile (iPhone SE)' },
{ width: 768, height: 1024, name: 'Tablet (iPad)' },
{ width: 1280, height: 720, name: 'Desktop (HD)' },
{ width: 1920, height: 1080, name: 'Desktop (Full HD)' },
];
container mx-auto px-4 sm:px-6 lg:px-8grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3text-2xl md:text-3xl lg:text-4xlmcp_playwright_navigate → { url: 'http://localhost:5173/feature' }
const breakpoints = [
{ width: 375, height: 667, name: 'Mobile' },
{ width: 768, height: 1024, name: 'Tablet' },
{ width: 1280, height: 720, name: 'Desktop' },
];
for (const bp of breakpoints) {
// Resize, screenshot, verify elements
mcp_playwright_resize → { width: bp.width, height: bp.height }
mcp_playwright_screenshot → { name: `feature-${bp.name}` }
}
() => {
const bodyWidth = document.body.scrollWidth;
const windowWidth = window.innerWidth;
return {
hasOverflow: bodyWidth > windowWidth,
overflowElements: Array.from(document.querySelectorAll('*'))
.filter(el => el.scrollWidth > windowWidth)
.map(el => ({ tag: el.tagName, class: el.className }))
};
}
w-full, max-w-*What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub bitovi/ai-enablement-prompts --plugin playwright8 skills in this plugin
/computed-stylesExtract and compare computed CSS styles between a baseline URL and a dev/Storybook URL using Playwright MCP evaluate calls. Use when visual differences have been identified and you need to find the exact CSS property mismatches to fix. Pairs with the visual-diff skill for a complete visual QA workflow./debug-e2e-testDebug and fix failing Playwright E2E tests. Use when tests fail, when asked to fix failing tests, or when investigating test failures. Analyzes test output, screenshots, error context, and uses Playwright MCP to identify root causes./debuggingAlways start a fresh browser session after any file change, walk through the full user flow, and monitor for errors before proceeding with further work./discover-visual-statesDiscover all visual states of a component by interactively exploring the production baseline page — not by reading story files. Finds every interactive element (nav items, dropdowns, toggles, buttons) that produces a distinct visual state, records the interactions needed to reach each one, and saves a pixel-perfect.config.json that the pixel-perfect skill uses to replay those same interactions on both production and Storybook. Run this once per component; re-run when the production page changes./pixel-perfectOrchestrate a complete visual QA workflow to make a dev/Storybook page match a baseline URL pixel-for-pixel. Combines the visual-diff skill (screenshot comparison) with the computed-styles skill (CSS property extraction) in a loop until the pages match. Use when replicating a production page, matching a design reference, or achieving pixel perfection on a component./visual-diffCompare a baseline URL against a dev or Storybook URL by taking Playwright screenshots at multiple breakpoints, running a pixel-level image diff, and reporting results to guide style and HTML corrections. Use when replicating an existing page or component, verifying visual accuracy, or checking responsive fidelity.Other plugins' skills for the same job