Extract
Latest: v0.1.0
Introduces a website design-analysis skill that captures visual evidence and turns it into practical design guidance.
- Analyzes design tokens and explains design choices with evidence, trade-offs, and confidence scores.
- Supports single-page analysis, multi-page crawls, and comparisons between two sites.
- Captures pages with Playwright MCP when available, with a standalone Playwright fallback.
- Produces domain-named Markdown and JSON reports, with optional exports for design and coding tools.
Extract — Reverse-Engineer a Website's Design DNA
This skill turns a URL into two files:
./{domain}.md— human-readable. Two sections:- Design Map — practical tokens (colors, type scale, spacing, radii, shadows, grid, motion)
- Taste DNA — 3–4 opinionated trade-offs (Trigger → Decision → Reason → Evidence → Trade-off) with confidence scores
- Delta (comparative mode only) — agreements vs divergences between two sites
./{domain}.json— structured, machine-parseable. Same data, for downstream tools and for/graft.
The pipeline rejects generic descriptions like "clean and modern". A finished report should read like a senior designer explaining why this particular page made these particular choices — and what plausible alternatives it rejected.
When to activate
Trigger this skill whenever the user wants to study a website's design. Catch all of these:
- Explicit:
/extract <url>or/extract <url1> vs <url2> - Natural language: "analyze the design of vercel.com", "what makes Stripe's site so good", "extract the design tokens from linear.app", "give me the design DNA for are.na"
- Mimicry intent: "I want my dashboard to feel like Linear", "build me a landing page in the style of ", "port this site's design to my project"
- Comparative: "compare the design of X and Y", "how does X's design differ from Y's"
- Any mention of a URL in connection with visual/design topics
When in doubt, activate. The cost of a wasted invocation is small; the cost of generating generic design advice when this skill could have produced specific, evidence-backed analysis is large.
Do NOT activate for: "extract data from a website" (scraping), "summarize the content of " (not design), "deploy this site" (unrelated).
Phase 0 — Parse URL and Setup
Step 1 — URL
Extract the URL(s) from the user's message. Accept these forms:
/extract https://linear.app/extract https://stripe.com vs https://vercel.com→ comparative mode- "analyze the design of vercel.com" (add
https://if missing) - A bare URL anywhere in the prompt
If no URL provided, ask for one. If it's clearly not a URL (file path, etc.), ask if they meant a hosted page.
Resolve common short forms: linear.app → https://linear.app, www.stripe.com → https://www.stripe.com.
Step 2 — Extract domain for file naming
From the URL, extract the hostname and strip any www. prefix:
https://linear.app→linear.apphttps://www.stripe.com→stripe.comhttps://vercel.com/home→vercel.com
Store as {domain}. All output files use this: {domain}.md, {domain}.json. Never use the generic name taste.md — it collides across runs.
Step 3 — Setup questions
If the user already specified export target AND crawl scope, skip. Otherwise, ask once:
Two quick questions before I start:
Export target — which tool are you building with?
- Cursor →
.cursor/rules/{domain}-taste.mdc- Windsurf →
.windsurf/rules/{domain}-taste.md- Claude Code → CLAUDE.md (appends Design Taste section)
- GitHub Copilot →
.github/copilot-instructions.md(appends)- Bolt →
.bolt/prompt- Antigravity → GEMINI.md
- v0 by Vercel →
taste-tokens.css+ instructions- Figma Make →
taste-figma.css+ instructions- Lovable → print text to paste in Project Knowledge
- Skip → keep
{domain}.md+{domain}.jsononlyCrawl scope — this page only, or explore 2–3 linked pages?
- This page only → faster, focused on exactly what you gave me
- Explore linked pages → I'll visit 2–3 nav pages and merge the data
Comparative mode (if single URL given) — analyze alone, or also compare against a second URL?
Store answers. Defaults: export = "skip", crawl = "single". Do not ask again.
Phase 1 — Capture Page Data
Detect capture method
Check if Playwright MCP tools are available:
If MCP is available (mcp__playwright__browser_navigate, mcp__playwright__browser_evaluate, etc. respond):
→ Use MCP path (faster, lower token cost).
If MCP is NOT available: → Use the bundled fallback script. Run:
node extract/references/capture-fallback.mjs --url <url> --domain <domain> [--crawl] [--compare <url2>]
If playwright is not installed, first run: npx playwright install chromium
The fallback script produces the same data shape as MCP capture — downstream analysis doesn't care which was used.
MCP Capture Path
Run these steps in order. If any step errors, stop and report — do not continue with degraded data.
-
Resize viewport to 1440×900:
text mcp__playwright__browser_resize width=1440 height=900 -
Navigate to URL (fresh context —
--isolatedflag ensures no cookies/login state leak):text mcp__playwright__browser_navigate url=<URL> -
Wait for hydration (3 seconds):
text mcp__playwright__browser_wait_for time=3If page still looks skeleton-like after 3s, wait another 3s. If still incomplete after 6s total, note it in output.
-
Take screenshots:
4a. Viewport screenshot (1440×900, primary visual reference):
text mcp__playwright__browser_take_screenshot type=jpeg filename={domain}-viewport.jpeg4b. Full-page screenshot:
text mcp__playwright__browser_take_screenshot type=jpeg filename={domain}-fullpage.jpeg fullPage=true -
Run DOM extractor — inject
references/extract-dom.jsvia evaluate:text mcp__playwright__browser_evaluate function=<contents of extract-dom.js>This returns the complete DOM data snapshot (colors, typography, spacing, radii, shadows, grid, cards, images, buttons, motion, navLinks).
-
Motion/interaction capture — hover over interactive elements to capture transition deltas:
6a. Identify 1–2 nav links and 1–2 buttons from the DOM data.
6b. For each target element:
- Record computed
transition,transform,backgroundColor,color,boxShadow,opacityBEFORE hover - Execute hover via
mcp__playwright__browser_clickor mouse move - Wait 400ms for transition to complete
- Record the same properties AFTER hover
- Note which properties changed and by how much
- Move mouse away, wait 200ms to reset
- Record computed
-
Error detection — before proceeding, check:
- If the page has a password field → stop: "URL resolves to a login page. Use the public marketing page."
- If the screenshot shows a Cloudflare/bot verify page → stop: "Bot detection block. Try a different page on the same domain."
- If the page body is mostly empty → warn: "Page may be incompletely rendered."
Multi-page crawl (if crawl scope = "explore")
After primary capture:
- From
navLinksin the DOM data, filter out login/auth/checkout paths - Sort remaining links by path length (shorter = more likely to be a main section)
- Pick 2 additional same-domain pages
- Repeat the full capture (steps 1–6) for each
- Merge data across pages:
- Values appearing on 2+ pages → tagged as
[system]signal (higher confidence) - Values on 1 page only → tagged as
[local](lower confidence, still captured)
- Values appearing on 2+ pages → tagged as
Comparative mode
If a second URL was provided:
- Complete the entire capture phase for the primary URL first
- Then repeat the entire capture phase independently for the second URL
- Both datasets are passed to the analysis pipeline
Phase 2 — Analysis Pipeline (4 Steps)
Run these steps sequentially. Each step reads only the prior step's output plus its reference file. Do not preload all steps at once — this keeps each step focused and prevents context contamination.
Step 1 — Measure
Read: references/step1-measure.md
Input: DOM data + screenshots from Phase 1
Output: ~20 measurement categories, every value cited with exact px/hex/ratio. No adjectives, pure measurement.
Step 2 — Pattern
Read: references/step2-pattern.md
Input: Step 1 output
Output: 5–8 systematic patterns, each with Pattern / Evidence / Design Goal. This is where repeated behaviors get named.
Step 3 — Taste
Read: references/step3-taste.md
Input: Step 1 + Step 2 output
Output: 3–4 taste principles, each with Trigger / Decision / Reason / Evidence / Trade-off / Confidence. At least one must be a Restraint trade-off.
Step 4 — Observer (Quality Gate)
Read: references/step4-observer.md
Input: Steps 1–3 output + original URL(s) + screenshots
Output: Final {domain}.json + {domain}.md + export format file (if not "skip") + comparative Delta section (if applicable).
This step validates the entire pipeline output, runs the anti-slop grep, checks evidence chains, and produces the final files.
Phase 3 — Anti-Slop Enforcement
Read: references/anti-slop-wordlist.md
This is a mechanical check, not a mental scan. After Step 4 generates the output files:
- Run a literal grep against
{domain}.mdfor every banned term - If any hit is a genuine positive descriptor (not in a quoted foil), rewrite that passage
- Replace the vague term with a specific measurement or trade-off
- Re-run the grep
- Repeat until 0 genuine-descriptor hits
Also validate:
- Both
Design MapandTaste DNAsections are present in the.md {domain}.jsonparses as valid JSON- All required schema fields are populated
Phase 4 — Export
Read: references/export-formats.md
Generate the export file matching the user's selection from Phase 0, Step 3. The export draws from {domain}.json and includes:
- Token block (exact values)
- Taste directives (principles as imperatives)
- Anti-patterns (restraints as "Never/Avoid" bullets)
Anti-slop rules apply to export files too.
Known Limitations
- Login pages: Pages behind login return the login form, not the target page. Use the public marketing page.
- Cloudflare/bot blocks: Some sites show a verification page. Try a different page on the same domain, or provide a direct URL to a specific page.
- SPA hydration: Heavy SPAs (Figma, Notion) may still be hydrating after the 6s wait window. Flagged as a caveat, not silently ignored.
- CSS custom properties: Variable names are lost in computed style extraction — only resolved values are captured.
- Viewport dependency: All measurements are from a 1440×900 viewport. Mobile layouts are not captured (but mobile design systems usually share the same tokens).
- Hover states: Only 1–2 nav links and 1–2 buttons are hovered. Sites with complex hover menus or reveal-on-hover content may have interaction taste that's missed.
