Labs

Design Sketch

A skill for designing with an AI model in plain HTML and CSS. ASCII first, tuners only where I need them.

Status
Daily workflow · open source
Stack
Markdown skill + dependency-free Node CLI; single-file HTML/CSS output

When people discuss a concept in words, there is a challenge knowing whether the picture in their heads is aligned. The same words can mean very different things to different people. Someone may say “make the card feel lighter,” everyone nods, and much of the time they are picturing different implementations. That’s why designers may lean on pencil sketches and paper prototypes to get ideas out of our heads and into an artifact we can align on. Working with an AI model is no different.

I built a skill I call Design Sketch to get to that shared picture fast and keep it cheap. It works in any AI chat, there’s nothing to install on the viewing end, and it starts in plain text.

┌───────────────────────────────┐
│  ✕                              │
│  ┌─────────┐  Alex M.  ⭐Top Rated
│  │ photo   │  ★4.9 (142) ✓ checked
│  │ (round/ │  📍 Mission District
│  │  square)│                    │
│  └─────────┘                    │
│  ───────────────────────────── │
│  Bio: "I've been walking..."    │
│  6 yrs experience · Small/Med   │
│  ───────────────────────────── │
│  Availability                   │
│  [Mon][Tue][Wed][Thu][Fri]      │
│  Free today · 8am–6pm           │
│  ───────────────────────────── │
│  $28 all-in          [Book Now] │
│  ───────────────────────────── │
│  Reviews (142)          ⌄       │
└───────────────────────────────┘

How it works

At its core, it’s a skill comprised of a markdown file the agent reads and a small, dependency-free Node script (sketch-tool.js) that handles the mechanical file edits so the model doesn’t spend tokens thinking through them. Most ideas start in ASCII. We only move to a self-contained HTML and CSS file when I ask for it, and we only wire up live controls when I need to dial in specific values.

ASCII before pixels. Many AI design tools point the model straight at a visual canvas, but I went the other way. A text sketch is fast and costs almost nothing in tokens, so I can throw three layouts away before a heavier tool finishes rendering one. ASCII is where we figure out what goes where and what belongs together, before we spend time on styling.

Real HTML and CSS, not a design canvas. When it’s time for higher fidelity, the sketch is built in the actual medium. Figma runs on its own canvas and can’t replicate the full behavior of true CSS, real hover states, or browser layout. Agents already write good HTML and CSS. Building there means a sketch can pull in my real design tokens, respond to clicks, include accessibility, and behave the way the finished product will.

Tuners on only what I’m tuning. On the last ten percent of a design, my natural move is to open Chrome DevTools and tune the CSS by hand. That works for me, but I can’t expect every designer I hand a sketch to to live in DevTools. Without that escape hatch, I observed designers getting stuck in tedious prompt loops, asking the model to nudge a color, a border radius, or a spacing value one message at a time. I thought about building a full tuning app to solve that, then realized a lighter approach was better. The Node script injects a small <details> panel wired only to the CSS variables or classes I want to adjust, and leaves everything else alone.

A tuned sketch of the PawWalk dog-walker browse screen with the Design Sketch tuner panel open, showing live controls for primary color, badge accent color, heading typeface, square chips, card grid columns, and hero height, plus a Download values button.
A tuned sketch of the dog-walker browse screen. The tuner panel wires live controls to only the values I'm dialing in — color, type, chips, grid, hero height — and Download values hands them to the bake step.

The lifecycle stays visible in the filename. An exploration sketch (sketch-home.html) is disposable. Running the tune step forks a copy (sketch-home-tuned.html) with those live controls attached. Once we land on the right feel, the bake step locks the chosen values into static CSS, strips out the control panel, and saves a clean handoff file (sketch-home-reference.html). Leaving a live slider in a handoff file just invites people to re-litigate decisions that were already settled. If new feedback comes in later, we don’t reopen the reference file. We fork a fresh exploration and start the loop again.

Where it holds up, and where it stops

This workflow is smooth when I’m both the designer and the developer working on my own system. It wasn’t as clean the first time I handed sketches off to another development team. Their product was littered with Tailwind classes and a component library that didn’t match my sketch’s tokens, so we had to reconcile that mapping by hand during the build. The AI helped, but it couldn’t solve the mismatch on its own, and it definitely couldn’t handle both mapping the tokens and porting the code to production in a single pass. It reinforced something I believe about AI design and development in general. It works much better when both sides share a system.

I also never grow a sketch into the production build. A reference sketch is something I build production from, never something I evolve into production. The moment I start sketching inside the real codebase, I stop working lightly. I quit throwing variants away, I start protecting code, and the speed is gone. To keep iterations cheap, I’ll often pull a snapshot of real data into a local JSON file so the sketch runs offline without touching an API or database.

It’s also just a sketching tool. It’s good for roughing out an idea, testing a wireframe, and tuning a few details, and that’s all it tries to do. It doesn’t replace the design process upstream. The dog-walker screens shown here came out of a stack of work the skill never touched: market research, personas, a task inventory, scope cuts, an IA sitemap, and journey variants. The sketch is where those decisions get a picture, not where they get made.

What I’m still working out

The biggest open question for me is collaboration. I treat a sketch the way I treat code, as something you version in Git and iterate on together. That feels natural to me, but it isn’t always natural for designers, and I’m still figuring out what that handoff should feel like.

Annotation is the piece I keep coming back to. A sketch is good at showing an idea, but it’s not yet good at being marked up. When I share one with a team, I want them to point at an element and leave a note right on it, the way you’d scribble in a margin. Right now the feedback usually ends up in a separate paragraph that the model has to map back onto the screen. The skill already includes an overlay that lets you hover an element and press C to copy its ID for your next prompt. Letting people pin notes directly to those elements feels like the next step.

I’ve also experimented with moving sketches into Figma for folks who prefer working on a canvas, which led me to build a plugin called Rosetta (more on that in a future lab). For my own work, though, I keep staying in HTML and CSS. Editing the real material by hand still beats round-tripping through a canvas and losing fidelity along the way.

The skill is open source on GitHub. If you design with AI, I’d encourage you to download it, try it on a real problem, and let me know what you think or where it breaks for you.