Agent skill

Cloudflare Agents

by secondsky in secondsky/claude-skills

Build AI agents on Cloudflare Workers with MCP integration, tool use, and LLM providers.

MITAuto-check passedAgent Workflows

Install Cloudflare Agents

skills CLI
$ npx skills add secondsky/claude-skills --skill cloudflare-agents -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install secondsky/claude-skills cloudflare-agents --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/secondsky/claude-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/cloudflare-agents/skills/cloudflare-agents .claude/skills/cloudflare-agents && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
cloudflare-agents
GitHub stars
227
Used in
1 other repo
Token cost
~691 tokens
SKILL.md length
167 words
Files
23 (incl. references)
Skills in repo
169
Repo updated
First seen
Licence
MIT

At a glance

Build AI agents on Cloudflare Workers with MCP integration, tool use, and LLM providers.

  • Tasks that involve MCP servers
  • SKILL.md covers Quick Start, Core Features, Agent Pattern and Resources
  • Runs TypeScript scripts from its folder

What it does

Cloudflare Agents is an agent skill from secondsky/claude-skills. Build AI agents on Cloudflare Workers with MCP integration, tool use, and LLM providers.

Its SKILL.md is about 690 tokens, which your agent loads only when the skill is triggered. The skill folder holds 24 other files, including reference files (for example `references/advanced-features.md`, `references/agent-api.md` and `references/configuration-guide.md`).

It sits in Agent Workflows, covering MCP servers. It works with Cloudflare, Cloudflare Workers and Model Context Protocol. The repository describes itself as: Production-ready skills for Claude Code CLI - Cloudflare, React, Tailwind v4, and AI integrations. The licence is MIT.

When your agent uses it

  • Tasks that involve MCP servers

Example prompts

  • “/cloudflare-agents”

Requirements

  • Node.js

What it can do on your machine

Read from SKILL.md and the folder at commit 8837836. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (TypeScript, from the files we listed), which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • developers.cloudflare.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Cloudflare Agents loads about 691 tokens when it runs, and up to ~13k if it reads all its reference files. Until then it costs about 27 tokens; SKILL.md has 167 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~27
When it runs · the whole SKILL.md, loaded when a task matches
~691
With references · SKILL.md plus every file in references/, read only if the agent opens them
~13k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from secondsky/claude-skills at commit 8837836, republished under its MIT licence (© secondsky). 167 words, ~691 tokens.

