agentleFS
ryanschueryanschue/automated-product-engineer/skills/responsive-design/SKILL.md

responsive-design

Skill0 starsChanged 25 days agoMITView on GitHub

Audit and polish components and pages across compact, intermediate, and wide widths. Use when layouts wrap too early, flicker near breakpoints, waste space, crop content, overflow, shift height, or need a deliberate presentation change.

31 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use visual-hierarchy, web-component-design and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • launchapp-devSkill

    visual-hierarchy

    Establish clear visual hierarchy through size, weight, color, spacing, and positioning.

    Also in 3 projects that use this

  • Aver005Skill

    web-component-design

    Master React, Vue, and Svelte component patterns including CSS-in-JS, composition strategies, and reusable component architecture. Use when building UI component libraries, designing component APIs, or implementing frontend design systems.

    Also in 3 projects that use this

  • CodeWithBehnamSkill

    accessibility-compliance

    Implement WCAG 2.2 compliant interfaces with mobile accessibility, inclusive design patterns, and assistive technology support. Use when auditing accessibility, implementing ARIA patterns, building for screen readers, or ensuring inclusive user experiences.

    Also in 3 projects that use this

  • CodeWithBehnamSkill

    visual-design-foundations

    Apply typography, color theory, spacing systems, and iconography principles to create cohesive visual designs. Use when establishing design tokens, building style guides, or improving visual hierarchy and consistency.

    Also in 3 projects that use this

  • wpankSkill

    design-system-patterns

    Foundational design system architecture — token hierarchies, theming infrastructure, token pipelines, and governance. Use when creating design tokens, implementing theme switching, setting up Style Dictionary, or establishing multi-brand theming. Triggers on design tokens, theme provider, Style Dictionary, token pipeline, multi-brand theming, CSS custom properties architecture.

    Also in 3 projects that use this

  • rastianSkill

    interaction-design

    Apply interaction design (IxD) principles and frameworks to product and service design work. Use this skill when designing or evaluating interaction flows, micro-interactions, feedback mechanisms, affordances, mental models, component states, response time, animation and transitions, error recovery, input validation, task flows, or navigation patterns. Core audiences: product designers, UX designers, UI designers, service designers, and interaction designers working on digital products and services. Trigger on: interaction flow, micro-interaction, affordance, feedback design, state design (hover/focus/error/loading/empty), response time, transition, animation, mental model, task flow, user flow, navigation design, interaction spec, handoff annotation, gesture, input validation, error state, loading state, empty state, system feedback, signifier, design review, interaction audit, IxD principles.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 8 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 29 edited versions we read keep these.

  • 8

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read references/adaptive-failure-patterns.md for breakpoint derivation, shell and scroll ownership, overlay containment, and …

    line 10
  2. Distinctive:

    Keep related controls aligned while their minimum readable widths fit.

    line 20
  3. Distinctive:

    Keep fixed-format controls stable in height and separate icon glyph scale from touch-target geometry.

    line 23
  4. Distinctive:

    Keep semantic metadata beside the content it describes and keep overflow summaries attached to the group they summarize.

    line 24
  5. Distinctive:

    Ensure fixed navigation and safe areas do not cover the final reachable content.

    line 27
  6. Distinctive:

    Prefer a purpose-built compact presentation when a dense wide row cannot remain legible.

    line 36
  7. Distinctive:

    Add geometry or behavior tests for stable invariants and targeted screenshots for meaningful states.

    line 37
  8. Distinctive:

    Run Playwright responsive coverage where useful, then manually drag the real browser in both directions to catch flicker, clipping, focus, …

    line 38

“Common” is measured: kept by at least 6 in 10 of the 29 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Responsive Design

Design continuous transitions, not merely acceptable endpoint screenshots. Derive changes from the available container and content rather than presumed device labels.

Read references/adaptive-failure-patterns.md for breakpoint derivation, shell and scroll ownership, overlay containment, and transition-testing examples.

Intake and pushback

Inspect the production component continuously across widths with representative content before asking for breakpoint values. Establish the primary task, content priority, minimum readable geometry, required controls, input modes, overlay behavior, and approved references. Ask only when a product decision determines what may move, condense, scroll, or hide. If design input is required, generate a focused request showing the pressure point and asking for the exact wide, transition, and narrow behavior.

Geometry rules

  • Compress decorative gaps, flexible gutters, and unused reserves before hiding or truncating meaningful content.
  • Keep related controls aligned while their minimum readable widths fit. When they no longer fit, switch to an explicit layout state rather than incidental wrapping.
  • Redefine rows, columns, width ownership, height, sticky offsets, clipping, fades, and scroll boundaries together when line count changes.
  • Let a meaningful control group own its new compact row; do not strand it beside arbitrary whitespace.
  • Keep fixed-format controls stable in height and separate icon glyph scale from touch-target geometry.
  • Keep semantic metadata beside the content it describes and keep overflow summaries attached to the group they summarize.
  • Give overlays their own viewport caps, collision padding, and internal scrolling.
  • Allow horizontal scrolling only when the surface's interaction model requires it, and make hidden continuation discoverable.
  • Ensure fixed navigation and safe areas do not cover the final reachable content.

Use container queries when behavior depends on a component's actual frame and viewport queries when the page shell owns the transition. Avoid measuring with inconsistent box models. Width-changing hover or focus behavior inside a wrapping group is a layout mutation and needs an explicit geometry contract.

Working method

  1. Render the production component with representative short, long, empty, and dense content.
  2. Inspect continuously from compact to wide and back, pausing around every transition rather than checking only named breakpoints.
  3. Identify minimum readable widths and explicit shrink priorities before adding a layout change.
  4. Prefer a purpose-built compact presentation when a dense wide row cannot remain legible; preserve capability, order, and semantics across presentations.
  5. Add geometry or behavior tests for stable invariants and targeted screenshots for meaningful states.
  6. Run Playwright responsive coverage where useful, then manually drag the real browser in both directions to catch flicker, clipping, focus, overlay, and scroll defects automation may miss.

Review checklist

  • Narrowing and widening traverse the same states in reverse without flicker.
  • Readable content is not truncated while usable space remains.
  • Deliberate wrapped states have complete height and no stale offsets or blank inherited columns.
  • The page has no accidental horizontal overflow.
  • Dialogs, popovers, and the final scroll item remain fully reachable.
  • Keyboard order, focus visibility, touch targets, and accessible names survive each presentation change.
  • Visual snapshots match the production component and were inspected rather than blindly updated.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.