返回 Skill 列表
extension
分类: 开发与工程无需 API Key

read-webpage-content-as-markdown

使用curl + markitdown + codex exec将网页读取并转换为清理过的Markdown格式。在被要求阅读网页或从URL提取文章内容时使用。仅适用于静态HTML;JS/客户端渲染的页面需要使用Playwright工作流。

person作者: jakexiaohubgithub

Read Webpage Content as Markdown

Use:

scripts/read-webpage-content-as-markdown.sh [--navlinks] <url> [output_md]

Notes:

  • Uses curl (static HTML only); JavaScript is not executed.
  • Temp artifacts are stored under /tmp.
  • Output includes YAML frontmatter: source_url, accessed_at, commands.
  • Output path defaults to /tmp/read-webpage-content-as-markdown.<timestamp>.md; relative output paths are written under /tmp/.
  • --navlinks keeps only topic-relevant navigation links (e.g., in-page table of contents); it drops site-wide menus and unrelated links.
  • If the script reports JS/client rendering, retry with Playwright.