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 111repo +5 today 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 15 Sept 2026
  • Snyk pass 15 Sept 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.5 $0.00028 $0.01265
Sonnet 5.5 $0.00014 $0.00632
Haiku 4.5 $0.00007 $0.00316

Measured 3mo ago against content hash 34d742e6f19f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 3mo 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. 3mo 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 (111 stars, last pushed today), licensed MIT. It adds 70 tokens to every session and 3,162 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-30.

Related

tailwind-best-practices compared with skills from other repositories

tailwind-best-practices next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tailwind-best-practicesAsyrafHussin/agent-skillsSkill111todayMITA70Claude Code, Codex
antislopandycungkrinx91/konohaSkill162todayApache-2.0A27Claude Code, Codex
antislop-pixelmiqdadbadjuber/anti-slopSkill10ktodayMITA92Claude Code
antislop-uimiqdadbadjuber/anti-slopSkill10ktodayMITA39Claude Code
antislop-layoutmobilemiqdadbadjuber/anti-slopSkill10ktodayMITA40Claude Code
avoid-ai-designfunboy322/avoid-ai-designSkill18012d agoMITA176Claude Code, Codex
ring:validating-ux-completenessLerianStudio/ringSkill21829d agoApache-2.0A113Cursor