violet: Skill for Claude Code

.agents/skills/tailwind-canonical-classes/SKILL.md

tailwind-canonical-classes is a skill for Claude Code, Codex from VOD-Studio/violet. It costs 118 tokens per session (2,406 once invoked), scanned A, original, MIT.

A coding rule for using the standard class names expected by Tailwind CSS version 4. Tailwind CSS is a system for styling web pages with utility classes.

In plain words
What is it for?
Choosing canonical Tailwind classes when editing className values in the web project, especially for spacing and sizing.
Why use it?
It keeps spacing and sizing classes consistent and avoids older or non-standard forms that the project’s tools may rewrite.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is VOD-Studio/violet's own configuration. It tells Claude Code and Codex how to work on violet itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything violet configures →

Reuse

Borrowing it

Nothing to install: this file belongs to VOD-Studio/violet. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/VOD-Studio/violet/release/2.0/.agents/skills/tailwind-canonical-classes/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/VOD-Studio/violet

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-canonical-classes

README.md
[![agentmods](https://agentmods.dev/badge/skills/vod-studio/violet/tailwind-canonical-classes/github.svg)](https://agentmods.dev/skills/vod-studio/violet/tailwind-canonical-classes)
Your own site
<a href="https://agentmods.dev/skills/vod-studio/violet/tailwind-canonical-classes"><img src="https://agentmods.dev/badge/skills/vod-studio/violet/tailwind-canonical-classes/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-canonical-classes

Your own site · 80×15
<a href="https://agentmods.dev/skills/vod-studio/violet/tailwind-canonical-classes"><img src="https://agentmods.dev/badge/skills/vod-studio/violet/tailwind-canonical-classes.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 118 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,406 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.00118 $0.02406
Opus 5.5 $0.00047 $0.00962
Sonnet 5.5 $0.00024 $0.00481
Haiku 4.5 $0.00012 $0.00241

Measured 2mo ago against content hash 9980d14bfd1f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

tailwind-canonical-classes 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 2mo 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.

.agents/skills/tailwind-canonical-classes/SKILL.md · 174 lines

How it starts

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

Tailwind: prefer canonical class forms

The rule

This project uses Tailwind CSS v4. When editing className, write classes in the canonical form preferred by Tailwind v4.

Canonical forms come from two sources:

  1. Project convention (static): spacing/sizing pixel values divisible by 4 must use bare numeric utilities.
  2. Tailwind CSS IntelliSense suggestCanonicalClasses (dynamic): the extension reads the project's designSystem and suggests canonical rewrites on a per-class basis.

When Tailwind suggests a canonical form, accept it. Do NOT keep the legacy/arbitrary form.

The suggestCanonicalClasses mappings are not hardcoded — they come from designSystem.canonicalizeCandidates() and reflect the current project's @theme tokens and plugins. The tables below list the common, stable cases; always prefer the live suggestion from IntelliSense when it conflicts with a static rule.

Spacing/sizing: 4px → numeric utilities

This project uses the default Tailwind v4 spacing scale where 1 spacing unit = 4px (--spacing: 0.25rem).

When a pixel value is a multiple of 4, use the numeric utility. Do NOT use the arbitrary-value form.

❌ Don't ✅ Do math
w-[88px] w-22 88 / 4 = 22
h-[120px] h-30 120 / 4 = 30
p-[12px] p-3 12 / 4 = 3
m-[16px] m-4 16 / 4 = 4
gap-[24px] gap-6 24 / 4 = 6
min-w-[200px] min-w-50 200 / 4 = 50
max-w-[400px] max-w-100 400 / 4 = 100
rounded-[8px] rounded-2 (or rounded-lg) 8 / 4 = 2
inset-[32px] inset-8 32 / 4 = 8

Prefixes and variants compose the same way: sm:max-w-[420px] → sm:max-w-105, hover:w-[200px] → hover:w-50.

When arbitrary values ARE correct

Keep the -[...] form only when the value is not expressible on the 4px scale, or isn't a spacing value:

  • Not divisible by 4: w-[90px], top-[117px] — no clean numeric form, keep arbitrary.
  • Non-px units / calc / dynamic: h-[calc(100%-1px)], w-[50vw], translate-y-[calc(-50%_-_2px)].
  • Color/opacity/content: bg-[#1da1f2], text-[clamp(1rem,2vw,1.5rem)], content-['→'].
  • Non-spacing scales: ring-[3px], border-[1px], text-[10px] belong to their own scales — leave them unless IntelliSense suggests a canonical form.

Read the full file on GitHub · 174 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. 2mo ago First seen · 174 lines · 118 tokens per session scan A 9980d14bfd1f

Subscribe to this mod's changes

tailwind-canonical-classes is a skill published in the GitHub repository VOD-Studio/violet (4 stars, last pushed yesterday), licensed MIT. It adds 118 tokens to every session and 2,406 once invoked, about $0.0005 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-31.

Related

tailwind-canonical-classes compared with skills from other repositories

tailwind-canonical-classes next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tailwind-canonical-classesVOD-Studio/violetSkill4yesterdayMITA118Claude Code, Codex
article-magazinenexu-io/open-designSkill106kyesterdayApache-2.0A30Claude Code, Codex
21st-ui21st-dev/magic-mcpSkill6.4k1mo agoISCA63Claude Code
service-portal-pagesserac-labs/seracSkill7717d agoApache-2.0A63Claude Code
frontend-design-tasteKevin-Liu-01/Agent-MachinesSkill2915d agoMITA79Claude Code, Codex
font-switcher-dev-toolKevin-Liu-01/Agent-MachinesSkill2915d agoMITA86Claude Code, Codex
reticle-design-systemKevin-Liu-01/Agent-MachinesSkill2915d agoMITA58Claude Code, Codex