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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

It helps you build production-grade AI agents on Cloudflare Workers that can keep state, expose callable actions, and run durable background work without manually wiring every infrastructure concern.

Core Features & Use Cases

  • Persistent agent state: Maintain durable, SQLite-backed state and keep connected clients synchronized automatically.
  • Callable RPC for agents: Expose agent methods over WebSocket via @callable, including optional streaming responses for real-time updates.
  • Durable workflows and execution: Run multi-step background tasks with AgentWorkflow and handle eviction-tolerant logic with fibers (runFiber/stash).
  • Scheduling and queues: Trigger tasks with schedule/scheduleEvery and process queued jobs with persisted FIFO behavior plus retry strategies.
  • Production integrations: Use MCP clients/servers for external tool ecosystems, handle email routing, receive webhooks, and emit observability events.

Quick Start

Use the agents-sdk skill to create a minimal Cloudflare Worker Durable Object agent with a Counter class, a @callable increment method, and routeAgentRequest as the fetch handler.

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?

Stateful AI agents on Cloudflare Workers are built using Durable Objects with SQLite-backed state sync, callable RPC routing, and durable workflows to maintain persistent sessions and background orchestration without manual infrastructure wiring.

What's the best way to expose callable RPC methods for AI agents over WebSocket?

Callable RPC methods for AI agents are exposed over WebSocket using the @callable decorator, enabling real-time interactive chat and optional streaming responses for connected clients via routeAgentRequest.

How do durable workflows handle background orchestration and eviction-tolerant execution?

Durable workflows handle background orchestration through AgentWorkflow for multi-step tasks and runFiber/stash for eviction-tolerant logic, providing scheduling, retries, and queued FIFO execution.

Can I use MCP integration with Cloudflare Workers to connect external tool ecosystems?

MCP clients and servers integrate directly with Cloudflare Workers agents to connect external tool ecosystems, supporting production integrations alongside email routing, webhooks, and observability events.

Do I need wrangler.jsonc and migrations to configure the agent lifecycle on Cloudflare Workers?

Configuring the agent lifecycle on Cloudflare Workers requires wrangler.jsonc Durable Objects and migrations to set up routeAgentRequest and the /agents/{agent-name}/{instance-name} routing pattern.

How does streaming output work across resumable sessions for AI agents?

Streaming output across resumable sessions works by maintaining synchronized SQLite state and WebSocket connections, allowing agents to persist session context and deliver real-time updates without losing progress.