site-designlisted
Install: claude install-skill titouannwtt/claude-tools
# site-design
A script loads the page in Chromium (Playwright), measures the computed styles of the visible elements, and writes
screenshots and a summary. Zero model tokens for the measurement; you then read `summary.md` and look at the screenshots.
## Commands
Script: `~/.claude/skills/site-design/scripts/site_design.py`. Output: JSON on stdout.
- `analyze "<url>" --out <folder>`: writes `shot-375.png`, `shot-768.png`, `shot-1280.png`, `design.json`, `summary.md`.
- `--widths 375,1440`: other widths (the largest is used for the measurements). `--dark`: captures and measures the largest
width in dark mode (the measurements then describe the dark theme; run twice to compare).
- `doctor`: checks Playwright and Chromium.
## After the analysis
1. Read `summary.md` (short). Open the screenshots with Read to judge the overall impression: the measurements say
what, the screenshots say whether it looks good.
2. Report in three blocks: identity (palette, fonts, tone), system (size scale, spacing, radii,
shadows), responsive (horizontal scrolling, breakpoints). Cite the measured values.
3. To reproduce a style: draw inspiration from the system (scale, rhythm, contrasts), do not copy texts, logos, images
or licensed fonts.
4. Limits: a background set only on `body` or `html` does not appear in the backgrounds; third-party stylesheets
(other domain) deliver neither variables nor breakpoints; a site behind a login cannot be analyzed.
## Exit codes
| Code | Meaning |