dwikydiasl

Slice Mockup HTML — AI skill for Claude Code

AI community

Claude skill that slices mockups (PNG, SVG, Figma) into pixel-perfect, responsive HTML.

How to install Slice Mockup HTML

This entry records only its repository, not the path inside it, so there is no exact command to give. Open dwikydiasl/slice-mockup-html and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Slice Mockup HTML does

Claude skill that slices mockups (PNG, SVG, Figma) into pixel-perfect, responsive HTML. Faithful to the design, no AI slop.

Alternatives in AI

  • Repomix — 📦 Repomix is a powerful tool that packs your entire repository into a single, AI-friendly file 22.7k ★
  • Dashboard Icons — 3,400+ curated icons and logos for dashboards and AI agents 8.9k ★
  • Open Pencil — AI-native design editor 8k ★

README

slice-mockup-html

A Claude skill that slices a mockup into **pixel-perfect, responsive HTML** that stays faithful to the design: no creative additions, no generic "AI look".

Give it a **PNG, an SVG, or a Figma file (via MCP)**. It asks how you want the output, audits the design before writing any code, then builds semantic, BEM-structured HTML/CSS for desktop, tablet, and mobile.

Status: v1.0.0. . Feedback and examples are welcome.

Why

Generated HTML often looks "close" but drifts from the design: guessed fonts, rounded spacing, invented sections, default purple gradients. This skill treats the mockup as the only source of truth and checks the result against it.

Features

  • Two upfront questions: single file (inline CSS/JS plus assets/) or separate html/css/js files; vanilla CSS, Bootstrap (CDN), or Tailwind (CDN).
  • Audit before coding: fonts, colors, sizes, weights, spacing, radius, shadows, assets. Every value is marked measured or estimated.
  • Three input types: Figma via MCP (exact values), SVG (parsed from the XML), PNG (measured with pixel analysis).
  • Pixel perfect at the mockup width, responsive for tablet and mobile with minimal derived changes.
  • Semantic HTML and BEM (BEM is not used with Tailwind).
  • Icons are always SVG, cleaned and size-checked.
  • Anti-slop rules: nothing that is not in the mockup, text copied exactly, no stock photos, no inline styles, no unnecessary libraries.
  • Interactive components (tabs, accordion, pagination, filter) get working behavior only when the mockup contains the content they need; otherwise they stay static and are reported.
  • Verification: renders the result and compares it with the mockup when the environment allows it.
  • Short final report: unidentified fonts, estimated values, placeholders, and anything derived.

Install

The skill is the folder [`slice-mockup-html/`](slice-mockup-html). Its folder name matches the `name` in `SKILL.md`, which Cl