site — Claude Code command: site-wide design system
Crawl a site, merge its design tokens, and inspect coverage and consistency across pages. Useful when the homepage does not show the whole system.
MIT ★ 5,183 updated 2026-10-23
/plugin marketplace add Manavarya09/design-extract
/plugin install designlang@designlangWhat site does
The command runs npx designlang site for a supplied URL. It crawls canonical pages such as pricing, docs, blog, and product pages, then merges the extracted tokens into one system weighted by how widely each token appears. With no URL, it asks which site to inspect.
Results go to ./design-extract-output/ by default. The generated reports include a consistency grade, page-level outliers, token coverage, and the canonical token set in JSON. The command also emits DTCG, Tailwind, shadcn theme, CSS variable, and *-design-language.md outputs based on the whole site. Use --max-pages <n>, --out <dir>, or --name <prefix> to adjust the crawl and file output; the default page limit is 6.
What it helps with
- crawl a site’s canonical pages
- merge design tokens across pages
- spot page-specific outlier tokens
- map token coverage by page
- grade site-wide consistency
Example prompts for the agent
- Run
/designlang:site <url>and build one design system from the site. - Analyze
<url>with--max-pages <n>to cap the crawl. - Summarize the consistency grade and the tokens used on only one page.
How to install site
1Plugin marketplace
/plugin marketplace add Manavarya09/design-extract/plugin install designlang@designlang2Manually: put the files in place
.claude/commands/site.mdCall it with /site. For all projects use ~/.claude/commands/
Manually: put the files in place
~/.codex/prompts/site.mdCall it with /prompts:site. Codex marks this format deprecated in favour of skills
Manually: put the files in place
.github/prompts/site.prompt.mdManually: put the files in place
.gemini/commands/site.tomlGemini stores commands as TOML: the prompt text goes into the prompt field
Questions about site
How do I install site in Claude Code?
Add the marketplace with /plugin marketplace add Manavarya09/design-extract, then install it with /plugin install designlang@designlang. After that, add .claude/commands/site.md.
What does the site command do?
It crawls canonical site pages and combines their extracted design tokens into one canonical system. Its output includes consistency scoring, token coverage, outliers, and a JSON token file.
Which options can I pass to site?
--max-pages <n> sets the crawl limit, --out <dir> changes the output directory, and --name <prefix> sets the filename prefix. The default crawl covers 6 pages including the homepage.
Source text
site.md · MIT
--- description: Crawl a whole site and synthesize ONE canonical design system across all pages — unified tokens, coverage map, consistency grade. argument-hint: <url> [--max-pages <n>] --- Run **designlang site** against the user-provided URL. Instead of reading one page, it crawls the site's canonical pages (home, pricing, docs, blog, about, product…), extracts each, and synthesizes a single de-duplicated design system weighted by how broadly each token is used. ```bash npx designlang site $ARGUMENTS ``` If no `$ARGUMENTS` were supplied, ask the user which site to analyze. Default output goes to `./design-extract-output/`. When it finishes, read the generated files and present a tight summary: 1. `*-site-consistency.md` — the **consistency grade** (A–F · score), the per-category breakdown, and the off-system outlier tokens (introduced by a single page) that are candidates to consolidate. 2. `*-site-coverage.md` — which tokens are 🟢 site-wide, 🟡 section, or 🔴 page-local, and which pages use each. 3. `*-site-system.json` — the canonical unified tokens. The standard pack (DTCG tokens, Tailwind, shadcn theme, CSS variables, `*-design-language.md`) is also emitted — but from the **whole-site canonical system**, not just the homepage. Useful flags via `$ARGUMENTS`: | Flag | Effect | |---|---| | `--max-pages <n>` | crawl up to N pages including the homepage (default 6) | | `--out <dir>` | output directory | | `--name <prefix>` | output filename prefix | Then offer follow-ups: - `/grade <url>` — single-page Design Report Card + SVG badge - `/studio` — open the live token editor over the latest extraction - `/pack <url>` — bundle every output into one design-system directory Full reference: https://github.com/Manavarya09/design-extract#full-cli-reference
© Manavarya Singh · MIT · Manavarya09/design-extract