tailwind-best-practices

tailwind-best-practices is a skill for Claude Code, Codex from OutlineDriven/odin-claude-plugin. It costs 44 tokens per session (955 once invoked), scanned A, original, Apache-2.0.

Guidance for writing and editing Tailwind CSS classes, components, and configuration. Tailwind CSS is a system for styling web pages with reusable utility class names.

In plain words
What is it for?
Use it when changing Tailwind class lists, component variants, or Tailwind configuration; it is not for a read-only audit or ordinary CSS without Tailwind.
Why use it?
It helps remove unnecessary utilities, inconsistent ad-hoc values, and hard-to-maintain styling patterns while respecting the project's Tailwind version.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Part of the odin-design plugin — 21 skills shipped together

Good fit Use it when changing Tailwind class lists, component variants, or Tailwind configuration; it is not for a read-only audit or ordinary CSS without Tailwind.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/outlinedriven/odin-claude-plugin/tailwind-best-practices
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 OutlineDriven/odin-claude-plugin --skill tailwind-best-practices
Clone the repo
git clone --depth 1 https://github.com/OutlineDriven/odin-claude-plugin

Made for: Claude Code, Codex.

Or install odin-design, the plugin that ships this one along with the rest of its 21 skills.

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-best-practices

README.md
[![agentmods](https://agentmods.dev/badge/skills/outlinedriven/odin-claude-plugin/tailwind-best-practices/github.svg)](https://agentmods.dev/skills/outlinedriven/odin-claude-plugin/tailwind-best-practices)
Your own site
<a href="https://agentmods.dev/skills/outlinedriven/odin-claude-plugin/tailwind-best-practices"><img src="https://agentmods.dev/badge/skills/outlinedriven/odin-claude-plugin/tailwind-best-practices/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 tailwind-best-practices

Your own site · 80×15
<a href="https://agentmods.dev/skills/outlinedriven/odin-claude-plugin/tailwind-best-practices"><img src="https://agentmods.dev/badge/skills/outlinedriven/odin-claude-plugin/tailwind-best-practices.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 955 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00044 $0.00955
Opus 5 $0.00022 $0.00477
Sonnet 5 $0.00009 $0.00191
Haiku 4.5 $0.00004 $0.00096

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

Security

Grade A, and why

tailwind-best-practices 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 3d 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/odin-design/skills/tailwind-best-practices/SKILL.md · 50 lines

How it starts

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

Tailwind best practices

Contract

Field Bound contract
Trigger User asks to write, edit, clean, or refactor Tailwind classes, components, or configuration. Read-only review or audit requests are out of scope.
Authority Reversible local: writes only class lists and component variants in place; rollback is undo. No remote mutation. Every mutation is reversible by restoring the prior class string or file content.
Side effect Edits class lists and component variants; flags ad-hoc tokens, @apply-heavy styles, magic values, and missing minification.
Done Token and component prerequisites exist; unnecessary utilities, semantics, ordering, @apply avoidance, and fixed variants are checked with version-aware minification.

Inputs

  • One or more files containing Tailwind class strings, component definitions, or a Tailwind configuration file.
  • Optional target Tailwind CSS version; defaults to the version declared in the project's package.json or Tailwind configuration.

Refusal

  • No Tailwind config or dependency found: stop before editing. Report the missing prerequisite. Modify no files.
  • Class string parse failure: skip the malformed string. Record its file and line, then continue.
  • Ambiguous utility replacement: keep the original utility and flag it for human review. Do not guess.
  • Required @apply block: leave an @apply inside a pseudo-element or @layer unchanged and record why.
  • Read-only review or audit requested with no edits: out of scope. Report that this skill runs only as a write, edit, clean, or refactor pass, and modify no files.

Procedure

  1. Identify the Tailwind version. Read package.json or the Tailwind configuration to determine the installed major version. Done when: the version is known or the missing prerequisite is reported.
  2. Scan class strings. Locate every class, className, class:list, template literal containing utility classes, and @apply directive in the supplied files. Done when: every supplied file has been scanned.
  3. Remove unnecessary utilities. Delete utilities that duplicate another utility in the same string and breakpoint scope. Delete utilities overridden by a later utility in the same group. Done when: no known duplicate or overridden utility remains.
  4. Enforce semantic utility use. Replace arbitrary value brackets with the nearest named utility when one exists. Replace raw color literals with the project's design-token color scale when defined. Done when: each arbitrary value is replaced or retained with a reason.
  5. Reorder class strings. Group utilities in this order: layout, flexbox/grid, spacing, sizing, typography, backgrounds, borders, effects, filters, tables, transitions/transforms, interactivity, accessibility. Sort alphabetically within each category. Done when: every parsed class string follows the order.
  6. Extract repeated patterns into components. When three or more identical class strings appear across files, propose a reusable component or an @apply-free utility class. Record the extraction but do not apply it when the project lacks a component directory. Done when: repeated patterns are extracted or flagged.
  7. Minimize @apply. Replace each @apply block with inline utilities when the same combination has a direct expression. Keep blocks required by a pseudo-element or @layer and record why. Done when: every block is converted or justified.
  8. Check fixed variants. Flag responsive variants whose fixed pixel breakpoints conflict with theme.screens. Done when: every mismatch is reported.
  9. Verify minification readiness. Check for cssnano, lightningcss, or Tailwind's built-in minification in v4+. Done when: minification is confirmed or the gap is reported.
  10. Emit the report. Record each file changed, utility counts removed/reordered/replaced, and every flag. Done when: the report accounts for every edit and unresolved item.

Read the full file on GitHub · 50 lines

Files

What ships with it

1 file 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. 3d ago First seen · 50 lines · 44 tokens per session scan A dc823d76d604

Subscribe to this mod's changes

tailwind-best-practices is a skill published in the GitHub repository OutlineDriven/odin-claude-plugin (35 stars, last pushed 2d ago), licensed Apache-2.0. It adds 44 tokens to every session and 955 once invoked, about $0.0002 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-09-06.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens

next-cache-components-optimizer

Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…

vercel/next.js · 170 tokens

next-partial-prefetching-adoption

Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…

vercel/next.js · 103 tokens