design-extract

GitHub

从网站URL提取完整设计系统,生成颜色、排版、组件等8种格式文件,支持对比、评级及主题转换。

skills/design-extract/SKILL.md AjayIrkal23/agentic-mercy-10x

Trigger Scenarios

需要分析竞品或参考网站的设计规范 需要将现有网页视觉风格转换为Tailwind或CSS变量

Install

npx skills add AjayIrkal23/agentic-mercy-10x --skill design-extract -g -y
More Options

Use without installing

npx skills use AjayIrkal23/agentic-mercy-10x@design-extract

指定 Agent (Claude Code)

npx skills add AjayIrkal23/agentic-mercy-10x --skill design-extract -a claude-code -g -y

安装 repo 全部 skill

npx skills add AjayIrkal23/agentic-mercy-10x --all -g -y

预览 repo 内 skill

npx skills add AjayIrkal23/agentic-mercy-10x --list

SKILL.md

Frontmatter
{
    "name": "design-extract",
    "description": "ALWAYS invoke when a reference URL is available to extract complete design systems from live websites — tokens, Tailwind config, typography, colors, and component anatomy. Commands: \/extract, \/grade, \/battle, \/remix, \/pack, \/theme-swap, \/brand, \/pair."
}

Extract Design Language

Extract the complete design language from any website URL. Generates 8 output files covering colors, typography, spacing, shadows, components, breakpoints, animations, and accessibility.

Prerequisites

Ensure designlang is available. Install if needed:

npm install -g designlang

Or use npx (no install required):

npx designlang <url>

Process

  1. Run the extraction on the provided URL:
npx designlang <url> --screenshots

For multi-page crawling: npx designlang <url> --depth 3 --screenshots For dark mode: npx designlang <url> --dark --screenshots

  1. Read the generated markdown file to understand the design:
