Writing CSS and markup that works on phone and desktop at the same time, the responsive failures Claude repeats.

MITAuto-check passedFrontend & Design

Install Responsive CSS

skills CLI
$ npx skills add TheDecipherist/claude-code-mastery-project-starter-kit --skill responsive-css -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install TheDecipherist/claude-code-mastery-project-starter-kit responsive-css --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/TheDecipherist/claude-code-mastery-project-starter-kit.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/responsive-css .claude/skills/responsive-css && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
responsive-css
GitHub stars
338
Token cost
~2.2k tokens
SKILL.md length
958 words
Files
1
Skills in repo
24
Repo updated
First seen
Licence
MIT

At a glance

Writing CSS and markup that works on phone and desktop at the same time, the responsive failures Claude repeats.

  • Editing any web page
  • SKILL.md covers Set the viewport, stop iOS…, The flex/grid min-width: 0…, Code blocks scroll, they don't… and Fluid type with clamp(), not…, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Something overflows horizontally

What it does

Responsive CSS is an agent skill from TheDecipherist/claude-code-mastery-project-starter-kit. Writing CSS and markup that works on phone and desktop at the same time, the responsive failures Claude repeats. Use when building or editing any web page or component, or when something overflows horizontally, a code block blows out the page, text is huge on mobile, or content won't scroll on touch. Covers the viewport meta tag, the flex/grid min-width:0 rule that fixes most overflow, code blocks that scroll instead of overflowing, fluid type with clamp(), and mobile-first breakpoints. This is authoring…

Its SKILL.md is about 2.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Frontend & Design, covering Responsive design, On-page SEO and Design review and critique. It works with iOS. The repository describes itself as: The definitive starting point for Claude Code projects. Based on Claude Code Mastery Guides V1-V5. The licence is MIT.

When your agent uses it

  • Editing any web page
  • Something overflows horizontally
  • A code block blows out the page
  • Text is huge on mobile

Example prompts

  • “/responsive-css”

What it can do on your machine

Read from SKILL.md and the folder at commit 61fbb99. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are css, html and javascript).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Responsive CSS loads about 2.2k tokens when it runs. Until then it costs about 143 tokens; SKILL.md has 958 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~143
When it runs · the whole SKILL.md, loaded when a task matches
~2.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from TheDecipherist/claude-code-mastery-project-starter-kit at commit 61fbb99, republished under its MIT licence (© TheDecipherist). 958 words, ~2,169 tokens.

