design-extract

design-extract is a skill for Claude Code from wangbin3162/agents-skills. It costs 162 tokens per session (4,592 once invoked), scanned A, original, MIT.

A design-document generator that studies a live website or screenshots and records its visual rules in a DESIGN.md file.

In plain words
What is it for?
Use it when another person or agent needs a structured visual reference for reproducing a site’s design language without cloning the page.
Why use it?
It turns a website’s appearance into reusable guidance about colors, type, spacing, components, responsive behavior, and brand voice.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit Use it when another person or agent needs a structured visual reference for reproducing a site’s design language without cloning the page.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wangbin3162/agents-skills/design-extract
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 wangbin3162/agents-skills --skill design-extract
Clone the repo
git clone --depth 1 https://github.com/wangbin3162/agents-skills

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 design-extract

README.md
[![agentmods](https://agentmods.dev/badge/skills/wangbin3162/agents-skills/design-extract/github.svg)](https://agentmods.dev/skills/wangbin3162/agents-skills/design-extract)
Your own site
<a href="https://agentmods.dev/skills/wangbin3162/agents-skills/design-extract"><img src="https://agentmods.dev/badge/skills/wangbin3162/agents-skills/design-extract/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 design-extract

Your own site · 80×15
<a href="https://agentmods.dev/skills/wangbin3162/agents-skills/design-extract"><img src="https://agentmods.dev/badge/skills/wangbin3162/agents-skills/design-extract.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 162 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,592 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.00162 $0.04592
Opus 5.5 $0.00065 $0.01837
Sonnet 5.5 $0.00032 $0.00918
Haiku 4.5 $0.00016 $0.00459

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

Security

Grade A, and why

design-extract 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 2mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (assets/collect_design_data.js), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/design-extract/SKILL.md · 289 lines

How it starts

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

Design Extract

You are about to extract a website's design language into a single structured DESIGN.md — a design-system reference document that another AI (or human) can use to reproduce the site's visual identity. The output is not a clone of the page; it is a token-level specification of the design system: colors, typography, layout, elevation, shapes, components, responsive behavior, and the editorial voice that makes the brand recognizable.

The reference standard for the output is the Claude.com design document: a warm, editorial, token-referenced spec where every value is a {token.name} reference and every component is documented to the pixel.

Interactive Input

If $ARGUMENTS is empty or incomplete, ask the user interactively. Do NOT proceed without the required information. Ask questions one at a time — don't overwhelm with a long form.

Step 1: Input Source

If no URL and no screenshots were provided, ask:

Q: 用什么作为设计提取的来源?

  • Option A: 输入 URL(推荐)— "提供目标网址,例如 https://example.com,我会打开并采集"
  • Option B: 仅截图 — "我没有 URL,只有本地截图(需多模态分析)"
  • Option C: URL + 截图 — "我有 URL,同时补充几张截图(交互态/移动端/特定页面)"

If the user chooses B (screenshots only), note that extraction relies entirely on visual inference — no computed CSS. Skip to Step 2 (screenshots).

Validate URL format. If invalid, ask again.

Step 2: Screenshots (only if B or C)

Q: 截图文件路径?

  • 请提供 1-N 张截图路径(建议 ≥2 张,覆盖首屏 + 内容区 + footer)
  • Option A: 输入路径(多个用空格分隔)
  • Option B: 我还没截图 — "帮我从 URL 自动截"(仅 C 模式可用,转 URL 自动截图流程)

Verify each path exists. If not, ask again.

Step 3: Output Directory Name

If --dir was not provided, suggest a default derived from the hostname (URL mode) or the first screenshot's name (screenshot mode) and ask:

Q: 输出目录叫什么名字?

  • 显示建议名称(如 example-com),让用户确认或自定义
  • 用户可直接回车确认默认值,或输入新名称

If the directory already exists, ask whether to overwrite or pick a new name.

Step 4: Output Language

Q: DESIGN.md 用什么语言?

  • Option A: 跟随你的提问语言(推荐)— 中文提问→中文输出,英文提问→英文输出
  • Option B: 英文 — 对标 Claude.com 标准,便于喂给 AI 编程工具
  • Option C: 中文 — 章节说明用中文,token 名键仍用英文

Read the full file on GitHub · 289 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. 2mo ago First seen · 289 lines · 162 tokens per session scan A fb36fdf3b9b9

Subscribe to this mod's changes

design-extract is a skill published in the GitHub repository wangbin3162/agents-skills (2 stars, last pushed 4mo ago), licensed MIT. It adds 162 tokens to every session and 4,592 once invoked, about $0.0006 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-08-31.

Related

design-extract compared with skills from other repositories

design-extract next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
design-extractwangbin3162/agents-skillsSkill24mo agoMITA162Claude Code
webgl-holographic-foilnexu-io/open-designSkill106ktodayApache-2.0A41Claude Code, Codex
html-ppt-hermes-cyber-terminalnexu-io/open-designSkill106ktodayApache-2.0A53Claude Code, Codex
html-ppt-taste-brutalistnexu-io/open-designSkill106ktodayApache-2.0A78Claude Code, Codex
visual-ralphYeachan-Heo/oh-my-codexSkill34ktodayMITA52Codex
glance-canonical-layoutsandroid/skillsSkill10k2d agoApache-2.0A56Claude Code
accessibilitymicrosoft/hve-coreSkill1.6ktodayMITA47Claude Code