Tailwind CSS Class Hygiene Review

Tailwind CSS Class Hygiene Review is a skill for Claude Code from s977043/river-review. It costs 48 tokens per session (1,375 once invoked), scanned A, original, MIT.

A Tailwind CSS review check that looks for overly many custom values, conflicting utility classes, and hardcoded colors instead of shared theme values. Tailwind CSS is a tool for styling web pages with small class names.

In plain words
What is it for?
It is for reviewing changed Tailwind classes and flagging duplicate or conflicting utilities, excessive custom values, and arbitrary colors.
Why use it?
It helps catch inconsistent spacing, colors, and styles that can make a user interface harder to maintain.

Skill for Claude Code

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

Part of the river-review plugin — 138 skills, 18 commands, 5 agents, 3 hooks shipped together

Good fit It is for reviewing changed Tailwind classes and flagging duplicate or conflicting utilities, excessive custom values, and arbitrary colors.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/s977043/river-review/tailwind-class-hygiene
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 s977043/river-review --skill tailwind-class-hygiene
Clone the repo
git clone --depth 1 https://github.com/s977043/river-review

Made for: Claude Code.

Or install river-review, the plugin that ships this one along with the rest of its 138 skills, 18 commands, 5 agents, 3 hooks.

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 CSS Class Hygiene Review

