responsive-layout

A guide for building layouts that work from small phones upward, starting at 375 pixels wide. It covers flexible text and spacing, CSS grid, container queries, and touch-friendly controls.

In plain words
What is it for?
Use it when creating or fixing responsive pages and components, including mobile navigation, grid or bento layouts, readable sizing, image loading, and 375-pixel checks.
Why use it?
It helps prevent desktop layouts from overflowing, becoming hard to read, or relying on interactions that do not work well on touch screens.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/m-binimran/dev-pack/responsive-layout
Any agent
npx skills add m-binimran/dev-pack --skill responsive-layout
Clone the repo
git clone --depth 1 https://github.com/m-binimran/dev-pack

Made for: Claude Code, Codex.

Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 360 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00040 $0.00360
Opus 5 $0.00020 $0.00180
Sonnet 5 $0.00008 $0.00072
Haiku 4.5 $0.00004 $0.00036

Measured yesterday against content hash 900b00b17fa6, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

responsive-layout 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 yesterday.

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.

skills/responsive-layout/SKILL.md · 32 lines

What it actually says

responsive-layout

Mobile-first, fluid, and composed — not a desktop layout crammed onto a phone.

Process

  1. Design at 375px first, then scale up. Every layout must work at 375px width.
  2. Fluid type & spacing: clamp() for headings and section padding so it scales smoothly between breakpoints instead of jumping.
  3. Use the right query: media queries for page layout; container queries for components that appear in multiple widths (cards, sidebars).
  4. Composition with intent: CSS grid for structure; break the grid (bento/editorial/overlap) where the design direction calls for it — don't default to uniform columns.
  5. Touch targets ≥44px, no hover-only interactions on touch, test the mobile nav (Sheet/Drawer).

Checklist

  • No horizontal scroll at 375px.
  • Text never below ~14px on mobile; line length readable on desktop (~60–75ch).
  • Images sized/next/image to avoid CLS.
  • Tap targets large enough; nav works on touch.

Output

  • The responsive layout, breakpoints used, and confirmation it was checked at 375px (or flagged unverified).

Guardrails

  • Don't claim "responsive" from code alone — view it at 375px (Playwright/preview) or say it's unverified.
  • Avoid fixed heights that clip content when text wraps on small screens.
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. yesterday First seen · 32 lines · 40 tokens per session scan A 900b00b17fa6

Subscribe to this mod's changes

responsive-layout is a skill published in the GitHub repository m-binimran/dev-pack (2 stars, last pushed 2mo ago), licensed MIT. It adds 40 tokens to every session and 360 once invoked, about $0.0002 per session on Opus 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

Other skills, from other repositories

codoop-init

Inspect an existing repository or create selected empty project directories, then initialize or refresh codoop-flow configuration. Use when setting up codoop-flow, when existing backend/web/desktop/mobile directories use custom names, when a standalone client lives at the repository root, or when starting a new empty…

Codoop/codoop-flow · 67 tokens

building-flutter-apps

Flutter Riverpod app architecture and Windows installer delivery. Use before changing a Riverpod Flutter app/package or its Windows desktop packaging/update pipeline; skip non-Riverpod stacks and pure-Dart work.

sgaabdu4/hard-eng · 45 tokens

orca-emulator-android

Control an Android emulator / device from inside Orca using the orca CLI. Use for listing/booting AVDs, taps, swipes, typing, hardware buttons (incl. Back and Recents), rotation, app install/launch, runtime permissions, the accessibility tree, and logcat — driving a real adb-connected device or emulator.…

stablyai/orca · 104 tokens

speckit-analyze

Perform a non-destructive cross-artifact consistency and quality analysis across spec.md, plan.md, and tasks.md after task generation.

unoplatform/uno · 32 tokens

add-sample

Create a SamplesApp sample page with correct theming and attributes. Use when adding UI samples for controls.

unoplatform/uno · 21 tokens

mapping-to-snomed

Maps clinical concept spans extracted by OpenMed to SNOMED CT concepts through a USER-SUPPLIED terminology server (the user's own Ontoserver, Snowstorm, or UMLS/UTS), never a bundled vocabulary. Use when the user wants to code findings, disorders, procedures, body structures, or substances to SNOMED CT, run an ECL…

maziyarpanahi/openmed · 205 tokens