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.05788 |
| Opus 5 | $0.00022 | $0.02894 |
| Sonnet 5 | $0.00009 | $0.01158 |
| Haiku 4.5 | $0.00004 | $0.00579 |
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 — 579 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 暗色模式 | ❌ 不做 |
| Z-Index 层级系统 | ❌ 不做 |
| Motion / Transition Token | ❌ 不做 |
| JS Bridge / useTheme() | ❌ 不做 |
| CLI 工具 | ❌ 不做 |
| TypeScript 类型定义 | ❌ 不做 |
| Figma / Style Dictionary 对接 | ❌ 不做 |
| A11y 对比度校验 | ❌ 不做 |
多主题子系统
支持 primary / secondary / tertiary / quaternary / quinary 五级主题色阶,逻辑完全一致,命名统一。
: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 变量
- 强制改造:如果项目已有主题系统但不符合规范,强制改造
统一命名体系
所有变量使用以下命名规范,全项目对齐:
| 维度 | 变量格式 | 示例 |
|---|---|---|
| 间距 | --space-{n} |
--space-1 (4rpx), --space-4 (16rpx) |
| 字号 | --font-{size} |
--font-2xs (20rpx), --font-md (28rpx) |
| 高度 | --height-{comp}-{size} |
--height-btn-md (72rpx) |
| 圆角 | --radius-{size} |
--radius-sm (8rpx), --radius-full (9999rpx) |
| 图标 | --icon-{size} |
--icon-xs (24rpx), --icon-md (48rpx) |
| 颜色 | --{color}-{step} |
--primary-500, --gray-900 |
| 语义颜色 | --color-{semantic} |
--color-primary, --color-bg |
| 文字颜色 | --text-{level} |
--text-primary, --text-secondary |
| 背景颜色 | --bg-{level} |
--bg-page, --bg-card |
| 边框颜色 | --border-{level} |
--border, --border-light |
What ships with it
17 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.
- README.md 10.0 KB
- references/color-scale.md 6.8 KB
- references/hardcode-replace-rules.md 5.5 KB
- references/radius-scale.md 3.6 KB
- references/size-scale.md 3.7 KB
- references/theme-generator.js 12 KB runs code
- templates/scripts/generate-tokens.js 7.4 KB runs code
- templates/src/main.js 289 B runs code
- templates/src/static/css/base.css 4.8 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.5 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 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 (100 stars, last pushed 2d ago), licensed Apache-2.0. It adds 43 tokens to every session and 5,788 once invoked, about $0.0002 per session on Opus 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.
Other skills, from other repositories
chakra-ui-builder
Build responsive, accessible UI components and layouts using Chakra UI v3, install or configure Chakra UI in new and existing projects, and design scalable themes using tokens, semantic tokens, recipes, and slot recipes. Use this skill whenever a user asks to build, create, or generate any UI component, page, form…
visual-ralph
Visual Ralph orchestration for frontend UI from generated references, static references, or live URL targets, using $ultragoal with built-in visual verdict and pixel-diff evidence until the implementation matches and leaves a reproducible design system.
frontend-ui-dark-ts
Build dark-themed React applications using Tailwind CSS with custom theming, glassmorphism effects, and Framer Motion animations. Use when creating dashboards, admin panels, or data-rich interfaces with a refined dark aesthetic.
reveal-hover-effect
Build cursor-following spotlight reveals that expose a second aligned image through a soft radial mask. Use for hover-to-color, before-and-after, x-ray, material, texture, product-detail, and illustrated hero effects where a desaturated or embossed base image should remain visible while another treatment follows an…
frontend-visual-qa
Audits already-rendered web, landing-page, HTML deck/slide, browser tool/game, dashboard/admin, design-system, and desktop UIs using real-browser or native-app journeys, inspected screenshots, DOM geometry, responsive or projection viewports, and a bundled Playwright sweep. Use after UI implementation to find…
prototype-web
A clickable, high-fidelity web product prototype with navigation, a hero section, feature cards, steps, social proof, and optional pricing. It is designed to resemble a finished landing page while remaining a prototype.