← 返回
未分类

Design.md Extractor

Use when the user wants to generate DESIGN.md or design.md from a webpage URL by running a local, rule-based design token extraction script. The skill opens the user-provided URL with Playwright, samples computed styles locally, infers colors, typography, spacing, radius, shadows, and basic components, then writes AI-coding-friendly design documentation without model API calls.
Use when the user wants to generate DESIGN.md or design.md from a webpage URL by running a local, rule-based design token extraction script. The skill opens the user-provided URL with Playwright, samples computed styles locally, infers colors, typography, spacing, radius, shadows, and basic components, then writes AI-coding-friendly design documentation without model API calls.
奔跑的脆皮肠
未分类 community v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 42
下载
💾 0
安装
1
版本
#latest

概述

Design.md Extractor

Use this skill to turn a user-provided webpage URL into design.md/DESIGN.md using local deterministic extraction.

Default Workflow

  1. Confirm the user provided a URL or local HTML file path.
  2. From this skill directory, run pnpm install --frozen-lockfile if node_modules/playwright is missing.
  3. Run scripts/extract-design.mjs from this skill directory.
  4. Prefer writing both:
    • design.md for the human/model-facing design guide.
    • design-snapshot.json for evidence and debugging.
  5. Inspect the generated design.md before reporting results.
  6. If extraction fails, report the exact failure and whether it was navigation, browser, sampling, dependency installation, or generation.

Commands

Generate from a URL:

pnpm install --frozen-lockfile
node scripts/extract-design.mjs --url https://example.com --out ./design.md --snapshot ./design-snapshot.json

Generate from a local HTML file:

pnpm install --frozen-lockfile
node scripts/extract-design.mjs --url file:///absolute/path/to/page.html --out ./design.md --snapshot ./design-snapshot.json

The script is self-contained and loads its bundled extractor core from lib/design-extractor-core. It auto-detects common macOS browser executables. If Playwright cannot find a browser, pass one explicitly:

node scripts/extract-design.mjs --url https://example.com --out ./design.md --snapshot ./design-snapshot.json --executable-path "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"

Rules

  • Analyze only URLs or files explicitly provided by the user.
  • Do not crawl additional pages.
  • Do not use AI/model APIs.
  • Do not upload page HTML, CSS, DOM, screenshots, browsing history, or extracted data.
  • Do not infer login-only or hidden states unless the loaded page visibly exposes them.
  • Treat generated design tokens as a practical starting point, not a hand-authored brand book.

References

  • Read references/snapshot-schema.md when you need the DesignSnapshot shape.
  • Read references/extraction-rules.md when modifying extraction behavior or explaining confidence limits.

版本历史

共 1 个版本

  • v1.0.0 Initial publishable release with bundled extractor core and local Playwright-based extraction. 当前
    2026-06-01 19:38 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

design-media

UI/UX Pro Max

xobi667
提供 UI/UX 设计智能与实现指导,帮助打造精美界面。适用于 UI 设计、UX 流程、信息架构、视觉风格、设计系统/标记、组件规格、文案/微文案、无障碍及前端 UI(HTML/CSS/JS、React、Next.js、Vue、Svelte
★ 219 📥 48,022
design-media

Nano Banana Pro

steipete
使用 Nano Banana Pro (Gemini 3 Pro Image) 生成或编辑图像。支持文生图、图生图及 1K/2K/4K 分辨率,适用于图像创建、修改及编辑请求,使用 --input-image 指定输入图像。
★ 430 📥 117,254
design-media

Openai Whisper

steipete
使用 Whisper CLI 进行本地语音转文字(无需 API 密钥)
★ 332 📥 94,143