workers-best-practices

Review Cloudflare Workers code and wrangler.jsonc configurations for security and correctness.

Updated Apr 16, 2026
One-click install
npx skills add https://github.com/Quintenps/contactswap-agents --skill workers-best-practices-quintenps
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: workers-best-practices
Source: https://github.com/Quintenps/contactswap-agents/tree/main/.squad/skills/workers-best-practices
Command: npx skills add https://github.com/Quintenps/contactswap-agents --skill workers-best-practices-quintenps

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the complexity of maintaining high-performance, secure, and reliable Cloudflare Workers by providing a structured framework for code reviews and architectural decisions.

Core Features & Use Cases

  • Best Practice Enforcement: Validates code against production standards like streaming, proper promise handling, and observability.
  • Configuration Auditing: Ensures wrangler.jsonc settings, compatibility dates, and binding definitions are accurate and modern.
  • Security Guardrails: Identifies common vulnerabilities such as insecure crypto usage, secret leakage, and timing side-channels.

Quick Start

Use the workers-best-practices skill to review the current codebase for potential floating promises and incorrect binding access patterns.

Frequently Asked Questions about workers-best-practices

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I review Cloudflare Workers code for production readiness?

To review Cloudflare Workers code for production readiness, validate source code against best practices for streaming, promise handling, and observability. This ensures strict adherence to platform documentation, type safety, and efficient resource management.

What are common security vulnerabilities in serverless Cloudflare Workers?

Common security vulnerabilities in serverless Cloudflare Workers include insecure crypto usage, secret leakage, and timing side-channels. Identifying these risks during code review enforces strict security guardrails and validates architectural patterns for production safety.

How do I audit wrangler configurations for Cloudflare Workers?

To audit wrangler configurations for Cloudflare Workers, validate wrangler.jsonc settings, compatibility dates, and binding definitions. Accurate configuration auditing ensures modern platform standards are met and architectural definitions are correctly aligned.

Why do floating promises cause issues in Cloudflare Workers?

Floating promises cause issues in Cloudflare Workers because unawaited asynchronous operations can be terminated early by the runtime. Analyzing source code to detect floating promises enforces proper promise handling and guarantees reliable execution.

Can I use this approach to validate binding access patterns in serverless projects?

Yes, you can validate binding access patterns in serverless projects by analyzing source code and wrangler configurations. This architectural validation identifies incorrect binding definitions and ensures accurate, modern platform integration.