extract — Claude Code command: what it does, how to install
extract — a slash command that runs designlang on a page and reports its design language: palette, type, spacing, components.
MIT ★ 5,183 updated 2026-10-23
/plugin marketplace add Manavarya09/design-extract
/plugin install designlang@designlangWhat extract does
The URL you pass goes straight to npx designlang $ARGUMENTS. Files land in ./design-extract-output/; the agent then opens the generated *-design-language.md and gives you the short version: palette hexes, type families and scale, spacing base, WCAG score, detected component patterns. Leave the argument empty and it asks which address to work on.
Flags control how deep it goes. --full pulls screenshots, responsive states and interaction detail. --depth <n> crawls that many extra canonical pages. --dark adds the dark theme, while --platforms ios,android,flutter,wordpress turns on emitters for those targets.
Anything behind a login needs --cookie-file ./session.json, otherwise you get the public shell and little else. --smart brings in an LLM when the classifiers come back unsure and needs one of ATLASCLOUD_API_KEY, OPENAI_API_KEY, ANTHROPIC_API_KEY. When it finishes, the command points you at /grade, /battle, /remix and /pack.
What it helps with
- pull palette and type scale off a competitor's landing page
- export DTCG tokens into an existing design system
- check a site's WCAG score before a redesign
- generate iOS and Android emitters from one page
- capture the dark theme separately from the light one
Example prompts for the agent
- Run
/extractonhttps://stripe.comand show me the palette and type scale /extract https://stripe.com --dark --depth 3— I need the dark theme plus three inner pages/extract https://stripe.com --smartwhen the classifiers are unsure
How to install extract
1Plugin marketplace
/plugin marketplace add Manavarya09/design-extract/plugin install designlang@designlang2Manually: put the files in place
.claude/commands/extract.mdCall it with /extract. For all projects use ~/.claude/commands/
Manually: put the files in place
~/.codex/prompts/extract.mdCall it with /prompts:extract. Codex marks this format deprecated in favour of skills
Manually: put the files in place
.github/prompts/extract.prompt.mdManually: put the files in place
.gemini/commands/extract.tomlGemini stores commands as TOML: the prompt text goes into the prompt field
Questions about extract
How do I install extract in Claude Code?
Add the marketplace first: /plugin marketplace add Manavarya09/design-extract. Then install the plugin: /plugin install designlang@designlang.
What does extract do?
It runs designlang against a URL and condenses the output into a design-language summary: tokens, palette, typography, spacing, components. Everything stays in ./design-extract-output/.
Which key does --smart need?
Any one of ATLASCLOUD_API_KEY, OPENAI_API_KEY or ANTHROPIC_API_KEY.
Source text
extract.md · MIT
--- description: Extract the complete design language from a URL — DTCG tokens, Tailwind, Figma vars, motion, voice, components. argument-hint: <url> [extra flags…] --- Run **designlang** against the user-provided URL and surface the result. ```bash npx designlang $ARGUMENTS ``` If no `$ARGUMENTS` were supplied, ask the user which URL to extract. Default output goes to `./design-extract-output/`. Once it finishes, read the generated `*-design-language.md` (the AI-optimized markdown) and present a tight summary to the user: - Primary palette (hex codes) - Type families + scale - Spacing base + scale - WCAG accessibility score - Component patterns detected - Notable signals (motion feel, material language, brand voice tone) Then offer follow-ups: - `/grade <url>` — shareable HTML Design Report Card + SVG badge - `/battle <urlA> <urlB>` — head-to-head graded comparison - `/remix <url> --as <vocab>` — restyle in another vocabulary - `/pack <url>` — bundle every output into one design-system directory Useful flags the user may pass via `$ARGUMENTS`: | Flag | Effect | |---|---| | `--full` | screenshots + responsive + interactions + deep-interact | | `--depth <n>` | crawl N additional canonical pages | | `--dark` | also extract dark mode | | `--platforms ios,android,flutter,wordpress` | multi-platform emitters | | `--smart` | LLM fallback for low-confidence classifiers (supports `ATLASCLOUD_API_KEY`, `OPENAI_API_KEY`, or `ANTHROPIC_API_KEY`) | | `--cookie-file ./session.json` | authenticated extraction | Full reference: https://github.com/Manavarya09/design-extract#full-cli-reference Atlas Cloud quick setup for `--smart`: ```bash export ATLASCLOUD_API_KEY="<atlascloud-api-key>" export ATLASCLOUD_MODEL="deepseek-ai/deepseek-v4-pro" npx designlang https://stripe.com --smart ```
© Manavarya Singh · MIT · Manavarya09/design-extract