workers-best-practices
Review Cloudflare Workers with proven practices
Cloudflare Workers projects can fail through outdated APIs, incorrect bindings, and unsafe runtime patterns. This skill guides code reviews and implementation using current documentation and focused production checks.
Install with my Agent
Copy this request to your Agent. It includes the canonical Skill page and manifest.
Review the Skillstore skill "workers-best-practices" from https://skillstore.io/skills/cloudflare-workers-best-practices.md and its manifest at https://skillstore.io/api/skills/cloudflare-workers-best-practices/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.Your Agent should still show its plan and request any confirmation required by the security policy.
Agent-readable resources
Use these links when an AI agent, crawler, or script needs clean context instead of reading the full page.
Test it
Using "workers-best-practices". Review a handler that stores the current user in a module variable.
Expected outcome:
- High: request-scoped data is stored in module state and can leak between reused isolates.
- Use function parameters or local variables for request-specific values.
Using "workers-best-practices". Review a configuration that stores an API key in vars.
Expected outcome:
- High: the configuration contains a secret that can enter version control.
- Store the value with Wrangler secrets and keep only non-secret settings in vars.
Using "workers-best-practices". Review a large upstream response that uses response.text().
Expected outcome:
- Medium: buffering an unbounded response can exceed the Workers memory limit.
- Return the response body as a stream or process it incrementally.
Security Audit
Medium RiskThe 92 static findings are false positives caused by Markdown code spans, illustrative Worker code, safe secret-handling guidance, and public documentation URLs. No prompt injection, credential exfiltration, or hidden execution behavior was found. The skill does instruct users to retrieve and extract an unpinned package, which warrants controlled execution.
Confirmed security concerns (1)
Risk Factors
โ๏ธ External commands (36)
๐ Filesystem access (9)
๐ Network access (29)
๐ Env variables (2)
Share & cite this report
Share the versioned assessment report, neutral badge, embed card, and citations. Skillstore reports evidence without deciding whether this Skill is safe.
Copy report link
https://skillstore.io/skills/cloudflare-workers-best-practices/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown badge
[](https://skillstore.io/skills/cloudflare-workers-best-practices?utm_source=security_passport_badge)HTML badge
<a href="https://skillstore.io/skills/cloudflare-workers-best-practices?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/cloudflare-workers-best-practices/security.svg" alt="Skillstore security assessment" loading="lazy"></a>Embed card
<iframe src="https://skillstore.io/embed/skills/cloudflare-workers-best-practices.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>Academic citations (APA ยท BibTeX ยท CFF)
APA citation
cloudflare. (2026). workers-best-practices security audit report (audit version 1) [Author version unspecified]. Skillstore. https://skillstore.io/skills/cloudflare-workers-best-practices/audits/1BibTeX citation
@techreport{cloudflare-cloudflare-workers-best-practices-2026,
author = {cloudflare},
title = {workers-best-practices security audit report (audit version 1)},
institution = {Skillstore},
year = {2026},
number = {1},
url = {https://skillstore.io/skills/cloudflare-workers-best-practices/audits/1},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "workers-best-practices security audit report (audit version 1)"
version: "unspecified"
type: report
authors:
- name: "cloudflare"
date-released: "2026-07-20"
url: "https://skillstore.io/skills/cloudflare-workers-best-practices/audits/1"
identifiers:
- type: other
value: "skillstore:cloudflare-workers-best-practices:audit:1"
description: "Skillstore immutable audit report identifier"
Skillstore Score
Why this score Evidence Confidence: MediumWhat You Can Build
Review a Worker before release
Identify configuration, type, security, and runtime issues before a production deployment.
Set up a new Worker project
Create a configuration and handler structure that follows current Workers patterns.
Standardize team reviews
Apply a repeatable checklist for bindings, streaming, observability, and error handling.
Try These Prompts
Review this Cloudflare Worker handler for the most important production issues. Explain each issue and show the corrected approach.
Review this wrangler.jsonc and Worker code together. Check binding names, secrets, compatibility settings, and observability.
Analyze this Worker for buffering, floating promises, global request state, and unnecessary network calls. Prioritize fixes by production impact.
Perform a release review of these Worker files. Retrieve current Workers guidance first, then report verified findings with severity, evidence, and remediation.
Best Practices
- Retrieve current Workers documentation and type definitions before making API-specific recommendations.
- Provide file and line evidence for each finding and distinguish verified issues from suggestions.
- Review configuration and source code together so binding names and secret handling stay consistent.
Avoid
- Do not treat bundled examples as a substitute for the project's current Workers types and configuration.
- Do not hardcode secrets or recommend storing credentials in Wrangler vars.
- Do not buffer unbounded request or response bodies when streaming is appropriate.
Frequently Asked Questions
What does this skill review?
Does it use current Cloudflare guidance?
Can it deploy my Worker?
Can it find secrets?
Does it support Durable Objects and Workflows?
Should I run its package retrieval commands automatically?
Developer Details
Author
cloudflareLicense
MIT
Skillstore revision
r1
Version notice
The author did not declare a version.
Ref
c51565f83183133fcf8a8a7274ad0df2423655c8
Maintenance freshness
7/20/2026
Usage
0 downloads ยท 0 views
File structure