mock-spec-extractor

Solid

Extracts design specifications from mock images including colors, typography, spacing, and component details

Testing & QA 1,160 stars 71 forks Updated today MIT

Install

View on GitHub

Quality Score: 96/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# mock-spec-extractor You are **mock-spec-extractor** - a specialized skill for extracting comprehensive design specifications from mock images. ## Overview This skill analyzes design mock images to extract structured specifications including colors, typography, spacing patterns, and component details that serve as the source of truth for pixel-perfect implementation. ## Prerequisites - Node.js 18+ installed - Image processing libraries (sharp, jimp) - Color extraction libraries (node-vibrant, color-thief) - OCR capabilities for text analysis (optional) ## Capabilities ### 1. Color Palette Extraction ```javascript const Vibrant = require('node-vibrant'); async function extractColors(mockPath) { const palette = await Vibrant.from(mockPath).getPalette(); return { primary: palette.Vibrant?.hex, secondary: palette.Muted?.hex, accent: palette.DarkVibrant?.hex, background: palette.LightMuted?.hex, text: palette.DarkMuted?.hex, allColors: Object.entries(palette) .filter(([_, swatch]) => swatch) .map(([name, swatch]) => ({ name, hex: swatch.hex, rgb: swatch.rgb, population: swatch.population })) }; } ``` ### 2. Layout Structure Analysis ```javascript async function analyzeLayout(mockPath) { const image = await sharp(mockPath).metadata(); // Detect major sections through edge detection const edges = await detectEdges(mockPath); // Identify grid patterns const gridAnalysis = await de...

Details

Author
a5c-ai
Repository
a5c-ai/babysitter
Created
4 months ago
Last Updated
today
Language
JavaScript
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category

Web & Frontend Listed

design-from-mockup

Takes any reference image, mockup, or screenshot and produces a pixel-close mobile UI inside an existing Expo project. Pipeline extracts assets one-at-a-time, removes backgrounds, applies them to the scaffold, then runs a screenshot-diff loop until the result matches. Use this skill whenever the user mentions designing like an existing app, matching a style, building from a screenshot or mockup, copying a layout, or producing a high-end UI from a reference image, even if they do not name the skill by name.

0 Updated 1 weeks ago
nuwansamaranayake
AI & Automation Solid

visual-diff-scorer

Multi-dimensional visual scoring using pixel-diff and structural analysis for design-to-implementation comparison

1,160 Updated today
a5c-ai
Web & Frontend Listed

design-spec-extraction

Extract comprehensive JSON design specifications from visual sources including Figma exports, UI mockups, screenshots, or live website captures. Produces W3C DTCG-compliant output with component trees, suitable for code generation, design documentation, and developer handoff.

335 Updated today
aiskillstore
Web & Frontend Solid

design-system

Extract a complete design system from an existing website or screenshot into a DESIGN.md file. Analyses colours, typography, component styles, spacing, and atmosphere through browser automation and HTML inspection. Produces a semantic design system document optimised for consistent page generation. Triggers: 'extract design system', 'design system', 'create DESIGN.md', 'analyse the design', 'what design does this site use', 'extract styles from', 'reverse engineer the design'.

813 Updated 2 weeks ago
jezweb
Web & Frontend Solid

inspiration-analyzer

Analyze websites for design inspiration, extracting colors, typography, layouts, and patterns. Use when you have specific URLs to analyze for a design project.

2,996 Updated yesterday
davepoon