- name
SKILL.md
技能文件保留在发布者的仓库中。
在终端中粘贴复制的命令。它会把这个 SKILL.md 安装到对应的智能体中。
npx skills add educlopez/ui-craft --skill extract -a cursor -y在终端中粘贴复制的命令。它会把这个 SKILL.md 安装到对应的智能体中。
npx skills add educlopez/ui-craft --skill extract -a claude-code -y在终端中粘贴复制的命令。它会把这个 SKILL.md 安装到对应的智能体中。
npx skills add educlopez/ui-craft --skill extract -a codex -y在终端中粘贴复制的命令。它会把这个 SKILL.md 安装到对应的智能体中。
npx skills add educlopez/ui-craft --skill extract -a grok -y在 Grok Bot 聊天中发送复制的消息。Bot 会从 GitHub 获取这个 SKILL.md,并添加到你所有 Bot 共享的技能中。
Install this skill: https://github.com/educlopez/ui-craft/tree/HEAD/.agents/skills/extract来自发布者
Context: this sub-skill is one lens of the broader ui-craft skill. If the ui-craft skill is also installed, read its SKILL.md first for Discovery + Anti-Slop + Craft Test, then apply the specific lens below.
Extract reusable pieces from $ARGUMENTS. Load the ui-craft skill.
Step 1 — Scan the target for extraction candidates:
cva/tv variant if the project uses one — check first).theme.extend.Step 2 — Match the project's conventions, don't impose new ones:
components/ui/, ui/, primitives/, src/components/ before creating a new directory. Reuse.--color-*, --space-*, --font-*, --radius-*). Don't introduce a parallel system.Step 3 — Anti-Slop Test on every new component (from SKILL.md):
MetricCard / PricingTier / InviteRow beats Card / Box / Item.Step 4 — Update every call-site. No half-migrations.
Knob-agnostic — DRY is not tunable.
References to read: references/layout.md (composition patterns), references/typography.md and references/color.md (token naming), plus the project's existing component library (scan before writing).
Output:
Next step: /tokens — lift the values you just centralized into the token spine (rung 2).
Refactoring pass — extracts repeated Tailwind class combos and markup into components, and lifts magic values into design tokens. Use when the codebase has obvious duplication, hardcoded hex values or
---name: extractdescription: Refactoring pass — extracts repeated Tailwind class combos and markup into components, and lifts magic values…---# .agents/skills/extract/SKILL.md概览
Refactoring pass — extracts repeated Tailwind class combos and markup into components, and lifts magic values into design tokens. Use when the codebase has obvious duplication, hardcoded hex values or pixel sizes, or when the user says \"clean this up\" / \"extract components\" / \"tokenize styles\". Invoke when the user asks for extract on their UI, or mentions 'extract' alongside design / UI / frontend work.
常见问题
从发布者处下载 .agents/skills/extract/SKILL.md,或复制路径后打开仓库。PlugMCP 只收录该技能,不托管文件。
发布者将它存放在 https://github.com/educlopez/ui-craft。
Claude、Cursor、Codex 和 Grok Build 可以读取你从发布者仓库添加的 SKILL.md。在聊天中发送技能的 GitHub 文件夹链接,Grok Bot 就会安装它。