unocss
An agent skill by antfu, from antfu/skills. Tags: css, design, development, styleguide, ui-ux.
What it does
UnoCSS instant atomic CSS engine, superset of Tailwind CSS. Use when configuring UnoCSS, writing utility rules, shortcuts, or working with presets like Wind, Icons, Attributify.
Install
With the skills CLI, which installs into Claude Code, Codex, Cursor and other agents:
npx skills add antfu/skills --skill unocss
Or copy the skill folder into Claude Code's skills directory by hand (~/.claude/skills for every project, or .claude/skills inside one):
git clone --depth 1 https://github.com/antfu/skills
cp -r skills/skills/unocss ~/.claude/skills/unocss
Safety box score
Grade B, low risk: 14 of 100 risk points, rated 2026-09-22. The grade rates what the skill and its scripts can reach on the machine of whoever installs it, across eight categories from shell execution to secrets access. How the score works.
This skill is documentation for configuring UnoCSS presets, transformers, and integrations; it does not ship executable code. The main risks come from optional network-backed features like web-font loading and icon auto-install/CDN use, plus ordinary package installation and project-scoped file writes.
| Category | Level | Why |
|---|---|---|
| Code & shell execution | 1 (low) | The docs tell you to run package installs such as `pnpm add -D unocss` and `pnpm add -D @unocss/preset-icons @iconify-json/[collection-name]`, but there are no bundled scripts or code evaluators. |
| Network access | 2 (moderate) | Several examples can contact external hosts, including `presetWebFonts({ provider: 'google' })`, `fetch('https://example.com')` in extraction, and `presetIcons({ autoInstall: true, cdn: 'https://esm.sh/' })`. |
| Filesystem reach | 1 (low) | The examples write only within the workspace, such as `node_modules/.cache/unocss/fonts` and `public/assets/fonts`, with no system paths or recursive deletes. |
| Secrets & credentials | 0 (none) | Nothing here reads or requests API keys, passwords, `.env` files, browser sessions, or other credential stores. |
| Privilege & persistence | 0 (none) | There is no sudo, service registration, global install, shell startup modification, or OS-level setting change in the shipped files. |
| Instruction hijack surface | 0 (none) | The files contain configuration guidance only; they do not instruct the agent to ignore its rules, hide actions, or follow untrusted remote instructions. |
| Irreversible actions | 0 (none) | The skill does not post, deploy, delete, pay, or book anything; it only configures CSS generation. |
| Transparency | 0 (none) | All shipped files are plain markdown and fully readable; there are no binaries, minified blobs, or decoded-at-runtime payloads. |
Before installing
- Read `references/preset-web-fonts.md` and decide whether any provider should be `none` or self-hosted.
- Check `references/preset-icons.md` for `autoInstall: true` or any `cdn` setting before enabling icons.
- Inspect the project's existing `uno.config.*` / `unocss.config.*` so you know which presets and transformers are already active.
- Run the setup once in a scratch branch or test repo with no secrets in the environment.
Rated 2026-09-22 by an automated review of 25 files from the skill's repository.
Source
- Repository
- antfu/skills (all skills from this repository)
- Path
- skills/unocss/SKILL.md
- Branch
- main
- Updated
- 2026-09-22
Related skills
- expo-design-system — Framework (OSS). Build and maintain a design system inside an Expo app - a reusable theme of design tokens (color, spacing, typography, radius, shadow.
- antfu-design — antfu-style design conventions, broadened.
- animate — Build an animation from scratch, making the decisions in the order that determines whether it feels right — should it animate at all, what purpose, which tool.
- architect — Sketch types, signatures, and module structure before code, then stay in the loop while implementation fills in.
- expo-native-ui — Framework (OSS). Build beautiful, native-feeling Expo screens.
- expo-ui — Framework (OSS). Build native UI with the @expo/ui package: real SwiftUI on iOS and Jetpack Compose on Android.