360 Secure SkillHub
360 安全技能中心

Web Markdown Navigator

核心功能:将指定URL网页转换为干净Markdown,先通过HTML解析转换,提取过薄时用纯文本 fallback,JS重页面则调用浏览器渲染生成。典型场景:URL内容读取、提取、摘要类任务,需Markdown输出时使用。输入为目标URL,输出含源URL的Markdown,截断时附提示,同时说明所用提取方法;自带URL安全检查,具备完善错误处理机制。

plgonzalezrx8
plgonzalezrx8
热度 26.41
最近更新 2026-05-11 17:26:14
分类:效率依赖:代码执行 / 联网浏览搜索应用场景:摘要总结 / 研究

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add web-markdown-navigator
Metadata
name
web-markdown-navigator
description
Fetch webpages and return clean markdown instead of raw HTML. Use for URL reading, extraction, and summarization tasks where the user wants markdown output; use browser fallback for JS-heavy/SPA pages when extraction is thin.

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