bedkillerspacex-boop/codex-skill-library/cloudflare-workers-bindings
Claude Code and agent skill by bedkillerspacex-boop/codex-skill-library
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Configure Cloudflare Workers bindings safely: KV, R2, D1, Queues, Durable Objects, service bindings, secrets vs vars, environments, and least-privilege resource access. Use for owned Workers when wiring platform resources — complements cloudflare-d1-basics and cloudflare-r2-public-access; not a substitute for application authz.
Install
npx vskill@latest install bedkillerspacex-boop/codex-skill-library/cloudflare-workers-bindingsSKILL.md
The same SKILL.md was published earlier as bedkillerspacex-boop/codex-skill-library/cloudflare-workers-bindings.
Cloudflare Workers Bindings
Scope And Authorization
- In scope: Workers and bindings on accounts you own.
- Out of scope: reading other accounts’ secrets; deploying malware Workers.
- Separate prod/preview bindings; never point preview at prod data stores without review.
- Secrets via
wrangler secret; never commit secret values. - Pair with
code-quality-standardsand resource-specific skills (D1/R2).
When To Use
- Declaring
[[kv_namespaces]],[[r2_buckets]],[[d1_databases]], queues, DO, AI, etc. - Splitting
vars(non-secret) vssecrets. - Multi-env wrangler configs (
[env.prod]). - Tokens: wrangler bindings, env.SECRET, service binding, hyperdrive, analytics engine.
Do Not Use As Primary
| Need | Skill instead | |
|---|---|---|
| D1 schema/migrations | cloudflare-d1-basics | |
| R2 public exposure | cloudflare-r2-public-access | |
| Access Zero Trust | cloudflare-access-policies | |
| Tunnel | cloudflare-tunnel-ops | |
| Generic secrets program | secrets-management-hygiene |
Binding Types (practical)
| Binding | Typical use | Sensitivity | |
|---|---|---|---|
vars | Feature flags, public config | Non-secret only | |
secrets / secret_text | API keys, signing keys | High | |
| KV | Config/session cache | Medium (data dependent) | |
| R2 | Objects | High if private data | |
| D1 | SQL | High | |
| Queues | Async work | Medium | |
| Durable Objects | Coordination | Medium–high | |
| Service bindings | Worker-to-Worker | Trust boundary | |
| Analytics Engine | Metrics | Low–medium |
Workflow
1. Confirm scope and success criteria
- Worker name, environments, required resources, data classification.
- Success: correct resources bound per env; secrets not in git; least privilege tokens.
- Rollback: previous wrangler.toml + secret versions if retained.
2. Inventory current bindings
- Map each binding to resource ID and environment.
- Find plaintext secrets mistakenly in
vars.
3. Structure config
4. Type-safe usage
- Service bindings: treat callee as separate trust; validate auth if multi-tenant.
- Do not expose binding contents on public debug routes.
5. Least privilege and isolation
| Practice | Why | |
|---|---|---|
| Separate KV/D1/R2 per env | Prevent preview wiping prod | |
| Minimal R2 API tokens for CI | Deploy only needed buckets | |
| No Admin binding if read-only | Blast radius | |
| Preview_id for KV | Local/preview isolation | |
| Disable unused bindings | Smaller attack surface |
6. Verify
- Confirm staging Worker cannot read prod D1/R2.
- Rotate one secret; old value fails; app still works with new.
- CI uses scoped API token, not global account key.
7. Operate
- Document binding → resource → owner matrix.
- Alert on deploy of Worker with new binding to sensitive buckets.
- Rotate secrets on schedule and after staff changes.
- Review
wrangler taillogs for accidental secret printouts.
Good / Bad
| Topic | Good | Bad | |
|---|---|---|---|
| Secrets | wrangler secret put | vars.API_KEY in git | |
| Envs | Distinct resource IDs | Same prod D1 on preview | |
| Logs | Redacted | JSON.stringify(env) | |
| CI | Scoped token | User global API key | |
| Service binding | Explicit authz | Trust all callers |
Output Checklist
- [ ] Binding inventory per environment complete
- [ ] Secrets removed from vars/git
- [ ] Env-isolated resource IDs
- [ ] Typed
Envinterface matches wrangler - [ ] Deploy verified staging/prod
- [ ] No debug secret leakage
- [ ] CI tokens scoped
- [ ] Rotation/runbook documented
- [ ] Residual shared-resource risks noted
Rules
- Owned Workers only.
- Never commit secret values or dump env in responses.
- Prefer reversible env-specific deploys.
- Focus on bindings and secret wiring; deep D1/R2/Access topics are sibling skills.
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 repositoryCheckingcloudflare-workers-bindings/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/bedkillerspacex-boop/codex-skill-library/cloudflare-workers-bindings)