css-expert
The foundational skill. Activates automatically whenever your AI touches CSS — writing, reviewing, or debugging. Enforces modern patterns, flags anti-patterns, applies the full css.dev philosophy to every line.
One install. Nine expert skills. Every CSS prompt your AI handles becomes dramatically better.
/* Typical AI-generated CSS */
.container {
width: 960px;
margin: 0 auto;
}
.sidebar {
float: left;
width: 250px;
}
.card {
background: #ffffff;
border-radius: 12px;
box-shadow: 0 10px 40px rgba(0,0,0,.1);
padding: 20px;
}
.card:hover {
transform: scale(1.05);
transition: all .3s ease;
}
.btn {
background: linear-gradient(135deg,#667eea,#764ba2);
color: white !important;
}
/* css.dev-enhanced output */
@layer layout, components;
@layer layout {
.page {
display: grid;
grid-template-columns: fit-content(250px) 1fr;
gap: var(--space-l);
}
}
@layer components {
.card {
--_bg: var(--color-surface);
--_shadow: var(--shadow-sm);
background: var(--_bg);
border-radius: var(--radius-m);
box-shadow: var(--_shadow);
padding: var(--space-m);
transition: box-shadow 200ms ease;
&:hover {
--_shadow: var(--shadow-md);
}
}
}
9 skills
The foundational skill. Activates automatically whenever your AI touches CSS — writing, reviewing, or debugging. Enforces modern patterns, flags anti-patterns, applies the full css.dev philosophy to every line.
/css-audit
Deep quality audit across architecture, specificity, redundancy, accessibility, performance, and modernity.
/css-layout
Modern layouts with Grid, Flexbox, subgrid, and container queries.
/css-animate
Performant animations, scroll-driven effects, view transitions. Reduced-motion included.
/css-responsive
Container queries, fluid typography, responsive images. No framework needed.
/css-refactor
Upgrade legacy CSS. Replace floats, clearfix, vendor prefixes. Introduce cascade layers.
/css-theme
Theming systems with custom properties, oklch colors, color-mix(), light-dark().
/css-a11y
Focus styles, reduced motion, forced colors, contrast ratios, touch targets.
/css-debug
Specificity analysis, inheritance tracing, stacking context maps, layout diagnosis.
Get started
skills/ folder into your project at.cursor/skills/./install.sh cursor
skills/ folder into your project at.claude/skills/./install.sh claude
skills/ folder into your project at.agents/skills/./install.sh copilot
skills/ folder into your project at.gemini/skills/./install.sh gemini
skills/ folder into your project at.agents/skills/./install.sh codex
Philosophy
No legacy fallbacks unless explicitly requested. Container queries over media queries. Grid over float. Nesting over preprocessors. The platform is the framework.
Use @layer to organize specificity. Understand it — don't fight it with !important. Use :where() to zero specificity when needed.
Pure CSS handles layout, theming, responsive design, and animation. Don't reach for a dependency when the platform already solves it.
Animate only composited properties. Use contain and content-visibility. No layout thrashing. Ship less CSS.
Respect prefers-reduced-motion. Provide :focus-visible. Support forced-colors. Maintain contrast ratios.
Use custom properties as a systematic value layer. No hardcoded pixels, hex colors, or arbitrary values. Every number should trace back to a token.