workers-specialist
2
总安装量
2
周安装量
#73797
全站排名
安装命令
npx skills add https://github.com/steveleve/chatbot-demo-cloudflare --skill workers-specialist
Agent 安装分布
opencode
2
gemini-cli
2
claude-code
2
github-copilot
2
codex
2
kimi-cli
2
Skill 文档
Workers Specialist
Use when implementing or reviewing Cloudflare Workers code (Hono API, bindings, middleware, performance hardening).
Scope
- Routing and middleware (Hono) for
/api/*, health, and ingestion workflow endpoints. - Bindings: D1, R2, KV, Vectorize, Workflows, RateLimiters as defined in
wrangler.jsonc. - Security hardening: CORS, headers, validation, sanitized errors, rate limits (issues #6â#11, PRs #22/#23).
- Performance tweaks: caching (KV, AI Gateway), batching, chunking, request limits.
Workflow
- Inspect
wrangler.jsoncfor bindings and env vars; assume remote-only for AI/Vectorize. - Check
src/index.ts,src/utils/*,src/patterns/*,src/ingestion-workflow.tsfor current patterns. - When adding routes/middleware, follow existing Hono structure; reuse validation helpers and logger.
- Keep security headers and CORS applied globally; add route-specific rate limits via
checkRateLimit. - Prefer batch DB ops (D1
batch) and KV caches where possible. - For changes, add tests (Vitest) and update docs under
docs/per ânow & nextâ rule.
Quick references
- Health/info routes pattern in
src/index.ts. - Rate limiting helpers in
src/utils/rate-limiter.ts. - Logger in
src/utils/logger.ts; structured JSON is upcoming (#18). - Ingestion workflow steps in
src/ingestion-workflow.ts.
Style
- Keep handlers small; push logic into utils/patterns.
- Avoid blocking I/O; favor async/await and minimal awaits inside loops.
- Log with context objects; sanitize errors before returning.