Create

Sign in to ReadmeX

or

How we handle your data: Privacy Policy

ReadmeX

Your AI reading companion

What would you like to catch up on?

Pick a briefing, or ask your own question.

Your community and people briefings stay personal to you.

Story

Open-source Claude Code skill draws images stroke by stroke

AI summary

Creator jchapuis published drawing-skill, a Claude Code extension that turns a reference image into explicitly written stroke coordinates rendered by a headless tldraw canvas, without using an image model. Its staged workflow compares renders with the source and asks a second Claude instance to describe the result; the creator says one object consumes roughly 350,000–450,000 tokens, while a full scene can require several million.

In-depth insight

The project presents a distinct way for Claude Code to produce vector-like drawings through coordinate generation and iterative visual checks rather than a dedicated image model.

This is drawing, a Claude Code skill. You put a picture in a folder as subject.png and ask Claude to draw it. No image model is involved. Claude types every stroke as coordinates in a Python script, and a headless tldraw canvas renders them. The video replays the ~350 strokes it typed for this house, in order. It works the way a drawing class teaches: a few loose lines first, then straight lines to get the proportions right, then colour, ink, and a finish (watercolour here). After each stage it compares its render with the subject before going on. One of the checks is a second Claude that never sees the subject and only describes what the drawing shows. If that description doesn't match the subject's, it's back to work. How Claude helped build it: I built the skill with Claude Code as well. I ran it on subject after subject (a rooster, a dog, a portrait, a bicycle, this house), and each time a drawing went wrong, we turned the failure into a rule or a check. Keeping it honest took the longest. Left alone, Claude will happily write a loop or trace the photo and call that a drawing. So the pen now refuses any script whose strokes come from a loop, another file or mostly computed numbers. Every point is typed out. Caveats: It's free and open source (MIT). Install: /plugin marketplace add jchapuis/drawing-skill /plugin install drawing@drawing-skill Repo, gallery and how it works: https://github.com/jchapuis/drawing-skill Feedback welcome, maybe you find this experiment interesting. submitted by /u/jchapuis [link] [comments]

#Claude Code#Claude#drawing-skill#tldraw

Original · 1 min readRead the original
Group chat

No comments yet. Start the conversation.