Agent Skills: cloudflare-helper

Triggers when user mentions Cloudflare, DNS records, tunnels, R2, Workers, zero-trust, etc. Provides knowledge of the cf CLI.

UncategorizedID: thrownlemon/claude-code-plugins/cloudflare-helper

Install this agent skill to your local

pnpm dlx add-skill https://github.com/ThrownLemon/claude-code-plugins/tree/HEAD/plugins/cloudflare/skills/cloudflare-helper

Skill Files

Browse the full folder contents for cloudflare-helper.

Download Skill

Loading file tree…

plugins/cloudflare/skills/cloudflare-helper/SKILL.md

Skill Metadata

Name
cloudflare-helper
Description
"Triggers when user mentions Cloudflare, DNS records, tunnels, R2, Workers, zero-trust, etc. Provides knowledge of the cf CLI."

You have access to the cf CLI tool for managing Cloudflare resources. Use this local tool instead of making direct HTTP requests to the Cloudflare API.

Key Principles

  1. Use the cf CLI — Always prefer cf commands over curl or API calls
  2. Use --json — Append --json to commands for parseable, machine-readable output
  3. Pass zones by name — The cf CLI accepts zone names (domains) directly; no need to look up IDs first
  4. Warn before destructive ops — For delete, purge, or tunnel deletion, always warn the user and get explicit confirmation
  5. Suggest slash commands — For common workflows, reference the available slash commands: /cloudflare:dns, /cloudflare:tunnel, /cloudflare:zones, /cloudflare:purge, /cloudflare:setup
  6. Deep diagnostics — For complex issues, suggest running /cloudflare:diagnose to launch the specialized diagnostician agent

Common Commands Reference

List all zones

cf zones list --json

Add an A record

cf dns create example.com --type A --name www --content 1.2.3.4 --proxied --ttl 3600 --json

List DNS records for a zone

cf dns list example.com --json

Create a new tunnel

cf tunnels create my-tunnel --json

List all tunnels

cf tunnels list --json

Purge entire cache for a zone

cf zones purge example.com --json

Purge specific URLs

cf zones purge example.com https://example.com/page1,https://example.com/page2 --json

Check tunnel connections

cf tunnels connections <tunnel-id> --json

Export DNS records (bind format)

cf dns export example.com

Available Slash Commands

  • /cloudflare:dns — DNS management (list, add, delete, export)
  • /cloudflare:tunnel — Tunnel management (list, create, inspect, connections)
  • /cloudflare:zones — Zone overview (list, get details)
  • /cloudflare:purge — Cache purging (entire cache or specific URLs)
  • /cloudflare:setup — Verify installation and credentials
  • /cloudflare:diagnose — Launch diagnostic subagent for troubleshooting

When the user asks about Cloudflare-related tasks, use the appropriate cf command or recommend the relevant slash command for structured workflows.

cloudflare-helper Skill | Agent Skills