cygnusfear/claude-stuff/design-spec-extraction
Claude Code and agent skill by cygnusfear/claude-stuff
- community
Checking that the SKILL.md file is still in the repository.
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.
Install
npx vskill@latest install cygnusfear/claude-stuff/design-spec-extractionSKILL.md
The same SKILL.md was published earlier as cygnusfear/claude-stuff/design-spec-extraction.
Design Specification Extraction
Extract comprehensive, production-ready JSON design specifications from visual inputs using a 7-pass serial subtask architecture that ensures complete coverage and cross-validation.
When to Use This Skill
- Extracting design tokens from Figma exports or screenshots
- Converting visual mockups into structured component specifications
- Creating developer handoff documentation from designs
- Generating design system documentation from existing UIs
- Preparing design data for code generation tools
- Analyzing website screenshots for design reverse-engineering
Output Format
The extraction produces JSON following the W3C Design Tokens Community Group (DTCG) 2025.10 format with extensions:
- $version: Schema version
- $source: Metadata (type, dimensions, extraction timestamp)
- tokens: Design tokens (colors, typography, spacing, sizing, shadows, radii)
- components: Hierarchical component tree with bounding boxes
- accessibility: WCAG analysis, contrast issues, semantic structure
- $extensions: Layout, component catalog, confidence scores
CRITICAL: File-Based Architecture
EVERY pass MUST write its output to a JSON file on disk. This is non-negotiable.
Directory Structure
Before starting extraction, create the output directory:
Required File Outputs
| Pass | Output File | Description | |
|---|---|---|---|
| 1 | .design-specs/{project}/pass-1-layout.json | Layout and structure | |
| 2 | .design-specs/{project}/pass-2-colors.json | Color tokens | |
| 3 | .design-specs/{project}/pass-3-typography.json | Typography tokens | |
| 4 | .design-specs/{project}/pass-4-components.json | Component tree | |
| 5 | .design-specs/{project}/pass-5-spacing.json | Spacing and dimensions | |
| 6 | .design-specs/{project}/pass-6-states.json | States and accessibility | |
| 7 | .design-specs/{project}/design-spec.json | Final consolidated output |
Why File-Based?
- Persistence: Each pass result is saved, enabling resumption if interrupted
- Debugging: Intermediate files allow inspection of each extraction phase
- Validation: Each JSON file can be validated independently
- Context Passing: Subtask agents read previous pass files directly
- Audit Trail: Complete record of extraction process
Multipass Architecture
The extraction uses 7 serial passes. Each pass MUST:
- Read previous pass JSON files from disk
- Perform its analysis
- WRITE its output to the designated JSON file
- Complete before the next pass begins
Pass 1: Source Analysis & Layout Structure
Objective: Establish foundational understanding of the design source and spatial organization.
Subtask Agent Prompt
Pass 2: Color & Visual Style Extraction
Objective: Extract complete color palette with semantic mappings.
Subtask Agent Prompt
Pass 3: Typography Analysis
Objective: Extract complete typography system including fonts, sizes, weights, and text styles.
Subtask Agent Prompt
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/design-spec-extraction/SKILL.md
Popularity
- Repository stars
- 3
- Repository forks
- 1
- 7-day trend score
- 7
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 9 Apr 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/cygnusfear/claude-stuff/design-spec-extraction)