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.
Instalar com meu Agente
Copie esta solicitação para o seu Agente. Ela inclui a página canônica do Skill e o manifesto.
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.Seu Agente ainda deve apresentar o plano e solicitar qualquer confirmação exigida pela política de segurança.
Recursos legíveis por agentes
Use estes links quando um agente de IA, crawler ou script precisar de contexto limpo em vez de ler a página completa.
Testar
Usando "workers-best-practices". Review a handler that stores the current user in a module variable.
Resultado esperado:
- 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.
Usando "workers-best-practices". Review a configuration that stores an API key in vars.
Resultado esperado:
- 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.
Usando "workers-best-practices". Review a large upstream response that uses response.text().
Resultado esperado:
- Medium: buffering an unbounded response can exceed the Workers memory limit.
- Return the response body as a stream or process it incrementally.
Auditoria de segurança
Risco MédioThe 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.
Preocupações de segurança confirmadas (1)
Fatores de risco
⚙️ Comandos externos (36)
📁 Acesso ao sistema de arquivos (9)
🌐 Acesso à rede (29)
🔑 Variáveis de ambiente (2)
Compartilhar e citar este relatório
Compartilhe o relatório de avaliação versionado, o badge neutro, o cartão incorporável e as citações. A Skillstore apresenta evidências sem decidir se este Skill é seguro.
Copiar link do relatório
https://skillstore.io/skills/cloudflare-workers-best-practices/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportBadge Markdown
[](https://skillstore.io/skills/cloudflare-workers-best-practices?utm_source=security_passport_badge)Badge HTML
<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>Cartão incorporável
<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>Citações acadêmicas (APA · BibTeX · CFF)
Citação APA
cloudflare. (2026). workers-best-practices security audit report (audit version 1) [Author version unspecified]. Skillstore. https://skillstore.io/skills/cloudflare-workers-best-practices/audits/1Citação BibTeX
@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"
Pontuação do Skillstore
Por que esta pontuação Confiança das evidências: MédioO que você pode criar
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.
Teste estes 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.
Boas práticas
- 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.
Evitar
- 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.
Perguntas frequentes
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?
Detalhes do desenvolvedor
Autor
cloudflareLicença
MIT
Revisão da Skillstore
r1
Aviso de versão
O autor não declarou uma versão.
Referência
c51565f83183133fcf8a8a7274ad0df2423655c8
Atualidade da manutenção
20/07/2026
Uso
0 downloads · 0 visualizações
Estrutura de arquivos