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.
1---2name: web-to-markdown3description: web-to-markdown4---5# web-to-markdown67Convert web pages to clean Markdown by driving a locally installed browser (via `web2md`).89## Hard trigger gate (must enforce)1011This skill MUST NOT be used unless the user explicitly wrote **exactly** a phrase like:12- `use the skill web-to-markdown ...`13- `use a skill web-to-markdown ...`1415If 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`.1617## What this skill does1819- Handles JS-rendered pages (Puppeteer → user Chrome).20- Works best with Chromium-family browsers (Chrome/Chromium/Brave/Edge) via `puppeteer-core`.21- Extracts main content (Readability).22- Converts to Markdown (Turndown) with cleaned links and optional YAML frontmatter.2324## Non-goals2526- Do not use Playwright or other browser automation stacks; the mechanism is `web2md`.2728## Inputs you should collect (ask only if missing)2930- `url` (or a list of URLs)31- Output preference:32 - Print to stdout (`--print`), OR33 - Save to a file (`--out ./file.md`), OR34 - Save to a directory (`--out ./some-dir/` to auto-name by page title)35- Optional rendering controls for tricky pages:36 - `--chrome-path <path>` (if Chrome auto-detection fails)37 - `--interactive` (show Chrome and pause so the user can complete human checks/login, then press Enter)38 - `--wait-until load|domcontentloaded|networkidle0|networkidle2`39 - `--wait-for '<css selector>'`40 - `--wait-ms <milliseconds>`41 - `--headful` (debug)42 - `--no-sandbox` (sometimes required in containers/CI)43 - `--user-data-dir <dir>` (login/session; use a dedicated profile directory)4445## Workflow46471) Confirm the user explicitly invoked the skill (`use the skill web-to-markdown`).482) Validate URL(s) start with `http://` or `https://`.493) Ensure `web2md` is installed:50 - Run: `command -v web2md`51 - If missing, instruct the user to install it (assume the project exists at `~/workspace/softaworks/projects/web2md`):52 - `cd ~/workspace/softaworks/projects/web2md && npm install && npm run build && npm link`53 - Or: `cd ~/workspace/softaworks/projects/web2md && npm install && npm run build && npm install -g .`544) Convert:55 - Single URL → file:56 - `web2md '<url>' --out ./page.md`57 - Single URL → auto-named file in directory:58 - `mkdir -p ./out && web2md '<url>' --out ./out/`59 - Human verification / login walls (interactive):60 - `mkdir -p ./out && web2md '<url>' --interactive --user-data-dir ./tmp/web2md-profile --out ./out/`61 - Then: complete the check in the browser window and press Enter in the terminal to continue.62 - Print to stdout:63 - `web2md '<url>' --print`64 - Multiple URLs (batch):65 - Create output dir (e.g. `./out/`) then run one `web2md` command per URL using `--out ./out/`665) Validate output:67 - If writing files, verify they exist and are non-empty (e.g. `ls -la <path>` and `wc -c <path>`).686) Return:69 - The saved file path(s), or the Markdown (stdout mode).7071## Defaults (recommended)7273- For most pages: `--wait-until networkidle2`74- For heavy apps: start with `--wait-until domcontentloaded --wait-ms 2000`, then add `--wait-for 'main'` (or another stable selector) if needed.
Run npx skillmds@latest add comeonoliver/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 AI & ML 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.
ComeOnOliver (@comeonoliver) published this skill. Their other Agent Skills are listed on their SkillMD profile.