Download SKILL.mdSave it as .claude/skills/cloudflare-agents/SKILL.md (or your agent's skills folder). This skill also uses 22 other files; get the full folder from GitHub.
name
cloudflare-agents
description
Build AI agents on Cloudflare Workers with MCP integration, tool use, and LLM providers.
license
MIT

Cloudflare Agents

Last Updated: 2025-11-21

Quick Start

typescript
export default {
  async fetch(request, env, ctx) {
    const agent = {
      tools: [
        { name: 'getTodo', handler: async ({id}) => ({id, title: 'Task'}) }
      ],
      async run(input) {
        return await processWithLLM(input, this.tools);
      }
    };
    
    return Response.json(await agent.run(await request.text()));
  }
};

Core Features

  • Tool Integration: Register and execute tools
  • LLM Providers: OpenAI, Anthropic, Google Gemini
  • MCP Protocol: Model Context Protocol support
  • Cloudflare Bindings: D1, KV, R2, Durable Objects

Agent Pattern

typescript
const agent = {
  tools: [...],
  systemPrompt: 'You are a helpful assistant',
  model: 'gpt-4o',
  async run(input) {
    // Process with LLM
  }
};

Resources

Core Documentation
  • references/patterns-concepts.md (317 lines) - What is Cloudflare Agents, patterns & concepts, critical rules, known issues prevention
  • references/configuration-guide.md (152 lines) - Complete configuration deep dive
  • references/agent-api.md (115 lines) - Complete Agent Class API reference
Integration Guides
  • references/http-sse-guide.md (74 lines) - HTTP & Server-Sent Events
  • references/websockets-guide.md (110 lines) - WebSocket integration
  • references/state-management.md (388 lines) - State management, scheduled tasks, workflows
  • references/mcp-integration.md (130 lines) - Model Context Protocol integration
Advanced Features
  • references/advanced-features.md (637 lines) - Browser automation, RAG, AI model integration, calling agents, client APIs
Error Reference
  • references/error-catalog.md (10 lines) - Common errors and solutions
Templates
  • templates/basic-agent.ts - Basic agent setup
  • templates/browser-agent.ts - Browser automation
  • templates/calling-agents-worker.ts - Calling other agents
  • templates/chat-agent-streaming.ts - Streaming chat agent
  • templates/hitl-agent.ts - Human-in-the-loop
  • templates/mcp-server-basic.ts - MCP server integration
  • templates/rag-agent.ts - RAG implementation
  • templates/react-useagent-client.tsx - React client integration
  • templates/scheduled-agent.ts - Scheduled tasks
  • templates/state-sync-agent.ts - State synchronization
  • templates/websocket-agent.ts - WebSocket agent
  • templates/workflow-agent.ts - Workflows integration
  • templates/wrangler-agents-config.jsonc - Wrangler configuration

Official Docs: https://developers.cloudflare.com/cloudflare-for-platforms/cloudflare-agents/

© secondsky, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 22 other files (references) in plugins/cloudflare-agents/skills/cloudflare-agents of secondsky/claude-skills.

  • SKILL.md
  • references/advanced-features.md
  • references/agent-api.md
  • references/configuration-guide.md
  • references/error-catalog.md
  • references/http-sse-guide.md
  • references/mcp-integration.md
  • references/patterns-concepts.md
  • references/state-management.md
  • references/websockets-guide.md
  • templates/basic-agent.ts
  • templates/browser-agent.ts
  • templates/calling-agents-worker.ts
  • templates/chat-agent-streaming.ts
  • templates/hitl-agent.ts
  • templates/mcp-server-basic.ts
  • templates/rag-agent.ts
  • templates/react-useagent-client.tsx
  • templates/scheduled-agent.ts
  • … and 4 more

Open the folder on GitHubat commit 8837836

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in secondsky/claude-skills, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Cloudflare Agents next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Cloudflare Agents compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Cloudflare Agents this skillsecondsky/claude-skills2271 repos~691Automated safety check: PassMIT
Agents SDKcloudflare/skills3k2 repos~3kAutomated safety check: PassApache-2.0
Building MCP Server On CloudflareCommandCodeAI/agent-skills132—~1.5kAutomated safety check: PassMIT
Agents SDKhodgef/apiker1273 repos~3kAutomated safety check: PassMIT
Cloudflare Browser Renderingeinverne/dotfiles121—~4.9kAutomated safety check: PassGPL-3.0
Turnstile Testingjumodada/Drissionpage-MCP-Server487—~1.7kAutomated safety check: PassCustom licence

Similar skills

  • Agents SDK

    cloudflare/skills

    Official

    Build, debug, or review Cloudflare Agents SDK applications using the agents package.

    3k GitHub starsUsed in 2 repos~3k tokens
    Agent WorkflowsAuto-check passed
  • Building MCP Server On Cloudflare

    CommandCodeAI/agent-skills

    Builds remote MCP (Model Context Protocol) servers on Cloudflare Workers with tools, OAuth authentication, and production deployment.

    132 GitHub stars~1.5k tokensUpdated 7 mo ago
    Agent WorkflowsAuto-check passed
  • Agents SDK

    hodgef/apiker

    Build AI agents on Cloudflare Workers using the Agents SDK. An agent skill from hodgef/apiker.

    127 GitHub starsUsed in 3 repos~3k tokens
    Backend & APIsAuto-check passed
  • Guide for implementing Cloudflare Browser Rendering - a headless browser automation API for screenshots, PDFs, web scraping, and testing.

    121 GitHub stars~4.9k tokensUpdated 29 days ago
    Productivity & AutomationAuto-check passed
  • Turnstile Testing

    jumodada/Drissionpage-MCP-Server

    A skill your agent uses when testing an authorized Cloudflare Turnstile integration or operating an authorized production challenge with drissionpage-mcp.

    487 GitHub stars~1.7k tokensUpdated 24 days ago
    Agent WorkflowsAuto-check passed
  • Build MCP Server

    anthropics/claude-plugins-official

    Official

    Entry point for building an MCP server: asks about the use case, picks a deployment model and tool-design pattern, then hands off to more specialized skills.

    38k GitHub starsUsed in 1 repo~3k tokens
    Agent WorkflowsAuto-check passed

More from secondsky/claude-skills

All 169 skills in this repo
  • Tanstack AI

    secondsky/claude-skills

    TanStack AI (alpha) provider-agnostic type-safe chat with streaming for OpenAI, Anthropic, Gemini, Ollama.

    227 GitHub starsUsed in 1 repo~3.6k tokens
    Auto-check: notes
  • Auto Animate

    secondsky/claude-skills

    AutoAnimate (@formkit/auto-animate) zero-config animations for React.

    227 GitHub stars~2.9k tokensUpdated 10 days ago
    Auto-check passed
  • Base UI React

    secondsky/claude-skills

    MUI Base UI unstyled React components with Floating UI. An agent skill from secondsky/claude-skills.

    227 GitHub stars~1.9k tokensUpdated 10 days ago
    Auto-check passed
  • Cloudflare Images

    secondsky/claude-skills

    This skill should be used when the user asks to "upload images to Cloudflare", "implement direct creator upload", "configure image transformations", "optimize WebP/AVIF", "create image variants"…

    227 GitHub stars~3.6k tokensUpdated 10 days ago
    Auto-check: notes
  • Cloudflare Nextjs

    secondsky/claude-skills

    Deploy Next.js to Cloudflare Workers via the OpenNext adapter (@opennextjs/cloudflare).

    227 GitHub stars~5.3k tokensUpdated 10 days ago
    Auto-check: notes
  • Cloudflare Sandbox

    secondsky/claude-skills

    Cloudflare Sandboxes SDK for secure code execution in Linux containers at edge.

    227 GitHub stars~4.5k tokensUpdated 10 days ago
    Auto-check passed

Questions about Cloudflare Agents

What does Cloudflare Agents do?

Build AI agents on Cloudflare Workers with MCP integration, tool use, and LLM providers. Cloudflare Agents is an agent skill from secondsky/claude-skills. Build AI agents on Cloudflare Workers with MCP integration, tool use, and LLM providers.

When should I use Cloudflare Agents?

Cloudflare Agents fits situations like: tasks that involve MCP servers.

How do I install Cloudflare Agents in Claude Code?

Run `npx skills add secondsky/claude-skills --skill cloudflare-agents -a claude-code`. Or copy the skill folder (plugins/cloudflare-agents/skills/cloudflare-agents in secondsky/claude-skills) into .claude/skills/cloudflare-agents in your project. Claude Code loads it when a task matches its description.

How do I install Cloudflare Agents in Codex?

Run `npx skills add secondsky/claude-skills --skill cloudflare-agents -a codex`. Or copy the skill folder (plugins/cloudflare-agents/skills/cloudflare-agents in secondsky/claude-skills) into .agents/skills/cloudflare-agents in your project. Codex loads it when a task matches its description.

Can I use Cloudflare Agents in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add secondsky/claude-skills --skill cloudflare-agents -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/cloudflare-agents, .gemini/skills/cloudflare-agents, .github/skills/cloudflare-agents and .opencode/skills/cloudflare-agents in your project.

What does Cloudflare Agents need to run?

Going by SKILL.md and its folder, Cloudflare Agents needs TypeScript for the scripts in its folder. Our summary lists: Node.js.

Does Cloudflare Agents access the network?

SKILL.md names 1 domain. As links in the text: developers.cloudflare.com. This is read from the text; nothing was executed.

Is Cloudflare Agents safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Cloudflare Agents use?

Cloudflare Agents is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Cloudflare Agents use?

About 691 tokens (SKILL.md is roughly 2.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 12k tokens, read only when the agent opens those files.

What are the alternatives to Cloudflare Agents?

Skills that share tags, products or a category with Cloudflare Agents: Agents SDK (cloudflare/skills, 3k stars), Building MCP Server On Cloudflare (CommandCodeAI/agent-skills, 132 stars), Agents SDK (hodgef/apiker, 127 stars) and Cloudflare Browser Rendering (einverne/dotfiles, 121 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Cloudflare Agents?

secondsky (a GitHub user) maintains it in secondsky/claude-skills, which has 227 GitHub stars. The repository holds 169 skills in this directory. The repository was last updated on September 28, 2026.

Source: secondsky/claude-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.