agents-sdk
π―Skillfrom cloudflare/skills
Skill for building stateful AI agents on Cloudflare Workers using the Agents SDK, covering state management, durable workflows, real-time WebSocket apps, scheduled tasks, and MCP servers
Overview
Cloudflare Agents SDK skill provides comprehensive guidance for building AI agents on Cloudflare Workers using the Agents SDK. It covers the full spectrum of agent development including the Agent class, persistent state management, callable RPC methods, durable Workflows, scheduling, MCP server integration, and React client hooks for building real-time applications.
Key Features
- Persistent State Management - SQLite-backed state that auto-syncs to clients with
setStateandvalidateStateChangehooks for data integrity - Callable RPC and WebSockets - Expose
@callable()methods invoked over WebSocket connections for real-time client-agent communication - Durable Workflows - Build multi-step background processing pipelines via
AgentWorkflowthat survive restarts and failures - MCP Integration - Both connect to existing MCP servers and build your own with
McpAgentfor tool integration - React Client Hooks - Use
useAgentanduseAgentChathooks for building interactive agent UIs with streaming chat and resumable streams
Who is this for?
This is for developers building stateful AI agents, real-time WebSocket applications, or chat experiences on Cloudflare's edge infrastructure. It is ideal for those who need persistent state, scheduled tasks, tool calling, or durable workflow capabilities in their agent applications.
Same repository
cloudflare/skills(9 items)
Installation
npx vibeindex add cloudflare/skills --skill agents-sdknpx skills add cloudflare/skills --skill agents-sdk~/.claude/skills/agents-sdk/SKILL.mdSKILL.md
More from this repository8
Skill for developing and deploying Cloudflare Workers, with wrangler CLI guidance, TypeScript support, and environment configuration.
Enables comprehensive Cloudflare platform development across serverless code, storage, AI, networking, and security with edge-native capabilities.
Guides AI agents through implementing Cloudflare Durable Objects for stateful, globally distributed applications on Cloudflare Workers.
Official Cloudflare agent skills for building on Workers, the Agents SDK, and the wider Cloudflare Developer Platform, compatible with Claude Code, OpenCode, Codex, and Pi.
Reviews and authors Cloudflare Workers code against production best practices, covering streaming, floating promises, global state, secrets, bindings, and observability with retrieval-first approach from Cloudflare docs.
Guides building and deploying AI agents on Cloudflare Workers using the Agents SDK and Cloudflare Developer Platform
Skill for building production-ready remote MCP servers on Cloudflare Workers with tools, OAuth authentication, and deployment configuration
Build sandboxed applications for secure code execution on Cloudflare Workers, covering Sandbox SDK lifecycle, commands, files, code interpreter, and preview URLs for AI code execution and CI/CD systems.