design-variants

Installation
SKILL.md

Design variants

A board is one HTML page in the scratch directory. It shows 4-5 numbered variants of one thing, each built from the product's real design system and content, so the user chooses between real candidates and not between sketches. The pick is then built in the codebase, and the board is thrown away.

<skill-dir> is the directory holding this file. <scratch> is the session scratch directory, or mktemp -d. Never use a fixed /tmp path, because parallel sessions collide there.

Quick start

K=<skill-dir>/scripts
eval "$(bash $K/setup.sh)"                                    # once per machine: Playwright + Pillow, prints PW_MODULE and PY
cp $K/template.html <scratch>/board/contact.src.html          # write the variants into it
$PY $K/assets.py embed <scratch>/board/assets.json hero=public/photos/hero.jpg:1400x700 team=public/team/a.jpg:160x160
$PY $K/assets.py inline <scratch>/board/contact.src.html <scratch>/board/assets.json > <scratch>/board/contact.html
node $K/shoot.mjs <scratch>/board/contact.html                # per-variant desktop + mobile PNGs, errors, overflow

Look at every PNG, fix what you see, then publish contact.html (Claude Code: the Artifact tool, with a generic icon). Without an artifact host, hand over the preview.html that shoot.mjs writes next to the board.

Installs
6
Repository
alon710/configs
GitHub Stars
2
First Seen
Oct 2, 2026