AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Cloudflare

skill-straticus1-claude-cloudflare-skill-cloudflare · by straticus1

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.

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

Install

$ agentstack add skill-straticus1-claude-cloudflare-skill-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.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-straticus1-claude-cloudflare-skill-cloudflare)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
9mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
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 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 "

To verify token validity:

./scripts/cf-api.sh verify-token

Available 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 list

Get Zone Details

./scripts/zones.sh get 
# or by domain name
./scripts/zones.sh get-by-name example.com

List DNS Records

./scripts/dns.sh list 
# Filter by type
./scripts/dns.sh list  --type A

Create DNS Record

./scripts/dns.sh create  \
  --type A \
  --name subdomain \
  --content 192.0.2.1 \
  --ttl 3600 \
  --proxied true

Update DNS Record

./scripts/dns.sh update   \
  --content 192.0.2.2 \
  --ttl 1800

Delete DNS Record

./scripts/dns.sh delete  

Purge Cache

# Purge everything
./scripts/cache.sh purge-all 

# Purge specific URLs
./scripts/cache.sh purge-urls  "https://example.com/page1" "https://example.com/page2"

# Purge by cache tags
./scripts/cache.sh purge-tags  tag1 tag2

SSL/TLS Settings

# Get current SSL mode
./scripts/ssl.sh get-mode 

# Set SSL mode (off, flexible, full, strict)
./scripts/ssl.sh set-mode  strict

Firewall Rules

# List firewall rules
./scripts/firewall.sh list 

# Block an IP
./scripts/ip-access.sh block  192.0.2.100 "Suspicious activity"

# Allow an IP
./scripts/ip-access.sh allow  192.0.2.50 "Trusted server"

Workers

# List workers
./scripts/workers.sh list

# Deploy a worker
./scripts/workers.sh deploy  

# Delete a worker
./scripts/workers.sh delete 

Common Workflows

Setting Up a New Domain

  1. Add the zone:
./scripts/zones.sh create example.com
  1. Get the zone ID:
ZONE_ID=$(./scripts/zones.sh get-by-name example.com --id-only)
  1. 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
  1. Configure SSL:
./scripts/ssl.sh set-mode $ZONE_ID strict

Migrating DNS from Another Provider

  1. Export current records from the source provider
  2. Import to Cloudflare:
./scripts/dns-import.sh  records.txt

Emergency: Block Attack Traffic

# Block specific IP
./scripts/ip-access.sh block   "Attack mitigation"

# Enable Under Attack Mode
./scripts/zone-settings.sh set  security_level under_attack

# Purge cache if compromised content was cached
./scripts/cache.sh purge-all 

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 configurations
  • firewall-rules.json - Firewall rule templates
  • page-rules.json - Page rule templates
  • worker-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

  1. Always use proxied records when possible for DDoS protection
  2. Use strict SSL mode for full end-to-end encryption
  3. Set appropriate TTLs - shorter for dynamic content, longer for static
  4. Test firewall rules in log mode before enforcing
  5. Use API tokens with minimal required permissions
  6. Cache aggressively but purge when content changes
  7. 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/

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.