Agent skill
Extract design
Extract the full design language from any website URL. Produces 8 output files including AI‑optimized markdown, visual HTML preview, Tailwind config...
New to this? An agent skill is a file of instructions your AI assistant follows for one job. The text above is written for the assistant. How to use a skill
- It installs a package from the internet. Check what it is before you allow it.
What it does
Extract design is a design skill from Manavarya09/
In short, it gives your assistant a method and taste rules for visual work.
The file is 86 lines long and is set out in parts such as “Prerequisites”, “Process”, “Output Files (8)” and “Additional Commands”.
It has 4 code examples your assistant can follow.
When to use it
Reach for it when you want screens, pages or graphics that look considered, not generic.
Everything it needs is in this one file.
It asks for these tools: Bash, Read, Write and Glob.
Safety check
Our checker read all 86 lines before we listed it.
It found no attack techniques, no hidden text and no steps that switch off your assistant's safety or send your data away.
It did flag one thing to know, listed above.
The text links to no outside sites.
It is shared under the MIT license.
Still read it before you use it, like any instructions you give your AI.
Open in the appOriginal on GitHub
What is inside
- Prerequisites
- Process
- Output Files (8)
- Additional Commands
- Options
How to use it
- Claude Code: save the text as
.claude/skills/extract-design/SKILL.mdin your project. Claude reads it when a task needs it. - Claude, ChatGPT or Gemini: tap Copy skill and paste it into the chat. It arrives with a short line asking the assistant to use it.
- Cursor and other agents: add it to the project rules or instructions.
Read the full guide to using an agent skill
Want your own? How to write an agent skill that works
The full skill
--- name: extract-design description: "Extract the full design language from any website URL. Produces 8 output files including AI-optimized markdown, visual HTML preview, Tailwind config, React theme, shadcn/ui theme, Figma variables, W3C design tokens, and CSS variables. Also runs WCAG accessibility scoring. Use when user says 'extract design', 'get design system', 'design language', 'design tokens', 'what colors/fonts does this site use', 'turn this URL into design tokens', 'make a Tailwind theme from this site', or '/extract-design'. Do not use for building a new UI from scratch unless the user first wants to extract an existing website's design language." allowed-tools: Bash, Read, Write, Glob --- # Extract Design Language Extract the complete design language from any website URL. Generates 8 output files covering colors, typography, spacing, shadows, components, breakpoints, animations, and accessibility. ## Prerequisites Ensure `designlang` is available. Install if needed: ```bash npm install -g designlang ``` Or use npx (no install required): ```bash npx designlang <url> ``` ## Process 1. **Run the extraction** on the provided URL: ```bash npx designlang <url> --screenshots ``` For multi-page crawling: `npx designlang <url> --depth 3 --screenshots` For dark mode: `npx designlang <url> --dark --screenshots` 2. **Read the generated markdown file** to understand the design: ```bash cat design-extract-output/*-design-language.md ``` 3. **Present key findings** to the user: - Primary color palette with hex codes - Font families in use - Spacing system (base unit if detected) - WCAG accessibility score - Component patterns found - Notable design decisions (shadows, radii, etc.) 4. **Offer next steps:** - Copy `*-tailwind.config.js` into their project - Import `*-variables.css` into their stylesheet - Paste `*-shadcn-theme.css` into globals.css for shadcn/ui users - Import `*-theme.js` for React/CSS-in-JS projects - Import `*-figma-variables.json` into Figma for designer handoff - Open `*-preview.html` in a browser for a visual overview - Use the markdown file as context for AI-assisted development ## Output Files (8) | File | Purpose | |------|---------| | `*-design-language.md` | AI-optimized markdown — the full design system for LLMs | | `*-preview.html` | Visual HTML report with swatches, type scale, shadows, a11y | | `*-design-tokens.json` | W3C Design Tokens format | | `*-tailwind.config.js` | Ready-to-use Tailwind CSS theme | | `*-variables.css` | CSS custom properties | | `*-figma-variables.json` | Figma Variables import format | | `*-theme.js` | React/CSS-in-JS theme object | | `*-shadcn-theme.css` | shadcn/ui theme CSS variables | ## Additional Commands - **Compare two sites:** `npx designlang diff <urlA> <urlB>` - **View history:** `npx designlang history <url>` ## Options | Flag | Description | |------|-------------| | `--out <dir>` | Output directory (default: `./design-extract-output`) | | `--dark` | Also extract dark mode color scheme | | `--depth <n>` | Crawl N internal pages for site-wide extraction | | `--screenshots` | Capture component screenshots (buttons, cards, nav) | | `--wait <ms>` | Wait time after page load for SPAs | | `--framework <type>` | Generate only specific theme (`react` or `shadcn`) |
Copyright (c) 2024 Manavarya Singh.
Published under the MIT License, which you can read in full there.
Shown as published on GitHub, with credit and a link to the original.
Read it before you use it.
More skills
Algorithmic art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration.
Canvas design
Create beautiful visual art in .png and .pdf documents using design philosophy.
API and interface design
Guides stable API and interface design. Use when designing APIs, module boundaries, or any public interface.
Try it in your browser
Today's AI news, one card per swipe.
Free to start.