Responsive design

From akillness/jeo-skills · View interactive version

Responsive design is an AI agent skill from the GitHub repository akillness/jeo-skills. Routing-first responsive layout strategy and verification for web interfaces. Use when the main job is classifying whether the failure is page-shell adaptation, reusable component/container behavior, dense-data or toolbar pressure, responsive media, or reflow verification — then turning vague “break

How to use this skill

Skill file

Responsive Design

Use this skill when the job is to name the failing responsive surface, choose the smallest viable adaptation packet, and leave behind a short strategy + verification brief.

The job is not to dump generic CSS recipes, paste framework snippets, or absorb every neighboring frontend concern.

This skill should:

  1. classify the responsive failure first,
  2. choose one primary responsive packet,
  3. keep viewport vs container ownership explicit,
  4. separate dense-data and media cases from generic layout advice,
  5. keep reflow/verification visible,
  6. route neighboring frontend work honestly.

Read these support docs first:

When to use this skill

When not to use this skill

Instructions

Step 1: Frame the responsive job before naming CSS

Capture the minimum intake packet first.

responsive_intake:
  surface: page-shell | nav | form | table | dashboard | card-grid | media-embed | component-slot | mixed | unknown
  workflow_type: bug-fix | refactor-plan | launch-readiness | review-follow-up | design-handoff | unknown
  primary_packet: page-layout | component-slot | dense-data | media-behavior | verification-reflow | mixed | unknown
  pressure_source: viewport-width | parent-container | content-density | localization-copy | zoom-reflow | mixed | unknown
  signal_source: bug-report | screenshot | browser-resize | qa-review | design-review | a11y-review | mixed | unknown
  confidence: high | medium | low

Rule: do not start with “add another breakpoint.” First label the failing responsive surface.

Step 2: Choose exactly one primary responsive packet

Use the router in references/intake-packets-and-route-outs.md.

Primary packets:

  1. page-layout
  2. component-slot
  3. dense-data
  4. media-behavior
  5. verification-reflow

Pick the highest-leverage packet for the current decision. List anything else as follow-up, not as equal co-owners.

Step 3: Keep the invariants visible

These rules survive every answer:

Step 4: Build the responsive strategy packet

Return this structure:

# Responsive Strategy Packet

## Scope
- Surface:
- Workflow type:
- Primary packet:
- Confidence: high | medium | low

## Current signal
- Main symptom:
- Pressure source:
- What is already known:
- What still needs direct verification:

## Recommended first slice
1. ...
2. ...
3. ...

## Layout decisions
- Mobile-first baseline:
- Intrinsic layout rules:
- Viewport query layer:
- Container-query usage:
- Dense-data / media fallback:

## Verification plan
- Narrow-width checks:
- Zoom / reflow checks:
- Overflow / wrapping checks:
- Content-density / localization checks:

## Ownership and route-outs
- Primary owner:
- Adjacent skills / teams:

Step 5: Use the packet, not a giant CSS tutorial

Pull the packet from references/intake-packets-and-route-outs.md.

Packet rules:

Step 6: Separate mechanism choice from ownership choice

Use this split in every serious answer:

If the request starts from a screenshot, QA note, or “mobile is broken” report, say explicitly that the screenshot is the signal artifact, not the finished responsive strategy.

Step 7: Route adjacent work explicitly

Use these route-outs when the problem crosses boundaries:

| If the real job is... | Route to... |

|---|---|

| reusable primitive API, variant sprawl, slot ownership, component structure | design-system |

| semantics, keyboard/focus, labels, contrast, motion, or accessibility-heavy remediation | web-accessibility |

| shared breakpoint tokens, system-wide density rules, cross-product frontend standards | design-system |

| broad launch-readiness UI critique, hierarchy, polish, or heuristic review | web-accessibility |

| hydration, rerender churn, client-boundary cost, or runtime performance | react-best-practices |

Output expectations

A strong answer from this skill should:

  1. identify the primary responsive packet,
  2. recommend one bounded adaptation strategy,
  3. name the manual verification still required,
  4. avoid treating framework helpers as a complete strategy,
  5. route broader frontend ownership questions outward instead of absorbing them.

Examples

Example 1: dashboard overflow on mobile

Input

Our dashboard filter bar and data table force horizontal scrolling on mobile. Help us fix the responsive behavior.

Output direction

Example 2: reusable card in many slots

Input

The same card lives in a sidebar, a feed, and a 2-column grid. Should we use container queries or more viewport breakpoints?

Output direction

Example 3: pricing page before launch

Input

Review this pricing page before launch. Cards feel cramped on mobile and the hero wraps badly.

Output direction

Example 4: system-wide breakpoint debate

Input

Our teams all use different breakpoint and spacing rules across products. Is responsive-design the right skill?

Output direction

Example 5: zoom and reflow failure

Input

This form still breaks at 400% zoom and keyboard users lose context. Should we keep fixing it in responsive-design?

Output direction

Best practices

  1. Start with the failing responsive surface, not the syntax trick.
  2. Prefer intrinsic layout before adding another breakpoint.
  3. Keep viewport and container ownership explicit.
  4. Treat tables, toolbars, and dense dashboards as packet-worthy special cases.
  5. Treat screenshots and device-mode checks as inputs, not proof of completion.
  6. Keep verification honest: zoom, reflow, long copy, and overflow still matter.
  7. When unsure, route neighboring frontend work explicitly instead of inflating this skill.

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.