Add Dynamic Workers skill reference and prerequisites guide#39
Open
adewale wants to merge 9 commits into
Open
Conversation
New product reference covering Cloudflare's Dynamic Workers (runtime V8 isolate execution). Includes API reference, configuration, patterns (code mode, MCP wrapping, OpenAPI, real-time logging), gotchas, pricing, and links to all 6 official examples. Also adds PREREQUISITES.md documenting the research process for adding future product skills (sources to gather, structure to follow, checklist). https://claude.ai/code/session_01CkgwSkxhYZtzvKduJF3xSR
Verified all claims against official Cloudflare docs and fixed:
- Fix import paths: @cloudflare/codemode/ai, @cloudflare/codemode/mcp
(were incorrectly @cloudflare/agents/*)
- Fix codeMcpServer signature: { server, executor } not positional args
- Fix openApiMcpServer signature: { spec, executor, request } not
{ spec, executor, baseUrl, headers }
- Fix helper library descriptions to match official changelog text
- Fix WfP languages column (supports JS/TS/Python/Rust/Wasm, not just JS/Python)
- Replace invented error messages with documented behavior
- Add official source links for raw bindings limitation
- Add caveat that __warmup__ is from example code, not documented API
- Replace guessed limits table with actual Workers platform limits
- Add source attribution for createWorker() return shape
- Fix RPC isolate phrasing to match docs
Sources: developers.cloudflare.com/dynamic-workers/,
/dynamic-workers/usage/bindings/, /agents/api-reference/codemode/,
/workers/platform/limits/, Cloudflare changelog
https://claude.ai/code/session_01CkgwSkxhYZtzvKduJF3xSR
- Sandbox disk is ephemeral across sleep, not persistent. Fixed to: "Ephemeral disk (lost on sleep); use R2 mounts for persistence" Source: developers.cloudflare.com/containers/faq/ - Removed "compatibilityDate independent of loader's" claim from configuration.md — not explicitly documented https://claude.ai/code/session_01CkgwSkxhYZtzvKduJF3xSR
- gotchas.md: Add explicit math showing load() at 10k invocations/day = $20/day vs get() = $0.002/day - README.md: Fix WfP languages to JS, TS, Python (drop Rust/Wasm which are not confirmed for WfP specifically) - workers-for-platforms/README.md: Add dynamic-workers See Also link - sandbox/README.md: Add dynamic-workers See Also link - tail-workers/patterns.md: Add Dynamic Workers section noting tails property for tail events https://claude.ai/code/session_01CkgwSkxhYZtzvKduJF3xSR
- api.md: Name Cap'n Web in the Custom Bindings section, explain capability-based security model (stubs, no global identifiers) Source: developers.cloudflare.com/dynamic-workers/usage/bindings/ - SKILL.md: Add "Run AI-generated code in a sandbox → dynamic-workers/" to the "I need AI/ML" decision tree https://claude.ai/code/session_01CkgwSkxhYZtzvKduJF3xSR
… Workers - configuration.md: Replace generic patterns.md link with specific cross-links to api.md#tail-workers-observability and patterns.md#real-time-log-streaming - README.md: Add retrieval-bias blockquote matching PR cloudflare#30 directive pattern https://claude.ai/code/session_01CkgwSkxhYZtzvKduJF3xSR
1. README.md: Fix comparison table State column — distinguish load()
(ephemeral) from get() (warm across requests, no isolate guarantee)
2. README.md: Add agents-sdk to See Also cross-references
3. PREREQUISITES.md: Add retrieval-bias directive to verify checklist
4. gotchas.md: Add links to all /dynamic-workers/ usage pages
5. gotchas.md: Fix misleading isolate reuse claim — get() improves
likelihood but does not guarantee same isolate
6. configuration.md: Add local dev note for wrangler dev behavior
7. api.md: Add Executor interface mention for custom sandbox impls
8. configuration.md: Add text/data/json non-code module types table
9. SKILL.md: Add "I need to sandbox untrusted code" decision tree
10. SKILL.md references: frontmatter — no change, by design (only
core products auto-load)
https://claude.ai/code/session_01CkgwSkxhYZtzvKduJF3xSR
|
+1 |
Collaborator
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
skills/cloudflare/references/dynamic-workers/reference with the standard 5-file structure (README, api, configuration, patterns, gotchas)skills/cloudflare/PREREQUISITES.mddocumenting the research process for new skillsChanges