Download SKILL.mdSave it as .claude/skills/responsive-css/SKILL.md (or your agent's skills folder).
name
responsive-css
description
Writing CSS and markup that works on phone and desktop at the same time, the responsive failures Claude repeats. Use when building or editing any web page or component, or when something overflows horizontally, a code block blows out the page, text is huge on mobile, or content won't scroll on touch. Covers the viewport meta tag, the flex/grid min-width:0 rule that fixes most overflow, code blocks that scroll instead of overflowing, fluid type with clamp(), and mobile-first breakpoints. This is authoring guidance, design-review evaluates the result.
when_to_use
- Writing or editing CSS or HTML for a page or component that renders in a browser - Anything that has to look right on both a phone and a desktop - Fixing…

Responsive CSS: Mobile and Desktop at Once

Claude writes CSS for the desktop it's picturing and never checks the narrow viewport, so the same few things break every time: content overflows sideways, code blocks blow out the page, and text that's right on desktop is huge on a phone. Design for the small screen first and these mostly disappear.

Set the viewport, stop iOS inflating text

Without the viewport meta tag, mobile browsers render at a ~980px layout width and scale the result down, which is why everything looks oversized and mis-laid-out on a phone. This one line is non-negotiable on every page:

html
<meta name="viewport" content="width=device-width, initial-scale=1" />

And stop iOS from auto-enlarging text:

css
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

The flex/grid min-width: 0 rule, this fixes most overflow

This is the single most common cause of mysterious horizontal scroll. Flex and grid children default to min-width: auto, which means they refuse to shrink below their content's intrinsic width. So one long line, a URL, or a <pre> inside a flex/grid item pushes the whole layout wider than the screen. Set min-width: 0 on the child (or overflow: hidden) and it shrinks correctly.

css
.flex-child, .grid-child { min-width: 0; }   /* lets long content shrink instead of overflowing */

If you fix nothing else, fix this. It's behind the code-block overflow in most "works on desktop, scrolls sideways on mobile" pages.

Code blocks scroll, they don't overflow the page

A <pre> doesn't wrap and has no scroll affordance by default, so long lines expand the page. Make the block scroll inside itself, and never line-wrap code (wrapping changes what the code means). The parent needs min-width: 0 per the rule above, or this still overflows.

css
pre {
  overflow-x: auto;     /* scroll inside the block */
  max-width: 100%;
}
pre code { white-space: pre; }   /* keep code on its own lines, scroll horizontally */

For prose, the opposite: let long words and URLs break instead of overflowing.

css
p, li, h1, h2, h3 { overflow-wrap: break-word; }

Wrap wide tables the same way you handle code, in a scroll container: <div style="overflow-x:auto">…table…</div>.

Fluid type with clamp(), not fixed desktop sizes

A heading sized for desktop is enormous on a phone and forces wrapping and overflow. clamp() scales the size smoothly between a mobile floor and a desktop ceiling with no breakpoints to juggle:

css
h1   { font-size: clamp(1.75rem, 4vw + 1rem, 3rem); }
body { font-size: clamp(1rem, 0.5vw + 0.9rem, 1.125rem); line-height: 1.5; }

The middle value does the scaling; the floor and ceiling keep it readable at both ends.

Mobile-first: base styles small, enhance up

Write the base styles for the narrow screen, then add @media (min-width: ...) to enhance for larger ones. Desktop-first with max-width patches is exactly how you get a layout that works on the desktop and falls apart on mobile, because the mobile case is an afterthought bolted on.

css
.layout { display: grid; grid-template-columns: 1fr; gap: 1rem; }   /* phone */
@media (min-width: 48rem) {
  .layout { grid-template-columns: 240px 1fr; }                     /* tablet up */
}

Check the phone width first, not last.

Sideways scroll: the rest of the causes, and the touch-scroll bug

If the page scrolls horizontally on mobile, the min-width: 0 rule above is the first thing to check. The other usual suspects:

  • Set box-sizing: border-box globally. Without it, width: 100% plus any padding or border adds up to wider than the parent and overflows. This is a top cause of sideways scroll and Claude often omits it from scratch CSS:
css
*, *::before, *::after { box-sizing: border-box; }
  • No fixed pixel widths wider than the phone. width: 800px or min-width: 600px on a 375px screen forces horizontal scroll. Use max-width, percentages, or min(800px, 100%) so the element caps at the viewport.
  • Watch positioned and decorative elements. Absolutely positioned, transformed, or negative-margin elements (offset images, background blobs, things nudged with right: or translateX) stick out past the right edge and widen the scrollable area even when the layout looks fine. Constrain them, or clip on a wrapper with overflow-x: clip (preferred over hidden, it doesn't create a scroll container and so won't break position: sticky).
  • Use width: 100%, not 100vw. 100vw includes the scrollbar width, so a full-width element ends up wider than the content area and scrolls the page sideways.
  • Cap media, and give images dimensions: img, video, svg, canvas { max-width: 100%; height: auto; }, and set the intrinsic width/height attributes on every <img> so the browser reserves the box and the page doesn't shift or repaint when the image loads (see web-performance).
  • Don't paper over it with body { overflow-x: hidden }. That hides the symptom and breaks position: sticky. Find the offender: temporarily add * { outline: 1px solid red; } (outline, not border, so it doesn't change layout) and look for the element wider than the viewport, then fix that element.
  • Can't scroll a code block or editor on touch? It's almost always an ancestor with overflow: hidden clipping it, or the region has a fixed height with no overflow: auto. Give the scroll region overflow: auto and a sane max-height, and make sure no ancestor sets overflow: hidden or touch-action: none over it.
Show full SKILL.md (221 more words)Show less

iOS Safari: when the whole page suddenly scrolls or jumps

A classic, and it's almost always one of four iOS-specific behaviors, each with a different fix:

  • Scroll chaining. Drag inside a scrollable region (a modal, drawer, code block, chat list), hit its top or bottom, keep dragging, and the scroll "leaks" to the page so the whole thing moves and rubber-bands underneath. Stop it by containing the scroll on that region:
