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, or chat applications. Covers Agent class, state management, callable RPC, Workflows integration, and React hooks.
npx skills add shobcoder/shob --skill agents-sdk --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Cloudflare Agents SDK **STOP.** Your knowledge of the Agents SDK may be outdated. Prefer retrieval over pre-training for any Agents SDK task. ## Documentation Fetch current docs from `https://github.com/cloudflare/agents/tree/main/docs` before implementing. | Topic | Doc | Use for | | ------------------- | ----------------------------- | ---------------------------------------------- | | Getting started | `docs/getting-started.md` | First agent, project setup | | State | `docs/state.md` | `setState`, `validateStateChange`, persistence | | Routing | `docs/routing.md` | URL patterns, `routeAgentRequest`, `basePath` | | Callable methods | `docs/callable-methods.md` | `@callable`, RPC, streaming, timeouts | | Scheduling | `docs/scheduling.md` | `schedule()`, `scheduleEvery()`, cron | | Workflows | `docs/workflows.md` | `AgentWorkflow`, durable multi-step tasks | | HTTP/WebSockets | `docs/http-websockets.md` | Lifecycle hooks, hibernation | | Email | `docs/email.md` | Email routing, secure reply resolver | | MCP client | `docs/mcp-client.md` | Connecting to MCP servers | | MCP server | `docs/mcp-servers.md` | Building MCP servers with `McpAgent` | | Client SDK | `docs/client-sdk.md` |
- Documentation
- Capabilities
- FIRST: Verify Installation
- Wrangler Configuration
- Agent Class
- Routing
- Core APIs
- React Client
- References
npm ls agents # Should show agents package npm install agents
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, or chat applications. Covers Agent class, state management, callable RPC, Workflows integration, and React hooks.
How do I install it?
Run `npx skills add shobcoder/shob --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 shobcoder/shob, a repository with 583 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.
