Skip to content
Back to skills

Cloudflare Worker Typegen

ASecurity

Use this when Cloudflare bindings/env vars change and worker type definitions need regeneration (cf-typegen / worker-configuration.d.ts).

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
security

Security analysis

A100/100

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill cloudflare-worker-typegen --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cloudflare Worker Typegen?

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

Security grade badge for Cloudflare Worker Typegen
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-cloudflare-worker-typegen/badge)](https://www.skillsdirectory.com/skills/david-li0406-cloudflare-worker-typegen)

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
---
name: cloudflare-worker-typegen
description: Use this when Cloudflare bindings/env vars change and worker type definitions need regeneration (cf-typegen / worker-configuration.d.ts).
---

# Cloudflare Worker bindings + type generation

Use this skill when the user modifies `wrangler.jsonc`, adds/removes bindings, changes environment variables, or sees type errors related to worker bindings.

## Binding access pattern

- Use `import { env } from "cloudflare:workers"` to access bindings globally.

## Generate worker types

- For the user application:
  - `pnpm run --filter user-application cf-typegen`

This updates `worker-configuration.d.ts` based on `apps/user-application/wrangler.jsonc`.

- For the data service:
  - `pnpm run --filter data-service cf-typegen`

This updates `worker-configuration.d.ts` based on `apps/data-service/wrangler.jsonc`.

## Notes

- Local secrets belong in `apps/user-application/.dev.vars`.
- If bindings change in other workers (e.g., `apps/data-service`), ensure their corresponding typegen workflow is run (if configured) and `worker-configuration.d.ts` stays in sync.

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.

Comments

Loading comments…