css
.modal-body, .drawer, .scroll-region { overscroll-behavior: contain; }
  • Background scrolls under an open modal. body { overflow: hidden } does not reliably hold on iOS Safari, the page still scrolls behind the overlay. The robust lock is to fix the body and restore the scroll position on close:
js
// open:  remember position, freeze the body in place
const y = window.scrollY;
document.body.style.cssText = `position:fixed; top:${-y}px; left:0; right:0;`;
// close: release and jump back exactly where they were
document.body.style.cssText = "";
window.scrollTo(0, y);
  • The 100vh toolbar jump. On iOS, 100vh counts the area behind Safari's address bar, so a height:100vh section is taller than the visible viewport and the page jumps as the toolbar shows and hides. Use the dynamic viewport unit instead, with a legacy fallback:
css
.full-height { height: 100vh; height: 100dvh; }   /* dvh tracks the real visible height */
  • Tap an input and the page zooms and scrolls. iOS Safari auto-zooms when you focus an input whose font-size is under 16px, which scrolls and rescales the whole page. Give form controls at least 16px. Do not "fix" this with maximum-scale=1 or user-scalable=no, that disables pinch-zoom and hurts accessibility.
css
input, select, textarea { font-size: 16px; }

This skill is built to grow. Add a rule when a real responsive failure has a stable, defensible fix.

© TheDecipherist, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/responsive-css of TheDecipherist/claude-code-mastery-project-starter-kit.

Open the folder on GitHubat commit 61fbb99

Compare with similar skills

Responsive CSS next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Responsive CSS compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Responsive CSS this skillTheDecipherist/claude-code-mastery-project-starter-kit338—~2.2kAutomated safety check: PassMIT
Distinctive UI Buildertw93/Waza7.2k—~3.7kAutomated safety check: PassMIT
Ipados Design Guidelinesehmo/platform-design-skills605—~6.4kAutomated safety check: PassMIT
Dotnet UInovotnyllc/dotnet-artisan233—~1.3kAutomated safety check: PassMIT
OpenClaw Design Auditopenclaw/clawhub9.5k—~498Automated safety check: PassMIT
Iphone Duo Design Reviewmirzaaghazadeh/iphone-duo-skills137—~2.2kAutomated safety check: PassCustom licence

