skills/cloudflare-hono/SKILL.md
Wire Cloudflare Workers Env typings into Hono apps. Use when working in Cloudflare Workers + Hono, when the user mentions wrangler types, worker-configuration.d.ts, or typing Bindings/Env in Hono.
npx skillsauth add morgs32/skills cloudflare-honoInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use the Env type generated by wrangler types from apps/api/worker-configuration.d.ts, then pass it into Hono's generics.
import type { Env } from "../worker-configuration";
import { Hono } from "hono";
export const domainWorkersRouter = new Hono<{ Bindings: Env }>();
wrangler types in apps/api (this creates/updates apps/api/worker-configuration.d.ts).apps/api/worker-configuration.d.ts:
import type { Env } from "../worker-configuration";new Hono<{ Bindings: Env }>()c.env:
const db = c.env.ZEROSPIN_DATABASEworker-configuration.d.ts file is generated; do not hand-edit it.import type { Env } from "../worker-configuration";
import { Hono } from "hono";
export const domainWorkersRouter = new Hono<{ Bindings: Env }>();
domainWorkersRouter.get("/", (c) => {
const db = c.env.ZEROSPIN_DATABASE;
return c.json({ ok: true, hasDb: Boolean(db) });
});
development
Create and map ZerospinError instances for Effect-based code in zerospin. Use when defining error codes/messages, wrapping causes, mapping/catching errors in Effects, or returning structured errors from Effect.gen/Effect.fn or promise boundaries.
data-ai
Update agent skills in this repo or another.
development
TypeScript type-safety rules and guidance.
devops
Fix and update Turborepo (Turbo) configuration and task setup. Use for turbo.json errors, schema updates (pipeline -> tasks), and package-level config issues like missing extends.