AgentStack
SKILL verified MIT Self-run

Cloudflare

skill-ashish7802-awesome-api-skills-cloudflare · by ashish7802

A Claude skill from ashish7802/awesome-api-skills.

No reviews yet
0 installs
18 views
0.0% view→install

Install

$ agentstack add skill-ashish7802-awesome-api-skills-cloudflare

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of Cloudflare? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Cloudflare API Skill

Overview

The Cloudflare API manages DNS, CDN caching, Workers, and WAF rules. This skill covers the Node.js SDK and REST patterns.

Installation

npm install cloudflare
pip install cloudflare

Authentication

Use API Tokens (recommended) instead of the Global API Key. Tokens can be scoped to specific zones and permissions.

Core Concepts

  • Zone: Represents a domain name.
  • Workers: Serverless execution environments at the edge.
  • Cache Purge: Invalidating stored assets.

Common Workflows

  1. Instantiate client with API token.
  2. Fetch Zone ID using domain name.
  3. Execute action (e.g., client.zones.purgeCache).

Error Handling

Errors are returned in the errors array of the JSON response payload. Watch for code 10000 (Authentication error).

Security

Scope API Tokens tightly (e.g., 'Zone.DNS.Edit' for a single domain). Never use the Global API key in automated scripts.

Rate Limits

The API allows 1200 requests per 5 minutes per IP address.

Best Practices

When purging cache, try to purge by URL, Tag, or Prefix rather than 'Purge Everything' to maintain CDN performance.

Troubleshooting

If DNS records aren't updating, verify the 'proxied' (orange cloud) status, which alters how Cloudflare serves the record.

References

Why use this skill

Use this when your agent works with cloudflare — structured patterns beat pasted docs and prevent common hallucinations.

AI pitfalls

  • Using outdated SDK or API versions from training data
  • Inventing environment variable names
  • Omitting error handling and retry logic

Production checklist

  • [ ] Secrets in environment variables, not source code
  • [ ] Error handling and logging in place
  • [ ] Rate limits and timeouts configured

Related skills

  • No graph relationships yet — see the knowledge graph in the docs site.

> Last Verified: 2026-07-02

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.