cloudflarecloudflareOfficialยท1 Agent Skills Included

chanfana

Build validated OpenAPI APIs on Cloudflare Workers with AI help

Generates OpenAPI 3 and 3.1 schemas with automatic request validation for Hono and itty-router APIs on Cloudflare Workers. Eliminates hand-written API documentation, manual input checking, and repetitive CRUD boilerplate with auto endpoints and D1 database integration. Guides AI agents to write correct endpoints, Zod v4 schemas, and error handling so APIs ship faster with fewer bugs.
npx skills add cloudflare/chanfana --all -g -y
Available:

Gives the AI agent the project's architecture map, Zod v4 syntax rules, testing patterns, and coding conventions so it writes correct chanfana endpoint code without mistakes.

All Skills in This Repository (1)

Pure Emerald Level Indicators

Frequently Asked Questions

FAQPage Schema
How to install chanfana skills?โ–ผ

Run `npx skills add cloudflare/chanfana --all -g -y` in your terminal to install the write-endpoints skill globally for your AI agent.

What does chanfana do?โ–ผ

Chanfana adds automatic OpenAPI schema generation and request validation to Hono or itty-router APIs, including ready-made CRUD endpoints with Cloudflare D1 database support.

How does the write-endpoints skill help my AI agent?โ–ผ

It teaches your AI agent the exact patterns for defining schemas, validating requests, building CRUD endpoints, and handling errors with chanfana, so generated code works on the first try.

Does chanfana work with Zod v4?โ–ผ

Yes. Chanfana v3 is built for Zod v4 with full TypeScript inference, and the skill enforces correct v4 syntax like z.email() and z.uuid().

Can I use chanfana outside Cloudflare Workers?โ–ผ

Yes. It runs on any runtime supported by the underlying router, though it is optimized for Cloudflare Workers with extras like D1 auto endpoints.

Related Repositories in Software Engineering

View All in Software Engineeringโ†’