agents-sdk
π―Skillfrom cloudflare/skills
Enables building stateful AI agents with advanced capabilities like state management, scheduling, remote procedure calls, MCP servers, email integration, and streaming chat functionality.
Installation
npx skills add https://github.com/cloudflare/skills --skill agents-sdkSkill Details
Overview
# Cloudflare Skills
A collection of [Agent Skills](https://www.anthropic.com/engineering/equipping-agents-for-the-real-world-with-agent-skills) for building on Cloudflare, Workers, the Agents SDK, and the wider Cloudflare Developer Platform.
Installing Skills
These skills work with any agent that supports the Agent Skills standard, including Claude Code, OpenCode, OpenAI Codex, and Pi.
Copy the skill directories you need to the appropriate location for your agent:
| Agent | Skill Directory | Docs |
|-------|-----------------|------|
| Claude Code | ~/.claude/skills/ | [docs](https://code.claude.com/docs/en/skills) |
| OpenCode | ~/.config/opencode/skill/ | [docs](https://opencode.ai/docs/skills/) |
| OpenAI Codex | ~/.codex/skills/ | [docs](https://developers.openai.com/codex/skills/) |
| Pi | ~/.pi/agent/skills/ | [docs](https://github.com/badlogic/pi-mono/tree/main/packages/coding-agent#skills) |
Skills
| Skill | Useful for | Directory |
|-------|------------|-----------|
| agents-sdk | Building stateful AI agents with state, scheduling, RPC, MCP servers, email, and streaming chat | agents-sdk/ |
| durable-objects | Stateful coordination (chat rooms, games, booking), RPC, SQLite, alarms, WebSockets | durable-objects/ |
| wrangler | Deploying and managing Workers, KV, R2, D1, Vectorize, Queues, Workflows | wrangler/ |
| web-perf | Auditing Core Web Vitals (FCP, LCP, TBT, CLS), render-blocking resources, network chains | web-perf/ |
| building-mcp-server-on-cloudflare | Building remote MCP servers with tools, OAuth, and deployment | building-mcp-server-on-cloudflare/ |
| building-ai-agent-on-cloudflare | Building AI agents with state, WebSockets, and tool integration | building-ai-agent-on-cloudflare/ |
Usage
When a request matches a skill's triggers, the agent loads and applies the relevant skill to provide accurate, up-to-date guidance.
Resources
- [Cloudflare Agents Documentation](https://developers.cloudflare.com/agents/)
- [Cloudflare MCP Guide](https://developers.cloudflare.com/agents/model-context-protocol/)
- [Agents SDK Repository](https://github.com/cloudflare/agents)
- [Agents Starter Template](https://github.com/cloudflare/agents-starter)
More from this repository5
Helps developers deploy, manage, and interact with Cloudflare Workers, key-value stores, databases, and other Cloudflare developer platform resources.
Enables stateful coordination for chat rooms, games, booking systems, RPC, SQLite interactions, alarms, and WebSocket connections using Cloudflare Durable Objects.
Analyzes web performance by auditing Core Web Vitals, identifying render-blocking resources, and examining network request chains.
Enables developers to construct AI agents on Cloudflare with advanced capabilities like stateful management, WebSocket communication, and integrated tool support.
Guides developers in constructing remote Model Context Protocol (MCP) servers on Cloudflare with integrated tools, authentication, and deployment strategies.