Wrangler

From mouadja02/skills · View interactive version

Wrangler is an AI agent skill from the GitHub repository mouadja02/skills. Runs Cloudflare Wrangler CLI work: deploying and tailing Workers, managing KV, R2, D1, and Queues, secrets, bindings, and account routing. Use when deploying to Cloudflare Workers or debugging a Wrangler deploy or account mix-up.

How to use this skill

Skill file

Wrangler

Attribution: Sourced from steipete/agent-scripts by Peter Steinberger.

When to Use

Use for Cloudflare Wrangler CLI work: deploys, tails, KV/R2/D1/Queues/Workers, secrets, bindings, and account routing.

Defaults

Quick Commands

# Check auth
npm exec --yes --package wrangler -- wrangler whoami

# Deploy
npm exec --yes --package wrangler -- wrangler deploy

# Tail logs
npm exec --yes --package wrangler -- wrangler tail <worker> --format json --sampling-rate 0.999 --search '<term>'

# KV operations
npm exec --yes --package wrangler -- wrangler kv key list --namespace-id <id> --prefix '<prefix>'
npm exec --yes --package wrangler -- wrangler kv key get '<key>' --namespace-id <id>

Pitfalls

Account Check

For repo config, read wrangler.toml / wrangler.json before commands. If config account and intended product disagree, stop and ask.

cat wrangler.toml | grep -E "account_id|name ="
npm exec --yes --package wrangler -- wrangler whoami
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.