cloudflare-worker-typegen

Regenerate Cloudflare worker type definitions when wrangler.jsonc bindings change.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/ldsgroups225/Yeko --skill cloudflare-worker-typegen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cloudflare-worker-typegen
Source: https://github.com/ldsgroups225/Yeko/tree/main/.github/skills/cloudflare-worker-typegen
Command: npx skills add https://github.com/ldsgroups225/Yeko --skill cloudflare-worker-typegen

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Regenerate Cloudflare worker type definitions whenever bindings or environment variables change, ensuring your codebase stays in sync with wrangler.jsonc.

Core Features & Use Cases

  • Regenerate worker type definitions for user-application and data-service whenever bindings or env vars change.
  • Detect changes in wrangler.jsonc and trigger the cf-typegen workflow to update worker-configuration.d.ts.
  • Maintain alignment between Cloudflare bindings and TypeScript types across multiple apps with minimal manual intervention.

Quick Start

Run the cf-typegen process for each app to regenerate the worker type definitions.

Frequently Asked Questions about cloudflare-worker-typegen

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

FAQPage Schema
How do I regenerate Cloudflare worker types when bindings change?

To regenerate Cloudflare worker types when bindings change, run the cf-typegen process for each app to update worker-configuration.d.ts. This detects wrangler.jsonc modifications and triggers per-app typegen, keeping TypeScript definitions in sync with current environment variables.

What's the best way to keep wrangler.jsonc and worker-configuration.d.ts in sync?

Keeping wrangler.jsonc and worker-configuration.d.ts in sync is achieved by triggering the cf-typegen workflow upon detecting wrangler.jsonc changes. This regenerates worker type definitions across user-application and data-service, ensuring alignment with minimal manual intervention.

Why does my TypeScript code break after updating Cloudflare environment variables?

Your TypeScript code breaks after updating Cloudflare environment variables because worker-configuration.d.ts is out of sync. Regenerate worker type definitions by running cf-typegen to align TypeScript types with the updated bindings and environment variables in wrangler.jsonc.

Can I automate type generation for multiple Cloudflare worker apps?

Yes, you can automate type generation for multiple Cloudflare worker apps. The cf-typegen process applies type generation per-app across user-application and data-service, ensuring worker type definitions are regenerated whenever bindings or environment variables change.