useclassy-setup.cursor-rule

useclassy-setup.cursor-rule is a cursor rule for Cursor from jrmybtlr/useclassy. It costs 0 tokens per session (501 once invoked), scanned A, original, MIT.

Editor and build configuration instructions for UseClassy, a Vite plugin that helps Tailwind CSS recognize generated class names. Vite is a tool for running and building front-end projects.

In plain words
What is it for?
Use them when connecting UseClassy to Vite, Tailwind CSS, VS Code Tailwind IntelliSense, React, Vue, Blade, or Svelte projects.
Why use it?
They prevent missing styles and editor suggestions caused by incorrect plugin order, Tailwind source paths, or VS Code class-name settings.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc). Also seen: mentions Claude Code; mentions AGENTS.md; mentions Cursor.

Good fit Use them when connecting UseClassy to Vite, Tailwind CSS, VS Code Tailwind IntelliSense, React, Vue, Blade, or Svelte projects.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/jrmybtlr/useclassy/useclassy-setup.cursor-rule
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.

Clone the repo
git clone --depth 1 https://github.com/jrmybtlr/useclassy

Made for: Cursor.

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 useclassy-setup.cursor-rule

README.md
[![agentmods](https://agentmods.dev/badge/rules/jrmybtlr/useclassy/useclassy-setup.cursor-rule/github.svg)](https://agentmods.dev/rules/jrmybtlr/useclassy/useclassy-setup.cursor-rule)
Your own site
<a href="https://agentmods.dev/rules/jrmybtlr/useclassy/useclassy-setup.cursor-rule"><img src="https://agentmods.dev/badge/rules/jrmybtlr/useclassy/useclassy-setup.cursor-rule/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 useclassy-setup.cursor-rule

Your own site · 80×15
<a href="https://agentmods.dev/rules/jrmybtlr/useclassy/useclassy-setup.cursor-rule"><img src="https://agentmods.dev/badge/rules/jrmybtlr/useclassy/useclassy-setup.cursor-rule.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 501 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.00000 $0.00501
Opus 5.5 $0.00000 $0.00200
Sonnet 5.5 $0.00000 $0.00100
Haiku 4.5 $0.00000 $0.00050

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

Security

Grade A, and why

useclassy-setup.cursor-rule 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 1mo 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-setup.cursor-rule.mdc · 16 lines

What it actually says

When adding or fixing UseClassy in this project:

  1. Install vite-plugin-useclassy as a dev dependency (use this repo’s package manager).
  2. In vite.config.*, import useClassy from vite-plugin-useclassy and add useClassy({ language: 'vue' | 'react' | 'blade' | 'svelte' }) to plugins before @tailwindcss/vite or other CSS plugins. For Svelte, also place it before @sveltejs/vite-plugin-svelte.
  3. Tailwind v4 (CSS uses @import "tailwindcss"): In that stylesheet, add an @source line pointing at the generated manifest. Default manifest path is .classy/output.classy.html from the project root; the @source path must be relative to the CSS file. In JavaScript configs you can compute the line with getUseClassyTailwindSourceDirective(cssAbsolutePath, projectRoot) from vite-plugin-useclassy.
  4. Tailwind v3: Add ./.classy/output.classy.html to content in tailwind.config.* (or use getUseClassyTailwindV3ContentEntry() from the package for the default path).
  5. VS Code (Tailwind only): Merge tailwindCSS.classAttributes to include class:[\\w:/@\\[\\]\\-=&*>.]* and, for React, className:[\\w:/@\\[\\]\\-=&*>.]*. Skip this for UnoCSS — use the UnoCSS extension.
  6. Run dev once so .classy/output.classy.html is generated.

Prefer npx vite-plugin-useclassy init (after installing the package) instead of hand-editing when possible. init installs the UseClassy authoring skill (.agents/skills), these Cursor rules, and an AGENTS.md section by default. Pass --no-skills to skip agent files. Add --with-claude if you also use Claude Code.

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. 1mo ago Changed 76705838c96f
  2. 1mo ago First seen · 16 lines · 0 tokens per session scan A 26d34c800f01

Subscribe to this mod's changes

useclassy-setup.cursor-rule is a cursor rule published in the GitHub repository jrmybtlr/useclassy (28 stars, last pushed 15d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 501 tokens. 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.