tailwind-expert

tailwind-expert is a skill for Claude Code from Miaoge-Ge/coding-agent-skills. It costs 91 tokens per session (1,268 once invoked), scanned A, original, MIT.

A guide to Tailwind CSS, a tool that styles web pages with small reusable utility classes. It covers responsive layouts, dark mode, themes, and reusable design systems.

In plain words
What is it for?
Use it to style components, convert custom CSS to Tailwind, build responsive or dark-mode layouts, and configure shared colours, spacing, and breakpoints.
Why use it?
It helps keep interface styling consistent while managing long or conditional style lists and different screen sizes.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the tailwind-expert plugin — 1 skill shipped together

Good fit Use it to style components, convert custom CSS to Tailwind, build responsive or dark-mode layouts, and configure shared colours, spacing, and breakpoints.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/miaoge-ge/coding-agent-skills/tailwind-expert
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 Miaoge-Ge/coding-agent-skills --skill tailwind-expert
Clone the repo
git clone --depth 1 https://github.com/Miaoge-Ge/coding-agent-skills

Made for: Claude Code.

Or install tailwind-expert, the plugin that ships this one along with the rest of its 1 skill.

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 tailwind-expert

README.md
[![agentmods](https://agentmods.dev/badge/skills/miaoge-ge/coding-agent-skills/tailwind-expert.svg)](https://agentmods.dev/skills/miaoge-ge/coding-agent-skills/tailwind-expert)
Your own site
<a href="https://agentmods.dev/skills/miaoge-ge/coding-agent-skills/tailwind-expert"><img src="https://agentmods.dev/badge/skills/miaoge-ge/coding-agent-skills/tailwind-expert.svg" alt="Measured on agentmods" height="20"></a>
Per session 91 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,268 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.00091 $0.01268
Opus 5 $0.00046 $0.00634
Sonnet 5 $0.00018 $0.00254
Haiku 4.5 $0.00009 $0.00127

Measured 8d ago against content hash 63771aeaffd5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

tailwind-expert 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 8d 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.

plugins/tailwind-expert/skills/tailwind-expert/SKILL.md · 95 lines

How it starts

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

Tailwind CSS Expert

Constraints are the feature: style from the theme scale, not magic numbers. Composition + variants beat @apply. If a class string is unreadable, extract a component or a cva variant — not a custom CSS file.

When to Use

  • Styling components with Tailwind or migrating hand-written CSS → Tailwind.
  • Responsive, dark-mode, or themeable layouts.
  • Taming long/conditional class lists; building reusable styled primitives.
  • Configuring the theme (colors, spacing, breakpoints, plugins).

When NOT to Use

  • Component state/logic → react-expert.
  • Accessibility semantics beyond focus/contrast (ARIA, keyboard) → accessibility-expert.

Core Principles

1. Stay on the scale

  • Use theme tokens (p-4, gap-2, text-lg, text-gray-600) over arbitrary values (p-[13px]). Arbitrary values are an escape hatch, not the norm.
  • Define brand colors/spacing/typography in the theme (Tailwind v4: @theme in CSS; v3: tailwind.config) so every utility stays consistent. Know your version — v4 is CSS-first and config is largely in CSS.

2. Manage class complexity by composition

  • Repeated UI → a component, not copy-pasted class strings. @apply is only for tiny shared primitives, not whole components.
  • Conditional/variant styling → clsx for booleans, cva (class-variance-authority) for structured variants. Merge conflicting classes with tailwind-merge.

3. Mobile-first, state-aware

  • Unprefixed = base (smallest screen); layer up with sm:/md:/lg:. Never "undo" a larger breakpoint with a smaller one.
  • Use state variants: hover:, focus-visible:, active:, disabled:, aria-*:, data-*:, group-hover:, peer-checked:, dark:.

4. Layout with flor/grid, theme with tokens

  • Space items with flex/grid + gap-* rather than per-item margins.
  • Dark mode: prefer dark: driven by a class strategy you toggle, so it's controllable and testable.

Decision Guide

Situation Use
One-off conditional classes clsx
Component with size/intent variants cva + tailwind-merge
Tiny shared primitive (e.g., .btn-base) @apply
Truly bespoke value not in scale arbitrary [...] (sparingly)
Spacing between siblings gap-* on a flex/grid parent

Read the full file on GitHub · 95 lines

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. 8d ago First seen · 95 lines · 91 tokens per session scan A 63771aeaffd5

Subscribe to this mod's changes

tailwind-expert is a skill published in the GitHub repository Miaoge-Ge/coding-agent-skills (5 stars, last pushed 3mo ago), licensed MIT. It adds 91 tokens to every session and 1,268 once invoked, about $0.0005 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

21st-ui

Find, install, and generate UI with 21st.dev. Use when the user asks for a UI component (pricing table, hero, navbar, dashboard, form, etc.), wants design inspiration, needs a brand logo as an SVG component, or wants to generate new UI from a prompt.

21st-dev/magic-mcp · 63 tokens

interaction-skill

Layer A interaction-mechanics reference anchored to the beui.dev catalog. Stacks on any style skill whenever work adds or changes motion or interaction — micro-interactions, animated components, transitions, gestures, hover/press/state feedback, loading/success/error morphs, 'make it feel alive'. Mandates reading the…

code-yeongyu/oh-my-openagent · 104 tokens

refero-design

Primary/default skill for UI design, product design, web design, landing pages, dashboards, product screens, redesigns, visual polish, frontend/CSS styling, design systems, components, responsive design, typography, color, spacing, motion, icons, accessibility, copywriting, conversion, and anti-AI-slop work. Use this…

referodesign/refero_skill · 191 tokens

ai-ui-generation

AI-assisted UI generation patterns for json-render, v0.app, Google Stitch, Bolt Cloud, and Cursor workflows. Covers prompt engineering for component and full-stack app generation, review checklists for AI-generated code, design token injection, refactoring for design system conformance, and CI gates for quality…

yonatangross/orchestkit · 95 tokens

ijfw-ui-spec

Use when the user says: 'ui spec', 'design contract', 'ui audit setup', 'lock the design', 'visual contract', 'ui review setup', or '/ijfw-ui-spec'. Produces UI-SPEC.md as the visual design contract before any frontend or visual-artifact build, and dispatches ijfw-ui-auditor as the final 6-pillar gate.

FerroxLabs/ijfw · 83 tokens

taste-skill

Anti-slop frontend skill for landing pages, portfolios, and redesigns. The agent reads the brief, infers the right design direction, and ships interfaces that do not look templated. Real design systems when applicable, audit-first on redesigns, strict pre-flight check.

huytieu/COG-second-brain · 59 tokens