Skip to content

Fix factual errors in Workers limits, D1 pricing, Agent wrangler config, and troubleshooting - #34

Merged
dmmulroy merged 1 commit into
cloudflare:mainfrom
adewale:fix/factual-errors-limits-pricing-config
Mar 27, 2026
Merged

Fix factual errors in Workers limits, D1 pricing, Agent wrangler config, and troubleshooting#34
dmmulroy merged 1 commit into
cloudflare:mainfrom
adewale:fix/factual-errors-limits-pricing-config

Conversation

@adewale

@adewale adewale commented Mar 27, 2026

Copy link
Copy Markdown
Contributor

What

Fix 11 factual errors across 4 files: wrong Workers platform limits, wrong D1
pricing, wrong wrangler config format and migration keys for Agents, and wrong
wrangler config in agent troubleshooting examples.

Why

A systematic audit found numbers, config snippets, and pricing claims that
contradict the live Cloudflare documentation. These skills are consumed by AI
agents that will reproduce the errors verbatim in generated code and advice.

Changes

Fixes 1, 2, 3, 7, 8 — Workers limits table and error description (gotchas.md)

File: skills/cloudflare/references/workers/gotchas.md

The limits table and the "Too much CPU time used" error description contained
five errors, each contradicted by the live limits page:

Line Claim in skill Correct value Source
7 "10ms standard, 30ms unbound" Free: 10ms; Paid: 30s default / 5min max https://developers.cloudflare.com/workers/platform/limits/#cpu-time
124-125 "CPU time (standard): 10ms, (unbound): 30ms" Same as above; "Unbound" plan is deprecated https://developers.cloudflare.com/workers/platform/limits/#cpu-time
126 "Subrequests: 10,000" (no plan distinction) Free: 50; Paid: 10,000 https://developers.cloudflare.com/workers/platform/limits/#subrequests
128 "KV write size: 25 MB" 25 MiB https://developers.cloudflare.com/kv/platform/limits/
129 "Environment size: 5 MB" 5 KB per variable https://developers.cloudflare.com/workers/platform/limits/#environment-variables

What changed: Rewrote the two CPU time rows to show Free vs Paid. Split
subrequests into Free/Paid rows. Changed "25 MB" to "25 MiB". Changed "5 MB"
to "5 KB per variable". Updated the error description on line 7 to match.


Fixes 4, 6 — Agent wrangler config (building-ai-agent-on-cloudflare/SKILL.md)

File: skills/building-ai-agent-on-cloudflare/SKILL.md lines 177-191

The wrangler config block used TOML format and the legacy new_classes
migration key.

  • new_classes creates a non-SQLite Durable Object. Agents require SQLite.
    The correct key is new_sqlite_classes.
  • Cloudflare recommends wrangler.jsonc for new projects; some newer features
    are JSON-only.

What changed: Replaced the wrangler.toml TOML block with an equivalent
wrangler.jsonc JSON block using new_sqlite_classes.

References:


Fix 5 — D1 pricing (d1/README.md)

File: skills/cloudflare/references/d1/README.md line 83

The pricing line stated "$5/month per database beyond free tier + $0.001 per
1K reads + $1 per 1M writes + $0.75/GB storage/month". Two errors:

  1. There is no $5/month per-database fee. D1 pricing is purely usage-based.
  2. The read rate is $0.001 per million rows read, not per 1K reads
    (1,000x cheaper than stated).

What changed: Replaced with "$0.001 per million rows read + $1.00 per
million rows written + $0.75/GB storage/month (includes free monthly allowance;
no per-database fee)".

Reference: https://developers.cloudflare.com/d1/platform/pricing/


Fixes 9, 10, 11 — Agent troubleshooting wrangler snippets

File: skills/building-ai-agent-on-cloudflare/references/troubleshooting.md

Three troubleshooting sections used wrangler.toml with new_classes:

Lines Section What changed
237-246 "Durable Object not found" TOML → JSONC, new_classesnew_sqlite_classes
250-259 "Migration required" TOML → JSONC, new_classesnew_sqlite_classes
265-270 "AI binding not found" TOML → JSONC

Same justification as fixes 4 and 6. These are the same class of error in
the same skill's reference file.

References:

Fix 12 — Directory tree listing (examples.md)

File: skills/building-ai-agent-on-cloudflare/references/examples.md line 41

The project structure diagram listed wrangler.toml. Changed to wrangler.jsonc
for consistency with all other config references in the skill.

Reference: https://developers.cloudflare.com/workers/wrangler/configuration/

Testing

  • All modified files are valid Markdown (no broken syntax — markdownlint shows only pre-existing warnings)
  • All wrangler config blocks in building-ai-agent-on-cloudflare/ use JSONC and new_sqlite_classes
  • Every number in gotchas.md limits table matches the live docs URL cited
  • D1 pricing line matches https://developers.cloudflare.com/d1/platform/pricing/

Risk

Documentation-only changes. No code, runtime behaviour, or bindings modified.
Every correction is cited to a specific live URL to make it auditable.

…ig, and troubleshooting

A systematic audit found 11 factual errors across 4 files that contradict
live Cloudflare documentation. Every correction is cited to a specific URL.

- gotchas.md: Fix CPU time limits (was 10ms/30ms, now Free:10ms/Paid:30s-5min),
  subrequests (add Free:50 vs Paid:10,000), KV size (25 MB -> 25 MiB),
  env var size (5 MB -> 5 KB per variable)
- building-ai-agent SKILL.md: TOML -> JSONC, new_classes -> new_sqlite_classes
- d1/README.md: Remove fabricated $5/db fee, fix read rate denominator
  ($0.001/1K -> $0.001/1M rows)
- troubleshooting.md: Fix 3 wrangler snippets (TOML+new_classes -> JSONC+new_sqlite_classes)
- examples.md: wrangler.toml -> wrangler.jsonc in directory tree
@dmmulroy
dmmulroy merged commit ed57ea9 into cloudflare:main Mar 27, 2026
adewale pushed a commit to adewale/skills that referenced this pull request Apr 2, 2026
…limits, and docs

Incorporates upstream fixes from cloudflare/skills PRs cloudflare#34 and cloudflare#35:
- Fix Workers CPU time limits (ms → seconds across multiple files)
- Fix D1 pricing errors (removed fabricated $5/db fee, corrected read rate)
- Fix KV pricing (was wrong by 10x)
- Fix wrangler config references (TOML → JSONC)
- Fix Agents SDK configuration (new_classes → new_sqlite_classes)
- Fix sandbox docs (runCode() API, return types, exec() timeout)
- Fix secrets store CLI syntax
- Add missing cloudflare-api MCP server to README
- Fix vectorize batch limit (500 → 1000)
- Various other factual corrections

https://claude.ai/code/session_01VMYzryVgfa9JUTK5PKA4XU
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.

2 participants