UI Style Extractor
Extract a site's visual language into a reusable Markdown guide, then use that guide to build original pages that still feel native to the source system.
Workflow
- Decide the output first.
- Produce only a website style guide when the user wants documentation or prompt context.
- Produce a website style guide plus demo page when the user wants website validation.
- Produce a website style guide plus app UI style guide when the user wants the visual system translated into product UI.
- Produce all three only when the user explicitly wants both website and app outputs.
- Build the evidence set before writing.
- Prefer production CSS, design tokens, computed styles, and real DOM structure over screenshot-only guesses.
- Inspect at least the homepage and one secondary page unless the user gives a tighter scope.
- Use screenshots to capture composition, density, rhythm, imagery treatment, and overall mood.
- Duplicate the blank template and fill it section by section.
- Use exact values where possible.
- If a section is unsupported by evidence, write
Not observedorNot presentinstead of inventing details.
- Distill repeated patterns into system rules.
- Promote only repeated values into palette, spacing, radius, shadow, or motion tokens.
- Keep one-off values in component notes unless they clearly define the brand language.
- Generate derivative outputs only after the website guide is stable.
- Change the copy, product, and brand-specific content.
- Preserve the design grammar: typography hierarchy, spacing rhythm, component treatment, and motion behavior.
- For app guides, inherit the token layer first, then mark shell, workflow, and state patterns as adapted or inferred where necessary.
- Validate against the reference.
- Compare screenshots side by side.
- Tighten the guide if the generated page drifts from the source.
Extraction Rules
- Prefer exact CSS values over visual estimation.
- Treat screenshots as supporting evidence, not the primary source of tokens.
- Record which pages were analyzed near the top of the guide.
- Separate global rules from component-local exceptions.
- Call out uncertainty explicitly when the source is ambiguous.
- If the site has multiple modes or contrasting sections, document each mode rather than averaging them together.
- Keep the final "Summary of Key Design Rules" strict enough that another model can follow it without re-reading the entire guide.
Demo Rules
- Build original content in the extracted style; do not reproduce the reference site's copy wholesale.
- Reuse the extracted tokens faithfully before adding custom flourishes.
- Match the site's density and alignment logic, not just its colors and fonts.
- Include only enough interactivity to demonstrate the system.
- If fidelity depends on animation, gradients, or texture, implement them rather than omitting them.
App Guide Rules
- Treat app UI guides as a derived artifact unless real product UI was also analyzed.
- Explicitly separate inherited website tokens from adapted or inferred app patterns.
- Define the product assumption near the top: dashboard, admin panel, consumer utility, and so on.
- Keep app shells, data views, and forms consistent with the source system instead of defaulting to a generic SaaS aesthetic.
- If the source is mostly marketing UI, reduce decorative gradients and oversized hero spacing in app contexts.
Output Conventions
- Prefer
<site>/<site>-ui-style.mdfor guide files when working in a multi-example repo. - Prefer
<site>/demo.htmlfor validation pages. - Prefer
<site>/<site>-app-ui-style.mdfor app adaptation guides. - Keep reference captures close to the example, such as
ref-viewport.pngorref-fullpage.png. - Keep guides in Markdown and keep component examples copyable.
Shared Resources
- Use
../../../ui-style-extractor/assets/style-guide-template.mdas the blank extraction template. - Use
../../../ui-style-extractor/assets/app-ui-style-template.mdas the blank app adaptation template. - Read
../../../ui-style-extractor/references/extraction-workflow.mdwhen you need the detailed page-selection and evidence-gathering workflow. - Read
../../../ui-style-extractor/references/app-adaptation-workflow.mdwhen translating a website system into an app UI guide. - Read
../../../ui-style-extractor/references/quality-bar.mdwhen deciding whether a guide or demo is complete enough to ship.
Install Note
- This wrapper exists so Claude Code can discover the shared skill when this repository is open as a project.
- For installation into another project or into
~/.claude/skills/, copy the canonicalui-style-extractor/folder from this repository into thatskills/directory.