cat design-extract-output/*-design-language.md
  1. Present key findings to the user:

    • Primary color palette with hex codes
    • Font families in use
    • Spacing system (base unit if detected)
    • WCAG accessibility score
    • Component patterns found
    • Notable design decisions (shadows, radii, etc.)
  2. Offer next steps:

    • Copy *-tailwind.config.js into their project
    • Import *-variables.css into their stylesheet
    • Paste *-shadcn-theme.css into globals.css for shadcn/ui users
    • Import *-theme.js for React/CSS-in-JS projects
    • Import *-figma-variables.json into Figma for designer handoff
    • Open *-preview.html in a browser for a visual overview
    • Use the markdown file as context for AI-assisted development

Output Files (8)

File Purpose
*-design-language.md AI-optimized markdown — the full design system for LLMs
*-preview.html Visual HTML report with swatches, type scale, shadows, a11y
*-design-tokens.json W3C Design Tokens format
*-tailwind.config.js Ready-to-use Tailwind CSS theme
*-variables.css CSS custom properties
*-figma-variables.json Figma Variables import format
*-theme.js React/CSS-in-JS theme object
*-shadcn-theme.css shadcn/ui theme CSS variables

CLI Commands

Core Extraction

  • designlang <url> — Colors, typography, spacing, shadows, radii, CSS vars, breakpoints, animations, components
  • designlang apply <url> — Auto-detect framework and write tokens to your project
  • designlang clone <url> — Generate a working Next.js starter with extracted design

Grading & Comparison

  • designlang grade <url> — Shareable HTML Design Report Card — letter grade, 8 dimensions, evidence, strengths + fixes
  • designlang battle <urlA> <urlB> — Head-to-head graded battle card with verdict, dimension table, palette comparison

Design Transformation

  • designlang remix <url> --as <vocab> — Restyle the audited page in another vocabulary (brutalist / swiss / art-deco / cyberpunk / soft-ui / editorial)
  • designlang theme-swap <url> --primary <hex> — Recolour the extracted design around a new brand primary
  • designlang pair <urlA> <urlB> — Fuse two designs across 7 axes (colours/type/spacing/shape/motion/voice/components)

Documentation & Analysis

  • designlang brand <url> — Full editorial brand-guidelines document (13 chapters)
  • designlang pack <url> — Bundle every output into one polished design-system directory
  • designlang drift <url> --tokens <file> — Check local tokens for drift against a live site
  • designlang visual-diff <before> <after> — Side-by-side HTML diff of two URLs

MCP Server

  • designlang mcp — Launch stdio MCP server for Cursor / Claude Code / agent integration

Claude Code Slash Commands

Inside Claude Code sessions (via plugin):

  • /extract <url> — Full extraction output
  • /grade <url> — Design Report Card
  • /battle <urlA> <urlB> — Comparative analysis
  • /remix <url> --as <vocab> — Style transformation
  • /pack <url> — Bundled design system
  • /theme-swap <url> --primary <hex> — Recolour around a new brand primary
  • /brand <url> — Full editorial brand-guidelines document
  • /pair <urlA> <urlB> — Fuse two designs

Additional Commands

  • Compare two sites: npx designlang diff <urlA> <urlB>
  • View history: npx designlang history <url>

Options

Flag Description
--out <dir> Output directory (default: ./design-extract-output)
--dark Also extract dark mode color scheme
--depth <n> Crawl N internal pages for site-wide extraction
--screenshots Capture component screenshots (buttons, cards, nav)
--wait <ms> Wait time after page load for SPAs
--framework <type> Generate only specific theme (react or shadcn)

Version History

  • 581d130 Current 2026-07-19 09:06

Same Skill Collection

attic/2026-07-09/skills-pre-update/taste-skill/SKILL.md
attic/2026-07-09/skills-pre-update/ui-ux-pro-max/SKILL.md
skills/agent-development/SKILL.md
skills/api-and-interface-design/SKILL.md
skills/api-contract-standards/SKILL.md
skills/architect-system-design/SKILL.md
skills/backend-api-standards/SKILL.md
skills/backend-code-review/SKILL.md
skills/backend-error-handling/SKILL.md
skills/backend-performance-standards/SKILL.md
skills/backend-standards-always-follow/SKILL.md
skills/canary-playwright/SKILL.md
skills/caveman/SKILL.md
skills/ci-cd-and-automation/SKILL.md
skills/code-execution-standard/SKILL.md
skills/code-review-and-quality/SKILL.md
skills/code-simplification/SKILL.md
skills/codebase-design/SKILL.md
skills/codebase-start-point-guide/SKILL.md
skills/command-development/SKILL.md
skills/composition-patterns/SKILL.md
skills/context-engineering/SKILL.md
skills/dead-code-and-change-audit/SKILL.md
skills/debug-investigation/SKILL.md
skills/debugging-and-error-recovery/SKILL.md
skills/deprecation-and-migration/SKILL.md
skills/design-review-playwright/SKILL.md
skills/diagnose/SKILL.md
skills/documentation-and-adrs/SKILL.md
skills/domain-modeling/SKILL.md
skills/domain-scaffold-patterns/SKILL.md
skills/doubt-driven-development/SKILL.md
skills/dox-doc-tree/SKILL.md
skills/eval-harness/SKILL.md
skills/fix-lint-format/SKILL.md
skills/forensic-change-coupling/SKILL.md
skills/forensic-complexity-trends/SKILL.md
skills/forensic-debt-quantification/SKILL.md
skills/forensic-hotspot-finder/SKILL.md
skills/frontend-api-standards/SKILL.md
skills/frontend-code-review/SKILL.md
skills/frontend-response-handling/SKILL.md
skills/frontend-server-data-patterns/SKILL.md
skills/frontend-standards-always-follow/SKILL.md
skills/frontend-structure-standards/SKILL.md
skills/frontend-ui-engineering/SKILL.md
skills/git-workflow-and-versioning/SKILL.md
skills/golang-patterns/SKILL.md
skills/golang-testing/SKILL.md

Metadata

Files
0
Version
fc73590
Hash
6602fd78
Indexed
2026-07-19 09:06

Home - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-03 12:43
浙ICP备14020137号-1 $Map of visitor$