cloudflare
Skill2 starsChanged 5 months agoMITView on GitHub
Manage Cloudflare infrastructure including DNS records, zones, SSL/TLS, caching, firewall rules, Workers, Pages, and analytics. Use when working with Cloudflare APIs, creating or modifying DNS records, managing domain security, purging cache, deploying Workers/Pages, or analyzing traffic. Created by After Dark Systems, LLC.
37 other projects use a version of this.
Adopted by
Most recently taken up by
- hencter/hencte.toptheir own version, first seen Oct 4, 2026
- delorenj/skillstheir own version, first seen Oct 2, 2026
- cloudflare/skillstheir own version, first seen Oct 1, 2026
- casoon/ai-agent-configtheir own version, first seen Sep 27, 2026
- meowdiocre/meowpitheir own version, first seen Sep 19, 2026
- Shaybush/claude-skillstheir own version, first seen Sep 10, 2026
Used with
Projects with it also use cloudflare-one-migrations, cloudflare-email-service 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.
CloudflareSkillcloudflare-one-migrations
Assess and plan migrations from existing VPN, SWG, or SASE platforms to Cloudflare One, including policy mapping, parity gaps, and rollout.
Also in 6 projects that use this
CloudflareSkillcloudflare-email-service
Implement or troubleshoot Cloudflare Email Sending and Email Routing integrations and their delivery configuration.
Also in 8 projects that use this
OpenAISkillworkers-best-practices
Reviews and authors Cloudflare Workers code against production best practices. Load when writing new Workers, reviewing Worker code, configuring wrangler.jsonc, or checking for common Workers anti-patterns (streaming, floating promises, global state, secrets, bindings, observability). Biases towards retrieval from Cloudflare docs over pre-trained knowledge.
Also in 11 projects that use this
OpenAISkilldurable-objects
Create and review Cloudflare Durable Objects. Use when building stateful coordination (chat rooms, multiplayer games, booking systems), implementing RPC methods, SQLite storage, alarms, WebSockets, or reviewing DO code for best practices. Covers Workers integration, wrangler config, and testing with Vitest. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.
Also in 9 projects that use this
akornmeierSkillmongodb
Guide for implementing MongoDB - a document database platform with CRUD operations, aggregation pipelines, indexing, replication, sharding, search capabilities, and comprehensive security. Use when working with MongoDB databases, designing schemas, writing queries, optimizing performance, configuring deployments (Atlas/self-managed/Kubernetes), implementing security, or integrating with applications through 15+ official drivers. (project)
Also in 3 projects that use this
imehrSkillrailway
Railway.com deployment and management - deployment, logs, migrations, troubleshooting, monorepo strategies, security, and CLI reference. Use when deploying to Railway, configuring services, managing environment variables, or debugging deployment issues.
Also in 3 projects that use this
- +2 more from cloudflare
- +4 more from openai
Other versions37 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 37
- cloudflare/computer★ 9.5ksame name
- openai/plugins★ 7.3ksame name
- cloudflare/skills★ 3ksame name
- getsentry/junior★ 365same name
- hoodini/ai-agents-skills★ 281same name
- ThePrimeagen/skills★ 234same name
- swyxio/skills★ 171same name
- popmechanic/VibesOS★ 135same name
- open-fox/agents★ 55same name
- rianvdm/lastfm-mcp★ 49same name
27 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 repository13 other files it gives its agents.
- agent-vision-diagramsSkill
- create-cliSkill
- design-led-developmentSkill
- elevenlabs-speech-engineSkill
- ffmpeg-toolkitSkill
- frontend-designSkill
- git-workflowSkill
- google-search-consoleSkill
- sentrySkill
- skill-creatorSkill
- solarwinds-logsSkill
- wolverineSkill
- wordpress-content-managerSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 4 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 31 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 20
Recommended: Use the Bearer token for API calls:
- Very specific: line 32
All scripts are located in the scripts/ directory and use the credentials from ~/cloudflare_global_key.
- Distinctive: line 168
Add required DNS records:
- Distinctive: line 219
All scripts return appropriate exit codes:
- Distinctive: line 230
Always use proxied records: when possible for DDoS protection
“Common” is measured: kept by at least 6 in 10 of the 31 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 Management Skill
Created by After Dark Systems, LLC
Overview
This skill provides comprehensive Cloudflare infrastructure management capabilities through the Cloudflare API v4. It enables full control over domains, DNS, security, performance, and serverless deployments.
Authentication
API credentials are stored at ~/cloudflare_global_key. The file contains:
- Global API Key for legacy authentication
- API Token (Bearer token) for modern authentication
Recommended: Use the Bearer token for API calls:
-H "Authorization: Bearer <token>"To verify token validity:
./scripts/cf-api.sh verify-tokenAvailable Scripts
All scripts are located in the scripts/ directory and use the credentials from ~/cloudflare_global_key.
Core API Client
- cf-api.sh - Base API client with authentication handling
Zone Management
- zones.sh - List, get, create, and manage zones
- zone-settings.sh - Manage zone-level settings
DNS Management
- dns.sh - Full DNS record CRUD operations
- dns-import.sh - Bulk import DNS records
- dns-export.sh - Export DNS records
Security & Firewall
- firewall.sh - Firewall rules management
- waf.sh - Web Application Firewall rules
- rate-limiting.sh - Rate limiting rules
- ip-access.sh - IP access rules (block/allow)
- ssl.sh - SSL/TLS configuration
Performance & Caching
- cache.sh - Cache purge and settings
- page-rules.sh - Page rules management
- speed.sh - Speed optimizations (minify, polish, etc.)
Workers & Pages
- workers.sh - Cloudflare Workers management
- pages.sh - Cloudflare Pages projects
Analytics & Logs
- analytics.sh - Traffic and security analytics
- logs.sh - Enterprise log access
Quick Start Examples
List All Zones
./scripts/zones.sh listGet Zone Details
./scripts/zones.sh get <zone_id>
# or by domain name
./scripts/zones.sh get-by-name example.comList DNS Records
./scripts/dns.sh list <zone_id>
# Filter by type
./scripts/dns.sh list <zone_id> --type ACreate DNS Record
./scripts/dns.sh create <zone_id> \
--type A \
--name subdomain \
--content 192.0.2.1 \
--ttl 3600 \
--proxied trueUpdate DNS Record
./scripts/dns.sh update <zone_id> <record_id> \
--content 192.0.2.2 \
--ttl 1800Delete DNS Record
./scripts/dns.sh delete <zone_id> <record_id>Purge Cache
# Purge everything
./scripts/cache.sh purge-all <zone_id>
# Purge specific URLs
./scripts/cache.sh purge-urls <zone_id> "https://example.com/page1" "https://example.com/page2"
# Purge by cache tags
./scripts/cache.sh purge-tags <zone_id> tag1 tag2SSL/TLS Settings
# Get current SSL mode
./scripts/ssl.sh get-mode <zone_id>
# Set SSL mode (off, flexible, full, strict)
./scripts/ssl.sh set-mode <zone_id> strictFirewall Rules
# List firewall rules
./scripts/firewall.sh list <zone_id>
# Block an IP
./scripts/ip-access.sh block <zone_id> 192.0.2.100 "Suspicious activity"
# Allow an IP
./scripts/ip-access.sh allow <zone_id> 192.0.2.50 "Trusted server"Workers
# List workers
./scripts/workers.sh list
# Deploy a worker
./scripts/workers.sh deploy <script_name> <script_file>
# Delete a worker
./scripts/workers.sh delete <script_name>Common Workflows
Setting Up a New Domain
- Add the zone:
./scripts/zones.sh create example.com- Get the zone ID:
ZONE_ID=$(./scripts/zones.sh get-by-name example.com --id-only)- Add required DNS records:
./scripts/dns.sh create $ZONE_ID --type A --name @ --content 192.0.2.1 --proxied true
./scripts/dns.sh create $ZONE_ID --type CNAME --name www --content example.com --proxied true
./scripts/dns.sh create $ZONE_ID --type MX --name @ --content mail.example.com --priority 10- Configure SSL:
./scripts/ssl.sh set-mode $ZONE_ID strictMigrating DNS from Another Provider
- Export current records from the source provider
- Import to Cloudflare:
./scripts/dns-import.sh <zone_id> records.txtEmergency: Block Attack Traffic
# Block specific IP
./scripts/ip-access.sh block <zone_id> <attacker_ip> "Attack mitigation"
# Enable Under Attack Mode
./scripts/zone-settings.sh set <zone_id> security_level under_attack
# Purge cache if compromised content was cached
./scripts/cache.sh purge-all <zone_id>API Reference
See reference.md for complete Cloudflare API v4 documentation including:
- All available endpoints
- Request/response formats
- Error codes and handling
- Rate limiting information
Templates
The templates/ directory contains JSON templates for common operations:
dns-records.json- Common DNS record configurationsfirewall-rules.json- Firewall rule templatespage-rules.json- Page rule templatesworker-config.json- Worker configuration template
Error Handling
All scripts return appropriate exit codes:
- 0: Success
- 1: API error (check stderr for details)
- 2: Invalid arguments
- 3: Authentication error
- 4: Resource not found
Error responses include the Cloudflare error code and message for debugging.
Best Practices
- Always use proxied records when possible for DDoS protection
- Use strict SSL mode for full end-to-end encryption
- Set appropriate TTLs - shorter for dynamic content, longer for static
- Test firewall rules in log mode before enforcing
- Use API tokens with minimal required permissions
- Cache aggressively but purge when content changes
- Monitor analytics for unusual traffic patterns
Support
For issues with this skill, contact After Dark Systems, LLC.
For Cloudflare API documentation: https://developers.cloudflare.com/api/
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.

