Agent skill · Frontend

agents-sdk

Build AI agents on Cloudflare Workers using the Agents SDK. Load when creating stateful agents, durable workflows, real-time WebSocket apps, scheduled tasks, MCP servers, chat applications, voice agents, or browser automation. Covers Agent class, state management, callable RPC, Workflows, durable execution, queues, retries, observability, and React hooks. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.

Cloudflare18,481★ · +13/wk · 4 repos on radarProfile →
claude-codeApache-2.0
Install
npx skills add cloudflare/skills --skill agents-sdk --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 20
SKILL.md size: 12 KB
Bundled scripts: none
Path: skills/agents-sdk/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 2,539
Language: Shell
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Cloudflare Agents SDK Your knowledge of the Agents SDK may be outdated. **Prefer retrieval over pre-training** for any Agents SDK task. ## Retrieval Sources Cloudflare docs: https://developers.cloudflare.com/agents/ | Topic | Docs URL | Use for | |-------|----------|---------| | Getting started | [Quick start](https://developers.cloudflare.com/agents/getting-started/quick-start/) | First agent, project setup | | Adding to existing project | [Add to existing project](https://developers.cloudflare.com/agents/getting-started/add-to-existing-project/) | Install into existing Workers app | | Configuration | [Configuration](https://developers.cloudflare.com/agents/api-reference/configuration/) | `wrangler.jsonc`, bindings, assets, deployment | | Agent class | [Agents API](https://developers.cloudflare.com/agents/api-reference/agents-api/) | Agent lifecycle, patterns, pitfalls | | State | [Store and sync state](https://developers.cloudflare.com/agents/api-reference/store-and-sync-state/) | `setState`, `validateStateChange`, persistence | | Routing | [Routing](https://developers.cloudflare.com/agents/api-reference/routing/) | URL patterns, `routeAgentRequest` | | Callable methods | [Call

What's inside
Steps it walks through
  1. Retrieval Sources
  2. Capabilities
  3. FIRST: Verify Installation
  4. Wrangler Configuration
  5. Agent Class
  6. Routing
  7. Core APIs
  8. React Client
  9. References
  10. Core
  11. Chat & Streaming
  12. Background Processing
  13. Integrations
  14. Experimental
Ships with 19 files
  • references/browse-the-web.md
  • references/callable.md
  • references/client-sdk.md
  • references/codemode.md
  • references/configuration.md
  • references/durable-execution.md
  • references/email.md
  • references/human-in-the-loop.md
  • references/mcp.md
  • references/observability.md
  • references/queue-retries.md
  • references/routing.md
  • references/server-driven-messages.md
  • references/state-scheduling.md
  • references/streaming-chat.md
  • references/think.md
  • references/voice.md
  • references/webhooks-push.md
  • references/workflows.md
Commands it runs
npm ls agents  # Should show agents package
npm install agents
npm install agents @cloudflare/ai-chat ai @ai-sdk/react
More from skills
All skills →
About this skill
What does the agents-sdk skill do?

Build AI agents on Cloudflare Workers using the Agents SDK. Load when creating stateful agents, durable workflows, real-time WebSocket apps, scheduled tasks, MCP servers, chat applications, voice agents, or browser automation. Covers Agent class, state management, callable RPC, Workflows, durable execution, queues, retries, observability, and React hooks. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.

How do I install it?

Run `npx skills add cloudflare/skills --skill agents-sdk --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From cloudflare/skills, a repository with 2,539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going