Skip to content
Black Friday · XNote Write $169, save $68 · ends inBlack Friday · $169, save $68Black Friday $169$1690d19h09m33sShop now →

Sketch to Claude Code: Build an App From a Paper Drawing

Claude Code can turn a paper drawing into a clickable first draft. How to draw for the model, what to write beside the screens, and which file to send.

14 min read

Sketch to Claude Code: a hand-drawn two-screen to-do app, with arrows labelled Picture (from the drawing) and Text (from the written rules) leading to a Claude Code prompt, under the words Draw the layout. Write the rules.

In May 2026, a developer drew a to-do app on paper, photographed it and gave Claude Code a file reference, @sketch-todo.png, plus seven words: "build this app. Use bun (not npm)." The demo repo's README calls that "the entire prompt" and says "The sketch carried all the spec." (AyyazTech on GitHub, self-reported, one run.)

So yes, you can go from sketch to Claude Code with plain pen and paper. Whether you get a useful first draft or a confident guess depends on how you draw for the model, what you write beside the drawing, and how you run round two.

Quick answer

Claude Code reads images, so it can build from a paper sketch: drag a photo of the page into the terminal, paste it, or give it a file path. Send a PNG or JPEG, not an SVG. Draw numbered screens with real labels and arrows, write the rules beside them, and ask Claude to list its questions before it builds. Expect a first draft, not a finished app, and fix it by marking up the same page.

Looking for the Sketch design app instead? Sketch documents its own MCP server for Claude Code at sketch.com. This guide is about a drawing on paper.

Can Claude Code build an app from a hand-drawn sketch?

Yes. Claude Code reads images, so a photo of your drawing (or a page exported from a smart pen app) can become a clickable first draft. Drag the file into the terminal, paste it, or type its path in your prompt.

Anthropic's own sample prompts include "Generate CSS to match this design mockup" (common workflows, checked November 7, 2026), and a sketch is a rougher mockup. Other sketch to app AI tools take a picture or an on-screen drawing too (v0, Lovable, tldraw, Excalidraw); Claude Code builds in your own repo.

So expect a first draft. Sketch2Code, a research benchmark of 731 sketches of 484 web pages, tested ten models and found that "even the most capable models struggle to accurately interpret sketches and formulate effective questions" (NAACL 2025). The paper dates from October 2024, so read it as a warning about the task, not a score for today's models. Konigi's Michael Angeles, who makes printable sketch grids for this workflow, agrees: "It's a starting point, not the finished thing." (Konigi, August 24, 2026)

Which image files does Claude Code read?

