Claude Code Skill Converts Stitch Designs to Next.js with Zero Pixel Drift

What This Tool Does
A Claude Code skill (slash command) converts Google Stitch AI designs to Next.js components while preventing the pixel drift that typically occurs when using Claude for this task. The tool addresses specific pain points where Claude would round values like text-[15px] to text-sm, swap exact colors like #1E293B for approximate Tailwind classes like bg-slate-800, lose image assets due to expired CDN URLs, or miss fonts.
Key Features and Process
- Extracts exact HTML/CSS from Stitch via MCP - no copy-pasting or screenshots
- Preserves exact pixel values throughout (text-[15px] stays text-[15px], not rounded to a Tailwind class)
- Downloads all images from the Stitch CDN before URLs expire
- Maps all 29 Stitch fonts to next/font/google properly
- Includes 5 mandatory verification checkpoints that compare output against source before moving on
- Generates a full audit report showing exactly what was preserved and what needed judgment calls
- Supports ShadCN/UI component mapping with exact style overrides
Installation and Setup
Install with: curl -sL https://raw.githubusercontent.com/yshaish1/stitch-to-nextjs/main/install.sh | bash
The installation also auto-configures the stitch-mcp server automatically.
Why Verification Checkpoints Are Necessary
The verification checkpoints address Claude's tendency to drift toward Tailwind conventions when left to its own devices. The skill's prompt explicitly flags this pattern and forces re-verification at each stage. While not foolproof, this approach catches common failure modes before they compound.
The tool is available on GitHub: https://github.com/yshaish1/stitch-to-nextjs
📖 Read the full source: r/ClaudeAI
👀 See Also

Dual-model architecture reduces token consumption by half for long conversations
A developer built a dual-model system where a small 'subconscious' model compresses conversation history in the background, allowing the main model to work with a curated ~35K context instead of 120K tokens of raw history. This architecture cuts token consumption roughly in half for sustained project work.

Two Claude Code Skills for Managing CLAUDE.md Configuration
A developer built two Claude Code skills to handle CLAUDE.md configuration: /cc-init creates lean configs for new projects, and /cc-optimize analyzes existing projects for bloat and issues. Both aim to reduce context overhead and improve instruction following.

Local Voice Control Setup for AI Agents on Apple Silicon
Setup local voice control for AI agents using Parakeet STT and Kokoro TTS on Apple Silicon for fast and cloud-independent interactions.
Using an adversarial Claude chat to catch kickoff ambiguities before they cost you
A developer added a second Claude chat whose only job is to adversarially review kickoffs for ambiguous specs and silent failures, saving an estimated $150-400 in Claude Code rework across a project phase.