/product-discovery:extract-design-mdfrom Superhero Skills
Inspects rendered website URLs to extract visual design tokens, typography, and component styling, then creates an evidence-backed DESIGN.md for building matching prototypes.
Ships in Superhero Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Create a practical DESIGN.md from measured browser styles and visual observations. Document the pages and states actually inspected; a page sample is not a complete product design system. Preserve exact values, distinguish inference, and report gaps instead of promising pixel-perfect reproduction.
Use the URL(s) and output directory supplied by the user. Default output is the current project's root. Ask only for missing information that prevents useful work. Inspect existing output before replacing it; preserve unrelated project files.
Prefer the agent's available built-in browser. In desktop Codex use the in-app browser; in Claude Code desktop use Browser. In other environments use an available browser integration. Tool names and capabilities vary: read the current browser instructions, then follow references/browser-workflow.md.
Probe read-only computed-style access, screenshot support, and viewport control. Use only supported capabilities; never assume a DOM snapshot contains CSS or an integration exposes full Playwright. If needed, use the standalone Playwright fallback described in the reference. Do not require Chrome DevTools MCP, install a new integration, or enable full debugging access merely to inspect ordinary styles. Respect the user's browser choice and environment restrictions.
scripts/extract-styles.js: its single self-contained expression can be passed to the browser's read-only evaluation API. It returns a JSON-serializable snapshot with exact CSS values, element selectors, component candidates, assets, counts, and limitations. Set state.label to the state actually observed. Start with a desktop viewport; default test widths are 1440 and 390 CSS px if supported. These are sampling widths, not inferred breakpoints. When an API cannot run the expression, adapt only the browser adapter or collect a smaller supported sample and disclose that limitation..dark or mutate the page to fabricate a variant. Restore temporary viewport, theme, scroll, and interaction changes in a finally/cleanup step, including after errors. Do not submit forms or alter account settings to obtain visual states.design-evidence/, using distinct page/viewport/state names. Maintain design-evidence/manifest.json using references/evidence-format.md. Record skipped or failed measurements and their reasons; never label a screenshot-only result as an exact measurement. Prefer viewport screenshots where the API supports only those; record whether a capture covers the viewport or full page. Download logo files only if requested or materially useful and supported; source URLs and inline-SVG selectors suffice by default.python3 scripts/validate-evidence.py <design-evidence-directory> where available. Compare representative document values against raw snapshots and screenshots; repair discrepancies and unsupported claims. Report the saved document, coverage, and material gaps. Validation checks evidence consistency, not visual fidelity by itself.DESIGN.md, plus raw snapshots, screenshots, and an evidence manifest. Generate token CSS only when requested; do not overwrite or import app styles as part of extraction.evals/language-check.md (opens in a new tab)evals/structural-check.md (opens in a new tab)references/browser-workflow.md (opens in a new tab)references/design-md-format.md (opens in a new tab)references/evidence-format.md (opens in a new tab)references/example-output.md (opens in a new tab)references/vocabulary.md (opens in a new tab)scripts/capture-playwright.mjs (opens in a new tab)scripts/extract-styles.js (opens in a new tab)scripts/validate-evidence.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
19 skills in this plugin
/ab-test-designDesign an A/B test and decide whether available traffic can detect a useful effect. Use when planning a randomized product comparison, checking sample size or test duration, or creating an interactive A/B test card./affinity-mappingSynthesize interview transcripts into evidenced themes and user needs, then render an interactive HTML evidence map. Use when synthesizing interviews, affinity mapping, or preparing opportunities for discovery./build-figma-libraryBuild or extend a Figma token and component library from product documentation, code, or an existing UI. Prepare it for another agent by checking component properties, composition examples, and handoff, including publishing when reuse spans files. Use for reconstructing design systems and making libraries reusable; screen-only design and documentation of existing components have separate workflows.npx claudepluginhub superhero-tech/superhero-skills --plugin product-discoveryOther plugins' skills for the same job