Skip to content

Add Dynamic Workers skill reference and prerequisites guide#39

Open
adewale wants to merge 9 commits into
cloudflare:mainfrom
adewale:claude/sync-upstream-repo-qpaTA
Open

Add Dynamic Workers skill reference and prerequisites guide#39
adewale wants to merge 9 commits into
cloudflare:mainfrom
adewale:claude/sync-upstream-repo-qpaTA

Conversation

@adewale
Copy link
Copy Markdown
Contributor

@adewale adewale commented Apr 6, 2026

Summary

  • Adds a new skills/cloudflare/references/dynamic-workers/ reference with the standard 5-file structure (README, api, configuration, patterns, gotchas)
  • Adds skills/cloudflare/PREREQUISITES.md documenting the research process for new skills
  • Updates SKILL.md decision trees and product index to include Dynamic Workers
  • Adds cross-references from sandbox, tail-workers, and workers-for-platforms

Changes

  • 5 new files for Dynamic Workers reference (~955 lines)
  • 1 new prerequisites guide (139 lines)
  • 4 existing files updated with cross-references and decision tree entries

claude added 7 commits April 6, 2026 13:34
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
@orliesaurus
Copy link
Copy Markdown

+1

@elithrar elithrar requested a review from dinasaur404 April 22, 2026 21:42
@elithrar
Copy link
Copy Markdown
Collaborator

  • Tightened the Dynamic Workers reference to stay retrieval-first and avoid drift-prone copied values.
  • Removed baked-in pricing, limits, cost math, and performance claims, replacing them with links to live docs where those details change.
  • Added clearer guidance on when to use Dynamic Workers vs Workers for Platforms or Sandbox, plus safer defaults for untrusted code.
  • Documented limits as part of the recommended Dynamic Workers setup, including per-worker and per-invocation usage.
  • Cleaned up examples and authoring guidance so compatibility-date examples, security patterns, and retrieval-bias instructions are consistent with the rest of the repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants