Design Spec Extractor
Paste the following prompt into your AI chat to install this skill:
Please follow https://skillhub.cn/install/skillhub.md and install @user_5b12983f/design-spec-extractor.
About this skill
Problem
When engineers receive UI screenshots, web URLs, or multiple page designs, the hard part is not merely “reading” the design, but converting visual judgments into reusable rules: Is #1D4ED8 a primary color or an accent? Is 16px padding, gutter, or component spacing? Is the font Inter or a system default?
design-spec-extractor turns design evidence into structured specifications instead of vague style commentary. It is useful before design reviews, before frontend componentization, or when documenting a design system.
How It Works
The skill first classifies input: local images, image URLs, webpage URLs, or mixed sources. For web URLs, it can capture screenshots and computed styles when available; otherwise it falls back to HTML/CSS clue extraction.
Analysis covers six dimensions:
- Visual style: tone, key characteristics, and use cases
- Color system: primary, secondary, functional, background, text, and border colors
- Typography: scale, weight, line height, alignment, and candidate fonts when confidence is low
- Layout and spacing: grid, container width, module gaps, and responsive tendencies
- Component patterns: buttons, cards, navigation, tables, empty states, and other recurring elements
- Design principles: consistency, hierarchy, and product goals behind the choices
Outputs can include analysis.json, design_spec.md, design_spec.html, and optionally design_spec.pptx. Source previews are kept to support evidence tracing.
Boundaries
This skill is not for legal standards, general photo aesthetics, or replacing design-to-code. If assets are blurry, pages require login, or dynamic content fails, provide screenshots first. If only a local component is supplied, output should be a local specification, not a full design system.
Use Cases
- Turn a UI screenshot into color, typography, spacing, and layout rules before a design review.
- Convert a webpage URL into an HTML design specification for checking primary colors, grids, and component styles.
- Summarize multiple admin screens into shared design language and differences, then produce a spec doc and review deck.
- Extract button, card, and navigation patterns before frontend componentization to reduce style rework.
Best For
- Frontend engineers preparing design reviews who need verifiable style rules from design artifacts.
- UI engineers building component libraries who need consistent color, typography, spacing, and component patterns.
- Product managers preparing deliverables who need web pages or screenshots turned into design system docs and review decks.
- Designers taking over legacy projects who need to reconstruct missing design specs from screenshots and URLs.
Related Skills
Uses step-by-step choices to confirm business, palette, and layout, then exports an editable .drawio architecture diagram.
An agent skill for the Miaoyin AI music REST API that supports SUNO/Mureka-based song generation, continuation, cover, video, WAV, and stem splitting.
Distills text, files, or images into structured knowledge and generates knowledge-card prompts for drawing tools, supporting 3:4 portrait or 16:9 landscape outputs.
Capture full-page, viewport, or element screenshots with Playwright while handling lazy loading, internal scroll, mobile layouts, and Linux CJK fonts.