Cloudflare agents
Skill ComeOnOliver/skillshub/skills/secondsky/claude-skills/cloudflare-agents
Build AI agents on Cloudflare Workers with MCP integration, tool use, and LLM providers.From its SKILL.md
npx -y skills add ComeOnOliver/skillshub --skill cloudflare-agentsAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
What its file declares
Copied from the file, not written here
The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
2.7 KB, 634 tokens by cl100k_base, as published. Nobody here has run it
Cloudflare Agents
Last Updated: 2025-11-21
Quick Start
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
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 preventionreferences/configuration-guide.md(152 lines) - Complete configuration deep divereferences/agent-api.md(115 lines) - Complete Agent Class API reference
Integration Guides
references/http-sse-guide.md(74 lines) - HTTP & Server-Sent Eventsreferences/websockets-guide.md(110 lines) - WebSocket integrationreferences/state-management.md(388 lines) - State management, scheduled tasks, workflowsreferences/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 setuptemplates/browser-agent.ts- Browser automationtemplates/calling-agents-worker.ts- Calling other agentstemplates/chat-agent-streaming.ts- Streaming chat agenttemplates/hitl-agent.ts- Human-in-the-looptemplates/mcp-server-basic.ts- MCP server integrationtemplates/rag-agent.ts- RAG implementationtemplates/react-useagent-client.tsx- React client integrationtemplates/scheduled-agent.ts- Scheduled taskstemplates/state-sync-agent.ts- State synchronizationtemplates/websocket-agent.ts- WebSocket agenttemplates/workflow-agent.ts- Workflows integrationtemplates/wrangler-agents-config.jsonc- Wrangler configuration
Official Docs: https://developers.cloudflare.com/cloudflare-for-platforms/cloudflare-agents/
What ships with it
97.5 KB alongside SKILL.md, 11 of them executable
GitHub clipped this repository’s file list, so this is at least 22 files and may be more.
references/
- advanced-features.md13.6 KB
- agent-api.md2.9 KB
- configuration-guide.md3.1 KB
- error-catalog.md275 B
- http-sse-guide.md2.0 KB
- mcp-integration.md2.7 KB
- patterns-concepts.md11.0 KB
- state-management.md9.5 KB
- websockets-guide.md3.0 KB
templates/
- basic-agent.tsruns383 B
- browser-agent.tsruns4.9 KB
- calling-agents-worker.tsruns3.7 KB
- chat-agent-streaming.tsruns1.5 KB
- hitl-agent.tsruns6.6 KB
- mcp-server-basic.tsruns4.0 KB
- rag-agent.tsruns4.8 KB
- react-useagent-client.tsx5.5 KB
- scheduled-agent.tsruns4.5 KB
- state-sync-agent.tsruns3.9 KB
- websocket-agent.tsruns4.1 KB
- workflow-agent.tsruns3.8 KB
- wrangler-agents-config.jsonc1.9 KB