cloudflare-workers

Configure Cloudflare Workers with TypeScript, wrangler.jsonc, and Durable Objects.

40|2|Updated Sep 24, 2025
One-click install
npx skills add https://github.com/remorses/opencode-config --skill cloudflare-workers-remorses
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cloudflare-workers
Source: https://github.com/remorses/opencode-config/tree/main/skills/cloudflare-workers
Command: npx skills add https://github.com/remorses/opencode-config --skill cloudflare-workers-remorses

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires superjson, spiceflow.

What problem does it solve?

Cloudflare Workers and Durable Objects conventions for TypeScript projects, including wrangler.jsonc setup, type-safe env via wrangler types, and deployment workflows.

Core Features & Use Cases

  • Spiceflow as the web framework with Vite integration and full DO support
  • Type-safe environment bindings and secrets via wrangler.jsonc and generated Env types
  • Durable Objects with SQLite integration and migrations workflow
  • Custom_domain routing guidance, preview/production environment separation, and deployment scripts
  • Memoization patterns and edge-caching strategies to optimize performance

Quick Start

Create a new Cloudflare Worker project with Spiceflow, configure wrangler.jsonc for type-safe env and deployment, and deploy to a preview environment.

Frequently Asked Questions about cloudflare-workers

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

FAQPage Schema
How do I set up type-safe environment bindings for Cloudflare Workers in TypeScript?

Type-safe environment bindings for Cloudflare Workers are configured using wrangler.jsonc and generated Env types. This approach ensures your secrets and bindings are strictly typed across preview and production deployments without manual interface maintenance.

What is the best way to structure Durable Objects migrations with wrangler?

Durable Objects migrations are managed through conventions enforced by wrangler.jsonc. This workflow handles SQLite integration and migration scripts, ensuring your Durable Objects schema updates apply correctly during Cloudflare deployments.

Does Spiceflow work with Vite and Cloudflare Workers for edge deployment?

Spiceflow integrates directly with Vite to provide a web framework for Cloudflare Workers. It supports full Durable Objects functionality, enabling you to build and deploy edge applications with streamlined custom domain routing.

How do I declare and manage secrets for Cloudflare Workers across preview and production?

Secrets for Cloudflare Workers are declared via wrangler.jsonc and typed using generated Env types. This configuration separates preview and production environments, ensuring secret values are safely bound and accessible in your TypeScript code.

Can I use custom domain routing and edge caching strategies with Durable Objects?

Custom domain routing guidance and edge-caching strategies are supported alongside Durable Objects. You can apply memoization patterns to optimize performance, ensuring your Cloudflare Workers efficiently handle requests at the edge.