tailwind-best-practices

tailwind-best-practices is a skill for Claude Code, Codex from AsyrafHussin/agent-skills. It costs 70 tokens per session (3,162 once invoked), scanned A, original, MIT.

A set of conventions for using Tailwind CSS, a utility-based system for styling web pages, across versions 3 and 4.

In plain words
What is it for?
It is for building responsive layouts, dark mode, reusable component styles, Tailwind configuration, and migrations from version 3 to version 4.
Why use it?
It helps avoid applying the wrong configuration or styling patterns when a project uses a different Tailwind version.

Skill for Claude CodeCodex

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

not rated 75repo +2 14d ago A scan Socket: passSnyk: passSkillSpector: pass 70 tokens original MIT

Good fit It is for building responsive layouts, dark mode, reusable component styles, Tailwind configuration, and migrations from version 3 to version 4.

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

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/asyrafhussin/agent-skills/tailwind-best-practices/github.svg)](https://agentmods.dev/skills/asyrafhussin/agent-skills/tailwind-best-practices)
Your own site
<a href="https://agentmods.dev/skills/asyrafhussin/agent-skills/tailwind-best-practices"><img src="https://agentmods.dev/badge/skills/asyrafhussin/agent-skills/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/asyrafhussin/agent-skills/tailwind-best-practices"><img src="https://agentmods.dev/badge/skills/asyrafhussin/agent-skills/tailwind-best-practices.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,162 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
  • Socket pass 18 Mar 2026
  • Snyk pass 8 Mar 2026
  • 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.00070 $0.03162
Opus 5 $0.00035 $0.01581
Sonnet 5 $0.00014 $0.00632
Haiku 4.5 $0.00007 $0.00316

Measured 11d ago against content hash 34d742e6f19f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, 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 11d 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/tailwind-best-practices/SKILL.md · 420 lines

How it starts

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

Tailwind CSS Best Practices

Comprehensive patterns for building consistent, maintainable interfaces with Tailwind CSS v3.4+ and v4. Contains 29 rules covering responsive design, dark mode, component patterns, configuration, and v4 migration.

Metadata

  • Version: 1.0.0
  • Framework: Tailwind CSS v3.4+ / v4.0+
  • Rule Count: 29 rules across 8 categories
  • License: MIT
  • Documentation: tailwindcss.com/docs

Step 1: Detect Tailwind Version

Always check the version before giving any advice. v3 and v4 are fundamentally different.

Check package.json for the installed version:

{ "tailwindcss": "^3.x" }  // → v3 rules apply
{ "tailwindcss": "^4.x" }  // → v4 rules apply

Also check for these signals:

Signal Version
tailwind.config.js exists v3
@import "tailwindcss" in CSS v4
@tailwindcss/vite in dependencies v4
@tailwindcss/postcss in dependencies v4
@theme {} block in CSS v4

If v3: Apply resp-, dark-, comp-, config- rules. Note that v4 is available. If v4: Apply v4- rules. tailwind.config.js patterns do NOT apply — use @theme {} instead. If migrating v3 → v4: Follow v4-migration rules directly.

When to Apply

Reference these guidelines when:

  • Writing responsive layouts
  • Implementing dark mode
  • Creating reusable component styles
  • Configuring Tailwind (v3 or v4)
  • Migrating a project from v3 to v4
  • Setting up a new project with v4

Rule Categories by Priority

Priority Category Impact Prefix Version
1 Responsive Design CRITICAL resp- v3 / v4
2 Dark Mode CRITICAL dark- v3 / v4
3 Component Patterns HIGH comp- v3 / v4
4 Custom Configuration HIGH config- v3
5 V4 & Migration HIGH v4- v4 only
6 Spacing & Typography MEDIUM space- v3 / v4
7 Animation MEDIUM anim- v3 / v4
8 Performance LOW perf- v3 / v4

Read the full file on GitHub · 420 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. 11d ago First seen · 420 lines · 70 tokens per session scan A 34d742e6f19f

Subscribe to this mod's changes

tailwind-best-practices is a skill published in the GitHub repository AsyrafHussin/agent-skills (75 stars, last pushed 14d ago), licensed MIT. It adds 70 tokens to every session and 3,162 once invoked, about $0.0003 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-30.

Related

Other skills, from other repositories

ring:validating-ux-completeness

Validating that UX specifications are complete before technical design: a read-only checklist over wireframes, states, responsive behavior, accessibility, and component-library alignment, emitting a DESIGN VALIDATED / NEEDS REVISION verdict to design-validation.md. Standalone utility — run after a product-designer…

LerianStudio/ring · 113 tokens

fidelity-gate

Build a UI against a frozen visual reference without drift - an inventory extracted before any code, a relics list, and a gate that MEASURES computed styles on a fixture carrying the reference's own data. Use when a mockup, design spec or screenshot is the contract.

jjanczur/tyran · 56 tokens

design-expert

UI/UX design expertise — component design, design system selection, responsive layout. Includes auto-detection from package.json and Context7 integration for library docs.

nguyenthienthanh/aura-frog · 35 tokens

design-tokens

Generate a cohesive color-token system from ONE OKLCH brand hue — primary/secondary/background/foreground/muted/border with semantic light + dark, emitted as a Tailwind v4 @theme block or a CSS-variables fallback. Use when starting a design system, defining brand colors, setting up theming/dark-mode, or replacing…

nguyenthienthanh/aura-frog · 81 tokens

motion-design

Restrained, accessible web motion — Framer Motion declarative patterns and CSS-only staggered reveals for high-impact moments, always bundle-aware and reduced-motion-safe. Use when adding animation/transitions to a UI (entrance reveals, list stagger, page/route transitions, micro-interactions) or when motion feels…

nguyenthienthanh/aura-frog · 74 tokens

ux-ui

Use this agent when you need to design, audit, migrate, rewire, or rewrite UX/UI.

samibs/skillfoundry · 24 tokens