Skills Explorer Add Skills

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 levels, from 0 (none) to 3 (high)
CategoryLevelWhy
Code & shell execution1 (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 access2 (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 reach1 (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 & credentials0 (none)Nothing here reads or requests API keys, passwords, `.env` files, browser sessions, or other credential stores.
Privilege & persistence0 (none)There is no sudo, service registration, global install, shell startup modification, or OS-level setting change in the shipped files.
Instruction hijack surface0 (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 actions0 (none)The skill does not post, deploy, delete, pay, or book anything; it only configures CSS generation.
Transparency0 (none)All shipped files are plain markdown and fully readable; there are no binaries, minified blobs, or decoded-at-runtime payloads.

Before installing

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