A Claude Code skill suite that extracts React components, design systems, and whole sites from live production websites, using browser automation.
Status: published for use. The repo is prompt and skill files plus project templates. It has no test suite and records no benchmark or accuracy results, so treat the workflows as untested here. copy-site also expects a frontend-developer subagent (COPY-SITE-AGENT.md), which this repo does not provide.
| Skill | Command | What it does |
|---|---|---|
steal-react-component |
/steal-react-component https://example.com |
Extracts individual React components by reading React Fiber internals (__reactFiber$* keys): props, hooks, rendered HTML, and minified source. Claude then reconstructs readable code. |
css-extractor |
(see CSS-EXTRACTOR.md) |
Extracts a design system: CSS variables, typography, colors, spacing. Can emit a Tailwind config. |
copy-site |
/copy-site https://example.com |
Clones a whole site: screenshots it, extracts styles and components, de-minifies them with parallel subagents, scaffolds a Next.js project, and checks the result against the original. |
AGENT.md also includes a Visual Navigator, an in-page UI for browsing components, hovering to highlight them, and copying the selected one.
The technique comes from fant.io/react, "How to Steal Any React Component".
- Claude Code started with
claude --chrome - Chrome with the Claude-in-Chrome extension (see the Claude Code Chrome docs)
- A target site. React sites work best; style extraction works on any site.
Each skill is split into a short dispatcher (the skill) and a longer agent file. The agent runs in a separate subagent context, so the main conversation does not fill up with browser-automation output.
# Agents (required). Use .claude/agents/ instead for project-level install.
mkdir -p ~/.claude/agents
cp AGENT.md ~/.claude/agents/steal-react-component.md
cp COPY-SITE-AGENT.md ~/.claude/agents/copy-site.md
# Skills. Use .claude/skills/ instead for project-level install.
mkdir -p ~/.claude/skills/steal-react-component
cp SKILL.md CSS-EXTRACTOR.md COPY-SITE.md ~/.claude/skills/steal-react-component/
# Required for /copy-site: register it as a slash command
mkdir -p ~/.claude/commands
cp COPY-SITE.md ~/.claude/commands/copy-site.mdThen run /steal-react-component https://example.com or /copy-site https://example.com.
| File | Purpose |
|---|---|
SKILL.md, AGENT.md |
Component extraction dispatcher and agent (contains the ReactStealer script) |
CSS-EXTRACTOR.md |
Design system extraction (the StyleStealer script) |
COPY-SITE.md, COPY-SITE-AGENT.md |
Full-site cloning dispatcher and agent |
templates/ |
Next.js, TypeScript and Tailwind scaffolding used for cloned sites (see templates/README.md) |
- Animated states may not be captured correctly.
- Interactive state such as dropdowns and modals may not be captured.
- Some component names are minified (for example
Hc,qv). - React Server Components may have no client-side Fiber data.
- Pages behind authentication need a manual login first.
- On non-React sites, only style extraction works.
- React keeps a Fiber tree parallel to the DOM and attaches Fiber nodes to DOM elements under
__reactFiber$*keys. - The agent injects
ReactStealerinto the page and reads each component's type, props, hooks, and rendered HTML. StyleStealerpulls CSS variables, computed styles, and typography.- Several prop-to-HTML examples per component, plus the minified source, are given to the LLM to reconstruct the component.
- For
copy-site, the result is scaffolded into a Next.js project and screenshot-compared with the original.
Approximate token sizes. These are the author's estimates, not measurements recorded in the repo.
| Skill | Dispatcher | Agent |
|---|---|---|
| steal-react-component | SKILL.md (~300 tokens) |
AGENT.md (~4k tokens) |
| copy-site | COPY-SITE.md (~400 tokens) |
COPY-SITE-AGENT.md (~6k tokens) |
The author's estimate for a typical site clone is about 6k tokens in the main agent and about 50k inside the subagent.
Inject ReactStealer (script in AGENT.md) and StyleStealer (script in CSS-EXTRACTOR.md) into the page first, then:
ReactStealer.summary() // list components and counts
ReactStealer.getForLLM('Button') // reconstruction prompt for one component
ReactStealer.getBySelector('button.primary') // component behind a DOM element
StyleStealer.extractAll() // full design system
StyleStealer.toTailwindConfig() // Tailwind config
StyleStealer.toCSSVariables() // CSS variables filesites/
└── x.com/
├── README.md # Site documentation
├── style-guide.md # Design system reference
└── app/
├── package.json
├── tailwind.config.ts
├── app/ # layout.tsx, page.tsx, globals.css
└── components/ # Sidebar.tsx, Tweet.tsx, TweetComposer.tsx, ...
MIT. See LICENSE.