README.md
[![agentmods](https://agentmods.dev/badge/skills/s977043/river-review/tailwind-class-hygiene/github.svg)](https://agentmods.dev/skills/s977043/river-review/tailwind-class-hygiene)
Your own site
<a href="https://agentmods.dev/skills/s977043/river-review/tailwind-class-hygiene"><img src="https://agentmods.dev/badge/skills/s977043/river-review/tailwind-class-hygiene/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 CSS Class Hygiene Review

Your own site · 80×15
<a href="https://agentmods.dev/skills/s977043/river-review/tailwind-class-hygiene"><img src="https://agentmods.dev/badge/skills/s977043/river-review/tailwind-class-hygiene.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,375 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.00048 $0.01375
Opus 5 $0.00024 $0.00687
Sonnet 5 $0.00010 $0.00275
Haiku 4.5 $0.00005 $0.00137

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

Security

Grade A, and why

Tailwind CSS Class Hygiene Review 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 6d 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.

skills/midstream/tailwind-class-hygiene/SKILL.md · 75 lines

How it starts

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

Pattern declaration

Primary pattern: Reviewer Secondary patterns: Inversion Why: Tailwind の utility class 構文(arbitrary value / クラス競合)をチェックリスト型で検査し、診断材料が無ければゲートで止める。

Goal / 目的

  • スケール/トークンを迂回する任意値(w-[437px] mt-[13px] text-[#1a2b3c] 等)の濫用を検出し、テーマのスペーシング/カラースケールへの寄せを促す。
  • 同一要素に併存する競合・重複ユーティリティ(px-2 px-4flex blockmt-2 mt-4 等、互いに打ち消すクラス)を検出する。
  • デザイントークン(bg-white / theme color)で表現すべき色の任意カラー直書き(bg-[#fff] 等)を検出する。

Non-goals / 扱わないこと

  • デザイントークン体系全般の是非(命名・粒度・採用方針)は design-token-enforcement のスコープ。本スキルは Tailwind の utility class 構文レベルの衛生に限定する。
  • Tailwind か素の CSS かといった採用技術の選定。
  • レスポンシブ/状態 variant(md: hover: 等)の設計妥当性。

Pre-execution Gate / 実行前ゲート

このスキルは以下の条件がすべて満たされない限りNO_REVIEWを返す。

  • 差分に className / class への Tailwind utility の追加・変更が含まれている
  • diff コンテキストが利用可能である

ゲート不成立時の出力: NO_REVIEW: tailwind-class-hygiene — className/class への Tailwind utility 変更なし

False-positive guards / 抑制条件

  • 設計上スケール外が必要な正当ケース(例: 1px ボーダー border-[0.5px]、外部デザイン由来の固定値で theme.extend 済み等)で、コメントによる正当化または theme 拡張が確認できる場合は指摘しない。
  • 動的クラス(テンプレートリテラル内で実行時計算される値、例: w-[${width}px])は別スコープとして扱い、静的な任意値と同列に断定しない(慎重に、必要なら質問に留める)。
  • theme に存在しない CSS(grid template など)を表現する arbitrary value が公式に推奨される稀なケースは、断定せず質問に留める。
  • 同一クラスに見えても variant prefix が異なる場合(px-2 md:px-4 等)は競合ではないため指摘しない。

Rule / ルール

  • 任意値([...])でスケール/トークンに対応物がある値(スペーシング・サイズ・カラー)を直書きしている場合は、theme のスケール/トークンへ寄せる修正を提案する。
  • 同一要素の同一プロパティに作用する複数ユーティリティが併存(px-2 px-4mt-2 mt-4flex block 等)し、後勝ちで前者が無効化される場合は重複/競合として指摘する。
  • 任意カラー直書き(bg-[#fff] text-[#000] 等)でデザイントークン(bg-white / theme color)に対応物がある場合はトークン利用を提案する。
  • "nit" を濫発しない。明確に theme で代替できるものに絞り、判断が割れるものは質問に留める。

Evidence / 根拠の取り方

  • 指摘は <file>:<line> で差分に紐づけ、どのクラスが問題か(任意値 / 競合 / 任意カラー)を 1 行で添える。
  • theme 対応物の有無が diff だけで確証できない場合は断定せず「可能性」として書く。

Output / 出力(短文版の推奨)

コメントは日本語で返す。

  • Finding: どのクラス衛生に反しているか(任意値濫用 / 競合 / 任意カラー、1文)
  • Impact: スケール逸脱で一貫性低下 / 後勝ちで意図しない値 / トークン迂回で一括変更不能 等
  • Fix: theme スケール(w- 系)/ 競合解消(片方削除)/ トークン(bg-white 等)への最小修正案

Read the full file on GitHub · 75 lines

Files

What ships with it

3 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. 6d ago First seen · 75 lines · 48 tokens per session scan A 3fb886930682

Subscribe to this mod's changes

Tailwind CSS Class Hygiene Review is a skill published in the GitHub repository s977043/river-review (3 stars, last pushed today), licensed MIT. It adds 48 tokens to every session and 1,375 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-03.

Related

Other skills, from other repositories

designlang-tokens

Use when styling UI for cal.com — references the extracted design system tokens instead of inventing colors, spacing, or typography.

Manavarya09/design-extract · 30 tokens

absolute-ui

Build polished, intentional UIs with concrete CSS/Tailwind values — typography, color, layout, spacing, dark mode, accessibility, animations, components. Encodes specific, opinionated rules with exact values, not vague advice. Covers buttons, cards, forms, tables, navigation, dashboards, landing pages, onboarding, and…

maddhruv/absolute · 121 tokens

color-audit

Color-only audit that extracts, evaluates, and recommends improvements for the project's color system. Use when the user asks to audit colors, run a color review or color audit, fix their colors, or work on the color palette or color system.

Aboudjem/ui-ux-suite · 52 tokens

theme-builder

Build a light/dark theme from scratch or improve an existing one, with a complete surface, text, and interactive color system. Use when the user asks to build or create a theme, use the theme builder, or set up a light and dark theme.

Aboudjem/ui-ux-suite · 55 tokens

layout-audit

Layout and spacing audit covering grid, spacing consistency, density, and responsive behavior. Use when the user asks to audit the layout, run a layout audit or grid audit, review spacing, or fix their spacing.

Aboudjem/ui-ux-suite · 46 tokens

type-audit

Typography-only audit covering font selection, type scale, readability, hierarchy, and performance. Use when the user asks to audit typography, run a typography or type audit, review fonts, fix their fonts, or work on the type system.

Aboudjem/ui-ux-suite · 51 tokens