Skip to content
design-asset-parser logo

Design Asset Parser Skill

design-asset-parser

Parses design assets (PDF, CSS) to generate a draft design spec.

SKILL.md

Full skill instructions

Design Asset Parser Skill

Purpose: Parse design deliverables (Figma export images/​CSS/​HTML, screen-spec PDF) to produce a draft dev spec Outputs: {tasksRoot}/​{feature-name}/​design-spec.md, pending-questions.md When to use: Before implementing a new feature when design assets are provided


Role

Automatically extract UI/​feature requirements from design assets and generate a structured spec that developers can implement immediately.

Input file types

  1. Screen-spec PDF: .claude/​docs/​design-assets/​*.pdf
  2. Figma export: images (PNG/​JPG), CSS/​HTML export
  3. Design guide: color/​font/​spacing tokens

Key capabilities

  • Extract text/​images from PDF (OCR supported)
  • Extract components/​style tokens from CSS/​HTML export
  • Structure UI elements, validation, states, edge cases
  • Auto-detect unclear requirements and generate questions

Triggers

Call automatically or manually in these cases:

Automatic triggers

  1. PDF added under .claude/​docs/​design-assets/
  2. Figma export zip added
  3. Moonshot Agent classifies as new feature and finds design asset paths

Manual triggers

# Example user requests
"Parse the screen-spec PDF and create a dev spec"
"Analyze Figma export CSS and organize style tokens"

Flow

Step 1: Verify input files (1m)

Input file list:
- Screen spec: .claude/​docs/​design-assets/​batch-management_v3.pdf
- Figma export: .claude/​docs/​design-assets/​batch-management-export.zip
- Feature name: batch-management

Step 2: Parse PDF (3-5m)

Work:

  • Extract PDF text (read PDF with Read tool)
  • Extract images and run OCR (if needed)
  • Identify section structure (screen layout, field definitions, feature requirements)

Extract items:

  • Page/​modal/​tab structure
  • Form fields: name, type, required, default, validation
  • Table/​Grid: columns, sort/​filter, paging, empty state
  • Buttons/​actions: label, action, enable/​disable conditions
  • State/​error/​loading: message rules

Step 3: Parse CSS/​HTML (2-3m)

Work:

  • Extract CSS variables (color, font, spacing)
  • Extract component classes and variants (Primary/​Secondary/​Disabled)
  • Identify HTML structure (layout, component hierarchy)

Extract items:

/​* Style tokens */
--color-primary: #1a73e8;
--font-size-base: 14px;
--spacing-md: 16px;

Step 4: Draft spec (5-10m)

Output file: {tasksRoot}/​{feature-name}/​design-spec.md

Base structure:

# Design-based Development Spec

## Screen Overview
- Page structure
- Main flow

## UI Elements and Behavior
### Form Fields
| Field | Type | Required | Default | Validation |
|--------|------|---------|--------|------------|

### Table Columns
| Column | Sort | Filter | Notes |
|--------|------|--------|------|

### Buttons/​Actions
- Button: action description

### State/​Error/​Loading
- Loading: spinner location
- Success/​Error: message rules

## Style Tokens
- Colors, fonts, spacing

## Asset Manifest
- Image/​icon list

## Extraction Evidence
- Source files, page numbers

## Open Questions
- List of unclear requirements

Step 5: Record open questions (1-2m)

Output file: {tasksRoot}/​{feature-name}/​pending-questions.md

# Pending Questions

## Date: {YYYY-MM-DD}

### Priority: HIGH
1. **Question title**
   - Source: design-spec.md section
   - Question: specific question
   - Impact: impact on implementation/​design

Step 6: Summarize results and next steps

OK Design Asset Parser Skill complete

## Outputs
- design-spec.md: N UI elements, N style tokens
- pending-questions.md: N open questions

## Next steps
1. Resolve HIGH priority questions in pending-questions.md
2. Call Requirements Analyzer Agent
3. Call Context Builder Agent

Prompt Template

You are the Design Asset Parser Skill.
Read design assets and structure a dev spec.

## Input
- Design file paths: {designPaths}
- Target feature name: {featureName}
- Existing design-spec.md: {hasSpec}

## Tasks
1. Read PDF/​Figma export files (use Read tool)
2. Extract UI elements (Form/​Table/​Button/​State)
3. Specify validation/​edge cases
4. Extract style tokens (if CSS exists)
5. Build asset manifest
6. Organize open questions

## Output
- `{tasksRoot}/​{feature-name}/​design-spec.md`: structured dev spec
- `{tasksRoot}/​{feature-name}/​pending-questions.md`: open questions list

## Quality bar
- UI elements in table format
- Validation rules clearly specified (length/​pattern/​range)
- Convert ambiguous requirements into questions
- Priority included (HIGH/​MEDIUM/​LOW)

Usage Examples

Example 1: Parse screen-spec PDF

User: "Parse the screen-spec PDF and create a dev spec.
       Path: .claude/​docs/​design-assets/​batch-management_v3.pdf
       Feature: batch-management"

Design Asset Parser Skill ->
1. Read PDF (Read tool)
2. Parse by section (layout, field definitions, requirements)
3. Create design-spec.md
4. Create pending-questions.md (unclear parts)

Outputs:
- {tasksRoot}/​batch-management/​design-spec.md
- {tasksRoot}/​batch-management/​pending-questions.md

Example 2: Parse Figma CSS export

User: "Analyze Figma CSS export and organize style tokens.
       Path: .claude/​docs/​design-assets/​batch-ui-export.css
       Feature: batch-management"

Design Asset Parser Skill ->
1. Read CSS file
2. Extract CSS variables (--color-*, --font-*, --spacing-*)
3. Extract component classes (.button--primary, .button--disabled)
4. Update the "Style Tokens" section in design-spec.md

Outputs:
- design-spec.md (style tokens updated)

Example 3: Parse PDF + CSS together

User: "Parse the screen-spec PDF and Figma CSS together.
       PDF: .claude/​docs/​design-assets/​batch-management_v3.pdf
       CSS: .claude/​docs/​design-assets/​batch-ui-export.css
       Feature: batch-management"

Design Asset Parser Skill ->
1. Parse PDF -> UI elements, feature requirements
2. Parse CSS -> style tokens
3. Merge results -> design-spec.md
4. Conflicts -> pending-questions.md

Outputs:
- design-spec.md (UI + styles merged)
- pending-questions.md (conflict questions)

Integrated Workflow

Design Asset Parser -> Design Spec Extractor Agent

1. Design Asset Parser Skill:
   - Input: PDF/​CSS files
   - Output: design-spec.md (draft), pending-questions.md

2. User:
   - Review pending-questions.md
   - Answer HIGH priority questions

3. Design Spec Extractor Agent:
   - Review design-spec.md
   - Compare with CLAUDE.md rules
   - Apply project patterns
   - Generate final design-spec.md

4. Requirements Analyzer Agent:
   - Create preliminary agreement based on design-spec.md

Reference Info

Project design asset paths

  • Example product: .claude/​docs/​design-assets/​*.pdf
  • Figma export: .claude/​docs/​design-assets/​*.zip, *.css, *.html

Existing project patterns (follow CLAUDE.md)

  • Entity-Request separation
  • API proxy pattern
  • Activity log header rules
  • fp-ts Either pattern
  • TypeScript strict mode

Notes

  1. PDF parsing limits: image-heavy PDFs need OCR
  2. CSS parsing limits: inline styles cannot be extracted
  3. Automation limits: ambiguous requirements should become questions
  4. Versioning: record version history when design-spec.md changes

More Design skills

brandkit logo
Design

brandkit

Premium brand-kit image generation for high-end identity systems, logo concepts, and visual-world presentations.

92.7K 345.8K
View

Premium website design-to-code skill that generates visual references first, then builds faithful frontend implementations.

92.7K 341.7K
View

Premium frontend image direction for landing pages and marketing sites, generating one distinct horizontal image per section.

92.7K 337.8K
View

Premium mobile app screen concepts and flows with clean hierarchy, strong imagery, and distinctive art direction.

92.7K 331.8K
View

Emil Kowalski's philosophy on UI polish, component design, and the invisible details that make software feel good.

43.5K 323.4K
View

Frontend design and iteration for production-grade interfaces, from concept to ship.

76.8K 313.3K
View

Reverse-engineer design tokens from public websites into starter token files for your project.

232 129.9K
View
Animate logo
Design

Animate

Builds an animation from scratch by making the decisions in the order that determines whether it feels right.

43.5K 117.9K
View

Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.

179.7K 114.2K
View

Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.

179.7K 100.1K
View

Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.

179.7K 89.5K
View

Design AI tools

Maze Guru logo
Images

Maze Guru

Chat-to-edit AI studio for product photos, portraits, branding, and video.

Freemium
View
R
Design

RoomGPT

Generate your dream room in seconds.

Paid
View

Redesign your interior in seconds using AI

Paid
View
Reroom logo
Design

Reroom

Transform rooms with AI-generated designs.

Freemium
View
Jife logo
Design

Jife

Transform Your Space with AI-Powered Japanese Interior Designs by Jife

Paid
View
Visily logo
Design

Visily

AI-powered wireframes for non-designers.

Free
View

Revolutionize Property Viewing with AI-Generated Floor Plans and Virtual Tours

Paid
View
Archsynth logo
Design

Archsynth

Transform sketches into stunning architectural renders with AI.

Paid
View