Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/berkcangumusisik/claude-code-practicesnpx agentmods add skills/berkcangumusisik/claude-code-practices/tailwind-cleanupWrote 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.
[](https://agentmods.dev/skills/berkcangumusisik/claude-code-practices/tailwind-cleanup)<a href="https://agentmods.dev/skills/berkcangumusisik/claude-code-practices/tailwind-cleanup"><img src="https://agentmods.dev/badge/skills/berkcangumusisik/claude-code-practices/tailwind-cleanup/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.
<a href="https://agentmods.dev/skills/berkcangumusisik/claude-code-practices/tailwind-cleanup"><img src="https://agentmods.dev/badge/skills/berkcangumusisik/claude-code-practices/tailwind-cleanup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00018 | $0.00400 |
| Opus 5.5 | $0.00007 | $0.00160 |
| Sonnet 5.5 | $0.00004 | $0.00080 |
| Haiku 4.5 | $0.00002 | $0.00040 |
Grade A, and why
tailwind-cleanup 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.
What it actually says
Tailwind CSS Cleanup
Target: $1 (or src/ if not specified)
1. Find Unused Classes
npx tailwindcss --content "./src/**/*.{ts,tsx}" --input ./src/styles/globals.css --dry-run 2>/dev/null | grep "Removing"
2. Find Repeated Class Combinations
grep -rn 'className="' ${1:-src/} --include="*.tsx" | grep -oP 'className="[^"]+"' | sort | uniq -c | sort -rn | head -20
3. Extract Repeated Patterns
When the same 5+ class combination appears 3+ times, it should become:
- A component (if it's a complete UI element)
- A
cn()variant (if it's a style pattern) - A
@applyin CSS (sparingly)
4. Check for Anti-Patterns
!importantoverrides (!text-red-500)- Arbitrary values where a design token exists (
text-[#FF0000]→ use color from theme) - Mixing Tailwind with raw CSS in the same element
5. Verify PurgeCSS config covers all dynamic class patterns:
// ❌ Dynamic classes get purged
const color = isError ? 'red' : 'green'
<div className={`text-${color}-500`} />
// ✅ Full class names are safe
const className = isError ? 'text-red-500' : 'text-green-500'
Report: N unused classes removed, N patterns extracted.
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.
- 3mo ago First seen · 46 lines · 18 tokens per session scan A 4169d5c270a2
tailwind-cleanup is a skill published in the GitHub repository berkcangumusisik/claude-code-practices (11 stars, last pushed 7mo ago), licensed MIT. It adds 18 tokens to every session and 400 once invoked, about $0.0001 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-09-03.
tailwind-cleanup compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| tailwind-cleanupberkcangumusisik/claude-code-practices | Skill | 11 | 7mo ago | MIT | A | 18 | Claude Code |
| flutter-developmenttravisjneuman/.claude | Skill | 116 | yesterday | MIT | A | 41 | Claude Code |
| frontend-enhancertravisjneuman/.claude | Skill | 116 | yesterday | MIT | A | 45 | Claude Code |
| generic-design-systemtravisjneuman/.claude | Skill | 116 | yesterday | MIT | A | 60 | Claude Code |
| generic-react-design-systemtravisjneuman/.claude | Skill | 116 | yesterday | MIT | A | 59 | Claude Code |
| generic-static-design-systemtravisjneuman/.claude | Skill | 116 | yesterday | MIT | A | 44 | Claude Code |
| generic-static-feature-developertravisjneuman/.claude | Skill | 116 | yesterday | MIT | A | 40 | Claude Code |