code-review

Review Cloudflare Workers TypeScript/JavaScript code for type correctness, API usage, and configuration validity.

5.1k|16.3k|Updated Sep 3, 2020
One-click install
npx skills add https://github.com/cloudflare/cloudflare-docs --skill code-review-cloudflare
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-review
Source: https://github.com/cloudflare/cloudflare-docs/tree/main/.agents/skills/code-review
Command: npx skills add https://github.com/cloudflare/cloudflare-docs --skill code-review-cloudflare

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Code quality and correctness for Cloudflare Workers and platform integrations, ensuring type safety, correct API usage, and valid configurations.

Core Features & Use Cases

  • Static and dynamic code review for TS/JS Workers and bindings (KV, R2, D1, Durable Objects, Queues, AI, Vectorize, Hyperdrive).
  • Configuration validation against wrangler config schemas and binding declarations.
  • Actionable guidance with evidence-backed findings and recommended fixes.

Quick Start

Provide a structured code-review summary for a TypeScript/JavaScript Worker, listing type errors, API misuses, and config issues.

Frequently Asked Questions about code-review

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

FAQPage Schema
How do I validate my wrangler configuration and Cloudflare Workers bindings?

You can validate wrangler configuration by checking your JSON, JSONC, or TOML files against the latest wrangler-config schemas. This verifies binding declarations for KV, R2, D1, Durable Objects, and Queues to ensure your setup is structurally correct.

Why does my TypeScript Cloudflare Worker have type errors with R2 or D1 bindings?

Type errors with R2 or D1 bindings occur when code does not align with the latest type definitions. Reviewing your TypeScript project against current Workers API types identifies these mismatches and provides concrete remediation steps.

Can I check my JavaScript Workers code for correct API usage before deploying?

Yes, you can check JavaScript Workers code for correct API usage. A static and dynamic code review assesses your project against current Workers APIs, ensuring your platform integrations and type correctness are valid.

What is the best way to find configuration issues in Cloudflare Workers platform integrations?

The best way to find configuration issues is to validate your project against the latest wrangler-config schemas and type definitions. This provides evidence-backed findings and actionable guidance for fixing your Workers code.

Does code review work with Vectorize and Hyperdrive bindings in TypeScript?

Yes, code review works with Vectorize and Hyperdrive bindings in TypeScript. It assesses these specific bindings for type correctness and API usage, validating them against current type definitions to ensure accurate platform integration.