mock-spec-extractor
Extracts design specifications from mock images including colors, typography, spacing, and component details
npx skills add a5c-ai/babysitter --skill mock-spec-extractor --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# 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)
- Overview
- Prerequisites
- Capabilities
- 1. Color Palette Extraction
- 2. Layout Structure Analysis
- 3. Typography Detection
- 4. Spacing Pattern Recognition
- 5. Component Detection
- Input Schema
- Output Schema
- Process Integration
- Usage Example
- Best Practices
What does the mock-spec-extractor skill do?
Extracts design specifications from mock images including colors, typography, spacing, and component details
How do I install it?
Run `npx skills add a5c-ai/babysitter --skill mock-spec-extractor --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From a5c-ai/babysitter, a repository with 1,642 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
