agents-sdk

Build Cloudflare Agents SDK applications with persistent agents and real-time chat.

Updated Jan 30, 2026
One-click install
npx skills add https://github.com/Rayzerrek/dotfiles --skill agents-sdk-rayzerrek
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agents-sdk
Source: https://github.com/Rayzerrek/dotfiles/tree/main/.pi/agent/skills/agents-sdk
Command: npx skills add https://github.com/Rayzerrek/dotfiles --skill agents-sdk-rayzerrek

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you design, debug, and ship Cloudflare Workers apps built with the Agents SDK, especially when you need persistent state, real-time client connections, and durable background execution.

Core Features & Use Cases

  • Agent Architecture: Build stateful agents with lifecycle hooks, SQLite-backed state, routing, and validation.
  • Real-Time Interaction: Add WebSocket RPC, streaming chat, resumable responses, and React client hooks.
  • Durable Automation: Coordinate schedules, queues, retries, workflows, and fiber-based long-running tasks.
  • Integrations: Work with MCP servers, email, webhooks, push notifications, voice, browser automation, and observability.
  • Use Case: Use it to create a customer-support chat agent that remembers state, triggers scheduled follow-ups, calls tools securely, and survives interruptions.

Quick Start

Ask the assistant to help you build or debug a Cloudflare Agents SDK project, and provide the agent type, desired behavior, and any Wrangler or React context you already have.

Frequently Asked Questions about agents-sdk

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build stateful Cloudflare Workers with persistent agent state?

Stateful Cloudflare Workers are built using the Agents SDK to define agents with lifecycle hooks, SQLite-backed state, and Durable Object bindings. You configure Wrangler migrations and use SDK-specific APIs like Agent to maintain persistent state across requests.

Can I use React hooks with Cloudflare Agents SDK for client integrations?

Yes, Cloudflare Agents SDK supports React client integrations using hooks like useAgent. This allows your React application to establish WebSocket RPC connections, receive real-time streaming updates, and trigger callable methods directly on the stateful agent.

How do I coordinate durable workflows and scheduled tasks in Cloudflare Agents?

Durable workflows and scheduled tasks are coordinated within Cloudflare Agents using SDK APIs for schedules, queues, and fiber-based long-running tasks. This enables your agent to handle retries, trigger scheduled follow-ups, and survive execution interruptions automatically.

Does Cloudflare Agents SDK support MCP servers and browser automation?

Yes, the Cloudflare Agents SDK supports integrations for MCP servers, browser-connected automation, email handling, and push notifications. This allows your stateful agents to securely call external tools and interact with browser sessions.

What Wrangler configuration is needed for Durable Object migrations in Agents SDK?

Wrangler configuration for Durable Object migrations requires defining the correct Durable Object bindings in your wrangler.toml file. The Agents SDK relies on these bindings to route WebSocket RPC connections and manage SQLite-backed state correctly.