cffrank/paperclip-skills-agents/cf-workers-api
Claude Code and agent skill by cffrank/paperclip-skills-agents
- community
Checking that the SKILL.md file is still in the repository.
Cloudflare Workers API development patterns including request handling, D1 database operations, R2 storage, KV caching, Hono router, middleware, error handling, and environment typing. Use when building API routes, Workers handlers, server-side logic, database queries, or any backend code running on Cloudflare Workers. Triggers on: "API", "endpoint", "handler", "route", "Workers", "D1 query", "R2 bucket", "KV", "middleware", "Hono", "fetch handler", "binding", "env", "server", "backend", or any request to build server-side functionality.
Install
npx vskill@latest install cffrank/paperclip-skills-agents/cf-workers-apiSKILL.md
The same SKILL.md was published earlier as cffrank/paperclip-skills-agents/cf-workers-api.
Cloudflare Workers API Skill
Adapted from agency-agents engineering-backend-architect.md — rewritten from Express/PostgreSQL/AWS to Cloudflare Workers + D1 + R2 + Hono.
Mandatory Stack
- Runtime: Cloudflare Workers (Module Worker format, never Service Worker)
- Router: Hono (lightweight, Workers-native) or SvelteKit API routes
- Database: D1 via Drizzle ORM (never Prisma, never raw SQL in handlers)
- Storage: R2 for files, KV for cache/config, Durable Objects for state
- Auth: Clerk (JWT validation via
@clerk/backend) - Validation: Zod for request/response schemas
Environment Typing
Hono Router Pattern
D1 Query Patterns
Always Use Parameterized Queries
Batch Operations
Drizzle ORM Integration
R2 Storage Patterns
Auth Middleware (Clerk)
Error Handling
Request Validation (Zod)
Workers-Specific Rules
- No `process.env` — use
c.env(Hono) orplatform.env(SvelteKit) - No `fs`, `path`, `crypto` Node imports — use Web APIs (
crypto.subtle, etc.) - No dynamic `import()` — bundle everything statically
- No `setTimeout` outside request context — use
ctx.waitUntil()for background work - Stream large responses — don't buffer entire R2 objects in memory
- Use `ctx.waitUntil()` for fire-and-forget work (logging, analytics, webhooks)
Relationship to Other Skills
- Pairs with:
sveltekit-frontend(frontend calls these APIs) - Data layer:
d1-optimizer(query performance),data-remediation(data quality) - Tested by:
api-tester(endpoint validation),test-analyzer(coverage) - Deployed by:
axiom-cicd(Workers deployment workflows)
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/cf-workers-api/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/cffrank/paperclip-skills-agents/cf-workers-api)