anydesign

Extract design tokens and component specs from images, websites, and Figma files into structured design.md documents.

Updated Aug 2, 2026
One-click install
npx skills add https://github.com/leonardoacosta/agents --skill anydesign-leonardoacosta
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: anydesign
Source: https://github.com/leonardoacosta/agents/tree/main/skills/anydesign
Command: npx skills add https://github.com/leonardoacosta/agents --skill anydesign-leonardoacosta

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires playwright, Pillow, pyyaml, python-pptx, python-docx, and includes scripts (resource) and references (resource) components.

What problem does it solve? Reverse-engineering the design system behind a visual reference is slow and error-prone: colors get eyeballed, tokens get invented, and the resulting brief is too vague for an AI builder or teammate to reconstruct faithfully. This Skill turns any visual source into a rigorous, confidence-marked design specification with real hex codes and machine-readable tokens. ## Core Features & Use Cases - Full design analysis: Analyzes images, website URLs, and Figma files through a 6-layer framework (identity, tokens, components, layout, reconstruction, brand rules) and outputs a design.md spec plus a W3C DTCG design-tokens.json. - Element mode: Copies a single element (navbar, card, 3D illustration) into a focused element.md with a rebuild prompt for code agents or a token-grounded image-generation prompt for tools like Midjourney or gpt-image. - Standalone CLI scripts: Seven Python tools for CSS variable extraction, multi-viewport Playwright capture, dominant color extraction, WCAG contrast checks, design.md linting, token drift audits, and Claude Design bundle export. - Use Case: Point it at vercel.com to extract 800+ CSS custom properties, generate a lint-validated design.md, then paste it into v0 to rebuild the page — or audit months later whether the live site has drifted from your captured tokens. ## Quick Start Ask the AI to extract the design system from a URL like https://vercel.com and generate a design.md with tokens and reconstruction notes.

Frequently Asked Questions about anydesign

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract a design system from a website URL?

Pass the URL and the skill fetches the HTML first, extracts CSS custom properties from linked stylesheets as high-confidence tokens, and only uses Playwright screenshots when the HTML is empty (SPA without SSR). The output is a design.md plus a DTCG design-tokens.json.

How do I copy a single element like a navbar or 3D illustration?

Use element mode by asking to copy that specific element. The capture script's --selector flag screenshots just the element's bounding box and saves its outerHTML, then the skill produces an element.md with a rebuild prompt or a token-grounded image-generation prompt.

Can I use the design tokens with Figma or Tailwind?

Yes, tokens are emitted in W3C DTCG format with $value and $type fields, which imports directly into Style Dictionary, Figma Variables, and Tokens Studio. The export script also generates a tailwind.config.ts and tokens.css from the same token file.

Does the skill work with Figma files?

Yes, it uses the Figma MCP tools get_metadata, get_variable_defs, get_design_context, and get_screenshot in that order. Tokens defined as Figma Variables are extracted directly and marked high confidence rather than inferred from pixels.

Why does the website capture fail or return empty content?

Raw HTML fetches return empty bodies for SPAs without server-side rendering, and some sites block requests with Cloudflare or captchas. For SPAs, run capture_site.py with Playwright; for blocked sites, provide a manual screenshot instead since bypassing protections is not attempted.

How do I check if my captured design tokens are still accurate?

Run verify_design.py with your design-tokens.json and the live URL. It fetches the site's current CSS custom properties and reports which declared tokens still match, which drifted, and which new values appeared.