跳到正文
TakoAPI
返回技能列表

mdnew

由 thendcn 提供

Web & Frontend Development
458下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Fetch clean, agent-optimized Markdown from any URL using the markdown.new service.

描述

该技能的功能

Fetches clean, token-efficient Markdown from any URL using the markdown.new three-tier conversion pipeline. Strips boilerplate, ads, and navigation menus, leaving only core content. Handles JS-heavy pages via Cloudflare Browser Rendering as a fallback.

Reduces page size by up to 80% compared to raw HTML, making it practical for agents with tight context windows that would otherwise struggle with full-page content.

何时使用

  • Extracting article text for LLM analysis
  • Scraping docs pages when web_fetch returns noisy HTML
  • Reading JS-rendered pages without a full browser setup
  • Reducing token usage when ingesting long web pages
  • Feeding clean web content into agent context windows

示例工作流

输入

User asks: Summarize the content at https://docs.example.com/guide

智能体
  1. 1

    Run python3 scripts/mdnew.py https://docs.example.com/guide

  2. 2

    Pipeline attempts Header Negotiation first, falls back to Workers AI, then Cloudflare Browser Rendering

  3. 3

    Receive clean Markdown with x-markdown-tokens count in the response

  4. 4

    Pass Markdown to LLM for summarization

输出

Clean Markdown summary of the documentation page, using a fraction of the tokens raw HTML would require

安装

clawhub install thendcn/mdnew

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接