- name
SKILL.md
Le fichier du skill reste dans le dépôt de l'éditeur.
Collez la commande copiée dans un terminal. Elle installe ce SKILL.md dans cet agent.
npx skills add educlopez/ui-craft --skill extract -a cursor -yCollez la commande copiée dans un terminal. Elle installe ce SKILL.md dans cet agent.
npx skills add educlopez/ui-craft --skill extract -a claude-code -yCollez la commande copiée dans un terminal. Elle installe ce SKILL.md dans cet agent.
npx skills add educlopez/ui-craft --skill extract -a codex -yCollez la commande copiée dans un terminal. Elle installe ce SKILL.md dans cet agent.
npx skills add educlopez/ui-craft --skill extract -a grok -yEnvoyez le message copié dans un chat Grok Bot. Le Bot récupère ce SKILL.md sur GitHub et l'ajoute aux skills que partagent tous vos Bots.
Install this skill: https://github.com/educlopez/ui-craft/tree/HEAD/.agents/skills/extractDe l'éditeur
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.mdVue d'ensemble
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.
FAQ
Téléchargez .agents/skills/extract/SKILL.md auprès de l'éditeur, ou copiez le chemin et ouvrez le dépôt. PlugMCP répertorie le skill et n'héberge pas le fichier.
L'éditeur le maintient sur https://github.com/educlopez/ui-craft.
Claude, Cursor, Codex et Grok Build peuvent lire un SKILL.md que vous ajoutez depuis le dépôt de l'éditeur. Grok Bot l'installe lorsque vous envoyez dans un chat le lien du dossier GitHub du skill.