cloudflare
Skill38 starsChanged 8 months agoMITView on GitHub
Manage Cloudflare zones, DNS records, Workers, Pages and cache via API
69 other projects use a version of this.
Adopted by
Most recently taken up by
- artivilla/agent-skillstheir own version, first seen Nov 8, 2026
- seayniclabs/homelab-infra-mcptheir own version, first seen Nov 8, 2026
- 1stANUNNAKI/majlistheir own version, first seen Nov 8, 2026
- delorenj/skillstheir own version, first seen Nov 7, 2026
- jackson2w/claude-code-skillstheir own version, first seen Nov 3, 2026
- ejc3/claude-skillstheir own version, first seen Nov 1, 2026
Used with
Projects with it also use nextjs-on-cloudflare, basin and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
CloudflareSkillnextjs-on-cloudflare
Build, migrate, and deploy Next.js apps on Cloudflare Workers with vinext. Use when starting a Next.js project on Cloudflare, moving an existing app to Workers, choosing between vinext and OpenNext, or setting up vinext for Workers. For setup, migration, or deployment, install vinext's upstream skills with `npx skills add cloudflare/vinext` if missing, then read and follow the applicable skill and docs.
Also in 5 projects that use this
CloudflareSkillbasin
Build and troubleshoot Cloudflare Basin analytics workflows with Basin Pipelines, Basin Catalog, and Basin SQL. Use for streaming data into R2 Iceberg tables, managing catalogs, or querying those tables; also use for requests using the former Data Platform, Pipelines, R2 Data Catalog, or R2 SQL names.
Also in 5 projects that use this
hoodiniSkillanalytics-metrics
Build data visualization and analytics dashboards. Use when creating charts, KPI displays, metrics dashboards, or data visualization components. Triggers on analytics, dashboard, charts, metrics, KPI, data visualization, Recharts.
Also in 3 projects that use this
hoodiniSkillaws-account-management
Manage AWS accounts, organizations, IAM, and billing. Use when setting up AWS Organizations, managing IAM policies, controlling costs, or implementing multi-account strategies. Triggers on AWS Organizations, AWS IAM, AWS billing, Cost Explorer, SCPs, multi-account, AWS SSO, Identity Center.
Also in 3 projects that use this
OpenAISkillsandbox-sdk
Build sandboxed applications for secure code execution. Load when building AI code execution, code interpreters, CI/CD systems, interactive dev environments, or executing untrusted code. Covers Sandbox SDK lifecycle, commands, files, code interpreter, and preview URLs. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.
Also in 10 projects that use this
- +4 more from hoodini
- +3 more from cloudflare
Other versions69 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 69
- cloudflare/computer★ 9.9ksame name
- openai/plugins★ 7.8ksame name
- civitai/civitai★ 7.3ksame name
- cloudflare/skills★ 3.3ksame name
- dmmulroy/cloudflare-skill★ 727same name
- getsentry/junior★ 409same name
- Heyvhuang/ship-faster★ 337same name
- hoodini/ai-agents-skills★ 295same name
- ThePrimeagen/skills★ 234same name
- swyxio/skills★ 194same name
59 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository36 other files it gives its agents.
- abacatepaySkill
- appsignalSkill
- clickupSkill
- cloudinarySkill
- datadogSkill
- digitaloceanSkill
- discordSkill
- firebaseSkill
- flyioSkill
- google-sheetsSkill
- herokuSkill
- honeybadgerSkill
- hostingerSkill
- hubspotSkill
- intercomSkill
- jiraSkill
- linearSkill
- mercadopagoSkill
- n8nSkill
- notionSkill
- openaiSkill
- planetscaleSkill
- posthogSkill
- railwaySkill
- resendSkill
- rewriteSkill
- sentrySkill
- shopifySkill
- slackSkill
- stripeSkill
- supabaseSkill
- trelloSkill
- twilioSkill
- vercelSkill
- xSkill
- zendeskSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 3 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 59 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 35
If the output is OK, proceed to the Flow section.
- Very specific: line 37
If the output is SETUP_NEEDED, guide the user step by step.
- Distinctive: line 55
If the script outputs an error, the token is invalid.
- Distinctive: line 88
Ask the user for the record type, name, content and whether it should be proxied.
- Distinctive: line 106
Ask: "Do you want to purge the entire cache for this zone?
“Common” is measured: kept by at least 6 in 10 of the 59 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/cloudflare
Connect to the Cloudflare API to manage zones (domains), DNS records, Workers, Pages projects and cache purging. Pure Ruby, zero gems — stdlib only.
Structure
scripts/
├── auth.rb # Bearer token + cf_request helper (required by all scripts)
├── check_setup.rb # Check if token exists (outputs OK or SETUP_NEEDED)
├── save_token.rb # Save and validate an API token
├── zones.rb # List all zones (domains)
├── zone.rb # Get zone details
├── dns_records.rb # List DNS records for a zone
├── create_dns.rb # Create a DNS record
├── delete_dns.rb # Delete a DNS record
├── workers.rb # List Workers scripts for an account
├── pages_projects.rb # List Pages projects for an account
└── purge_cache.rb # Purge all cache for a zoneSetup (check before using)
ruby ~/.claude/skills/cloudflare/scripts/check_setup.rbIf the output is OK, proceed to the Flow section.
If the output is SETUP_NEEDED, guide the user step by step. Present ONE step at a time, wait for the user to confirm before moving to the next.
Step 1 — Ask the user to create an API token:
You need a Cloudflare API token. Go to the Cloudflare dashboard and create one:
https://dash.cloudflare.com/profile/api-tokens
Click Create Token. You can use the Edit zone DNS template for DNS management, or create a custom token with the permissions you need (Zone:Read, DNS:Edit, Workers:Read, Pages:Read, Cache Purge).
Copy the token and paste it here.
Step 2 — When the user pastes the token, save it:
ruby ~/.claude/skills/cloudflare/scripts/save_token.rb 'PASTED_TOKEN'If the script outputs an error, the token is invalid. Ask the user to double-check and try again.
If setup is not complete, DO NOT proceed to the Flow. Complete all steps first.
Flow
The argument $ARGUMENTS may contain a zone name or account ID.
Step 1: List zones
ruby ~/.claude/skills/cloudflare/scripts/zones.rbPresent the zones to the user. If $ARGUMENTS matches a zone name, use that zone. Otherwise ask which zone to work with.
Step 2: Show zone details
ruby ~/.claude/skills/cloudflare/scripts/zone.rb ZONE_IDPresent the zone info and ask what the user wants to do.
Step 3: Actions
List DNS records:
ruby ~/.claude/skills/cloudflare/scripts/dns_records.rb ZONE_IDCreate a DNS record (requires user confirmation):
Ask the user for the record type, name, content and whether it should be proxied. Then confirm: "Do you want to create a TYPE record for NAME pointing to CONTENT?" Only execute after a "yes".
ruby ~/.claude/skills/cloudflare/scripts/create_dns.rb ZONE_ID TYPE NAME CONTENT
ruby ~/.claude/skills/cloudflare/scripts/create_dns.rb ZONE_ID TYPE NAME CONTENT --proxied
ruby ~/.claude/skills/cloudflare/scripts/create_dns.rb ZONE_ID TYPE NAME CONTENT --ttl 300Delete a DNS record (requires user confirmation):
Show the record details first, then ask: "Do you want to delete this DNS record?" Only execute after a "yes".
ruby ~/.claude/skills/cloudflare/scripts/delete_dns.rb ZONE_ID RECORD_IDPurge all cache (requires user confirmation):
Ask: "Do you want to purge the entire cache for this zone? This will remove all cached files." Only execute after a "yes".
ruby ~/.claude/skills/cloudflare/scripts/purge_cache.rb ZONE_IDList Workers (requires account ID):
The account ID can be found in the zone details output. If not available, ask the user.
ruby ~/.claude/skills/cloudflare/scripts/workers.rb ACCOUNT_IDList Pages projects (requires account ID):
ruby ~/.claude/skills/cloudflare/scripts/pages_projects.rb ACCOUNT_IDNotes
- Pure Ruby, zero gems — stdlib only (json, net/http, uri, fileutils)
- Auth via Bearer token
- Token file:
~/.config/cloudflare/token(outside the repo, never commit) - Creating DNS records, deleting DNS records, and purging cache require explicit user confirmation
- Base URL:
https://api.cloudflare.com/client/v4
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

