design-extraction

Extract design tokens, components, and assets from a live website into a validated design system.

Updated Apr 10, 2026
One-click install
npx skills add https://github.com/imehr/design-extractor --skill design-extraction-imehr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: design-extraction
Source: https://github.com/imehr/design-extractor/tree/main/skills/design-extraction
Command: npx skills add https://github.com/imehr/design-extractor --skill design-extraction-imehr

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill turns a live website into a validated, reusable design system by extracting DOM content, assets, tokens, and building a React/shadcn replica so teams can migrate, document, or reuse a site's visual language without manual reverse-engineering.

Core Features & Use Cases

  • DOM-first extraction: capture headings, links, images, computed styles, and @font-face declarations directly from the live DOM.
  • Asset harvesting: download images, SVGs, and fonts with verification to avoid HTML error pages and ensure fidelity.
  • React/shadcn replicas: rebuild shared brand components and pages using shadcn/ui, Tailwind, and Lucide React while preserving extracted text and assets.
  • Visual validation loop: screenshot original vs replica, compare pixel differences, and iterate until parity for each component and page.
  • Use case: migrate a deployed site into a component library, produce DESIGN.md and an installable SKILL.md, or generate a local, validated replica for testing and refactoring.

Quick Start

Extract the design system from https://example.com to generate a validated DESIGN.md, an installable SKILL.md, and a shadcn React replica.

Frequently Asked Questions about design-extraction

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract a design system from a live website?

You can extract a design system from a live website by evaluating the DOM to capture computed styles, assets, and typography, then compiling them into a machine-readable format. This process downloads fonts and images directly from the URL to ensure asset fidelity.

Can I build a React and shadcn replica from an existing website URL?

Yes, you can build a React and shadcn replica from an existing website URL by harvesting DOM content and assets. It rebuilds shared brand components and pages using shadcn/ui, Tailwind, and Lucide React while preserving the extracted text and visual structure.

How does visual validation work when reverse-engineering a website design?

Visual validation works by capturing screenshots of the original site and the replica, then comparing pixel differences. The system iterates on the component and page replicas until visual parity is achieved, ensuring the extracted design system matches the deployed site.

What is DOM scraping for design token extraction?

DOM scraping for design token extraction is the process of capturing headings, links, images, and computed styles directly from a live website's DOM. It compiles these elements and @font-face declarations into a validated, reusable design system for migration or documentation.

Do I need agent-browser access to scrape fonts and SVGs from a website?

Yes, you need agent-browser access and network download capabilities to scrape fonts and SVGs from a website. This access allows the extraction process to evaluate the live DOM, verify downloaded assets against HTML error pages, and perform automated screenshot comparisons.

What is the best way to document a website's visual language for migration?

The best way to document a website's visual language for migration is to extract design tokens and assets into a validated DESIGN.md file. This approach reverse-engineers deployed sites across multiple pages, producing an installable SKILL.md and a local replica for testing and refactoring.