Install
openclaw skills install design-md-extractorUse 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.
openclaw skills install design-md-extractorUse this skill to turn a user-provided webpage URL into design.md/DESIGN.md using local deterministic extraction.
pnpm install --frozen-lockfile if node_modules/playwright is missing.scripts/extract-design.mjs from this skill directory.design.md for the human/model-facing design guide.design-snapshot.json for evidence and debugging.design.md before reporting results.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"
references/snapshot-schema.md when you need the DesignSnapshot shape.references/extraction-rules.md when modifying extraction behavior or explaining confidence limits.