friction-log
File contributor or agent papercuts as GitHub issues labeled friction, or investigate those issues as the daily friction-log…
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\"
Claude Code
$ npx -y skills add educlopez/ui-craft --skill extract --agent claude-code
Codex
$ npx skills add educlopez/ui-craft --skill extract -a codex -y
Cursor
$ npx skills add educlopez/ui-craft --skill extract -a cursor -y
Gemini CLI
$ npx skills add educlopez/ui-craft --skill extract -a gemini-cli -y
GitHub Copilot
$ npx skills add educlopez/ui-craft --skill extract -a github-copilot -y
OpenCode
$ npx skills add educlopez/ui-craft --skill extract -a opencode -y
Windsurf
$ npx skills add educlopez/ui-craft --skill extract -a windsurf -y
name: extract description: "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."
<!-- HARNESS MIRROR — do not edit here. Canonical source: skills/ or commands/. After editing source, copy into cli/assets/<harness>/ and repo-root harness mirrors. -->
**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:**
**Step 2 — Match the project's conventions, don't impose new ones:**
**Step 3 — Anti-Slop Test on every new component** (from SKILL.md):
**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**: 1. The new component file(s) + any token additions. 2. A table showing every call-site update:
| File | Before | After | | --- | --- | --- |
3. A one-line delta: "Extracted N components, M tokens. Call-sites updated: X."
**Next step:** `/tokens` — lift the values you just centralized into the token spine (rung 2).
Ship designer-grade UI by default. A design engineering system for AI coding agents — install it as a skill or as the ui-craft CLI, and your agent starts designing like it has taste. Ask for a dashboard, get one you'd put in production.
File contributor or agent papercuts as GitHub issues labeled friction, or investigate those issues as the daily friction-log…
Dense dashboard / admin / Bloomberg / Retool / data-heavy internal tools. Locked knobs: CRAFT=7, MOTION=3, DENSITY=9. IBM Plex +…
Editorial / magazine / long-form / Medium / Substack / content-heavy UIs. Locked knobs: CRAFT=9, MOTION=4, DENSITY=3. Serif…
Minimal / clean / Linear / Notion / Vercel / whitespace-heavy UIs. Locked knobs: CRAFT=8, MOTION=3, DENSITY=2. Monochrome + one…
Use for UI design and implementation work to avoid generic AI-looking interfaces. Provides anti-slop rules, a required discovery…
Responsive layout pass covering breakpoints, touch targets, safe areas, and fluid type. Use when the UI has layout or touch…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.