css

css is a skill for Claude Code, Codex from ndisisnd/cook. It costs 80 tokens per session (1,892 once invoked), scanned A, original, MIT.

A set of practical rules for writing and reviewing CSS, the language that controls how web pages look.

In plain words
What is it for?
Creating or reviewing styles with low selector specificity, scoped rules, design tokens, and basic support for user needs.
Why use it?
It helps prevent hard-to-override styles, accidental changes to other components, and avoidable accessibility or security problems.

Skill for Claude CodeCodex

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

Good fit Creating or reviewing styles with low selector specificity, scoped rules, design tokens, and basic support for user needs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ndisisnd/cook/css
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 ndisisnd/cook --skill css
Clone the repo
git clone --depth 1 https://github.com/ndisisnd/cook

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 css

README.md
[![agentmods](https://agentmods.dev/badge/skills/ndisisnd/cook/css/github.svg)](https://agentmods.dev/skills/ndisisnd/cook/css)
Your own site
<a href="https://agentmods.dev/skills/ndisisnd/cook/css"><img src="https://agentmods.dev/badge/skills/ndisisnd/cook/css/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 css

Your own site · 80×15
<a href="https://agentmods.dev/skills/ndisisnd/cook/css"><img src="https://agentmods.dev/badge/skills/ndisisnd/cook/css.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 80 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,892 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.00080 $0.01892
Opus 5.5 $0.00032 $0.00757
Sonnet 5.5 $0.00016 $0.00378
Haiku 4.5 $0.00008 $0.00189

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

Security

Grade A, and why

css 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 1mo 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.

standards/css/SKILL.md · 96 lines

How it starts

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

CSS

CSS is forgiving and subjective — there is rarely one "correct" stylesheet. Optimise for consistency, low specificity, and not breaking the user, not for rule-compliance. This file is the whole standard for most styling work; pull a ref only when you need depth.

The single biggest lever is matching what the codebase already does. A convention you'd not have picked, applied consistently, beats a "better" one applied unevenly. Propose a methodology or tooling migration (BEM ↔ utilities, adding Tailwind, swapping Sass) as its own explicit task — never as a drive-by inside a feature change.

Principles (battle-tested)

  1. Keep specificity low and flat. Style with a single class, keep selectors shallow, and avoid IDs and !important. Low, even specificity is what keeps styles overridable — most CSS pain is a specificity war that someone started and everyone else inherited. When cascade order genuinely matters, control it with @layer, not by piling on selectors. → refs/architecture.md
  2. Scope by default. Leaking styles is the root cause of most "why did that change?" bugs. Reach for CSS Modules, a naming convention (BEM/utilities), or @scope; keep bare element selectors to resets and base. → refs/architecture.md
  3. Tokenize; don't hardcode. Keep one source of truth for colour, spacing, and type. Use custom properties for anything themeable, and derive values from a scale instead of scattering magic numbers. → refs/theming.md
  4. Lay out with Flexbox and Grid. They solve cleanly what floats, absolute positioning, and fixed heights only ever hacked around. Reach for gap, intrinsic sizing, and container queries before adding media queries. → refs/layout.md
  5. Use the platform; don't over-tool. Modern CSS (nesting, custom properties, clamp(), color-mix()) covers most of what preprocessors were for. Add Sass/PostCSS/Tailwind because the team gets real leverage from it, not by reflex — and don't ship a shiny new feature to production without checking your browser support. → refs/tooling.md, refs/tailwind.md
  6. Prefer deleting and composing over overriding. CSS only ever grows, and every override is future debt. If you're writing a rule to defeat another rule, fix the first one instead.

Read the full file on GitHub · 96 lines

Files

What ships with it

9 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago First seen · 96 lines · 80 tokens per session scan A c1bc850c53fd

Subscribe to this mod's changes

css is a skill published in the GitHub repository ndisisnd/cook (2 stars, last pushed 2mo ago), licensed MIT. It adds 80 tokens to every session and 1,892 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

Other skills, from other repositories

moai-design-tools

Design tool integration specialist covering Figma MCP, Pencil renderer, and Pencil-to-code export. Use when fetching design context from Figma, rendering Pencil designs, or exporting to React/Tailwind code.

modu-ai/moai-adk · 45 tokens

design-loop

Autonomous multi-page site builder using a baton-passing loop. Each iteration reads a task from .design/next-prompt.md, generates a page in HTML/Tailwind, integrates it into the site, verifies visually, then writes the next task to keep the loop alive. Use whenever the user asks to build an entire site autonomously…

jezweb/claude-skills · 130 tokens

color-palette

Generate complete, accessible colour palettes from a single brand hex. Produces 11-shade scale (50-950), semantic tokens, dark mode variants, Tailwind v4 CSS output, WCAG contrast checks. Use whenever the user supplies a brand hex and asks for a palette, mentions setting up a design system, wants Tailwind theme…

jezweb/claude-skills · 87 tokens

design-system

Extract a complete design system from an existing website or screenshot into a DESIGN.md file. Analyses colours, typography, component styles, spacing, and atmosphere through browser automation and HTML inspection. Produces a semantic design system document optimised for consistent page generation. Triggers: 'extract…

jezweb/claude-skills · 95 tokens

responsiveness-check

Test website responsiveness across viewport widths using browser automation. Resizes a single session through breakpoints, screenshots each width, and detects layout transitions (column changes, nav switches, overflow). Produces comparison reports showing exactly where layouts break. Trigger with 'responsiveness…

jezweb/claude-skills · 85 tokens

design-review

Review a web app or page for visual design quality — layout, typography, spacing, colour, hierarchy, consistency, interaction patterns, and responsive behaviour. Not a UX audit (that checks usability) — this checks whether it looks professional and polished. Produces a design findings report with screenshots.…

jezweb/claude-skills · 108 tokens