One-click install
npx skills add https://github.com/kage1020/dotfiles --skill agents-sdk-kage1020
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agents-sdk
Source: https://github.com/kage1020/dotfiles/tree/main/dot_claude/skills/agents-sdk
Command: npx skills add https://github.com/kage1020/dotfiles --skill agents-sdk-kage1020

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Developers need a cohesive framework to build, deploy, and manage AI agents on Cloudflare Workers with built-in state, durability, and client integration.

Core Features & Use Cases

  • Agent class with state management and callable RPC to enable WebSocket-based interactions.
  • Durable workflows, MCP integration, and email/streaming capabilities for complex automation.
  • React hooks and client-side tooling for seamless web app integration. Use case: create a persistent agent that handles chat, routing, and background tasks.

Quick Start

Install the Agents SDK, define your Agent class, and wire up routing to start an example agent in a Worker.

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 AI agents on Cloudflare Workers?

Build stateful AI agents on Cloudflare Workers by defining an Agent class with callable RPC and state management, then wiring up routing to handle WebSocket-based interactions and durable workflows. This SDK scaffolds the required infrastructure for persistent execution.

Can I use React hooks for real-time client integration with Cloudflare agents?

React hooks enable real-time client integration with Cloudflare agents by providing seamless web app tooling. Connect your frontend to the backend Agent class to handle streaming data and WebSocket-based interactions directly within your React components.

What is the best way to manage durable workflows for background tasks in Workers?

Manage durable workflows for background tasks in Workers by leveraging the Agents SDK to schedule tasks and maintain agent state. This approach ensures your automation logic persists reliably across executions without external state management overhead.

Does the Cloudflare Agents SDK support MCP and email integrations?

The Cloudflare Agents SDK supports MCP and email integrations alongside streaming capabilities for complex automation. These features allow your agents to handle diverse communication protocols and tool interactions within a single cohesive framework.

How do I initialize an Agent class and define routes in a Cloudflare Worker?

Initialize an Agent class and define routes in a Cloudflare Worker by installing the Agents SDK, declaring your class structure, and configuring routing examples. This setup enables WebSocket connections and callable RPC methods for client requests.