Skip to main content

cf-markdown-agents

Fetch web content using Cloudflare's Markdown for Agents protocol. Automatically converts HTML to Markdown with 80% token reduction. Use when fetching web pages for AI processing, web scraping, content extraction, or when the user mentions "Markdown for Agents", "cf-markdown", or needs structured web content in Markdown format.

跳到安装

来源信息

仓库
knownasnaffy/prompthound
最近来源活动
2026年7月6日 07:03
检测到的 SKILL.md 语言
英语
星标
0
分支
1

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
4 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
cf-markdown-agents
description
Fetch web content using Cloudflare's Markdown for Agents protocol. Automatically converts HTML to Markdown with 80% token reduction. Use when fetching web pages for AI processing, web scraping, content extraction, or when the user mentions "Markdown for Agents", "cf-markdown", or needs structured web content in Markdown format.
# Cloudflare Markdown for Agents This skill enables fetching web content using Cloudflare's Markdown for Agents protocol, which automatically converts HTML pages to clean, structured Markdown format. ## What is Markdown for Agents? Cloudflare's Markdown for Agents is a content negotiation feature that: - Automatically converts HTML to Markdown at the edge - Reduces token usage by ~80% compared to raw HTML - Returns clean, structured content perfect for AI processing - Adds `x-markdown-tokens` header showing estimated token count - Includes `Content-Signal` headers for AI usage permissions ## Usage ### Basic Fetch Use the provided script to fetch any URL with Markdown for Agents support: ```bash scripts/fetch-markdown.sh <URL> ``` Example: ```bash scripts/fetch-markdown.sh "https://developers.cloudflare.com/agents/" ``` ### In Code TypeScript/JavaScript example: ```typescript const response = await fetch("https://example.com/page", { headers: { Accept: "text/markdown, text/html", }, }); const tokenCount = response.headers.get("x-markdown-tokens"); const markdown = await response.text(); ``` cURL example: ```bash curl https://example.com/page -H "Accept: text/markdown" ``` ## Response Headers - `content-type: text/markdown; charset=utf-8` - Content is Markdown - `x-markdown-tokens: <number>` - Estimated token count - `content-signal: ai-train=yes, search=yes, ai-input=yes` - Usage permissions ## Supported Sites Any site using Cloudflare with Markdown for Agents enabled: - Cloudflare Developer Documentation (developers.cloudflare.com) - Cloudflare Blog (blog.cloudflare.com) - Any site with the feature enabled in Cloudflare dashboard ## Benefits | Aspect | HTML | Markdown | |--------|------|----------| | Tokens | 16,180 | 3,150 | | Reduction | - | ~80% | | Structure | Complex | Clean | | AI Parsing | Hard | Easy | ## References - Full protocol details: [references/protocol.md](references/protocol.md) - API examples: [references/examples.md](references/examples.md)
在 GitHub 查看