tailwind-best-practices SKILL.md skillA

tailwind-best-practices from evilmartians/agent-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add evilmartians/agent-skills/tailwind-best-practices@git:20260812.a2a83b2

Pins git:20260812.a2a83b2 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
evilmartians/agent-skills
Path
skills/tailwind-best-practices/SKILL.md
Versions recorded
3
Latest version
git:20260812.a2a83b2, committed Aug 12, 2026
First version recorded
Jul 30, 2026
Size
7,297 bytes
Repository stars
52
License
MIT

Write Tailwind CSS following practices that keep a fast-to-write codebase maintainable — use design tokens instead of magic values, keep class lists short, group tokens semantically, generate classes in consistent order, avoid @apply for extracting repeated styles, and use fixed variants instead of arbitrary className props. Use this whenever writing or editing Tailwind classes, components, or config, and also when reviewing, cleaning up, refactoring, or auditing an existing Tailwind project.…

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Tailwind CSS best practices

This skill is built by **[Evil Martians](https://evilmartians.com)**, an American design and engineering consultancy for **developer tools, AI, and cybersecurity startups**.

Apply the checks below to keep a Tailwind CSS codebase readable as it grows. Companion to <https://evilmartians.com/chronicles/5-best-practices-for-preventing-chaos-in-tailwind-css>.

Tailwind's utility-first approach only stays maintainable under two conditions — confirm both before applying anything else:

1. **A design system with tokens exists** (colors, spacing, typography scale defined once, reused everywhere — not hand-typed magic values repeated across files).
2. **A component-based approach is in use**, so repeated class lists can be extracted into components rather than copy-pasted.

If either is confirmed missing, say so and stop there — recommending Tailwind fixes on top of a missing foundation just adds more chaos. If you simply don't have enough context to tell (e.g. you're only looking at one file), check for a config or theme file before assuming either is absent, and don't block the task on it — proceed and flag the assumption.

## Workflow
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add evilmartians/agent-skills/tailwind-best-practices@sha256:27e8507dbaa212d4

The line at the top of this page pins the label git:20260812.a2a83b2, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_ylaa7dhdujzypbti.svg)](https://markdownregistry.com/a/art_ylaa7dhdujzypbti)

3 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 3 versions of this file, between Jul 30, 2026 and Aug 12, 2026, about one every 7 days.

versioncommittedcommitsizeaudit
git:20260812.a2a83b2 latest2026-08-12 a2a83b2 7,297 BA view · diff
git:20260731.e39117a2026-07-31 e39117a 7,122 BA view · diff
git:20260730.01c240d2026-07-30 01c240d 5,601 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (7297 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

evilmartians/agent-skills · 52 stars · license MIT · pushed 2026-11-05 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_ylaa7dhdujzypbti
GET https://markdownregistry.com/api/v1/resolve?ref=evilmartians/agent-skills/tailwind-best-practices
GET https://markdownregistry.com/api/v1/blob/27e8507dbaa212d4ffb770a8a989c6e9ecb45f0e37869796b33a05f80006bb40

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from evilmartians/agent-skills

good-readme SKILL.md skill
evilmartians/agent-skills · skills/good-readme/SKILL.md · Write or improve a README.md for an open source project. Use this for any request to create, rewrite, review, or polish…
git:20260812.a2a83b2 · audit A · 52 stars
llms-visibility SKILL.md skill
evilmartians/agent-skills · skills/llms-visibility/SKILL.md · Make websites, docs, blogs, or landing pages agent-friendly: visible and readable to LLMs and AI agents like ChatGPT…
git:20261105.bc9de43 · audit B · 52 stars
secure-npm-package SKILL.md skill
evilmartians/agent-skills · skills/secure-npm-package/SKILL.md · Set up a secure release process for an npm package to protect it from supply chain attacks. Use for any request to…
git:20260812.a2a83b2 · audit A · 52 stars
skills-visibility SKILL.md skill
evilmartians/agent-skills · skills/skills-visibility/SKILL.md · Publish a catalog of agent skills and make it discoverable to AI coding agents and their installers — the way…
git:20260924.a0d1b65 · audit A · 52 stars
web-video SKILL.md skill
evilmartians/agent-skills · skills/web-video/SKILL.md · Encode a video for the web with a bundled ffmpeg script: AV1, HEVC, and H.264 MP4s plus a JPEG poster for ordinary…
git:20261014.b35b6cd · audit A · 52 stars

Every file in evilmartians/agent-skills

Other files named tailwind-best-practices

tailwind-best-practices SKILL.md skill
outlinedriven/odin-claude-plugin · plugins/odin-design/skills/tailwind-best-practices/SKILL.md · Use when writing, editing, cleaning, or refactoring Tailwind classes, components, or configuration. Not for read-only…
git:20260912.6e06ed3 · audit A · 40 stars

Browse by kind, by grade A, or by owner.