graft
БесплатноБез исполняемых скриптовНе проверенApply a previously extracted design taste profile to a local project. Given a {domain}.json from a prior /extract run and the user's own project, diffs the…
от mevarx113 установок в других каталогахОб этом скилле
Graft — Apply Extracted Design Taste to a Local Project
This skill takes a previously extracted taste profile ({domain}.json from /extract) and applies it to the user's own local project. It's designed for the common case of an AI-coded ("vibe coded") project that works functionally but has generic/inconsistent design defaults (Inter font, purple gradient, arbitrary radii, default shadows) and needs its visual taste replaced with a deliberate one.
When to activate
Trigger this skill when the user wants to apply a previously extracted design taste to their project:
- Explicit:
/graft <domain>or/graft <path-to-json> - Natural language: "make my project feel like linear.app", "apply the taste I extracted", "replace my color theme with X's", "port the design from X to my project"
- Follow-up after extract: "now apply it", "use those tokens in my project"
If no {domain}.json exists for the referenced domain, tell the user: "I need a taste profile to graft from. Run /extract <url> first to generate one, then try /graft <domain> again." Alternatively, offer to run /extract as a sub-step (with permission, since it invokes a separate skill).
Do NOT activate for: "redesign my project" (too broad — graft is token-level only), "build a new project like X" (use extract + manual design, not graft), "fix my CSS" (debugging, not taste application).
Hard Boundary — Token-Level Only
This is non-negotiable. Read references/token-boundary-guard.md before any editing.
graft operates on design tokens only:
✅ Token-level (allowed)
- Color values (hex, rgb, hsl, CSS custom properties)
- Spacing values (margin, padding, gap — the values, not the properties)
- Border-radius values
- Box-shadow / border values
- Typography: font-family, font-weight, font-size, line-height, letter-spacing
- Transition/animation: duration, easing, delay values
❌ NOT token-level (forbidden)
- Rewriting copy, text content, or microcopy
- Changing component structure, layout (flexbox/grid direction), or DOM hierarchy
- Adding, removing, or restructuring HTML/JSX elements
- Touching business logic, data fetching, state management, or routing
- Deleting or renaming files outside of style/token config files
- Adding new components or removing existing ones
- Changing responsive breakpoints or layout strategies
Guard step
Before writing ANY change, classify each proposed edit:
- Is it modifying a value (color, size, weight, radius, shadow, easing)? → ✅ Allowed
- Is it modifying a property or structure (adding
display: flex, changinggrid-template-columns, wrapping in a new div)? → ❌ Refused - Is the file a style/token config file (CSS, Tailwind config, theme file)? → ✅ Likely allowed
- Is the file a component/logic file with inline styles mixed in? → ⚠️ Prefer extracting to CSS variables over editing inline. Flag for user review.
If ANY proposed edit fails this classification, remove it from the change plan and note why.
Workflow
Phase 1 — Inventory the Local Project
Read: references/inventory-project.md
Scan the project for its current design tokens. Detect the stack:
Look for centralized token sources:
globals.css,global.css,index.css,variables.css,theme.css- CSS files with
:rootor--custom properties tailwind.config.js,tailwind.config.ts,tailwind.config.mjs- Theme files:
theme.ts,theme.js,tokens.json - shadcn:
components.json+globals.csswith HSL variables - CSS-in-JS:
styled-componentsThemeProvider,emotiontheme objects
Extract current token values using the same categories as
/extractStep 1:- Colors (backgrounds, text, accents, borders)
- Typography (families, sizes, weights, line-heights)
- Spacing (scale, section gaps)
- Radii
- Shadows
- Motion (transitions, easings)
Ask user to confirm if the detected stack is ambiguous:
"I detected [plain CSS / Tailwind / CSS-in-JS / shadcn]. Is that correct, or is there a different token source I should look at?"
Phase 2 — Diff Against Target
Read: references/diff-and-plan.md
Load the target {domain}.json. For each token category:
- Compare current project value(s) against target value(s)
- For every mismatch, don't just note the numbers — state the reasoning from the target's Taste DNA
Example diff:
Your border-radius is
12pxeverywhere; target uses2pxon 47/47 interactive elements. The source taste principle is "precision-over-softness" — 2px signals engineering tooling rather than consumer friendliness. Recommend: adopt2pxfor buttons and inputs,4pxmax for cards.
Phase 3 — Change Plan (Dry Run)
Always show this before any edit. Nothing is written yet.
Produce an itemized plan grouped by token category:
## Change Plan — Grafting {domain} taste onto {project}
### Colors
| File | Token/Property | Current | Proposed | Rea
Установить graft в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл graft?
Apply a previously extracted design taste profile to a local project. Given a {domain}.json from a prior /extract run and the user's own project, diffs the project's current design tokens against the target taste, proposes a change plan with per-line reasoning, and — on explicit approval — applies token-level edits only. Never touches content, copy, layout structure, or business logic. Operates on design tokens exclusively: color values, spacing scale, border-radius, shadows, typography (font-family, weight, size, line-height), and transition/easing values. Triggers on '/graft <domain>', '/graft <path-to-json>', 'make my project feel like X', 'apply the taste I extracted to my project', 'replace my color theme with X's', 'port the design from X to my project'. If no prior extract exists for the referenced domain, tells the user to run /extract first.
Как установить скилл graft?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл graft запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic