// Intelligent scaffolding for new Cloudflare Workers with optimal architecture, dependencies, and configuration. Analyzes existing patterns and generates Workers following monorepo best practices.
| name | worker-scaffolding |
| description | Intelligent scaffolding for new Cloudflare Workers with optimal architecture, dependencies, and configuration. Analyzes existing patterns and generates Workers following monorepo best practices. |
This skill enhances the creation of new Cloudflare Workers by analyzing existing patterns and generating optimal configurations based on project requirements.
This skill is automatically invoked when:
just new-worker@cf-monorepo/middlewarewrangler.jsonc with appropriate settingspackage.json with minimal dependenciesWhen you run just new-worker, this skill enhances the process by:
For each new worker, the skill guides:
Framework Selection
Feature Integration
Basic API Worker
interface Env {
// Minimal environment for simple APIs
}
export default {
async fetch(request: Request, env: Env): Promise<Response> {
// Implementation
},
};
Full-Stack Hono Worker
import { Hono } from 'hono';
import type { Env } from '@cf-monorepo/types';
import { createDb } from '@cf-monorepo/db';
// Additional imports based on features
Enhances existing scaffolding commands:
just new-worker - AI-enhanced worker creationjust new-package - Smart package scaffoldingpnpm turbo gen worker - Turborepo generator integrationThe skill enforces monorepo best practices:
workspace:*)Each scaffolded worker includes:
wrangler.jsonc configuration