sketch-draw

Generate frontend UI code from Sketch Measure export ZIPs within a rect region.

5|Updated Mar 3, 2026
One-click install
npx skills add https://github.com/YamadaAoi/mcp-sketch --skill sketch-draw
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sketch-draw
Source: https://github.com/YamadaAoi/mcp-sketch/tree/main/skills/sketch-draw
Command: npx skills add https://github.com/YamadaAoi/mcp-sketch --skill sketch-draw

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Converts Sketch Meaxure export ZIPs into accurate frontend code by extracting real layer structure, cutout assets, and a scoped region definition so the AI can generate high-fidelity UI.

Core Features & Use Cases

  • Rect-scoped drawing: Generates code only within a required rect region to support component-by-component rendering.
  • Layer-accurate foundation: Forces a prior analyze step and uses the returned artboard data as the only source for code generation.
  • Workflow-safe automation: In sketch-workflow mode, runs silently and ends with DRAW_SUCCESS to enable unattended batch generation, avoiding iterative confirmation loops.

Quick Start

Ask the AI to use sketch-draw with the Sketch export ZIP, provide the required page name, artboard name, and rect region, then generate the corresponding frontend code.

Frequently Asked Questions about sketch-draw

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert Sketch Meaxure exports into frontend UI code?

Converting Sketch Meaxure exports into frontend UI code requires providing the export ZIP, page name, artboard name, and a mandatory rect region to generate accurate components from the extracted layer structure.

What is rect-scoped rendering for design-to-code generation?

Rect-scoped rendering generates frontend code only within a specific rectangular region of a Sketch artboard, enabling component-by-component rendering and optionally excluding child rects to prevent duplicate output.

Do I need to analyze the Sketch ZIP file before generating UI code?

Yes, you must invoke the analyze tool prior to generation. The returned artboard data serves as the exclusive layer-accurate foundation for the subsequent frontend code creation.

Can I automate batch UI code generation from Sketch layers without manual confirmation?

Yes, in sketch-workflow mode the process runs silently and ends with DRAW_SUCCESS, enabling unattended batch generation from Sketch layers while avoiding iterative confirmation loops.

How do I exclude specific elements when generating code from a Sketch artboard region?

You can exclude specific elements by defining child rects within the mandatory rect input, which prevents duplicate rendering of nested components during the frontend code generation.

What are the limitations of generating UI code from Sketch layer structures?

Generation is limited to a strict rect scope and requires prior layer analysis, meaning it cannot render entire pages at once and relies entirely on the accuracy of the extracted Meaxure ZIP data.