wot-ui-unocss-preset-guide

wot-ui-unocss-preset-guide is a skill for Claude Code, Codex from wot-ui/wot-starter. It costs 50 tokens per session (1,570 once invoked), scanned A, original, MIT.

A Chinese-language guide for installing and using the @wot-ui/unocss-preset package. UnoCSS is a tool that generates CSS utility classes from configuration and usage in a project.

In plain words
What is it for?
Use it when configuring the preset's prefix, default styles, design tokens, colors, spacing, borders, typography, and other utility classes in a uni-app or Vue project.
Why use it?
It explains the package setup and configuration options so class names, CSS variables, and automatic completion work consistently.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it when configuring the preset's prefix, default styles, design tokens, colors, spacing, borders, typography, and other utility classes in a uni-app or Vue project.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wot-ui/wot-starter/wot-ui-unocss-preset-guide
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 wot-ui/wot-starter --skill wot-ui-unocss-preset-guide
Clone the repo
git clone --depth 1 https://github.com/wot-ui/wot-starter

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 wot-ui-unocss-preset-guide

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/wot-ui/wot-starter/wot-ui-unocss-preset-guide"><img src="https://agentmods.dev/badge/skills/wot-ui/wot-starter/wot-ui-unocss-preset-guide.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,570 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
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00050 $0.01570
Opus 5 $0.00025 $0.00785
Sonnet 5 $0.00010 $0.00314
Haiku 4.5 $0.00005 $0.00157

Measured 12d ago against content hash cc97db48da12, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

wot-ui-unocss-preset-guide 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 12d 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

Copies of this mod

1 near-identical copy found in the catalogue:

.agents/skills/wot-ui-unocss-preset-guide/SKILL.md · 154 lines

How it starts

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

Wot UnoCSS Preset 使用指南

适用场景

当用户询问以下内容时,优先使用本 Skill:

  • 如何安装 @wot-ui/unocss-preset
  • 如何在 unocss.config.ts 配置 presetWot
  • prefixpreflightbaseTokens 怎么用
  • 为什么类名不生效、自动补全不出现、CI 与本地结果不一致

目标是给出可直接复制的最佳实践,帮助用户快速完成接入并稳定运行。

最小安装步骤

pnpm add -D unocss
pnpm add @wot-ui/unocss-preset

推荐配置(完整示例)

import { presetWot } from '@wot-ui/unocss-preset'
import { defineConfig } from 'unocss'

export default defineConfig({
  presets: [
    presetWot({
      prefix: 'wot',
      preflight: true,
      baseTokens: false,
    }),
  ],
})

配置项说明

  • prefix:工具类前缀,默认 wot。示例:wot-text-primarywot-m-main
  • preflight:是否注入 wot-ui CSS 变量,默认 true
  • baseTokens:是否开放基础色板和原始 token 类名,默认 false

常用类名示例

  • 颜色:wot-text-primarywot-bg-danger-surfacewot-border-border-main
  • 间距:wot-m-mainwot-gap-tightwot-gap-x-loose
  • 内边距:wot-p-mainwot-px-tightwot-pb-loose
  • 圆角:wot-rounded-mdwot-rounded-full
  • 字重:wot-font-mediumwot-font-semibold
  • 排版:wot-text-body-mainwot-text-title-large
  • 透明度:wot-opacity-disabled
  • 描边:wot-border-stroke-main

上手示例(可复制)

1) 一个“卡片”示例(uni-app / Vue)

<template>
  <view class="wot-bg-filled-oppo wot-rounded-2xl wot-p-super-loose wot-border-border-main wot-border-stroke-main">
    <text class="wot-text-title-large wot-text-text-main wot-font-semibold">
      Wot UnoCSS Preset
    </text>

    <view class="wot-mt-tight">
      <text class="wot-text-body-main wot-text-text-secondary">
        wot-text-body-main + wot-text-text-secondary
      </text>
    </view>

    <view class="wot-mt-loose wot-bg-primary wot-rounded-full wot-px-main wot-py-extra-tight">
      <text class="wot-text-label-large wot-text-text-white wot-font-semibold">
        wot-bg-primary
      </text>
    </view>
  </view>
</template>

2) 间距/布局示例(常见组合)

  • 外边距:wot-mt-tightwot-mt-mainwot-mt-super-loose
  • 内边距:wot-p-loosewot-px-mainwot-py-extra-tight
  • 横向/纵向组合:wot-mx-mainwot-my-loose
  • gap:wot-gap-tightwot-gap-x-mainwot-gap-y-loose

Read the full file on GitHub · 154 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. 12d ago First seen · 154 lines · 50 tokens per session scan A cc97db48da12

Subscribe to this mod's changes

wot-ui-unocss-preset-guide is a skill published in the GitHub repository wot-ui/wot-starter (386 stars, last pushed 14d ago), licensed MIT. It adds 50 tokens to every session and 1,570 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-31.

Related

Other skills, from other repositories

review-screenshot

A standard workflow for taking screenshots to check a user interface, using a dedicated review process for different verification modes.

YuDefine/nuxt-supabase-starter · 75 tokens

ui-plan

A planning skill for designing a software interface and making static HTML mock-ups from a feature plan and the project's current requirements. It keeps these drafts separate from the project's authoritative specifications.

YuDefine/nuxt-supabase-starter · 83 tokens

using-design-system

Ensures consistent use of X-components design system instead of Material3 when working on feature UI code. Automatically activates for Composable functions in feature modules or when user mentions UI/screens/components.

ThisIsSadeghi/KMPilot · 37 tokens

shadcn

Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI. Provides project context, component docs, and usage examples. Applies when working with shadcn/ui, component registries, presets, --preset codes, or any project with a components.json file. Also triggers for…

ever-works/directory-web-template · 90 tokens

tailwind-v4-shadcn

Production-tested setup for Tailwind CSS v4 with shadcn/ui, Vite, and React. Use when: initializing React projects with Tailwind v4, setting up shadcn/ui, implementing dark mode, debugging CSS variable issues, fixing theme switching, migrating from Tailwind v3, or encountering color/theming problems. Covers: @theme…

ever-works/directory-web-template · 198 tokens

tailwind-css-patterns

Provides comprehensive Tailwind CSS utility-first styling patterns including responsive design, layout utilities, flexbox, grid, spacing, typography, colors, and modern CSS best practices. Use when styling React/Vue/Svelte components, building responsive layouts, implementing design systems, or optimizing CSS workflow.

ever-works/directory-web-template · 62 tokens