Web Markdown Navigator
Use this skill for deterministic URL → markdown extraction.
Quick flow
- Run script:
cd /Users/pedrogonzalez/clawd/skills/web-markdown-navigator/scriptsnode fetch-markdown.mjs "<url>" --max-chars 50000
- If exit code
0, return markdown output. - If exit code
3or4, or output is thin/boilerplate, usebrowsertool fallback to capture rendered content and return markdown summary.
Script
node scripts/fetch-markdown.mjs <url> [--max-chars N] [--timeout-ms N] [--json]
Behavior:
- Layer 1: Fetch HTML + Mozilla Readability + Turndown markdown conversion.
- Layer 2: Fallback plain-text markdown if extraction is too thin.
- URL safety checks block localhost/private literal IPv4 hosts.
Output requirements
- Return markdown only (no raw HTML dump).
- Preserve source URL in response.
- If truncated, include truncation note.
- If fallback was needed, mention method used (
readabilityorfallback-text).
Error handling
1bad args2invalid/blocked URL3network/fetch/content-type failure4extraction failure/thin output
For extended notes and troubleshooting, read:
/Users/pedrogonzalez/clawd/skills/web-markdown-navigator/references/usage.md
微信扫一扫