Agent skill

Theme Variables

by AntonHu in AntonHu/ai-coding-project

指导在前端项目中正确使用 Ant Design 与自定义主题 CSS 变量,避免硬编码颜色并保证暗色/浅色主题切换一致性。当前端编写或修改样式时使用本技能。

No licenceAuto-check passed

Install Theme Variables

skills CLI
$ npx skills add AntonHu/ai-coding-project --skill theme-variables -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install AntonHu/ai-coding-project theme-variables --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/AntonHu/ai-coding-project.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/theme-variables .claude/skills/theme-variables && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
theme-variables
GitHub stars
110
Token cost
~292 tokens
SKILL.md length
44 words
Files
1
Skills in repo
8
Repo updated
First seen
Licence
None found

At a glance

指导在前端项目中正确使用 Ant Design 与自定义主题 CSS 变量,避免硬编码颜色并保证暗色/浅色主题切换一致性。当前端编写或修改样式时使用本技能。

  • SKILL.md covers 使用场景, 基本原则, 常用 Ant Design 主题变量 and 自定义主题变量示例, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Theme Variables is an agent skill from AntonHu/ai-coding-project. 指导在前端项目中正确使用 Ant Design 与自定义主题 CSS 变量,避免硬编码颜色并保证暗色/浅色主题切换一致性。当前端编写或修改样式时使用本技能。

Its SKILL.md is about 290 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It works with Ant Design. The repository describes itself as: AI Coding 落地架构的参考项目,支持所有主流支持 Skills 的 Agent/AI Coding IDE。

Example prompts

  • “/theme-variables”

What it can do on your machine

Read from SKILL.md and the folder at commit a928b23. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are scss).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Theme Variables loads about 292 tokens when it runs. Until then it costs about 24 tokens; SKILL.md has 44 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~24
When it runs · the whole SKILL.md, loaded when a task matches
~292

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 44 words (~292 tokens).

name
theme-variables

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .agents/skills/theme-variables of AntonHu/ai-coding-project.

Open the folder on GitHubat commit a928b23

Compare with similar skills

Theme Variables next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Theme Variables compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Theme Variables this skillAntonHu/ai-coding-project110—~292Automated safety check: PassNone
LobeHub Interactive Prototypelobehub/lobehub83k—~1.6kAutomated safety check: PassCustom licence
Version ReleaseNG-ZORRO/ng-zorro-antd9.2k—~3.1kAutomated safety check: PassMIT
Ant Design Mobile Releaseant-design/ant-design-mobile12k—~497Automated safety check: PassMIT
Building With Lobe UIlobehub/lobe-ui2.2k—~2kAutomated safety check: PassMIT
Feature SyncNG-ZORRO/ng-zorro-antd9.2k—~840Automated safety check: PassMIT

Similar skills

  • Builds single-file interactive HTML prototypes rendered with the real LobeHub UI components and written as production-style React, so they can later be split into files.

    83k GitHub stars~1.6k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Version Release

    NG-ZORRO/ng-zorro-antd

    NG-ZORRO/ng-zorro-antd repository release workflow. An agent skill from NG-ZORRO/ng-zorro-antd.

    9.2k GitHub stars~3.1k tokensUpdated today
    DevelopmentAuto-check passed
  • Ant Design Mobile Release

    ant-design/ant-design-mobile

    Prepares an npm release of ant-design-mobile up to the version commit, then tags and publishes the GitHub Release after you run the publish command yourself.

    12k GitHub stars~497 tokensUpdated 23 days ago
    DevelopmentAuto-check passed
  • Building With Lobe UI

    lobehub/lobe-ui

    Build UI with the LobeHub design ecosystem — @lobehub/ui (plus its base-ui, chat, mobile, awesome, brand, mdx, i18n namespaces), @lobehub/icons, @lobehub/charts, @lobehub/fluent-emoji and…

    2.2k GitHub stars~2k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Feature Sync

    NG-ZORRO/ng-zorro-antd

    Sync an Ant Design React component or feature into NG-ZORRO.

    9.2k GitHub stars~840 tokensUpdated today
    Frontend & DesignAuto-check passed
  • Ant Design Vue UI

    lazzyfu/goInsight

    Build, refactor, or review production-grade admin interfaces with Vue 3 + JavaScript + Ant Design Vue 4.x.

    730 GitHub stars~2k tokensUpdated 6 mo ago
    DatabasesAuto-check passed

More from AntonHu/ai-coding-project

All 8 skills in this repo
  • Create API

    AntonHu/ai-coding-project

    指导在前端项目中按团队规范创建和维护 HTTP 接口,包括类型定义、请求封装、命名约定与错误处理。当前端需要新增或调整 API 时使用本技能。

    110 GitHub stars~757 tokensUpdated 8 mo ago
    Auto-check passed
  • Create Component

    AntonHu/ai-coding-project

    指导在前端项目中按团队规范创建和拆分 React 组件,包括目录结构、文件命名、样式与主题变量使用。当前端需要新增或重构组件时使用本技能。

    110 GitHub stars~692 tokensUpdated 8 mo ago
    Auto-check passed
  • Create Route

    AntonHu/ai-coding-project

    指导在前端项目中按团队规范创建和维护路由,包括目录结构、Page 与 Loader 职责划分及懒加载用法。当前端需要新增或重构页面路由时使用本技能。

    110 GitHub stars~742 tokensUpdated 8 mo ago
    Auto-check passed
  • Create Store

    AntonHu/ai-coding-project

    指导在前端项目中按团队规范使用 Zustand 创建和维护全局状态 store,包括目录结构、命名与持久化策略。当前端需要新增或重构状态管理时使用本技能。

    110 GitHub stars~502 tokensUpdated 8 mo ago
    Auto-check passed
  • Create Proposal

    AntonHu/ai-coding-project

    通用创建提案技能。根据需求是否有设计稿或 UI 描述、是否有接口、是页面还是功能组件等可选条件,决定设计稿分析、接口与数据层、以及实现后的 UI 还原验收等步骤。适用于各类需求提案,不限于纯 UI 页面。

    110 GitHub stars~861 tokensUpdated 8 mo ago
    Auto-check passed
  • Design Analysis

    AntonHu/ai-coding-project

    通用设计稿分析技能。只要需要「分析设计稿、梳理前端 UI 开发任务」,就使用本技能。产出 UI 分析清单,供开发与验收参照。

    110 GitHub stars~521 tokensUpdated 8 mo ago
    Auto-check passed

Works with

Questions about Theme Variables

What does Theme Variables do?

指导在前端项目中正确使用 Ant Design 与自定义主题 CSS 变量,避免硬编码颜色并保证暗色/浅色主题切换一致性。当前端编写或修改样式时使用本技能。. Theme Variables is an agent skill from AntonHu/ai-coding-project.

How do I install Theme Variables in Claude Code?

Run `npx skills add AntonHu/ai-coding-project --skill theme-variables -a claude-code`. Or copy the skill folder (.agents/skills/theme-variables in AntonHu/ai-coding-project) into .claude/skills/theme-variables in your project. Claude Code loads it when a task matches its description.

How do I install Theme Variables in Codex?

Run `npx skills add AntonHu/ai-coding-project --skill theme-variables -a codex`. Or copy the skill folder (.agents/skills/theme-variables in AntonHu/ai-coding-project) into .agents/skills/theme-variables in your project. Codex loads it when a task matches its description.

Can I use Theme Variables in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add AntonHu/ai-coding-project --skill theme-variables -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/theme-variables, .gemini/skills/theme-variables, .github/skills/theme-variables and .opencode/skills/theme-variables in your project.

What does Theme Variables need to run?

SKILL.md names no scripts, command-line tools or credentials: Theme Variables is instructions for the agent only.

Does Theme Variables access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Theme Variables safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Theme Variables use?

No licence was found for Theme Variables or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Theme Variables use?

About 292 tokens (SKILL.md is roughly 1.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Theme Variables?

Skills that share tags, products or a category with Theme Variables: LobeHub Interactive Prototype (lobehub/lobehub, 83k stars), Version Release (NG-ZORRO/ng-zorro-antd, 9.2k stars), Ant Design Mobile Release (ant-design/ant-design-mobile, 12k stars) and Building With Lobe UI (lobehub/lobe-ui, 2.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Theme Variables?

AntonHu (a GitHub user) maintains it in AntonHu/ai-coding-project, which has 110 GitHub stars. The repository holds 8 skills in this directory. The repository was last updated on February 10, 2026.

Source: AntonHu/ai-coding-project on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.