frontend-responsive

frontend-responsive is a skill for Claude Code, Codex from tmj-90/gaffer. It costs 70 tokens per session (1,427 once invoked), scanned A, original, Apache-2.0.

A responsive-layout guide for making web interfaces adapt to phones, tablets, and desktop screens.

In plain words
What is it for?
It helps implement mobile-first layouts, fluid sizing, suitable breakpoints, touch-friendly controls, and checks across several screen widths.
Why use it?
It helps prevent horizontal scrolling, unreadable text, broken layouts, and controls that are hard to tap on small screens.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps implement mobile-first layouts, fluid sizing, suitable breakpoints, touch-friendly controls, and checks across several screen widths.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tmj-90/gaffer/frontend-responsive
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add tmj-90/gaffer --skill frontend-responsive
Clone the repo
git clone --depth 1 https://github.com/tmj-90/gaffer

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for frontend-responsive

README.md
[![agentmods](https://agentmods.dev/badge/skills/tmj-90/gaffer/frontend-responsive/github.svg)](https://agentmods.dev/skills/tmj-90/gaffer/frontend-responsive)
Your own site
<a href="https://agentmods.dev/skills/tmj-90/gaffer/frontend-responsive"><img src="https://agentmods.dev/badge/skills/tmj-90/gaffer/frontend-responsive/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for frontend-responsive

Your own site · 80×15
<a href="https://agentmods.dev/skills/tmj-90/gaffer/frontend-responsive"><img src="https://agentmods.dev/badge/skills/tmj-90/gaffer/frontend-responsive.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,427 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00070 $0.01427
Opus 5.5 $0.00028 $0.00571
Sonnet 5.5 $0.00014 $0.00285
Haiku 4.5 $0.00007 $0.00143

Measured 2mo ago against content hash 186217cb0626, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

frontend-responsive scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

runner/skills/frontend-responsive/SKILL.md · 88 lines

How it starts

The opening of the file, as written. The whole thing — 88 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Make the layout responsive

The layout must adapt from a 320 CSS px viewport to wide desktop with no horizontal scroll, readable text at 200% zoom, and targets a thumb can hit. WCAG 2.2 AA makes most of this testable: 1.4.10 Reflow (usable at 320 CSS px wide without two-dimensional scrolling), 1.4.4 Resize Text (200%), 1.4.12 Text Spacing, 1.3.4 Orientation (no portrait/landscape lock) and 2.5.8 Target Size (24×24 CSS px minimum).

Steps

  1. Read the scale. Call search_lore and open the theme/tokens for the breakpoint scale, spacing tokens and whether the repo is mobile-first (min-width queries) or desktop-first. Reuse those breakpoints; do not add a new one for a single component.
  2. Choose the right query. Page-level layout (sidebar collapses, nav becomes a drawer) uses viewport media queries. A component that appears in containers of different widths (card in a sidebar and in a main column) uses container queries (container-type: inline-size on the parent, @container (min-width: …) on the child) so it responds to its slot, not the window.
  3. Intrinsic layout first. Flexbox with flex-wrap, Grid with repeat(auto-fit, minmax(min(16rem, 100%), 1fr)), max-width + margin-inline: auto for measure (45–75 characters for body text), clamp() for fluid type and space. A layout that needs five media queries usually wants one grid rule.
  4. Kill overflow at the source.
    • Flex/grid children that contain long text get min-width: 0 (their default min-width: auto refuses to shrink).
    • Long URLs, emails and IDs: overflow-wrap: anywhere.
    • Media: max-width: 100%; height: auto, with width/height attributes to keep aspect ratio and avoid layout shift.
    • Wide tables and code: wrap in a scroll container with overflow-x: auto, a label and tabindex="0" so keyboard users can scroll it; the page itself must not scroll sideways.
  5. Viewport and units. Keep <meta name="viewport" content="width=device-width, initial-scale=1">; never user-scalable=no or maximum-scale=1 (blocks zoom, fails 1.4.4). Full-height mobile panels use 100dvh (or svh) not 100vh, which the mobile URL bar breaks. Type in rem so user font settings apply. Inputs at least 16px font to avoid iOS focus zoom. With viewport-fit=cover, pad fixed bars with env(safe-area-inset-*).
  6. Touch and pointer. Targets at least 24×24 CSS px with spacing (WCAG floor); aim for 44×44 on touch-primary UI (Apple HIG 44pt, Material 48dp). Hover-only affordances go behind @media (hover: hover) and (pointer: fine) with a tap/focus equivalent; primary actions never depend on hover.
  7. Reorder safely. Visual reordering with order, grid-area or flex-direction: row-reverse must not break reading and focus order (1.3.2, 2.4.3). If the order must change, change the DOM.
  8. Verify across widths. Run the repo's visual/E2E tooling at 320, 375, 768, 1024, 1440 (or the repo's list) and assert no horizontal overflow, for example in Playwright: expect(await page.evaluate(() => document.documentElement.scrollWidth <= window.innerWidth)).toBe(true). Also check 200% browser zoom at 1280 wide and a text-spacing override (line-height 1.5, letter-spacing 0.12em, word-spacing 0.16em, paragraph spacing 2em) for clipped text. Use only the browsers already installed (never npx playwright install); if none are, name the unchecked widths in the evidence.
  9. Evidence. Record per-AC evidence with the record-evidence skill (the overflow assertion output, screenshot paths per width — saved only into the repo's git-ignored test output, never committed), then stop.

Read the full file on GitHub · 88 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago Changed · +44 lines · +8 tokens per session 186217cb0626
  2. 3mo ago First seen · 44 lines · 62 tokens per session scan A b14a9b66c9cc

Subscribe to this mod's changes

frontend-responsive is a skill published in the GitHub repository tmj-90/gaffer (1 stars, last pushed yesterday), licensed Apache-2.0. It adds 70 tokens to every session and 1,427 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

frontend-responsive compared with skills from other repositories

frontend-responsive next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
frontend-responsivetmj-90/gafferSkill1yesterdayApache-2.0A70Claude Code, Codex
maintaining-dev-playgrounddork-labs/dorkosSkill11todayMITA95Claude Code
styling-with-tailwind-shadcndork-labs/dorkosSkill11todayMITA49Claude Code
bulwark-brainstormQBall-Inc/the-bulwarkSkill9yesterdayMITA50Claude Code
plan-creationQBall-Inc/the-bulwarkSkill9yesterdayMITA38Claude Code
anthropic-validatorQBall-Inc/the-bulwarkSkill9yesterdayMITA40Claude Code
code-reviewQBall-Inc/the-bulwarkSkill9yesterdayMITA61Claude Code