cloudflare-workers-platform
Skill0 starsChanged 7 months agoApache-2.0View on GitHub
Guardrail for choosing the smallest honest Cloudflare Workers seam, reviewing Worker code/config, and keeping Wrangler flows aligned with current docs.
In this repository57 other files it gives its agents.
- ai-app-integrationSkill
- anti-llm-frontend-designSkill
- aspnet-core-web-developmentSkill
- async-python-patternsSkill
- browser-game-foundationsSkill
- browser-local-qaSkill
- build-mcp-server-sdk-v2Skill
- canva-design-opsSkill
- check-completionSkill
- cli-tool-creatorSkill
- cloudflare-agents-mcpSkill
- cloudflare-durable-objectsSkill
- deployment-preview-workflowsSkill
- docx-document-artifactsSkill
- durable-workflow-orchestrationSkill
- dynamic-og-imagesSkill
- eval-auditSkill
- evaluate-ragSkill
- figma-design-to-code-rulesSkill
- fine-tuningSkill
- frontend-product-builderSkill
- game-asset-pipeline-expansionSkill
- game-ui-playtestSkill
- generate-synthetic-dataSkill
- github-pr-ci-opsSkill
- gmail-inbox-opsSkill
- golden-datasetSkill
- huggingface-llm-trainerSkill
- javascript-monorepo-buildsSkill
- linear-issue-managementSkill
- media-generation-transcriptionSkill
- millrace-rs-contract-paritySkill
- minecraft-mod-qa-automationSkill
- notion-workspace-flowsSkill
- openai-docsSkill
- optimize-agentic-cliSkill
- pdf-artifact-workflowSkill
- phaser-2d-game-developmentSkill
- postgres-query-performanceSkill
- product-ui-polish-reviewSkill
- pydantic-v2-patternsSkill
- python-repo-refactoring-hygieneSkill
- rag-corpus-hygieneSkill
- react-next-performance-reviewSkill
- rust-best-practicesSkill
- shadcn-ui-compositionSkill
- skill-evaluation-harnessSkill
- tauri-desktopSkill
- tauri-mcp-cliSkill
- tauri-ptySkill
- tile-pixel-art-transitionsSkill
- train-sentence-transformersSkill
- typer-cli-patternsSkill
- using-dbt-for-analytics-engineeringSkill
- validate-evaluatorSkill
- visual-asset-pipelineSkill
- watchdog-file-watcher-patternsSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
19 rules. About 0 are common, 13 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈13
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 47
Before any version-sensitive advice, check current Cloudflare Workers docs, Wrangler docs, the Wrangler config schema, and generated Worker …
- Distinctive: line 48
Keep state, bindings, secrets, routes, and verification ownership explicit.
- Distinctive: line 49
Prefer in-process bindings, service bindings, generated types, and schema-checked config over guesses.
- Distinctive: line 53
Do not put request-scoped state in module globals.
- Very specific: line 54
Do not leave background work as a floating promise.
- Very specific: line 55
Do not hand-write Env or guess binding names.
- Very specific: line 56
Do not hardcode secrets in source or wrangler.jsonc.
- Very specific: line 57
Do not rely on a stale compatibility_date or skip required compatibility flags for the code you are shipping.
- Distinctive: line 58
Do not call Cloudflare REST APIs from a Worker when an in-process binding or service binding exists.
- Distinctive: line 59
Do not hand-roll PostgreSQL or MySQL connectivity from a Worker when Hyperdrive is the intended seam.
- Distinctive: line 60
Do not choose Durable Objects, Agents SDK, or remote MCP unless that seam is actually required.
- Distinctive: line 81
Call out the current docs check needed before version-sensitive advice.
- Distinctive: line 83
Keep the answer planning-level unless implementation is explicitly requested.
- Very specific: line 88
Read the request and classify it as seam selection, code review, config review, or deploy/verify.
- Distinctive: line 90
Check current Cloudflare docs, Wrangler docs, the Wrangler config schema, and generated Worker types before any version-sensitive advice.
- Distinctive: line 91
Prefer in-process bindings and service bindings over public HTTP when Cloudflare already exposes the capability directly.
- Very specific: line 92
Use wrangler.jsonc as the config source of truth and regenerate types after binding changes.
- Distinctive: line 93
Verify the changed seam with the smallest proof step that matches the work.
- Distinctive: line 112
Start with the smallest useful decision: Cloudflare surface, docs check, and the owning boundary.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Cloudflare Workers Platform
Purpose
Help agents choose the smallest honest Cloudflare Workers seam and review Worker code, config, secrets, and deploy or verify steps without turning the skill into a Cloudflare manual. Start from plain Worker, Pages Function, or Worker plus bindings, then hand off to cloudflare-durable-objects or cloudflare-agents-mcp when coordination or agent/MCP behavior is the real seam.
Use When
- the task is building, reviewing, or debugging a Cloudflare Worker or Pages Function
- the work touches
wrangler.jsonc, compatibility dates, bindings, secrets, routes, environments, local dev, deploy, or tail - the prompt asks you to choose among Workers, Pages Functions, KV, R2, D1, Queues, Hyperdrive, service bindings, or observability
- the answer depends on current Cloudflare docs, Wrangler behavior, or config schema details
- the user wants production-readiness guidance for Cloudflare runtime code or config
Do Not Use When
- the task is primarily about Durable Objects, Agents SDK, or remote MCP
- the problem is generic backend or frontend work with no Cloudflare-specific seam
- another more specific skill already owns the exact boundary
- the request is only about broad Cloudflare platform strategy with no Worker or Wrangler seam to choose
Quick Start
- Classify the request first as
seam selection,code review,config review, ordeploy/verify. - Pick the smallest honest seam first: plain Worker, Pages Function, or Worker plus bindings.
- Before any version-sensitive advice, check current Cloudflare Workers docs, Wrangler docs, the Wrangler config schema, and generated Worker types.
- Keep state, bindings, secrets, routes, and verification ownership explicit.
- Prefer in-process bindings, service bindings, generated types, and schema-checked config over guesses.
Operating Constraints
- Do not put request-scoped state in module globals.
- Do not leave background work as a floating promise; use
ctx.waitUntil()or fullyawait,return, orvoidthe promise. - Do not hand-write
Envor guess binding names; runwrangler typesafter config changes. - Do not hardcode secrets in source or
wrangler.jsonc; usewrangler secret putfor secrets andvarsfor non-secrets. - Do not rely on a stale
compatibility_dateor skip required compatibility flags for the code you are shipping. - Do not call Cloudflare REST APIs from a Worker when an in-process binding or service binding exists.
- Do not hand-roll PostgreSQL or MySQL connectivity from a Worker when Hyperdrive is the intended seam.
- Do not choose Durable Objects, Agents SDK, or remote MCP unless that seam is actually required.
- Rejected trope: rewrite the task into a framework or agent architecture because it feels more scalable.
- Better alternative: keep the smallest Cloudflare surface that matches the request and wire bindings, types, and config directly.
- Rejected trope: trust memory for version-sensitive Workers or Wrangler APIs.
- Better alternative: check current docs and generated types before giving advice or commands.
- Rejected trope: use the public Cloudflare REST API from inside the Worker because it is already HTTP.
- Better alternative: use in-process bindings, service bindings, or the correct Cloudflare product surface instead.
Inputs This Skill Expects
- the request goal and target Cloudflare surface
- whether code, config, bindings, secrets, routes, or deployment checks are in play
- current Worker, Pages, or Wrangler files when they exist
- current official docs for the APIs in scope
- any test or verification constraints already known
Output Contract
- Name the seam class first.
- State the ownership boundary for code, config, bindings, secrets, routes, and verification separately.
- Name the smallest honest starting point, usually a plain Worker, a Pages Function, or a Worker plus bindings.
- Call out the current docs check needed before version-sensitive advice.
- For review prompts, flag module globals, missing
ctx.waitUntil(), floating promises, hand-writtenEnv, secrets in source, stale compatibility dates, and binding-name mismatches. - Keep the answer planning-level unless implementation is explicitly requested.
- End with the next verifier and the evidence it should capture.
Procedure
- Read the request and classify it as
seam selection,code review,config review, ordeploy/verify. - Choose the smallest honest Cloudflare surface that fits the work.
- Check current Cloudflare docs, Wrangler docs, the Wrangler config schema, and generated Worker types before any version-sensitive advice.
- Prefer in-process bindings and service bindings over public HTTP when Cloudflare already exposes the capability directly.
- Use
wrangler.jsoncas the config source of truth and regenerate types after binding changes. - Verify the changed seam with the smallest proof step that matches the work.
Pitfalls And Gotchas
- single request-scoped value in a module global
- background work that is neither awaited nor passed to
ctx.waitUntil() - hand-written
Envthat drifts fromwrangler.jsonc - secret values committed to source or config
- stale compatibility dates or missing flags for the chosen runtime behavior
- public HTTP between Workers when a service binding would be cheaper and safer
- choosing Durable Objects or agent or MCP surfaces when the prompt only needs a plain Worker or Pages Function
Rejected Trope
- Rejected trope: split Workers guidance, Wrangler guidance, and review guidance into separate skills for v1.
- Better alternative: keep one compact Workers platform guardrail with explicit handoff boundaries to the more specialized Cloudflare skills.
Progressive Disclosure
Start with the smallest useful decision: Cloudflare surface, docs check, and the owning boundary. Expand only enough to choose cleanly between code, config, bindings, secrets, routes, and deploy or verify details. Keep the skill short enough that it steers decisions instead of becoming a manual.
Verification Pattern
- Confirm the seam class is explicit.
- Confirm code, config, bindings, secrets, routes, and verification are owned separately.
- Confirm the answer names the current docs check before version-sensitive advice.
- Confirm the review checklist catches the common Workers failure modes.
- Next verifier: implementation reviewer or checker; capture the docs consulted, the chosen surface, and one concrete proof step such as
wrangler types --check,wrangler check, or a route or config diff.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
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.

