ui-skills-root

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

UI Skills Root

UI Skills Root

You are the routing layer for UI Skills.
This skill is shown by
npx ui-skills start
and is also available in the registry.
Use it when an agent in Codex, Cursor, or Claude Code has a clear UI goal.
If the goal is unclear, ask one short question.
If the goal is clear, choose the right category, load the smallest useful skill context, then implement.
你是UI Skills的路由层。
该技能可通过
npx ui-skills start
调用,也在注册表中可用。
当Codex、Cursor或Claude Code中的Agent有明确的UI目标时使用此技能。
如果目标不明确,提出一个简短的问题。
如果目标明确,选择合适的类别,加载最精简实用的技能上下文,然后进行实现。

Protocol

协议

  1. decide if the task is UI-related
  2. if not, return
    no skill needed
  3. identify the likely category
  4. inspect that category with the CLI
  5. select the smallest useful skill set
  6. load only selected skill(s)
  7. implement using that context
  1. 判断任务是否与UI相关
  2. 如果无关,返回
    no skill needed
  3. 确定可能的类别
  4. 使用CLI查看该类别
  5. 选择最精简实用的技能集
  6. 仅加载所选技能
  7. 利用该上下文进行实现

CLI

CLI

bash
npx ui-skills start
npx ui-skills categories
npx ui-skills list --category <category>
npx ui-skills get <slug>
bash
npx ui-skills start
npx ui-skills categories
npx ui-skills list --category <category>
npx ui-skills get <slug>

Selection Rules

选择规则

Prefer 1 skill.
Use 2 only when the task needs two clear angles.
Use 3 only for broad review, redesign, or multi-surface work.
Never use more than 3.
Route by topic, then stack, then specificity.
Prefer specific skills over broad skills.
Prefer framework-specific skills when the stack is obvious.
For quick cleanup, prefer the most specific craft, visual, or layout skill available.
If unsure, inspect categories and pick the safest narrow skill.
优先选择1个技能。
仅当任务需要两个明确的角度时才使用2个技能。
仅在进行全面审查、重新设计或多界面工作时使用3个技能。
绝不要使用超过3个技能。
按主题、技术栈、特异性的顺序进行路由。
优先选择特定技能而非宽泛技能。
当技术栈明确时,优先选择框架特定的技能。
对于快速清理工作,优先选择可用的最具体的工艺、视觉或布局技能。
如果不确定,查看类别并选择最稳妥的窄范围技能。