Design.md Extractor
/install design-md-extractor
Design.md Extractor
Use this skill to turn a user-provided webpage URL into design.md/DESIGN.md using local deterministic extraction.
Default Workflow
- Confirm the user provided a URL or local HTML file path.
- From this skill directory, run
pnpm install --frozen-lockfileifnode_modules/playwrightis missing. - Run
scripts/extract-design.mjsfrom this skill directory. - Prefer writing both:
design.mdfor the human/model-facing design guide.design-snapshot.jsonfor evidence and debugging.
- Inspect the generated
design.mdbefore reporting results. - 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.mdwhen you need the DesignSnapshot shape. - Read
references/extraction-rules.mdwhen modifying extraction behavior or explaining confidence limits.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install design-md-extractor - 安装完成后,直接呼叫该 Skill 的名称或使用
/design-md-extractor触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
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... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 48 次。
如何安装 Design.md Extractor?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install design-md-extractor」即可一键安装,无需额外配置。
Design.md Extractor 是免费的吗?
是的,Design.md Extractor 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Design.md Extractor 支持哪些平台?
Design.md Extractor 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Design.md Extractor?
由 Liuwei1125(@liuwei1125)开发并维护,当前版本 v1.0.0。