ashish7802/awesome-api-skills/cloudflare
Claude Code and agent skill by ashish7802/awesome-api-skills
- community
Checking that the SKILL.md file is still in the repository.
Install
npx vskill@latest install ashish7802/awesome-api-skills/cloudflareSKILL.md
The same SKILL.md was published earlier as ashish7802/awesome-api-skills/cloudflare.
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
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
- Instantiate client with API token.
- Fetch Zone ID using domain name.
- 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
- `cloudflare-workers` — integrates with
- `cloudflare-d1` — works well with
- `vercel` — alternative to
Last Verified: 2026-07-02
Security
- Security scanPassed, 95 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 repositoryCheckingskills/cloudflare/SKILL.md
Popularity
- Repository stars
- 13
- Repository forks
- 6
- 7-day trend score
- 13
Stars and forks are for the whole GitHub repository, not this skill alone. 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/ashish7802/awesome-api-skills/cloudflare)