返回 Skill 列表
extension
分类: 数据与分析无需 API Key

Web Markdown Navigator

获取网页并返回干净的 markdown,替代原始 HTML。适用于 URL 读取、内容提取和摘要任务,用户需要 markdown 输出的场景;...

person作者: plgonzalezrx8hubclawhub

Web Markdown Navigator

Use this skill for deterministic URL → markdown extraction.

Quick flow

  1. Run script:
    • cd /Users/pedrogonzalez/clawd/skills/web-markdown-navigator/scripts
    • node fetch-markdown.mjs "<url>" --max-chars 50000
  2. If exit code 0, return markdown output.
  3. If exit code 3 or 4, or output is thin/boilerplate, use browser tool 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 (readability or fallback-text).

Error handling

  • 1 bad args
  • 2 invalid/blocked URL
  • 3 network/fetch/content-type failure
  • 4 extraction failure/thin output

For extended notes and troubleshooting, read:

  • /Users/pedrogonzalez/clawd/skills/web-markdown-navigator/references/usage.md