Token导航 LogoToken导航TokenDH.com
研究检索可写文件clawhub未标认证来源可访问clear审计通过

design-extractor-clawhub设计 extractor ClawHub

Agent Skill

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。它适合让 Agent 根据产品场景整理页面结构、生成 UI 方案、检查视觉一致性或改进组件层级。使用时需要结合现有品牌、设计系统和用户任务,不应只堆装饰元素;涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出、对齐和响应式表现。

总安装

2,709

周安装

114

GitHub Stars

公开资料未说明

下载量

948
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:design-extractor-clawhub(设计 extractor ClawHub)
来源仓库:https://github.com/html1602/design-extractor-clawhub
安装命令:
openclaw skills install design-extractor-clawhub
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install design-extractor-clawhub

简介

从现有代码中提取设计标记并通过 Awesome-design-md 比较生成 DESIGN.md

SKILL.md

name
design-extractor
description
Extract design tokens from existing code and generate DESIGN.md with awesome-design-md comparison
version
1.0.0
metadata
openclaw
requires
bins
primaryEnv
null
emoji
🎨
homepage
https://github.com/moyubox/design-extractor
always
false
aiCompatibility
claudeCode
format
markdown-headers
location
.claude/skills/design-extractor/skill.md
conversionSteps
autoConvertible
true
script
|
vscodeCopilot
format
.github/copilot/instructions.md
supported
false
cursor
format
.cursor/rules.md
supported
false

Design Extractor

Extract design tokens from existing project code and generate standard DESIGN.md files.

Overview

This skill analyzes your project's CSS, SCSS, Vue, and other style files to:

  • Extract color palettes with usage statistics
  • Identify typography systems (fonts, sizes, weights)
  • Catalog spacing values (padding, margin, gaps)
  • Document visual effects (borders, shadows)
  • Compare with awesome-design-md brands

Trigger Conditions

This skill activates when user requests:

  • "Extract design from my project"
  • "Generate DESIGN.md"
  • "Analyze project styles"
  • "Extract colors/fonts from codebase"
  • "Create design documentation"
  • Any request involving design system extraction

Prerequisites

  • Node.js >= 18.0.0
  • Project with style files (.css, .scss, .vue, etc.)

Installation

# Via ClawHub CLI
clawhub install design-extractor

# Or manually clone
git clone https://github.com/moyubox/design-extractor.git
clawhub skill publish ./design-extractor

Usage

Command Line

# Extract from specific directory
npx design-extractor frontend/src

# Extract from current project
npx design-extractor .

# Output will be:
# - DESIGN-EXTRACTED.md (extracted design system)
# - Docs/Design/extracted-analysis.json (raw data)

As a Skill

Once installed, the skill automatically:

  1. Scans project for style files
  2. Extracts all design tokens
  3. Categorizes colors (primary, background, text, accent)
  4. Compares with awesome-design-md brands
  5. Generates DESIGN.md

What Gets Extracted

CategoryDetails
ColorsCSS variables, hex codes, RGB values with usage frequency
TypographyFont families, sizes, weights, line heights
SpacingPadding, margin, gap values
EffectsBorder radius, box shadows, borders
ComponentsButton, input, card patterns

Example Output

# Project Design System

> Extracted from: frontend/src
> Date: 2026-04-08

## Color Palette

### Primary
- **Primary** (`#667eea`): 24 uses
- **Secondary** (`#764ba2`): 10 uses

### Background
- **Background** (`#ffffff`): 26 uses

## Comparison

Closest awesome-design-md match:
- Mintlify: 100% similarity
- Stripe: 100% similarity
- Vercel: 66.7% similarity

Cross-Platform Compatibility

For AI Agents: Converting to Claude Code

If you're an AI assistant (Claude, GPT, etc.) and need to convert this ClawHub skill to Claude Code format:

Automatic Conversion Steps:

  1. Read this SKILL.md file
  2. Extract sections:

- metadata.description → "## Description" - ## Trigger Conditions → "## Trigger Conditions" - ## Execution Steps → "## Execution Steps" - All content after frontmatter

  1. Create Claude Code structure:
   .claude/skills/design-extractor/
   └── skill.md
  1. Generate Claude Code skill.md:
   # Design Extractor

   ## Name
   design-extractor

   ## Description
   Extract design tokens from existing code and generate DESIGN.md 
   with awesome-design-md comparison.

   ## Trigger Conditions
   - User requests design extraction
   - User asks to generate DESIGN.md
   - User wants to analyze project styles
   - [Add all trigger conditions from this file]

   ## Execution Steps
   ### 1. Scan Project
   [Copy execution steps from this file]

   ## Implementation
   Use the Node.js script at scripts/extract-design.js

Quick Conversion Template:

// conversion-script.js
const fs = require('fs');
const yaml = require('yaml');

const skillContent = fs.readFileSync('SKILL.md', 'utf8');
const [, frontmatter, body] = skillContent.split('---');
const metadata = yaml.parse(frontmatter);

const claudeSkill = `# ${metadata.name}

## Name
${metadata.name}

## Description
${metadata.description}

## Trigger Conditions
${extractTriggers(body)}

## Execution Steps
${extractExecution(body)}

${body}
`;

fs.mkdirSync('.claude/skills/' + metadata.name, { recursive: true });
fs.writeFileSync('.claude/skills/' + metadata.name + '/skill.md', claudeSkill);
console.log('Converted to Claude Code format!');

Manual Conversion Checklist

  • [ ] Remove YAML frontmatter
  • [ ] Add "## Name" section
  • [ ] Add "## Description" section
  • [ ] Ensure "## Trigger Conditions" exists
  • [ ] Ensure "## Execution Steps" exists
  • [ ] Place in .claude/skills/{name}/skill.md

Technical Details

Extraction Algorithm

  1. File Discovery: Recursively scans for .vue, .css, .scss, .less files
  2. Regex Extraction: Uses patterns for colors, fonts, spacing
  3. Normalization: Converts #fff → #ffffff, rgb() → hex
  4. Categorization: Classifies colors by luminance and usage
  5. Comparison: Matches against known design systems

Supported File Types

  • Vue Single File Components (.vue)
  • CSS (.css)
  • SCSS/Sass (.scss, .sass)
  • Less (.less)

Metadata Reference

For AI agents parsing this file:

skillType: "design-extraction"
language: "javascript"
platform: "node"
outputFormat: "markdown"
designSystemReference: "awesome-design-md"

License

MIT-0 (Public Domain)

Related


AI Note: This file contains both ClawHub-compatible metadata AND instructions for converting to other AI platforms. Preserve the "aiCompatibility" section when forking or modifying.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

95.92%
按下载量换算909

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

可写文件

该 Skill 可能写入或修改本地文件,使用前需要确认目标目录和修改范围。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills