Then: complete the check in the browser window and press Enter in the terminal to continue.
Print to stdout:
web2md '<url>' --print
Multiple URLs (batch):
Create output dir (e.g. ./out/) then run one web2md command per URL using --out ./out/
Validate output:
If writing files, verify they exist and are non-empty (e.g. ls -la <path> and wc -c <path>).
Return:
The saved file path(s), or the Markdown (stdout mode).
Defaults (recommended)
For most pages: --wait-until networkidle2
For heavy apps: start with --wait-until domcontentloaded --wait-ms 2000, then add --wait-for 'main' (or another stable selector) if needed.
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: davila7-claude-code-templates-web-to-markdown3description: web-to-markdown4---56# web-to-markdown78Convert web pages to clean Markdown by driving a locally installed browser (via `web2md`).910## Hard trigger gate (must enforce)1112This skill MUST NOT be used unless the user explicitly wrote **exactly** a phrase like:13- `use the skill web-to-markdown ...`14- `use a skill web-to-markdown ...`1516If the user did not explicitly request this skill by name, stop and ask them to re-issue the request including: `use the skill web-to-markdown`.1718## What this skill does1920- Handles JS-rendered pages (Puppeteer → user Chrome).21- Works best with Chromium-family browsers (Chrome/Chromium/Brave/Edge) via `puppeteer-core`.22- Extracts main content (Readability).23- Converts to Markdown (Turndown) with cleaned links and optional YAML frontmatter.2425## Non-goals2627- Do not use Playwright or other browser automation stacks; the mechanism is `web2md`.2829## Inputs you should collect (ask only if missing)3031- `url` (or a list of URLs)32- Output preference:33 - Print to stdout (`--print`), OR34 - Save to a file (`--out ./file.md`), OR35 - Save to a directory (`--out ./some-dir/` to auto-name by page title)36- Optional rendering controls for tricky pages:37 - `--chrome-path <path>` (if Chrome auto-detection fails)38 - `--interactive` (show Chrome and pause so the user can complete human checks/login, then press Enter)39 - `--wait-until load|domcontentloaded|networkidle0|networkidle2`40 - `--wait-for '<css selector>'`41 - `--wait-ms <milliseconds>`42 - `--headful` (debug)43 - `--no-sandbox` (sometimes required in containers/CI)44 - `--user-data-dir <dir>` (login/session; use a dedicated profile directory)4546## Workflow47481) Confirm the user explicitly invoked the skill (`use the skill web-to-markdown`).492) Validate URL(s) start with `http://` or `https://`.503) Ensure `web2md` is installed:51 - Run: `command -v web2md`52 - If missing, instruct the user to install it:53 - If available via npm: `npm install -g web2md`54 - If from source: Clone the repository, then run `npm install && npm run build && npm link`554) Convert:56 - Single URL → file:57 - `web2md '<url>' --out ./page.md`58 - Single URL → auto-named file in directory:59 - `mkdir -p ./out && web2md '<url>' --out ./out/`60 - Human verification / login walls (interactive):61 - `mkdir -p ./out && web2md '<url>' --interactive --user-data-dir ./tmp/web2md-profile --out ./out/`62 - Then: complete the check in the browser window and press Enter in the terminal to continue.63 - Print to stdout:64 - `web2md '<url>' --print`65 - Multiple URLs (batch):66 - Create output dir (e.g. `./out/`) then run one `web2md` command per URL using `--out ./out/`675) Validate output:68 - If writing files, verify they exist and are non-empty (e.g. `ls -la <path>` and `wc -c <path>`).696) Return:70 - The saved file path(s), or the Markdown (stdout mode).7172## Defaults (recommended)7374- For most pages: `--wait-until networkidle2`75- For heavy apps: start with `--wait-until domcontentloaded --wait-ms 2000`, then add `--wait-for 'main'` (or another stable selector) if needed.7677---78> Converted and distributed by [TomeVault](https://tomevault.io/claim/davila7) — claim your Tome and manage your conversions.79<!-- tomevault:4.0:skill_md:2026-04-11 -->
Run npx skillmds@latest add tomevault-io/davila7-claude-code-templates-web-to-markdown in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
web-to-markdown It is listed under Docs & Writing on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.