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.
npx skills add jiushiwon/wg-skills --skill uniapp-theme-skillgit clone --depth 1 https://github.com/jiushiwon/wg-skillsWrote 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.
[](https://agentmods.dev/skills/jiushiwon/wg-skills/uniapp-theme-skill)<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/uniapp-theme-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/uniapp-theme-skill/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.
<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/uniapp-theme-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/uniapp-theme-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00043 | $0.06036 |
| Opus 5.5 | $0.00017 | $0.02414 |
| Sonnet 5.5 | $0.00009 | $0.01207 |
| Haiku 4.5 | $0.00004 | $0.00604 |
Grade C, and why
uniapp-theme-skill scanned grade C with 1 finding 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 9d 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.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
rm -rf src/styles/theme/ How it starts
The opening of the file, as written. The whole thing — 597 lines — stays where its author put it; the contents beside it link to each section on GitHub.
uniapp-theme-skill
uni-app 项目主题系统引擎。
定位
本 skill 为 uni-app 项目创建完整的主题切换系统,不是简单的页面换肤。
核心能力:在项目中建立基于 CSS 变量的三维度主题系统,支持一键切换主题。
三大核心能力
| 维度 | 内容 | 示例变量 |
|---|---|---|
| 主题色 | 多主题完整色阶 50-950 | --primary-500, --secondary-500, --tertiary-500 |
| 全局尺寸 | 字号/间距/高度/圆角/图标(静态 rpx,无 calc) | --font-2xs, --space-4, --height-btn-md, --radius-sm, --icon-md |
| 全局硬编码替换 | 颜色 + 尺寸,按 CSS 属性上下文分类(A/B/C/D/E) | #fff → var(--text-inverse), 16rpx → var(--space-4) |
边界声明
✅ 本 skill 负责
- 主题色阶生成与切换系统(含多主题 primary/secondary/tertiary)
- 尺寸阶梯系统(字号/间距/高度/圆角/图标)
- 全局硬编码替换(颜色 + 尺寸,按 CSS 属性上下文分类)
❌ 本 skill 不负责
| 能力 | 状态 |
|---|---|
| Dark Mode 自动选择与持久化 | 由宿主负责;base.css 提供 data-theme="dark" 中性色预设 |
| Z-Index 层级系统 | ❌ 不做 |
| Motion / Transition Token | ❌ 不做 |
| JS Bridge / useTheme() | ❌ 不做 |
| CLI 工具 | ❌ 不做 |
| TypeScript 类型定义 | ❌ 不做 |
| Figma / Style Dictionary 对接 | ❌ 不做 |
| A11y 对比度校验 | ❌ 不做 |
多主题子系统
支持 primary / secondary / tertiary / quaternary / quinary 五级主题色阶,逻辑完全一致,命名统一。
:r:root {
--primary-50: #f0fdfa;
--primary-500: #14b8a6;
--secondary-500: #6366f1;
--tertiary-500: #f59e0b;
}
预设主题(8 套完整)
| 主题 | 主色 | 风格 | 适用场景 |
|---|---|---|---|
| cute | #FF8FB1 | 胶囊 | 女性向、宠物 |
| business | #2563EB | 小圆角 | 金融、企业 |
| fresh | #34D399 | 中圆角 | 健康、生活 |
| cyber | #00F0FF | 直角 | 科技、游戏 |
| retro | #D97706 | 小圆角 | 文创、手账 |
| glass | #8B5CF6 | 中圆角 | 音乐、社交 |
| minimal | #333333 | 小圆角 | 工具、效率 |
| warm | #F97316 | 中圆角 | 美食、户外 |
核心能力
- 检测主题系统:检查项目是否已有 CSS 变量主题系统
- 动态色阶生成:输入任意 HEX 颜色(如 #6366F1),自动生成 50-950 完整色阶(HSL 算法)
- 尺寸阶梯生成:自动生成字号/间距/高度/圆角/图标阶梯(静态 rpx,无 calc)
- 全局统一配置:一处配置,全局生效
- 多主题支持:primary/secondary/tertiary/quaternary/quinary 五级色阶
- 预设主题:内置 8 种主题(cute/business/fresh/cyber/retro/glass/minimal/warm)
- 一键切换:通过
data-theme属性切换,无需重新编译 - 强制统一硬编码:扫描项目中所有硬编码颜色/尺寸,按 CSS 属性上下文分类替换为 CSS 变量
- 强制改造:如果项目已有主题系统但不符合规范,强制改造
统一命名体系
所有变量使用以下命名规范,全项目对齐:
What ships with it
22 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- basic_theme.md 2.1 KB
- README.md 11 KB
- references/color-scale.md 6.8 KB
- references/commerce-design-catalog.md 3.2 KB
- references/commerce-presets.md 1.5 KB
- references/hardcode-replace-rules.md 5.9 KB
- references/radius-scale.md 3.6 KB
- references/size-scale.md 3.7 KB
- references/theme-generator.js 12 KB runs code
- STANDARD.md 4.3 KB
- templates/scripts/generate-tokens.js 7.5 KB runs code
- templates/src/commerce-theme.ts 1.2 KB runs code
- templates/src/main.js 289 B runs code
- templates/src/static/css/base.css 8.4 KB
- templates/src/styles/_functions.scss 3.3 KB
- templates/src/styles/config/_theme-config.scss 1.2 KB
- templates/src/styles/index.less 36 B
- templates/src/styles/tokens/_primitive.scss 2.2 KB
- templates/src/styles/tokens/_semantic.scss 3.0 KB
- templates/src/styles/variables.scss 2.4 KB
- templates/vite.config.ts 493 B runs code
- theme-demo.html 38 KB
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.
- 9d ago Changed · +9 lines f8cf55a9000f
- 16d ago Changed · +3 lines efc4288229f4
- 1mo ago Changed · +2 lines d2407875d871
- 1mo ago Changed · +4 lines d9e818b96d58
- 2mo ago First seen · 579 lines · 43 tokens per session scan C dbe48b6a7103
uniapp-theme-skill is a skill published in the GitHub repository jiushiwon/wg-skills (154 stars, last pushed 6d ago), licensed Apache-2.0. It adds 43 tokens to every session and 6,036 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
uniapp-theme-skill compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| uniapp-theme-skilljiushiwon/wg-skills | Skill | 154 | 6d ago | Apache-2.0 | C | 43 | Claude Code |
| anti-slop-designsickn33/agentic-awesome-skills | Skill | 51k | today | MIT | A | 34 | Claude Code |
| chakra-ui-builderchakra-ui/chakra-ui | Skill | 41k | today | MIT | A | 214 | Claude Code, Codex |
| visual-ralphYeachan-Heo/oh-my-codex | Skill | 34k | today | MIT | A | 52 | Codex |
| prototype-webnexu-io/html-anything | Skill | 17k | 2d ago | Apache-2.0 | A | 24 | Claude Code, Codex |
| open-design-setupcompozy/compozy | Skill | 2.9k | today | MIT | A | 67 | Claude Code, Codex |
| frontend-visual-qadaymade/claude-code-skills | Skill | 1.6k | yesterday | MIT | A | 94 | Claude Code, Codex |