workers-best-practices

Validate Cloudflare Workers code against current best practices and wrangler config schemas.

Updated Apr 18, 2026
One-click install
npx skills add https://github.com/rattamnoon/our-third-story --skill workers-best-practices-rattamnoon
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: workers-best-practices
Source: https://github.com/rattamnoon/our-third-story/tree/main/.agents/skills/workers-best-practices
Command: npx skills add https://github.com/rattamnoon/our-third-story --skill workers-best-practices-rattamnoon

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Cloudflare Workers projects frequently drift from recommended practices, risking security, reliability, and maintainability. This Skill provides a structured approach to identify and correct anti-patterns during development, reviews, and Wrangler configuration.

Core Features & Use Cases

  • Retrieval-driven review: fetch latest Cloudflare Workers best practices and types before evaluating code.
  • Config and bindings validation: verify wrangler.jsonc/schema and in-code bindings match current API shapes.
  • Anti-pattern detection: flag streaming, floating promises, global state, and insecure secrets.
  • Reference-guided decisions: cite canonical Cloudflare docs in reviews to justify changes.

Quick Start

Fetch the latest Cloudflare Workers best practices and apply the review rules to your project.

Frequently Asked Questions about workers-best-practices

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

FAQPage Schema
How do I enforce Cloudflare Workers best practices during a code review?

To enforce Cloudflare Workers best practices during a code review, fetch the latest documentation and types to validate wrangler config schemas, check binding references, and detect anti-patterns like floating promises and insecure secrets.

What are common Cloudflare Workers anti-patterns I should look for?

Common Cloudflare Workers anti-patterns include floating promises, improper streaming implementations, relying on global state, and handling insecure secrets, which can all be identified by validating in-code bindings against current API shapes.

How do I validate wrangler config and bindings against current Cloudflare API shapes?

You validate wrangler config and bindings by retrieving the latest Cloudflare Workers types and documentation, then verifying that your wrangler.jsonc schema and in-code binding references match the current API shapes for reproducible reviews.

Does code review for Cloudflare Workers require referencing canonical docs?

Yes, code review for Cloudflare Workers requires referencing canonical docs to justify changes, ensuring that wrangler config schemas, binding references, and security patterns are checked for auditable and reproducible results.

Can I use this approach to check for insecure secrets in my Wrangler configuration?

Yes, you can check for insecure secrets by applying retrieval-driven review rules to your Wrangler configuration and code, flagging anti-patterns and ensuring your security patterns align with canonical Cloudflare documentation.