Similar skills

  • Builds or restyles production UI with a clear point of view, checks the result against screenshots and responsive states, and hands document typography to other skills.

    7.2k GitHub stars~3.7k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Ipados Design Guidelines

    ehmo/platform-design-skills

    Apple Human Interface Guidelines for iPad. An agent skill from ehmo/platform-design-skills.

    605 GitHub stars~6.4k tokensUpdated 6 mo ago
    Frontend & DesignAuto-check passed
  • Dotnet UI

    novotnyllc/dotnet-artisan

    Builds .NET UI apps across Blazor (Server, WASM, Hybrid, Auto), MAUI (XAML, MVVM, Shell, Native AOT), Uno Platform (MVUX, Extensions, Toolkit), WPF (.NET 8+, Fluent theme), WinUI 3 (Windows App SDK…

    233 GitHub stars~1.3k tokensUpdated 1 mo ago
    Frontend & DesignAuto-check passed
  • OpenClaw Design Audit

    openclaw/clawhub

    Audits OpenClaw frontend code and rendered pages for token misuse, reimplemented primitives, accessibility and responsive defects and off-brand copy, with an evidence-based report.

    9.5k GitHub stars~498 tokensUpdated today
    Frontend & DesignAuto-check passed
  • Iphone Duo Design Review

    mirzaaghazadeh/iphone-duo-skills

    Review or design an iOS interface for iPhone Duo's poses — closed, open, book-folded, tabletop and tent — covering side-mounted controls, asymmetric layouts, fold avoidance, sheets, and how to use…

    137 GitHub stars~2.2k tokensUpdated 6 days ago
    MobileAuto-check passed
  • Viewport Zoom

    thedaviddias/Front-End-Checklist

    A skill your agent uses when applies to any <meta name='viewport' element in HTML documents.

    74k GitHub stars~890 tokensUpdated yesterday
    Frontend & DesignAuto-check passed

More from TheDecipherist/claude-code-mastery-project-starter-kit

All 24 skills in this repo
  • Create Service

    TheDecipherist/claude-code-mastery-project-starter-kit

    Scaffold a new microservice that follows the project's server/handlers/adapters architecture.

    338 GitHub stars~1.8k tokensUpdated 3 mo ago
    Auto-check: notes
  • CSS Structure

    TheDecipherist/claude-code-mastery-project-starter-kit

    Where CSS should live. An agent skill from TheDecipherist/claude-code-mastery-project-starter-kit.

    338 GitHub stars~1k tokensUpdated 3 mo ago
    Auto-check passed
  • Docker

    TheDecipherist/claude-code-mastery-project-starter-kit

    Production Docker best practices for writing Dockerfiles, Compose files, and Swarm stacks.

    338 GitHub stars~1.6k tokensUpdated 3 mo ago
    Auto-check: notes
  • Docker Swarm

    TheDecipherist/claude-code-mastery-project-starter-kit

    Production Docker Swarm deployment rules: what changes when a compose file goes from a single node to a multi-node Swarm.

    338 GitHub stars~1.8k tokensUpdated 3 mo ago
    Auto-check passed
  • Mongodb Backups

    TheDecipherist/claude-code-mastery-project-starter-kit

    Production MongoDB backup and restore practices that the documentation gets wrong.

    338 GitHub stars~1.3k tokensUpdated 3 mo ago
    Auto-check passed
  • Mongodb Replica Sets

    TheDecipherist/claude-code-mastery-project-starter-kit

    Production MongoDB replica-set operation: topology, durability, host tuning, and the container-specific gotchas Claude gets wrong.

    338 GitHub stars~1.6k tokensUpdated 3 mo ago
    Auto-check passed

Works with

Questions about Responsive CSS

What does Responsive CSS do?

Writing CSS and markup that works on phone and desktop at the same time, the responsive failures Claude repeats. Responsive CSS is an agent skill from TheDecipherist/claude-code-mastery-project-starter-kit. Writing CSS and markup that works on phone and desktop at the same time, the responsive failures Claude repeats.

When should I use Responsive CSS?

Responsive CSS fits situations like: editing any web page; something overflows horizontally; A code block blows out the page; text is huge on mobile.

How do I install Responsive CSS in Claude Code?

Run `npx skills add TheDecipherist/claude-code-mastery-project-starter-kit --skill responsive-css -a claude-code`. Or copy the skill folder (.claude/skills/responsive-css in TheDecipherist/claude-code-mastery-project-starter-kit) into .claude/skills/responsive-css in your project. Claude Code loads it when a task matches its description.

How do I install Responsive CSS in Codex?

Run `npx skills add TheDecipherist/claude-code-mastery-project-starter-kit --skill responsive-css -a codex`. Or copy the skill folder (.claude/skills/responsive-css in TheDecipherist/claude-code-mastery-project-starter-kit) into .agents/skills/responsive-css in your project. Codex loads it when a task matches its description.

Can I use Responsive CSS in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add TheDecipherist/claude-code-mastery-project-starter-kit --skill responsive-css -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/responsive-css, .gemini/skills/responsive-css, .github/skills/responsive-css and .opencode/skills/responsive-css in your project.

What does Responsive CSS need to run?

SKILL.md names no scripts, command-line tools or credentials: Responsive CSS is instructions for the agent only.

Does Responsive CSS access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Responsive CSS safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Responsive CSS use?

Responsive CSS is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Responsive CSS use?

About 2.2k tokens (SKILL.md is roughly 8.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Responsive CSS?

Skills that share tags, products or a category with Responsive CSS: Distinctive UI Builder (tw93/Waza, 7.2k stars), Ipados Design Guidelines (ehmo/platform-design-skills, 605 stars), Dotnet UI (novotnyllc/dotnet-artisan, 233 stars) and OpenClaw Design Audit (openclaw/clawhub, 9.5k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Responsive CSS?

TheDecipherist (a GitHub user) maintains it in TheDecipherist/claude-code-mastery-project-starter-kit, which has 338 GitHub stars. The repository holds 24 skills in this directory. The repository was last updated on June 29, 2026.

Source: TheDecipherist/claude-code-mastery-project-starter-kit on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.