Claude Code sees PNG, JPEG, GIF and WebP files as pictures (Anthropic's tools reference). An SVG is a text file, so Claude reads it as code, not as a drawing, as Fello AI's guide spells out.

Two traps. If your iPhone shoots HEIF (Settings, Camera, Formats, High Efficiency, per Apple), pick Most Compatible or send a JPEG or PNG: the tools reference lists .heic among the files its Read tool refuses, though Fello AI reports that recent versions convert HEIC where they can. And big images get scaled down, to 2,576 pixels on the long edge for Claude 4.7 and later (vision docs), so crop to the screens and write labels large. The same docs warn that Claude "might hallucinate or make mistakes when interpreting low-quality, rotated, or very small images under 200 pixels," so shoot the page flat, in good light.

How do I draw a wireframe on paper so an AI can build it?

Draw for a reader who has never seen your app. Number every screen, write the real words on every button and field, draw an arrow for every tap, and put a box marked NOTE around anything that is an instruction rather than part of the screen.

Real labels carry the meaning. "Email," "Save" and "$12.40" tell the model what each field holds; a squiggle tells it to make something up. A hand-drawn wireframe with real words is a spec. One with squiggles is a mood board.

The NOTE box replaces color. tldraw's public Make Real prompt has to tell its model that "Annotations are commonly made in the color red. Do NOT include any of those annotations in your final result." (make-real-starter, app/prompt.ts). A pen has one ink color, so a box and a word do that job, as long as your prompt says so. A circle marked FIX means "change this" and belongs to round two.

Ten marks to draw so a model can build from your sketch A legend of ten hand-drawn wireframe marks: screen number, real label, arrow, a boxed note to the AI, image box, wavy body text, list, tab bar, modal and a FIX circle, each with one line on what it tells a model. With one ink color, a box marked NOTE (here: NOTE: fake data is fine) does the job red ink does. Sample notes. Ten marks to draw for the model Sample notes. One ink color, so notes get a box. 1 Screen number The order users see Save Real label Not a squiggle Add 2 Arrow This tap goes there NOTE: fake data is fine Note to the AI Not on the screen Image A picture goes here Body text Fill with sample text List Repeats like this Tab bar Always visible Modal Opens on top FIX Change request Round two only Say what the marks mean in your prompt.
Ten marks to draw for the model. With one ink color, a box marked NOTE does the job red ink does in tldraw's prompt.

The paper can help too. Konigi's free US Letter grids have 12 columns and corner squares that may help fix keystone distortion (the trapezoid a page becomes when you shoot it at an angle). Angeles reports that "Claude Code reads the column numbers and row counts off the page." Keep one flow of two or three screens per page.

What should I write beside the drawing?

Write the rules as plain lines beside the screens, not inside them: the goal, what each screen does, the rules, what is out of scope and the open questions.

The two-channel page: the drawing reaches the agent as a picture, the words reach it as text. Draw the layout, write the rules.

Summing up interviews with UI and UX experts, the Sketch2Code authors wrote that "it is difficult to select visual components and specify visual details with natural language alone" (the paper, O4). So layout goes in the drawing, and rules go in words: "sort by due date, overdue first" is one line of text and nearly impossible to draw.

Put each under a label, one item per line: GOAL, SCREENS, RULES, OUT and Q. Add acceptance checks as empty checkboxes; they become your test list.

Sample notes: the rules beside a two-screen to-do app

GOAL: a one-tap to-do list
SCREENS: 1 Today, 2 New task
RULES: + Add opens 2. Save returns to 1.
OUT: no login
Q: sort by due date?
[ ] Save returns to 1

Written rules travel on every route: Claude reads them off a photo, or as text in a spec.md next to the image, typed or exported. Print the names your code will use (fields, buttons) in capitals, and check their spelling after capture.

Sketch to Claude Code on a two-channel page: the drawing as a picture, the rules as text A sample paper page with two hand-drawn app screens, Today and New task, joined by arrows, and the written rules beside them: goal, screens, rules, out of scope, one open question and one acceptance checkbox. The drawing is marked Picture: the layout; the written lines are marked Text: the rules. A photo or a PNG carries both; a typed spec, a Markdown export or a connector carries the words, not the layout. The top list item is real XNote pen strokes; everything else is sample notes. Sample notes. The top list item is real XNote pen strokes. Picture: the layout 1 Today + Add 2 New task Task Due Save NOTE: fake data is fine Text: the rules GOAL: a one-tap to-do list SCREENS: 1 Today, 2 New task RULES: + Add opens 2 Save returns to 1 OUT: no login Q: sort by due date? Save returns to 1 Photo or PNG Claude sees both channels Typed spec, Markdown or a connector Claude gets the words, not the layout
The two-channel page. The drawing travels as a picture; the rules beside it travel as text, even on routes that carry no picture.

What prompt should I give Claude Code?

Tell Claude Code what your marks mean, what to build it with, and to ask its questions before it writes any code.

The round-one prompt

@page.png @spec.md Build this as one HTML file with fake data.
Numbered boxes are screens. Arrows are taps.
Text in a box marked NOTE is an instruction to you, not part of the screen.
A circle marked FIX is a change request.
Do not add screens I did not draw.
Before you build, list your questions and wait for my answers.

One HTML file keeps round one clickable in any browser. When you build for real, swap that line for your stack and package manager, the way the opening example named bun.

The last line matters most. tldraw's prompt tells its model to "take a guess," because "it's better for you to get it wrong than to leave things incomplete." That suits a one-click button. In a terminal you can answer back, and in the Sketch2Code study seven of eight UI and UX experts preferred the agent that asked questions. Read Claude's questions critically, though: the same study found models weak at asking good ones.

Plan mode enforces the wait: "Claude reads files and proposes a plan but makes no edits until you approve." Start with claude --permission-mode plan, or press Shift+Tab until the status bar shows plan mode (Claude Code docs). Answer in the terminal, then copy the decisions onto the page under Q, so the sheet stays the spec.

How do I get a paper sketch into Claude Code?

Take a phone photo of the page, or export it from a smart pen app, and attach the file. A photo or a PNG gives Claude Code a picture, an SVG gives it code, and a text-only route gives it your words and at most a text outline of the drawing.

The phone photo is the fair default: it is free, works on whatever paper is near and works today. Its costs are the camera step (glare, angle, which shot is current) and a new photo every round.

A smart pen removes the camera step. Disclosure: we make one. XNote Write is a smart pen and notebook: you write with real ink on XNote paper and your handwriting appears in the XNote app, searchable and understood by AI. Here is how the pen knows where it is on the page.

The XNote app exports a page as a PNG image, an SVG, a handwriting PDF or Markdown text. The picture is drawn from the pen's strokes, so there is no photo to take, and the words you wrote are turned into text you can check first. The file is on your phone, though, so it still has to reach the computer running Claude Code, by AirDrop or the share sheet, like a photo.

One caution: when XNote turns a page into text, it treats boxes joined by arrows as a diagram, and a sketch as a drawing. Words written inside the screens may not reach the page text at all: XNote keeps them with the diagram, as Mermaid code (a text format for flowcharts), or only in a short description of the sketch. Rules written as plain lines beside the drawing stay in the text.

What Claude Code receives from each route
Route The drawing arrives as Your words arrive as Capture
Phone photo (JPEG) A picture Letters in the picture Camera, any paper
XNote app: PNG Image A picture drawn from your strokes Letters in the picture Pen, XNote paper
XNote app: Markdown Not as a picture Text you can edit Pen, XNote paper
A spec.md you type Not included Text you can edit Keyboard
XNote connector (coming) Not included, or a one-line description Text Pen, XNote paper

XNote rows: XNote app 2.8.0 (October 8, 2026). Picture formats: Anthropic's tools reference, checked November 7, 2026. The connector is not out yet; its row describes how it works in development.

Skip the app's SVG export, which Claude Code reads as code. Attach the PNG for the drawing and the Markdown export as spec.md for the rules.

What will XNote's connector change?

An XNote connector for AI assistants is coming. It uses MCP (Model Context Protocol), the open standard that lets assistants such as Claude and ChatGPT read data from other apps. When it arrives, the connector will let an assistant search and read your pages, recordings, tasks and calendar. It only reads. Through XNote's connector, Claude will read what you wrote, not what you drew. For a drawing, export the page.

For this workflow, that means Claude Code will be able to read the written rules on your pages directly, with no export, so you could ask it to update spec.md from the RULES on your latest page. There is no date yet; meanwhile, here is how Claude reads handwriting today.

What should I check in a first draft?

Check five things before you ask for any change: the labels, the NOTE text, the links, invented screens and the sample data.

  1. Labels match. Handwriting can be misread. Fix the word on the page (write it larger) and in your next prompt, not only in the code.
  2. No NOTE text on screen. If "fake data is fine" became a heading, the model read your note as part of the screen. Say so.
  3. Every arrow is a link. Click every button. A dead button may mean an arrow was missed.
  4. No invented screens. Models fill gaps, and tldraw's prompt even asks them to. Remove what you did not draw.
  5. Fake data looks fake. "Sample task 1," not a real name or email address.

Then commit. A first draft is a baseline to diff against, not a keeper.

How do I change the app without redrawing everything?

Mark up the same page: circle what is wrong, write FIX and the change beside the circle, capture or export the page again, and ask Claude to apply only the FIX notes.

A circle is pointing, on paper. The Sketch2Code authors note that in real life "people can simply point to specific visual components by mouse or by finger." Write "v2" and the date at the top, and the page becomes the version history while git keeps the code history.

The round-two prompt: "Here is the updated page. Apply only the FIX notes. Change nothing else." A phone photo means a new shot every round and a guess about which one is current. On an XNote page, every round's marks stay on one copy of the page in the app, so once the pen has synced, the export is the latest round. A full sheet continues on a new page marked "from page 12."

Round two on the same page: circle it, write FIX, capture it again A sample paper page with two hand-drawn app screens, Today and New task, joined by arrows. At the top, v1 Nov 7 and, added in violet for round two, v2 Nov 8. A violet circle around the Due field and the note FIX: Due is optional mark the one change. Under the page, the round-two prompt: Apply only the FIX notes. Change nothing else. Then the loop: draw, capture, build, click, mark up, and an arrow back: capture again. Sample notes. Round two, on the same page Sample notes. Round-two marks in violet. v1 Nov 7 v2 Nov 8 1 Today + Add 2 New task Task Due Save FIX: Due is optional Round-two prompt Apply only the FIX notes. Change nothing else. Draw Capture Build Click Mark up Capture again
Round two happens on the same page. Circle it, write FIX, add v2 and capture the page again: the paper page is the version history.

Can I test a paper prototype with real users first?

Yes. Test the paper prototype of your app with a person first, playing the computer as they tap, then turn it into a clickable first draft for testers who are not in the room. "With a paper prototype, you can user test early design ideas at an extremely low cost," Jakob Nielsen wrote (NN/g, April 13, 2003).

Write what each tester did beside the screen they were on. On XNote pages, you can later ask the XNote app's AI chat "Which screen did testers get stuck on?" and get answers from what you wrote. AI chat is included, with usage limits.

Can I send a sketch to Claude Code from my phone?

Partly. The Claude app's Code tab can drive a Claude Code session on your own computer through Remote Control, where "Claude sees attached photos directly as part of your message" (Claude Code on mobile, checked November 7, 2026).

Your computer has to stay on with Claude Code running; the docs we read do not cover attachments in cloud sessions. With XNote, export the PNG in the XNote app on the same phone and attach it. No phone nearby? The pen stores up to 1,000 pages. Sync when you reconnect, then export.

Which route should you use?

Use a phone photo if you sketch now and then, a canvas tool if you draw on a screen, another pen's connector if the agent must fetch the drawing itself today, and XNote Write if you sketch on paper often and want to skip the camera.

If you sketch a few times a year, on whatever paper is near

A phone photo

Free, and it works today. Konigi's printable grids may help with the angle.

If you already draw on a tablet or laptop

tldraw Make Real or Excalidraw

Make Real's starter sends your selection to a model with your own OpenAI key. Excalidraw's Wireframe to code reads instructions written on the canvas.

If you want a design canvas that hands off to Claude Code

Claude Design

Anthropic says product managers "can sketch out feature flows and hand them off to Claude Code." (April 17, 2026)

If the agent must fetch the drawing itself today

Nuwa Pen, or a reMarkable community server

Nuwa Pen's connector has a "Get Note Image" tool. remarkable-mcp renders pages as PNG or SVG; pass --read-only to turn off its write tools.

If you sketch on paper often

XNote Write

Pages export as a PNG for the drawing and Markdown for the rules, with no photo to take. An XNote connector for AI assistants is coming. See XNote for founders.

The written rules reach Claude on every route above; the drawing reaches it on some. So draw the layout, and write the rules.

Where does XNote Write fit for app sketches?

XNote Write fits if paper is where you already think through screens and you want to skip the camera.

The pen captures handwriting only on XNote paper: XNote notebooks, or pages you print from the XNote app on a laser printer. For sketches, print the app's Dot Grid pages on a laser printer at 100%, on US Letter or A4; the pages are free, and you pay only for paper and toner. Inkjet prints can't be read by the pen.

No laser printer? A print shop such as FedEx Office or Staples works; ask for laser printing at actual size. A black-and-white letter page was 24 cents at FedEx Office and 34 cents at Staples for small online orders, checked November 7, 2026 (which paper works and how to print it).

One thing it is not: a recorder. The pen does not record audio. It has no microphone.

Don't buy XNote Write if

  • You sketch on whiteboards and napkins. The pen reads only XNote paper, so take a photo.
  • You sketch a few times a year. A phone photo is free.
  • You need an agent to fetch drawings through a connector today. XNote's connector is not out yet and will carry words, not drawings.

Still skeptical? Fair. Read our XNote Write review first.

The XNote smart pen upright beside a closed XNote notebook

XNote Write

A smart pen and notebook for people who think on paper. Pages export as images or text in the XNote app.

The pen captures handwriting only on XNote paper.

See XNote Write

Sketch to Claude Code: quick questions

Does Claude Code support image input?

Yes. Drag an image into the terminal, paste it, or put its file path in your prompt. Claude Code sees PNG, JPEG, GIF and WebP files as pictures and reads short PDFs whole (Anthropic's tools reference, checked November 7, 2026). It reads an SVG as code, as Fello AI's guide notes, so send a PNG.

Why won't my image or screenshot paste into Claude Code?

Check the key first: on a Mac it is Ctrl+V, not Cmd+V, unless you use iTerm2, and on Windows and WSL it is Alt+V (interactive mode docs). If paste still fails, drag the file in or type its path. An iPhone HEIF photo may be refused, so send a JPEG or PNG.

Will XNote's connector let Claude see my sketch?

No. Through XNote's connector, Claude will read what you wrote, not what you drew. For a drawing, export the page. The connector is coming, with no date yet. Today, attach a PNG from the XNote app to Claude Code, with the written rules as text.

Do I need special paper to sketch for Claude Code?

Not for a phone photo: whatever paper and pen you have will do. XNote Write is different. The pen captures handwriting only on XNote paper: XNote notebooks, or pages you print from the XNote app on a laser printer. Inkjet prints can't be read by the pen.

Is code built from a sketch ready to ship?

No. Check that every label matches your page, no NOTE text reached a screen, every button links, no screen was invented and the data is fake. Then read the code and run your usual tests. Anthropic's vision docs say to "carefully review and verify Claude's image interpretations."

Do I need a paid plan for Claude Code?

Yes. Anthropic's setup docs say Claude Code "requires a Pro, Max, Ultra, Team, Enterprise, or Console account"; the free plan does not include it. A Console account is billed by API use. Pro was $20 a month, or $17 a month billed yearly, on Anthropic's pricing page on November 7, 2026.

Sources and method

This guide is built from Anthropic's documentation, the Sketch2Code study, the XNote app 2.8.0 export options and the published examples above. The to-do app is sample notes, except one list item in the two-channel figure, which is real XNote pen strokes. Third-party results are their authors' own reports. Checked November 7, 2026 unless dated.

  1. Anthropic: Claude Code workflows, interactive mode, tools, mobile, setup; vision; pricing; Claude Design (April 17, 2026)
  2. Sketch2Code, NAACL 2025 (arXiv, October 2024); Nielsen, NN/g (April 13, 2003)
  3. tldraw make-real-starter; Konigi (August 24, 2026); AyyazTech (May 20, 2026)
  4. v0 (November 6, 2026); Lovable; Excalidraw+
  5. Model Context Protocol, introduction; Nuwa Pen; remarkable-mcp, a community project (November 5, 2026)
  6. Apple, HEIF (December 5, 2025); Fello AI (November 7, 2026)
  7. XNote app 2.8.0 export options (October 8, 2026); XNote printables; print shop prices from FedEx Office and Staples online orders (November 7, 2026)

Last updated November 2026. Claude Code features, keys and plans checked November 7, 2026.

Your cart

The XNote Write set with the XNote Spiral notebook and a violet ribbon
Black Friday at XNote

A free Spiral notebook with every XNote Write.

XNote Write is $169, with a free Spiral notebook and 1 month of Online Meeting Recorder Pro until December 1. Get the offer now, before it's gone.

By signing up you agree to get marketing emails from XNote. Unsubscribe anytime.
Shop it now · $169