distill-page

Installation
SKILL.md

Page Distiller Skill

This skill extracts high-quality, noise-free Markdown content from a webpage using Chromium's experimental, on-device Machine Learning model annotations (Page.getAnnotatedPageContent).

Unlike generic HTML-to-Markdown parsers (e.g. Turndown) which rely on markup syntax heuristics, this approach uses Chromium's visual ML layout analysis. It automatically identifies semantic roles (such as ARTICLE and MAIN) and excludes sidebars, navigation elements, footers, and popups.

Usage

node agents/skills/distill-page/scripts/distill-page.ts [--markdown] <URL>

Options:

  • --markdown: Output as distilled Markdown (recommended). Without this, it outputs the raw decoded protobuf JSON.
  • --base64-stdin: Instead of fetching via Playwright, decode a base64-encoded protobuf payload passed via stdin.
Installs
5
GitHub Stars
4.4K
First Seen
Jul 30, 2026
distill-page — paulirish/dotfiles