agentleFS
ryanbaumannryanbaumann/fieldwork/.agents/skills/frontend-responsive-design/SKILL.md

frontend-responsive-design

Skill2 starsChanged 28 days agoMITView on GitHub

Design and review responsive frontend layouts, styling, accessibility, interaction behavior, Tailwind usage, and visual QA for the portfolio and demo apps. Use before changing layout, CSS, semantic HTML, map controls, responsive behavior, or other perceptible frontend interactions.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    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
  1. Distinctive:

    Use this skill for tasks involving layout, styling, accessibility, responsive behavior, Tailwind utility usage, HTML structure, visual QA, …

    line 8
  2. Distinctive:

    Prefer current platform documentation for behavior questions:

    line 12
  3. Distinctive:

    Start from the smallest supported viewport and progressively enhance for larger containers/viewports.

    line 26
  4. Distinctive:

    Prefer resilient modern CSS:

    line 27
  5. Very specific:

    If animation or camera behavior changes, respect prefers-reduced-motion where practical.

    line 48
  6. Distinctive:

    No horizontal scrolling at common mobile widths unless intentionally part of a map canvas.

    line 56

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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.

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

Frontend Responsive Design Skill

Use this skill for tasks involving layout, styling, accessibility, responsive behavior, Tailwind utility usage, HTML structure, visual QA, or frontend interaction design in either app.

Primary References

Prefer current platform documentation for behavior questions:

Workflow

  1. Determine the app and styling system:
    • demos/strava-explorer/ uses Vite and app-local CSS.
    • demos/aqi-map/ uses Vite and app-local CSS.
  2. Inspect the relevant HTML and JavaScript before changing classes or structure.
  3. Start from the smallest supported viewport and progressively enhance for larger containers/viewports.
  4. Prefer resilient modern CSS:
    • clamp() for fluid spacing/type with limits.
    • CSS Grid/Flexbox with minmax(), auto-fit, and sensible intrinsic sizing.
    • Container queries for component-level changes when the component can appear in multiple page contexts.
    • Viewport media queries for major page-shell changes.
  5. Maintain accessibility while changing visuals:
    • Explicit labels for inputs and controls.
    • Meaningful alt text for images.
    • Semantic buttons/links instead of clickable divs.
    • Visible focus states and keyboard operability.
    • Distinct hover, focus, active, selected, disabled, loading, and error states. Render related states together: a hover treatment that copies the focus ring makes keyboard focus stop carrying information.
    • Announced loading/error states when practical.
  6. Account for map UX: use 100svh or 100dvh instead of a desktop 100vh assumption, include safe-area padding, and keep interactive targets at least 44×44 CSS pixels. Bottom sheets need a useful default state, an independently scrollable content region, and drag handling that does not scroll the page underneath or steal map gestures. Avoid covering required map controls. For custom map markers, keep text high-contrast and thumbnails legible over satellite/photorealistic backgrounds.
  7. If animation or camera behavior changes, respect prefers-reduced-motion where practical.
  8. Validate with the relevant build command and, for perceptible UI changes, use a browser/screenshot check when available. Exercise the affected interaction states in light and dark schemes at narrow and wide viewports; do not approve a state from its isolated screenshot.

Review Checklist

  • No horizontal scrolling at common mobile widths unless intentionally part of a map canvas.
  • Form controls are reachable by keyboard and have accessible names.
  • Interactive targets are at least 44×44 CSS pixels or have an equivalent 44×44 hit area.
  • Mobile map shells remain usable with collapsing browser chrome, safe areas, an open panel, and page/map gestures.
  • Text remains legible over map backgrounds, custom markers, popovers, and side panels.
  • Layout works with long activity names, empty states, loading states, and error messages.
  • External CSS frameworks do not override map internals unexpectedly.

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.