useclassy

useclassy is a skill for Claude Code, Codex from jrmybtlr/useclassy. It costs 64 tokens per session (1,075 once invoked), scanned A, original, MIT.

A way to write conditional CSS utility classes as modifier attributes in Vue, React, Svelte, Blade, and HTML markup. Base classes stay in the normal class attribute while states such as hover, focus, responsive sizes, and named groups are written separately.

In plain words
What is it for?
Use it when creating or refactoring interface markup with Tailwind-style classes. It helps convert existing variant classes, review UseClassy markup, and handle hover, focus, responsive, group, and container-query modifiers.
Why use it?
It makes markup easier to read by separating permanent styles from styles that apply only in a state or condition. It also provides framework-specific rules for writing these attributes safely.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/jrmybtlr/useclassy/useclassy-skill
Any agent
npx skills add jrmybtlr/useclassy --skill useclassy-skill
Clone the repo
git clone --depth 1 https://github.com/jrmybtlr/useclassy

Made for: Claude Code, Codex.

Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,075 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00064 $0.01075
Opus 5 $0.00032 $0.00537
Sonnet 5 $0.00013 $0.00215
Haiku 4.5 $0.00006 $0.00108

Measured 3d ago against content hash 44c56a1e586d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

useclassy 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 3d 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.

templates/useclassy-skill/SKILL.md · 89 lines

How it starts

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

Authoring with UseClassy

Use UseClassy to separate Tailwind variants from base utilities:

<!-- Before -->
<button class="rounded px-4 hover:bg-blue-500 hover:text-white focus:ring-2">

<!-- After -->
<button
  class="rounded px-4"
  class:hover="bg-blue-500 text-white"
  class:focus="ring-2"
>

Syntax

Language Base Modifiers
Vue / Blade class="…" class:hover="…", class:sm:hover="…"
React className="…" className:hover="…" (also accepts class:…); JSX expressions allowed
Svelte class="…" Quoted only: class:hover="…"

Modifier names may contain letters, numbers, _, -, :, / (named groups such as group-hover/item), and @ (container queries such as @md). Arbitrary variants ([&>*], data-[state=open]) cannot be attribute names — leave those tokens on the base class. In React JSX, / in an attribute name is invalid, so named groups must stay on className.

  • Vue / Blade / Svelte / HTML: modifier values must be double-quoted static class strings.
  • React: prefer double-quoted static strings. JSX expressions are also supported when string literals inside the expression should receive the variant prefix, e.g. className:hover={on ? 'bg-blue-500' : 'bg-gray-200'}.

Refactor existing code

When asked to convert markup to UseClassy:

  1. Identify the framework from the file/config; use className: for React and class: elsewhere.
  2. Inspect each static class / className string.
  3. Keep unprefixed utilities in the base attribute.
  4. Group utilities that share the same modifier prefix and remove that prefix:
    • hover:bg-blue-500 hover:text-whiteclass:hover="bg-blue-500 text-white"
    • focus:ring-2 focus:ring-blue-400class:focus="ring-2 ring-blue-400"
    • md:px-6 md:py-3class:md="px-6 py-3"
    • sm:hover:underlineclass:sm:hover="underline"
  5. Preserve utility order within each group and preserve unrelated attributes/expressions.

Read the full file on GitHub · 89 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 3d ago First seen · 89 lines · 64 tokens per session scan A 44c56a1e586d

Subscribe to this mod's changes

useclassy is a skill published in the GitHub repository jrmybtlr/useclassy (28 stars, last pushed 4d ago), licensed MIT. It adds 64 tokens to every session and 1,075 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

design-guide

Paperclip UI design system guide for building consistent, reusable frontend components. Use when creating new UI components, modifying existing ones, adding pages or features to the frontend, styling UI elements, or when you need to understand the design language and conventions. Covers: component creation, design…

paperclipai/paperclip · 105 tokens

Shade ShadCN install

Guardrails for running pnpm dlx shadcn@latest add in Shade — never overwrite existing components, fresh branch first, swap raw colours for semantic tokens after integrating. Trigger when the user proposes a shadcn add, or when a fresh ShadCN-shaped file lands in apps/shade/src/components/ui.

TryGhost/Ghost · 72 tokens

chakra-ui-builder

Build responsive, accessible UI components and layouts using Chakra UI v3, install or configure Chakra UI in new and existing projects, and design scalable themes using tokens, semantic tokens, recipes, and slot recipes. Use this skill whenever a user asks to build, create, or generate any UI component, page, form…

chakra-ui/chakra-ui · 214 tokens

material-ui-tailwind

Integrates Material UI with Tailwind CSS v4 using cascade layers (enableCssLayer, @layer order) and documents Tailwind v3 interoperability (preflight, important, injectFirst, portals). Use when combining MUI with Tailwind utilities, slotProps className, or theme token bridges.

mui/material-ui · 67 tokens

author-component

Create or review Blazor components (.razor files) with correct architecture. USE FOR: writing new Blazor components that do NOT involve JavaScript interop, implementing parameters and EventCallback, RenderFragment slots, component lifecycle (OnInitializedAsync, OnParametersSet), async patterns, IAsyncDisposable…

dotnet/skills · 148 tokens

obsidian-layout-adjustment

Workflow for working with the user on changing how Obsidian looks using CSS snippets. Use this whenever the user asks to restyle Obsidian, tune a vault's visual layout, adjust tabs, sidebars, note surfaces, properties, backlinks, graph panes, file explorer rows, icons, links, shadows, active states, or CSS snippets.…

Ar9av/obsidian-wiki · 115 tokens