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.
Установить с помощью моего Агента
Скопируйте этот запрос в своего Агента. Он содержит каноническую страницу Skill и манифест.
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.Ваш Агент по-прежнему должен показать план и запросить все подтверждения, требуемые политикой безопасности.
Ресурсы для AI-агентов
Используйте эти ссылки, когда AI-агенту, crawler или script нужен чистый контекст вместо полной страницы.
Протестировать
Использование «workers-best-practices». Review a handler that stores the current user in a module variable.
Ожидаемый результат:
- 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.
Использование «workers-best-practices». Review a configuration that stores an API key in vars.
Ожидаемый результат:
- 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.
Использование «workers-best-practices». Review a large upstream response that uses response.text().
Ожидаемый результат:
- Medium: buffering an unbounded response can exceed the Workers memory limit.
- Return the response body as a stream or process it incrementally.
Аудит безопасности
Средний рискThe 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.
Подтверждённые проблемы безопасности (1)
Факторы риска
⚙️ Внешние команды (36)
📁 Доступ к файловой системе (9)
🌐 Доступ к сети (29)
🔑 Переменные окружения (2)
Поделиться и цитировать этот отчет
Делитесь версионным отчетом об оценке, нейтральным значком, встраиваемой карточкой и цитатами. Skillstore публикует доказательства, не решая, безопасен ли этот Skill.
Копировать ссылку на отчёт
https://skillstore.io/skills/cloudflare-workers-best-practices/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportЗначок Markdown
[](https://skillstore.io/skills/cloudflare-workers-best-practices?utm_source=security_passport_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>Встраиваемая карточка
<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>Академические ссылки (APA · BibTeX · CFF)
Цитата 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/1Цитата 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"
Оценка Skillstore
Почему такая оценка Достоверность доказательств: СреднийЧто вы можете построить
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.
Попробуйте эти промпты
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.
Лучшие практики
- 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.
Избегать
- 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.
Часто задаваемые вопросы
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?
Сведения для разработчиков
Автор
cloudflareЛицензия
MIT
Ревизия Skillstore
r1
Примечание о версии
Автор не указал версию.
Ссылка
c51565f83183133fcf8a8a7274ad0df2423655c8
Актуальность поддержки
20.07.2026
Использование
0 загрузок · 0 просмотров
Структура файлов