page-reduce
Installation
SKILL.md
page-reduce
Reduce any webpage to a minimal structural skeleton: browser-based content
tokenization (Phase 1, web page reduce) followed by structural reasoning
(Phase 2, you).
Requirements
Node 22+ and playwright-cli >= 0.1.20 on PATH (playwright-cli --version).
Locate the web CLI once:
# <skill-dir> is the directory containing this SKILL.md
WEB=$(command -v web || echo "node <skill-dir>/../../cli/dist/web.mjs")
then run $WEB …; it prints exactly one JSON document on stdout,
so $WEB … > file.json is safe.
Fallback when published: npx -y @adobe/web-cli. Use an absolute <skill-dir>; don't cd into it.