UI Slicing — Design skill for Claude Code
Slice any UI reference image (Pinterest, Dribbble, screenshots) into pixel-perfect front-end code.
How to install UI Slicing
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open viesloxy/ui-slicing and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What UI Slicing does
Slice any UI reference image (Pinterest, Dribbble, screenshots) into pixel-perfect front-end code. Agent skill + toolkit with section analysis, design-token extraction, font matching, screenshot diffing, and an anti-AI-slop checklist. Works with Claude Code, Codex, Gemini, ChatGPT, pi.
Alternatives in Design
- Theme Factory — Style artifacts with professional themes including 10 pre-set color/font combinations 94.1k ★
- Figma Implement Design — Translate Figma designs into production-ready code with pixel-perfect accuracy 14.6k ★
- Studio — Launch the local design Studio — a live token editor over the latest extraction 3.6k ★
README
🎯 UI Slicing — pixel-perfect UI replication from any reference image
An [Agent Skills](https://agentskills.io)-compatible skill + toolkit that turns a UI reference image — a Pinterest pin, a Dribbble shot, a SaaS screenshot, anything — into **pixel-faithful front-end code**, with a built-in **anti-AI-slop system** that keeps generated output from drifting into generic "AI look".
Works with: **pi · Claude Code · Codex · Gemini · ChatGPT** (any agent that can read a SKILL.md and run Python).
Why
AI-generated UI fails in two predictable ways:
- Generic defaults — it builds what such a design usually looks like (Inter everywhere, purple gradients, 3-card grids) instead of what the image shows.
- Lazy approximation — right structure, wrong numbers: spacing that "looks about right", colors that are close but not the color.
This skill attacks both: **measure, don't guess** and **the reference wins**.
What's inside
ui-slicing/
├── SKILL.md # the 6-step workflow the agent follows
├── references/
│ ├── analysis-protocol.md # measuring technique: px → tokens, font identification + substitution table
│ └── anti-slop-checklist.md # fidelity gates, injection tells, quality floor, self-critique
└── scripts/
├── fetch_reference.py # download reference from URL (og:image → Pinterest/Dribbble/blog pages)
├── slice_reference.py # analyze: dimensions, DPR, palette (hex + coverage), section detection; save zoomed band crops
└── compare_screens.py # side-by-side + diff heatmap + per-band diff score (fix worst bands first)
Requires [Pillow](https://pypi.org/project/Pillow/) for the scripts: `pip install Pillow`
Install
**pi** — copy to the skills directory (or register the folder):
cp -r ui-slicing ~/.pi/agent/skills/
**Claude Code / Codex** — same Agent Skills format:
cp -r ui-slicing ~/.claude/skills/ # or ~/.codex/skills/
Related Skills
Figma Implement
Implement a Figma design as a pixel-perfect Shopify section, block, or snippet
Claude Code Clone Website Skill
Clone any website pixel-perfect with Claude Code. A Claude Code skill that reverse-engineers a live page throu
Fec Debug
Front-end problem diagnosis and repair: covering build failures, runtime errors, UI exceptions, and interface
Sprezzature
sprezzature is a set of Claude / OpenCode skills with a curated design system for a front-end stack. It covers
Design Dna
Turn reference UIs (images, screenshots, URLs) into quantified Design DNA JSON—tokens, qualitative style, visu
Contract Checker Skill
contract-checker Skill - Contract analysis, task & schedule extraction, execution tracking, and visual Gantt a
Related Agents
Canva React Converter
Specialized agent for autonomous Canva-to-React component conversion. Uses Canva screenshots and locked design
Flutter Design Iteration Coordinator
Use this agent when coordinating the complete design-to-implementation workflow for Flutter apps, from initial
Figma Fse Converter
Specialized agent for autonomous Figma-to-WordPress FSE theme conversion. Extracts design systems, generates t