mockup-extraction

mockup-extraction is a skill for Claude Code from marcusgoll/Spec-Flow. It costs 48 tokens per session (4,314 once invoked), scanned A, original, MIT.

A tool that turns approved HTML mockups into a documented list of reusable interface patterns and implementation tasks.

In plain words
What is it for?
It helps inventory mockup components, map CSS classes, record variants and states, and prepare extraction tasks.
Why use it?
It reduces the manual work of finding repeated components and translating mockup styles into Tailwind CSS.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit It helps inventory mockup components, map CSS classes, record variants and states, and prepare extraction tasks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/marcusgoll/spec-flow/mockup-extraction
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add marcusgoll/Spec-Flow --skill mockup-extraction
Clone the repo
git clone --depth 1 https://github.com/marcusgoll/Spec-Flow

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mockup-extraction

README.md
[![agentmods](https://agentmods.dev/badge/skills/marcusgoll/spec-flow/mockup-extraction/github.svg)](https://agentmods.dev/skills/marcusgoll/spec-flow/mockup-extraction)
Your own site
<a href="https://agentmods.dev/skills/marcusgoll/spec-flow/mockup-extraction"><img src="https://agentmods.dev/badge/skills/marcusgoll/spec-flow/mockup-extraction/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mockup-extraction

Your own site · 80×15
<a href="https://agentmods.dev/skills/marcusgoll/spec-flow/mockup-extraction"><img src="https://agentmods.dev/badge/skills/marcusgoll/spec-flow/mockup-extraction.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,314 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00048 $0.04314
Opus 5.5 $0.00019 $0.01726
Sonnet 5.5 $0.00010 $0.00863
Haiku 4.5 $0.00005 $0.00431

Measured 1mo ago against content hash 67753d569368, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mockup-extraction scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/mockup-extraction/SKILL.md · 603 lines

How it starts

The opening of the file, as written. The whole thing — 603 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Purpose: Bridge the gap between visual mockups and production code by:

  1. Identifying repeated UI patterns across mockup screens
  2. Mapping mockup CSS classes to Tailwind utilities
  3. Documenting component variants and states
  4. Creating extraction tasks for systematic implementation

When to invoke: At the start of /implement phase when mockups exist and are approved (UI-first features).

<quick_start> Before extraction, verify:

  1. Mockups exist in specs/NNN-slug/mockups/ or design/prototype/screens/
  2. Mockup approval gate passed in state.yaml
  3. Theme files exist (theme.yaml, theme.css)

<basic_workflow>

  1. Inventory - List all mockup HTML files
  2. Scan - Parse HTML for component patterns
  3. Classify - Categorize by component type
  4. Count - Track occurrence frequency
  5. Map - Convert CSS to Tailwind utilities
  6. Document - Populate prototype-patterns.md
  7. Generate Tasks - Create extraction tasks for tasks.md </basic_workflow>

<extraction_output> Generate prototype-patterns.md in feature directory:

# Prototype Patterns: {FEATURE_NAME}

## Component Inventory
| Component | Source Screens | Occurrences | Priority |
|-----------|---------------|-------------|----------|
| Button Primary | login, signup, dashboard | 12 | Must extract |
| Card | dashboard, settings | 8 | Must extract |
| Form Input | login, signup, profile | 15 | Must extract |
| Alert | all screens | 6 | Consider extraction |

## Component Details

### Button Primary
- **CSS Classes**: `.btn`, `.btn-primary`
- **Tailwind**: `px-4 py-2 bg-primary text-white rounded-md hover:bg-primary-hover`
- **States**: default, hover, focus, disabled, loading
- **Props**: `variant`, `size`, `icon`, `loading`

### Card
- **CSS Classes**: `.card`, `.card-elevated`
- **Tailwind**: `bg-surface p-4 rounded-lg shadow-md`
- **Variants**: default, elevated, bordered
- **Props**: `padding`, `shadow`, `header`, `footer`

## CSS to Tailwind Mapping
| CSS Variable | Tailwind Utility |
|--------------|------------------|
| var(--color-primary) | bg-primary, text-primary |
| var(--space-4) | p-4, m-4, gap-4 |
| var(--radius-md) | rounded-md |
| var(--shadow-md) | shadow-md |

## Visual Fidelity Checklist
- [ ] Spacing matches 8pt grid
- [ ] Colors use design tokens
- [ ] All states implemented (hover, focus, disabled)
- [ ] Typography uses scale
- [ ] Responsive breakpoints match

</extraction_output> </quick_start>

<detailed_procedures> <component_identification>

Component Identification Rules

Scan mockup HTML for these patterns:

Read the full file on GitHub · 603 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 603 lines · 48 tokens per session scan A 67753d569368

Subscribe to this mod's changes

mockup-extraction is a skill published in the GitHub repository marcusgoll/Spec-Flow (96 stars, last pushed 29d ago), licensed MIT. It adds 48 tokens to every session and 4,314 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

anti-slop-design

Autonomous Principal Design Technologist. Cures vibe-coded software from AI frontend slop using curated token archetypes and 7-axis quality gating.

sickn33/agentic-awesome-skills · 34 tokens

antigravity-design-expert

Core UI/UX engineering skill for building highly interactive, spatial, weightless, and glassmorphism-based web interfaces using GSAP and 3D CSS.

sickn33/agentic-awesome-skills · 39 tokens

team-ui

Orchestrate the UI team through the UX pipeline — authoring, visual design, implementation, review, polish. Uses /ux-design, /ux-review, studio templates.

Donchitos/Claude-Code-Game-Studios · 38 tokens

design-shiny-ui

Design Shiny application UIs using bslib for theming, layoutcolumns for responsive grids, value boxes, cards, and custom CSS/SCSS. Covers page layouts, accessibility, and brand consistency. Use when building a new Shiny app UI from scratch, modernizing an existing app from fluidPage to bslib, applying brand theming…

pjt222/agent-almanac · 96 tokens

token-architecture

Design and govern a three-tier CSS custom property token system (primitive → semantic → component), including semantic alias layers, light/dark theming, and DTCG-compatible source generation. Triggers on "design a three-tier token system for our web app", "audit our CSS tokens for hardcoded value drift", "add a…

eugenelim/agent-ready-repo · 86 tokens

interaction-design

Use when someone asks how one screen or component should respond to actions, validate input, transition, recover, or feel in use. Produces behavioral and state specifications for the interaction. Use information-architecture for hierarchy, user-flow for cross-screen routes, and creative-direction for visual mood…

eugenelim/agent-ready-repo · 150 tokens