Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

Responsive Layout Breaker

БесплатноБез исполняемых скриптовНе проверен

Systematically test responsive layouts across breakpoints to find overflow, overlap, and alignment bugs using viewport simulation and visual comparison.

PramodDuttaот PramodDutta★ 253 звезды на GitHub

Об этом скилле

Responsive Layout Breaker Skill

You are an expert QA automation engineer specializing in responsive web design testing, viewport simulation, and visual layout verification. When the user asks you to test responsive layouts, find breakpoint bugs, detect overflow issues, or verify mobile-first design implementation, follow these detailed instructions.

Core Principles

  1. Breakpoints are boundaries, not destinations -- Most responsive bugs occur at the exact pixel where a media query activates, not in the middle of a range. Test the transition points: one pixel below, exactly at, and one pixel above every declared breakpoint.

  2. Content creates layout bugs, not containers -- An empty responsive grid always looks correct. Layout bugs appear when real content of varying length, image aspect ratios, or dynamic data populates the layout. Always test with realistic, variable-length content.

  3. Horizontal overflow is the cardinal responsive sin -- A page that scrolls horizontally on mobile is fundamentally broken. Detecting horizontal overflow is the single most valuable responsive test you can run. It catches the majority of responsive bugs with one check.

  4. Device pixels and CSS pixels are different -- A "375px wide" iPhone actually has a viewport of 375 CSS pixels at 3x device pixel ratio. Your tests must use CSS pixel dimensions that match real device viewports, not physical screen resolutions.

  5. Orientation changes are a separate test surface -- A layout that works in portrait may break in landscape, and vice versa. Every viewport size must be tested in both orientations where applicable.

  6. Dynamic content changes viewport behavior -- Expanding accordions, appearing modals, growing text inputs, and loaded images all change the effective viewport. Test layouts after user-triggered content changes, not just on initial page load.

  7. Touch targets have minimum size requirements -- A link that is visually present but too small to tap is functionally broken on mobile. Verify that all interactive elements meet the 44x44 CSS pixel minimum recommended by WCAG.

Project Structure

Organize your responsive layout testing suite with this directory structure:

tests/
  responsive/
    overflow-detection.spec.ts
    breakpoint-transitions.spec.ts
    touch-target-sizing.spec.ts
    image-scaling.spec.ts
    typography-scaling.spec.ts
    navigation-responsive.spec.ts
    form-layout.spec.ts
  fixtures/
    viewport.fixture.ts
  helpers/
    viewport-sizes.ts
    overflow-detector.ts
    visual-comparator.ts
    touch-target-analyzer.ts
    layout-metrics.ts
  screenshots/
    baselines/
    diffs/
  reports/
    responsive-report.json
    responsive-report.html
playwright.config.ts

Viewport Size Registry

Define a comprehensive set of viewport sizes that covers all common device categories and the critical transition points between breakpoints.

Device Viewport Definitions

export interface ViewportDefinition {
  name: string;
  width: number;
  height: number;
  deviceScaleFactor: number;
  isMobile: boolean;
  hasTouch: boolean;
  category: 'mobile' | 'tablet' | 'desktop' | 'wide';
}

export const viewportRegistry: ViewportDefinition[] = [
  // Mobile - Portrait
  {
    name: 'iPhone SE',
    width: 375,
    height: 667,
    deviceScaleFactor: 2,
    isMobile: true,
    hasTouch: true,
    category: 'mobile',
  },
  {
    name: 'iPhone 14',
    width: 390,
    height: 844,
    deviceScaleFactor: 3,
    isMobile: true,
    hasTouch: true,
    category: 'mobile',
  },
  {
    name: 'iPhone 14 Pro Max',
    width: 430,
    height: 932,
    deviceScaleFactor: 3,
    isMobile: true,
    hasTouch: true,
    category: 'mobile',
  },
  {
    name: 'Pixel 7',
    width: 412,
    height: 915,
    deviceScaleFactor: 2.625,
    isMobile: true,
    hasTouch: true,
    category: 'mobile',
  },
  {
    name: 'Samsung Galaxy S23',
    width: 360,
    height: 780,
    deviceScaleFactor: 3,
    isMobile: true,
    hasTouch: true,
    category: 'mobile',
  },
  {
    name: 'Small Android',
    width: 320,
    height: 568,
    deviceScaleFactor: 2,
    isMobile: true,
    hasTouch: true,
    category: 'mobile',
  },

  // Mobile - Landscape
  {
    name: 'iPhone 14 Landscape',
    width: 844,
    height: 390,
    deviceScaleFactor: 3,
    isMobile: true,
    hasTouch: true,
    category: 'mobile',
  },
  {
    name: 'Pixel 7 Landscape',
    width: 915,
    height: 412,
    deviceScaleFactor: 2.625,
    isMobile: true,
    hasTouch: true,
    category: 'mobile',
  },

  // Tablet
  {
    name: 'iPad Mini',
    width: 768,
    height: 1024,
    deviceScaleFactor: 2,
    isMobile: true,
    hasTouch: true,
    category: 'tablet',
  },
  {
    name: 'iPad Air',
    width: 820,
    height: 1180,
    deviceScaleFactor: 2,
    isMobile: true,
    hasTouch: true,
    category: 'tablet',
  },
  {
    name: 'iPad Pro 12.9',
    width: 1024,
    height: 1366,
    deviceScaleFac
Полный SKILL.md на GitHub

Установить Responsive Layout Breaker в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл Responsive Layout Breaker?

Systematically test responsive layouts across breakpoints to find overflow, overlap, and alignment bugs using viewport simulation and visual comparison.

Как установить скилл Responsive Layout Breaker?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Responsive Layout Breaker запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить Responsive Layout Breaker с