agents-sdk
Skill by midudev
Guides an AI assistant through building, debugging, or reviewing Cloudflare Agents SDK applications that use the agents package. It is for developers working on Cloudflare agents.
Install agents-sdk
Built from the published package, never by AI.
git clone --depth 1 https://github.com/midudev/autoskills /tmp/autoskills && mkdir -p ~/.claude/skills && cp -r /tmp/autoskills/packages/autoskills/skills-registry/agents-sdk ~/.claude/skills/agents-sdkRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/midudev/autoskills /tmp/autoskills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/autoskills/packages/autoskills/skills-registry/agents-sdk ~/.gemini/antigravity-cli/skills/agents-sdkAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The agents-sdk skill helps an AI assistant work on Cloudflare Agents SDK projects. It tells the assistant to prefer retrieving current Cloudflare documentation over its training data, and it lists docs URLs by topic, including state, routing, scheduling, workflows, MCP, and chat agents. It also gives a sample Agent class, a wrangler.jsonc configuration, and a table of core APIs such as setState, callable methods, schedule, runFiber, and queue.
The skill covers SQLite-backed state, RPC through callable methods, durable execution, retries, email, webhooks, push notifications, and experimental voice and browser tools. It is aimed at developers building agents on Cloudflare Workers. The source lists practical gotchas, such as not enabling experimentalDecorators in tsconfig and never editing old migrations.
Written from the project's SKILL.md and checked against it.
What it can do
- Persistent stateSQLite-backed state that is auto-synced to clients via setState.
- Callable RPCExposes @callable() methods that are invoked over WebSocket.
- SchedulingSupports one-time, recurring (scheduleEvery), and cron tasks.
- WorkflowsRuns durable multi-step background processing via AgentWorkflow.
- Durable executionUses runFiber() and stash() for work that survives DO eviction.
- Queue and retriesProvides a built-in FIFO queue via queue() and retries via this.retry().
- MCP integrationConnects to MCP servers or builds your own with createMcpHandler.
- Streaming chatSupports AIChatAgent with resumable streams, message persistence, and tools.
- React hooksProvides useAgent and useAgentChat for client apps.
- Webhooks and pushReceives and verifies external webhooks and sends Web Push and VAPID notifications.
What you need
- npm and the agents package
- Cloudflare Workers project with Durable Object bindings and wrangler configuration
- Workers AI binding for Workers AI features
Try asking
- Build a Cloudflare agent with persistent state and a callable increment method
- Debug my Agents SDK routing so requests reach the right agent instance
- Review my wrangler.jsonc for Durable Object bindings and migrations
Good to know
- Voice, browser tools, and Think are marked experimental in the source.
- Tsconfig must not enable experimentalDecorators, which breaks @callable.
- Old migrations must not be edited; new tags must be added instead.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: packages/autoskills/skills-registry/agents-sdk/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md12 KB -
references/browse-the-web.md2 KB -
references/callable.md2 KB -
references/client-sdk.md1 KB -
references/codemode.md3 KB
Show all 20 files
-
references/configuration.md2 KB -
references/durable-execution.md2 KB -
references/email.md3 KB -
references/human-in-the-loop.md929 B -
references/mcp.md1 KB -
references/observability.md1 KB -
references/queue-retries.md1 KB -
references/routing.md2 KB -
references/server-driven-messages.md868 B -
references/state-scheduling.md2 KB -
references/streaming-chat.md1 KB -
references/think.md3 KB -
references/voice.md2 KB -
references/webhooks-push.md2 KB -
references/workflows.md2 KB
Alternatives to agents-sdk
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
agents-sdk: common questions
What does the agents-sdk skill do?
It helps an AI assistant build, debug, or review Cloudflare Agents SDK applications that use the agents package. It points the assistant to current Cloudflare docs by topic.
Does the skill use up-to-date Cloudflare documentation?
The source tells the assistant to prefer retrieval over pre-training, because its knowledge of the SDK may be outdated. It links docs URLs for each topic.
Which Cloudflare features does the skill cover?
The source covers state, routing, callable RPC, scheduling, workflows, durable execution, queues, retries, MCP, email, chat agents, webhooks, and push notifications.
How do I install agents-sdk?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is agents-sdk free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is agents-sdk safe to use?
It scores 88 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to agents-sdk?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
