Frontend development skills

CSS and Layout Skills-md for Claude, Codex & AI Agents

Free SKILL.md files that teach Claude, Cursor and other AI agents to audit and fix CSS layout: flexbox and grid that overflow, rules that lose to other rules, and components that should respond to their own container. Each skill measures with a checker script first and changes code only in batches you approve.

All 12 skills in the set are published: flexbox and grid layout, cascade layers, container queries, fluid type and spacing, viewport units, modern CSS selectors, CSS nesting, CSS custom properties, CSS animations and transitions, CSS logical properties, CSS scroll-driven animations and CSS anchor positioning.

Start with Flexbox and Grid Layout if a page scrolls sideways, a column will not shrink or truncated text pushes a layout wider. Use Cascade Layers when a rule loses to another rule, and Container Queries when a component should respond to the space it is given.

03

Container Queries

container-queries · responsive · 3,072 words

Fix @container rules that never match, zero-size containers and cq units, and measure at two container widths.

05

Viewport Units

viewport-units · units · 3,197 words

Fix 100vh heroes and modals on mobile with svh, lvh and dvh, a checker, and a real-device probe.

07

CSS Nesting

css-nesting · nesting · 2,529 words

Convert flat CSS to native nesting and fix &__suffix and ordering bugs with a linter and a computed-style equivalence check.

08

CSS Custom Properties

css-custom-properties · styling · 4,015 words

Fix undefined var(), bad fallbacks, cycles and ignored @property rules with a scanner, then edit flagged lines only.

10

CSS Logical Properties

css-logical-properties · direction · 2,599 words

Fix margin-left, padding-right and Tailwind ml- classes for RTL with a scanner, then review overrides and transforms by hand.

11

CSS Scroll-Driven Animations

css-scroll-driven-animations · scroll · 3,060 words

Fix animation-timeline that does nothing, shorthand resets, fill mode, named timeline scope and missing reduced motion with a scanner, then edit flagged lines only.

12

CSS Anchor Positioning

css-anchor-positioning · positioning · 2,976 words

Fix tooltips and menus that sit in the wrong place, bind to the last item or clip at the edge with a scanner, then edit flagged lines only.

What is in this set

The set covers CSS problems that an agent can measure: layouts that overflow at phone widths, selectors that win or lose in the cascade, and components whose layout should depend on the space they are given. Each skill ships a read-only checker and a measuring step, so a fix is confirmed by output and not by a screenshot.

How to use these skills

Open a skill page, copy the file or download the .md and its checker script, and add the folder to your skills directory in Claude, Cursor or another agent. Then ask the agent to use the skill on a page or stylesheet.

Frequently asked questions

They are for frontend developers, theme builders and anyone who reviews CSS written by an AI tool. Each skill reads your stylesheet with a checker, measures the page in a browser and edits in small batches you approve. They work on plain CSS and on the CSS that frameworks output.

No. Each skill reports first and edits only after you approve a batch, on a branch under version control. It never pushes, merges or deploys. It measures local pages only, with invented data, and never prints page text.

Install Flexbox and Grid Layout first if a page scrolls sideways or a column will not shrink. It covers the most common layout bug. Add Cascade Layers when a vendor style or an !important keeps winning, and Container Queries when a card or widget should change layout with its container.