Skip to content
Back to skills

Cloudflare Workers

ASecurity

Build Cloudflare Workers with correct runtime APIs, bindings, KV/D1/R2 usage, secrets and local testing

  • 7 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 30, 2026
ai-agentstypescriptnodenodejstestingapi

Works with

  • api

Security analysis

A100/100

Scanned November 30, 2026

npx -y skills add ansh44233/forge --skill cloudflare-workers --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cloudflare Workers?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cloudflare Workers
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ansh44233-cloudflare-workers/badge)](https://www.skillsdirectory.com/skills/ansh44233-cloudflare-workers)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
description: Build Cloudflare Workers with correct runtime APIs, bindings, KV/D1/R2 usage, secrets and local testing
profile: full
languages: typescript
tags: cloudflare, edge, serverless, typescript
---

# Cloudflare Workers

Use in projects with a `wrangler.toml`/`wrangler.jsonc`.

## Runtime
- Workers are not Node: use Web APIs (`fetch`, `Request`, `crypto.subtle`); enable `nodejs_compat` only when needed.
- Respect CPU time limits; move heavy work to Queues or Durable Objects.

## Bindings
- Access KV, D1, R2, Queues and secrets through `env` bindings typed with `wrangler types`.
- KV is eventually consistent; use D1 or Durable Objects for strong consistency.

## Secrets and deploy
- Secrets via `wrangler secret put`, never in `wrangler.toml` vars.
- Separate environments (staging/production) in config.

## Verify
`wrangler dev` runs locally and tests pass with Miniflare/`@cloudflare/vitest-pool-workers`; `wrangler deploy --dry-run` succeeds.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.