agents-sdk
Skill176 starsChanged 7 months agoMITView on GitHub
Build or debug stateful applications that specifically use Cloudflare's `agents` package, including Agent classes, routing, callable methods, synchronized state, scheduling, AIChatAgent, durable execution, or Agents SDK client hooks. Do not trigger for generic AI-agent design, the OpenAI Agents SDK, or ordinary Durable Object work that does not use the Cloudflare Agents SDK.
We split this skill into the rules it gives an agent
8 rules. 0 are common, 6 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 31 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Use current Cloudflare documentation and the installed agents package as the contract.
- Distinctive: line 14
Read the project's package version, Wrangler configuration, Agent exports, routing entrypoint, and generated binding types.
- Distinctive: line 27
Treat persisted Agent state, connection state, scheduled work, and client UI state as separate surfaces.
- Distinctive: line 31
Use stable operation identities for work that may be retried or resumed.
- Very specific: line 36
Keep routing and client naming consistent.
- Distinctive: line 38
Treat experimental integrations as version-specific.
- Distinctive: line 54
Read current first-party docs before relying on limits, package names, configuration fields, or experimental availability.
- Distinctive: line 59
Run the narrow type, route, and state tests for the changed seam.
“Common” is measured: kept by at least 6 in 10 of the 31 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Cloudflare Agents SDK
Use current Cloudflare documentation and the installed agents package as the
contract. APIs in this SDK evolve quickly; do not trust remembered signatures or
examples without checking the relevant version.
Inspect first
- Read the project's package version, Wrangler configuration, Agent exports, routing entrypoint, and generated binding types.
- Retrieve the current docs for the feature being changed.
- Inspect installed exports and
.d.tsfiles before adding casts or adapters. - Identify the Agent instance name and who is authorized to select it. Instance naming is a state-partition and access-control decision, not just a URL detail.
Agents require Durable Objects. Verify the exact class export, binding, and lifecycle declaration used by the target environment. Do not copy a migration or configuration example without checking the current lifecycle model.
Preserve the runtime contract
- Treat persisted Agent state, connection state, scheduled work, and client UI state as separate surfaces.
- Validate client-originated state and callable methods at the server boundary; a callable method is not authorization by itself.
- Use stable operation identities for work that may be retried or resumed.
- Distinguish ordinary request work from SDK durable-execution primitives. Use the latter only when work must survive Durable Object eviction or restart.
- Expect the Agent constructor and in-memory state to be recreated. Persist anything required after eviction.
- Keep routing and client naming consistent. Test the actual route through
routeAgentRequestor the project's custom router. - Treat experimental integrations as version-specific. Pin and test the seam rather than spreading preview types through domain code.
Load only the relevant reference
| Need | Reference |
| State, SQL, schedules, or alarms | state-scheduling.md |
| Callable RPC, streaming, or timeouts | callable.md |
| Routing, bindings, or project setup | routing.md, configuration.md |
| React/browser clients or chat streaming | client-sdk.md, streaming-chat.md |
| Server-driven turns or approval flows | server-driven-messages.md, human-in-the-loop.md |
| Workflows, fibers, queues, or retries | workflows.md, durable-execution.md, queue-retries.md |
| MCP, email, webhooks, push, or observability | mcp.md, email.md, webhooks-push.md, observability.md |
| Preview features | think.md, voice.md, codemode.md, browse-the-web.md |
Read current first-party docs before relying on limits, package names, configuration fields, or experimental availability.
Verify proportionally
Run the narrow type, route, and state tests for the changed seam. For connection or recovery behavior, test disconnect/reconnect and a recreated Agent instance. For scheduled or durable work, prove that duplicate delivery converges and that the persisted result—not an in-memory flag—defines completion.
Other versions34 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 34
- openai/plugins★ 7.4ksame name
- cloudflare/skills★ 3.2ksame name
- delta-comic/delta-comic★ 269same name
- open-fox/agents★ 55same name
- openai/openai-developers-for-claude★ 29same name
- elastic/elastic-ramen★ 19same name
- d-padmanabhan/agent-engineering-handbook★ 17same name
- delorenj/skills★ 16same name
- kevyder/banrepco_mcp★ 9same name
- openai/openai-developers-for-cursor★ 9same name
24 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
Used alongsideProjects with it also use nextjs-on-cloudflare, basin and 1 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
CloudflareSkillnextjs-on-cloudflare
Build, migrate, and deploy Next.js apps on Cloudflare Workers with vinext. Use when starting a Next.js project on Cloudflare, moving an existing app to Workers, choosing between vinext and OpenNext, or setting up vinext for Workers. For setup, migration, or deployment, install vinext's upstream skills with `npx skills add cloudflare/vinext` if missing, then read and follow the applicable skill and docs.
Also in 4 projects that use this
CloudflareSkillbasin
Build and troubleshoot Cloudflare Basin analytics workflows with Basin Pipelines, Basin Catalog, and Basin SQL. Use for streaming data into R2 Iceberg tables, managing catalogs, or querying those tables; also use for requests using the former Data Platform, Pipelines, R2 Data Catalog, or R2 SQL names.
Also in 4 projects that use this
- +1 more from cloudflare
In this repository101 other files it gives its agents.
- AGENTS.mdAGENTS.md
- accelevents-apiSkill
- accelevents-speaker-syncSkill
- ai-devblogSkill
- ai-engineeringSkill
- ai-readmeSkill
- align-meSkill
- annotated-video-productionSkill
- antislop-codebaseSkill
- app-ux-paradigmsSkill
- autoreviewSkill
- babysit-runsSkill
- blog-system-designSkill
- cassandra-creatorSkill
- ceo-creatorSkill
- claude-session-introspectSkill
- cli-uxSkill
- cloudflare-do-turn-based-multiplayerSkill
- cloudflare-email-serviceSkill
- cloudflare-one-migrationsSkill
- cloudflare-oneSkill
- cloudflare-production-builderSkill
- cloudflareSkill
- conference-developer-endpointsSkill
- conference-transcribeSkill
- coordinateSkill
- data-chatbotsSkill
- data-visualization-qualitySkill
- deep-trajectory-analysisSkill
- design-apps-with-imagegenSkill
- design-preferencesSkill
- diy-netlifySkill
- download-videoSkill
- download-x-videoSkill
- durable-objectsSkill
- europe-developer-apiSkill
- face-matchingSkill
- forgeSkill
- future-onlySkill
- generalizeSkill
- gsuite-setupSkill
- keep-it-simpleSkill
- latent-space-thumbnail-directorSkill
- live-ai-pipelinesSkill
- location-inputSkill
- long-running-operation-uxSkill
- media-heavy-workflowsSkill
- media-to-wiki-pipelineSkill
- media-transformSkill
- mobile-nativeSkill
- mobile-webapp-uxSkill
- multimodal-extractionSkill
- new-mac-setupSkill
- next-stepsSkill
- observability-hardeningSkill
- person-profile-writingSkill
- podcast-publishing-assistantSkill
- productionize-app-with-servicesSkill
- programmatic-agentsSkill
- provision-model-keysSkill
- The first 60 shown.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

