← Back to Skills Marketplace
xinian5216

cf markdown agents

by xinian5216 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
227
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install 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 pa...
README (SKILL.md)

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:

scripts/fetch-markdown.sh \x3CURL>

Example:

scripts/fetch-markdown.sh "https://developers.cloudflare.com/agents/"

In Code

TypeScript/JavaScript example:

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:

curl https://example.com/page -H "Accept: text/markdown"

Response Headers

  • content-type: text/markdown; charset=utf-8 - Content is Markdown
  • x-markdown-tokens: \x3Cnumber> - 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

Usage Guidance
This skill appears coherent and does what it says: send requests with Accept: text/markdown and return the Markdown response and headers. It does not request credentials. Before enabling, consider: (1) the skill will fetch any URL you provide — if the agent is allowed to run autonomously it could be used to reach internal services (SSRF/internal network exposure) or fetch sensitive URLs, so restrict allowed targets or monitor requests; (2) example code shows how to add API tokens (optional) — you should never add secrets unless you trust the code; (3) the provided script prints headers and body (including any returned sensitive content) so treat outputs as potentially sensitive. If you only need occasional manual fetches, run the script locally rather than granting broad autonomous agent access.
Capability Analysis
Type: OpenClaw Skill Name: cf-markdown-agents Version: 1.0.0 The skill is a legitimate utility designed to fetch web content using Cloudflare's 'Markdown for Agents' protocol to reduce token usage for AI agents. It consists of a simple shell script (scripts/fetch-markdown.sh) that wraps curl with appropriate headers and comprehensive documentation (SKILL.md, references/examples.md) explaining the protocol and providing implementation examples. No evidence of data exfiltration, malicious execution, or prompt injection was found.
Capability Assessment
Purpose & Capability
Name/description (fetch pages via Cloudflare Markdown for Agents) align with the included script, examples, and documentation. The included curl/fetch/worker examples are exactly what you'd expect for this purpose.
Instruction Scope
Runtime instructions and the shell script only perform HTTP requests with an Accept header for text/markdown and print response headers/body. Examples include optional usages that mention Authorization tokens or Cloudflare Workers/AI helpers — these are illustrative and not required by the skill, but they show how a user could add credentials if they choose.
Install Mechanism
No install spec; this is instruction-only with a small shell script. Nothing is downloaded from remote URLs or written to disk beyond the provided files.
Credentials
The skill declares and requires no environment variables, credentials, or config paths. Example snippets show how one might use API tokens if they wrote additional code, but the skill itself does not request secrets.
Persistence & Privilege
always is false and the skill does not attempt to modify other skills or system-wide agent settings. It does not request persistent privileges.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install cf-markdown-agents
  3. After installation, invoke the skill by name or use /cf-markdown-agents
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of cf-markdown-agents. - Enables fetching web content using Cloudflare's Markdown for Agents protocol. - Automatically converts HTML pages to clean, structured Markdown format with ~80% token reduction. - Provides examples for usage with shell scripts, TypeScript/JavaScript, and cURL. - Describes response headers including token count and AI usage permissions. - Lists supported sites and summarizes key benefits for AI processing.
Metadata
Slug cf-markdown-agents
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is 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 pa... It is an AI Agent Skill for Claude Code / OpenClaw, with 227 downloads so far.

How do I install cf markdown agents?

Run "/install cf-markdown-agents" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is cf markdown agents free?

Yes, cf markdown agents is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does cf markdown agents support?

cf markdown agents is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created cf markdown agents?

It is built and maintained by xinian5216 (@xinian5216); the current version is v1.0.0.

💬 Comments