# design extractor

> Clone any website's design into a reusable DESIGN.md — colors, typography, spacing, components, and a ready-to-use rebuild guide.

design extractor is a free AI agent skill on Agensi by Mohamed EL KHAMLICHI, in Frontend & Web Apps. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Mohamed EL KHAMLICHI](https://www.agensi.io/creators/mohamed-el-khamlichi)
- Category: [Frontend & Web Apps](https://www.agensi.io/skills/frontend-web-apps)
- Uses: 2
- Version: 1.0
- Last updated: 2026-10-13
- Security: scan passed (2026-10-13); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/design-extractor
- Tags: web-design, css, tailwind, playwright, design-tokens

## About this skill

Stop guessing hex codes or manually inspecting elements to replicate a site's aesthetic. This skill automates the extraction of full design systems from any live URL, turning visual styles into a structured `DESIGN.md` specification. It bridges the gap between seeing a design and having the technical tokens needed to rebuild it.

### What it does
- **Automated capture** runs a headless browser to snapshot layouts and extract computed styles from any domain.
- **Token extraction** pulls exact hex values, font stacks, spacing scales, and border radii directly from the DOM.
- **Visual synthesis** analyzes screenshots to define the "vibe" and component patterns that raw CSS data often misses.
- **Spec generation** writes a comprehensive `DESIGN.md` including typography scales and elevation tokens.
- **Code generation** outputs ready-to-use CSS custom properties and Tailwind CSS configuration snippets.

### How it works
1. **Capture phase** executes a Python script to render the homepage and key sub-pages for visual and data analysis.
2. **Analysis phase** correlates screenshots with `tokens.json` to identify primary actions, surface colors, and type hierarchies.
3. **Synthesis phase** compiles the findings into a standardized markdown design document with implementation guides.

### Frameworks & tools
Uses Python 3.9+, Playwright (Chromium), and CSS computed properties. Generates output compatible with Tailwind CSS and standard CSS variables.

### Why this beats prompting it yourself
Standard prompts rely on the LLM's training data, which is often outdated or vague regarding specific site versions. This skill uses live execution to pull current, real-world computed values, ensuring your technical specs match the latest deployment of a target site.

### Use cases
- Replicating a specific visual style for a new internal tool or dashboard.
- Creating a design system for a client based on their existing legacy website.
- Reverse-engineering the typography and spacing of high-end SaaS landing pages.
- Building a Tailwind config that matches a reference site's branding exactly.

### Known limitations
Heavy bot protection or login walls may restrict capture to a basic HTML/CSS scrape. Does not extract copyrighted assets or trademarked logos.

## Requires

- Python

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the design extractor skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does this skill differ from simply asking an AI to describe a website's design?

This skill uses a live headless browser to extract real-time computed styles from a URL, whereas manual prompting relies on an AI's potentially outdated training data or visual estimation.

### What exactly is included in the 'design extractor' package?

You will receive the complete design extractor tool, documentation on how to run the capture scripts, and templates for the DESIGN.md and Tailwind configuration outputs.

### Which AI agents or environments can I use to run this skill?

It is designed to run in environments supporting Python 3.9+ and Playwright, making it compatible with most local developer setups and advanced AI agents that have terminal or script execution capabilities.

### Can I use the output to quickly set up a Tailwind CSS project?

Yes, the skill is specifically built to bridge the gap between CSS and modern frameworks by generating ready-to-use CSS variables and Tailwind CSS configuration snippets.

### Does the extractor pull images and logos from the target website?

The skill extracts technical design tokens like colors, fonts, and spacing; however, it does not download copyrighted images, logos, or proprietary assets.

### Will this work on websites that require a login or have heavy security?

The tool performs a 'best-effort' scrape by analyzing the rendered DOM, though sites with extreme bot protection or login requirements may limit the depth of data captured.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
