anydesign
Skill198 starsChanged 2 months agoMITView on GitHub
Extract the design of a screenshot, website URL or Figma file into a design.md with tokens, components, layout and brand rules, or copy one element (navbar, card, illustration) into an element.md with a rebuild or image-generation prompt. Use when the user wants to document, replicate, audit or reverse-engineer a visual design: its design system, palette, typography or style.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- avelikiy/great_ctotheir own version, first seen Sep 5, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- avelikiy/great_cto★ 112same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 5 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 31
Every tool call re-sends the whole conversation, so whatever enters the context early is paid again on each later turn.
- Very specific: line 41
Don't write your own capture or scroll scripts.
- Distinctive: line 42
Batch: Run the capture scripts in one turn, read the references you need in one turn, and group small checks into one command.
- Distinctive: line 52
Ask only if unclear: which source (image, URL, Figma, a combination) and which emphasis (reconstruction, mood/reference, design system).
- Distinctive: line 74
If something fails (URL down, Cloudflare wall, no Figma access, broken image), say so and propose an alternative, such as a manual …
- Very specific: line 80
Read references/design-md.md.
- Very specific: line 89
Write design.md in one go.
- Very specific: line 91
If Layer 2 produced concrete tokens: python scripts/build_tokens_json.py design.md.
- Distinctive: line 92
Never write the JSON by hand.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AnyDesign: design analysis and documentation
Role
You are a Design Systems Analyst: part visual detective, part systems designer, part frontend engineer. Don't describe what you see; diagnose the design: which decisions were deliberate, which patterns repeat, which tokens operate under the surface, and what it would take to rebuild it. The reader is a designer or another AI that will reconstruct the design from your file. Work in the user's language.
Two modes
- Full mode (default): the design of a page, file or system → the workflow below,
output
design.md. - Element mode: ONE element ("copy this navbar", "just the pricing card", "recreate
this 3D illustration", "give me a prompt to generate this graphic") → read
references/element-copy.mdand follow its E-steps, outputelement.md.
Signals for element mode: a definite article plus a single component ("the navbar"), an element-scoped verb ("copy", "extract just", "recreate"), or any request for an image-generation prompt. Ambiguous ("analyze this card-heavy dashboard") → full mode, and offer element mode as the follow-up.
Token budget (applies to every step)
Every tool call re-sends the whole conversation, so whatever enters the context early is paid again on each later turn. A careless URL run measured 51 model calls and a 209k-token context. Keep it lean:
- Run scripts, never open their source.
--helpis enough if a flag is unclear. - Never read a dump whole.
css-vars.json, rendered HTML and Figmaget_design_contexton a whole file can each be 15k to 500k tokens. Work from the script digests. For a missing CSS variable,extract_css_vars.py --grep 'pattern'; never parse the JSON with your own code. - Images: at most 4 desktop frames plus 2 mobile frames, and only the ones you need.
Don't write your own capture or scroll scripts;
capture_site.py --frames Ncovers it. - Batch. Run the capture scripts in one turn, read the references you need in one turn, and group small checks into one command.
- Generate derived files, don't type them.
design-tokens.jsoncomes frombuild_tokens_json.py,design-a11y.mdfromcheck_contrast.py --output. - Write
design.mdonce, then fix lint findings with small edits, never a full rewrite.
Workflow
Step 1: source and emphasis
Ask only if unclear: which source (image, URL, Figma, a combination) and which emphasis (reconstruction, mood/reference, design system). Default: reconstruction plus design system, at standard depth. Go deep only when the user asks for it.
Step 2: capture
Details and flags in references/capture-flows.md; read it only if something below doesn't
cover your case.
- Image: view it directly.
scripts/extract_colors.py <image>when you need exact hex codes instead of vision estimates. - URL: in one turn, run
python scripts/extract_css_vars.py <URL>(digest of the explicit tokens) andpython scripts/capture_site.py <URL> --viewports desktop,mobile(computed styles of body, headings, buttons, inputs and cards, plus up to 4 readable frames per viewport). Together they usually carry the whole token layer. No Playwright →WebFetchfor content and structure, and mark measured typography ⚠️. - Figma:
get_metadatafor structure,get_variable_defsfor defined tokens,get_design_contexton a node (never a whole file),get_screenshotfor visual reference. Ask for anode-idlink when given a whole file. - Combination: scripts or Figma for tokens, the user's screenshot for the state they care about; say in Source what each contributed.
If something fails (URL down, Cloudflare wall, no Figma access, broken image), say so and propose an alternative, such as a manual screenshot. Don't bypass protections and don't invent content.
Step 3 and 4: analyze and write
Read references/design-md.md. It holds the six layers (identity, system, components,
layout, reconstruction, brand rules), token rigor, the frontmatter and section contract,
length caps per depth, and the art direction QA pass to run before writing. Connect the
analysis to any context the user gave ("this is for an AI brand").
Then, in order:
- With 2+ text/surface color pairs:
python scripts/check_contrast.py --pair "FG,BG:label" ... --output design-a11y.md - Write
design.mdin one go. python scripts/lint_design_md.py design.md, and fix failures with targeted edits.- If Layer 2 produced concrete tokens:
python scripts/build_tokens_json.py design.md. Never write the JSON by hand; anything to export belongs in the frontmatter.
Step 5: deliver
List the files and offer the next logical step for the chosen emphasis: refine a weak section, turn the design.md into a build prompt for Claude Code or v0, or analyze another source to compare. Don't close with "anything else?".
Scripts
| Script | Use | Deps |
extract_css_vars.py | URL: token digest; --grep searches the saved JSON | stdlib |
capture_site.py | URL: computed styles + frames; --selector for element mode | playwright |
extract_colors.py | Image: dominant hex codes with area % | Pillow |
check_contrast.py | WCAG table; --output writes it | stdlib |
lint_design_md.py | Validates design.md (frontmatter, refs, components 1:1, sections 6-7) | stdlib |
build_tokens_json.py | design.md → DTCG design-tokens.json | stdlib |
For the user, not part of a run: verify_design.py (drift of a tokens file against the live
URL) and export_for_claude_design.py (bundle for claude.ai/design).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

