unocss

unocss is a skill for Claude Code, Codex from antfu/skills. It costs 43 tokens per session (1,031 once invoked), scanned A, a copy of unocss, MIT.

A utility-first CSS engine that generates only the styling rules your project uses. CSS is the language that controls a webpage’s appearance, and utility classes are small reusable styling instructions such as spacing or text color.

In plain words
What is it for?
Use it to configure UnoCSS, write utility classes, create reusable style shortcuts, and work with presets such as Wind, Icons, or Attributify.
Why use it?
It lets you style interfaces with short classes while keeping the available rules configurable through presets, custom rules, shortcuts, themes, and variants.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to configure UnoCSS, write utility classes, create reusable style shortcuts, and work with presets such as Wind, Icons, or Attributify.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/antfu/skills/unocss
View source ↗ antfu/skills
About the project

Anthony Fu's Skills is a curated collection of instructions that guide coding agents in using particular tools, frameworks, and development practices. It is mainly aimed at projects using technologies such as Vite, Nuxt, Vue, TypeScript, and related JavaScript tooling. The catalogue entries are skills and instructions from this collection.

antfu/skills · 6,043 stars · on GitHub

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.

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

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 unocss

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/antfu/skills/unocss"><img src="https://agentmods.dev/badge/skills/antfu/skills/unocss.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,031 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. Third-party audits
  • Socket pass 28 Sept 2026
  • Snyk pass 28 Sept 2026
How audits are shown
Origin 100% copy Near-identical to another mod 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.00043 $0.01031
Opus 5.5 $0.00017 $0.00412
Sonnet 5.5 $0.00009 $0.00206
Haiku 4.5 $0.00004 $0.00103

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

Security

Grade A, and why

unocss 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.

Origin

This is a copy

100% identical to unocss — 5 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/unocss/SKILL.md · 66 lines

How it starts

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

UnoCSS is an instant atomic CSS engine designed to be flexible and extensible. The core is un-opinionated - all CSS utilities are provided via presets. It's a superset of Tailwind CSS, so you can reuse your Tailwind knowledge for basic syntax usage.

Important: Before writing UnoCSS code, agents should check for uno.config.* or unocss.config.* files in the project root to understand what presets, rules, and shortcuts are available. If the project setup is unclear, avoid using attributify mode and other advanced features - stick to basic class usage.

The skill is based on UnoCSS v66.10.5, generated at 2026-09-25.

Core

Topic Description Reference
Configuration Config file setup and all configuration options core-config
Rules Static and dynamic rules for generating CSS utilities core-rules
Shortcuts Combine multiple rules into single shorthands core-shortcuts
Theme Theming system for colors, breakpoints, and design tokens core-theme
Variants Apply variations like hover:, dark:, responsive to rules core-variants
Extracting How UnoCSS extracts utilities from source code core-extracting
Safelist & Blocklist Force include or exclude specific utilities core-safelist
Layers & Preflights CSS layer ordering and raw CSS injection core-layers
Processors Transform generated CSS layers (incl. Lightning CSS) core-processors

Presets

Main Presets

Topic Description Reference
Preset Wind3 Tailwind CSS v3 / Windi CSS compatible preset (most common) preset-wind3
Preset Wind4 Tailwind CSS v4 compatible preset with modern CSS features preset-wind4
Preset Mini Minimal preset with essential utilities for custom builds preset-mini

Read the full file on GitHub · 66 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. 1mo ago Changed · +1 lines ccf4a1e26e1c
  2. 2mo ago First seen · 65 lines · 43 tokens per session scan A 8888703f85d6

Subscribe to this mod's changes

unocss is a skill published in the GitHub repository antfu/skills (6,043 stars, last pushed yesterday), licensed MIT. It adds 43 tokens to every session and 1,031 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to unocss, differing in 5 lines, and is treated as a copy.

Related

unocss compared with skills from other repositories

unocss next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
unocssantfu/skillsSkill6.0kyesterdayMITA43Claude Code, Codex
playgroundanthropics/claude-plugins-officialSkill46kyesterdayApache-2.0A53Claude Code
frontend-designanthropics/claude-plugins-officialSkill46kyesterdayApache-2.0A40Claude Code
fixing-motion-performanceibelick/ui-skillsSkill11kyesterdayMITA45Claude Code, Codex
design-artifactplannotator/effective-htmlSkill4.0k6d agoMITA72Claude Code, Codex
baseline-uiibelick/ui-skillsSkill11kyesterdayMITA34Claude Code, Codex
html-prototypeplannotator/effective-htmlSkill4.0k6d agoMITA87Claude Code, Codex