Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Cloudflare CLI - manage DNS records, purge cache, and control Workers routes.
.claude/skills/sundial-org-cloudflare/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-02 | ✗→✓ | ▲ Improved | 19% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 10% | 0% |
| case-04 | ✗→✓ | ▲ Improved | -29% | 0% |
| case-05 | ✗→✓ | ▲ Improved | -16% | 0% |
| case-06 | ✗→✓ | ▲ Improved | -9% | 0% |
Manage Cloudflare DNS, cache, and Workers via the API.
| Variable | Description | How to Get | |----------|-------------|------------| | CLOUDFLARE_API_TOKEN | Scoped API token | Cloudflare → My Profile → API Tokens |
Recommended token permissions:
Configure in ~/.clawdis/clawdis.json:
json{ "skills": { "cloudflare": { "env": { "CLOUDFLARE_API_TOKEN": "your-token" } } } }
bash# Test that your token works uv run {baseDir}/scripts/cloudflare.py verify
bash# List all zones uv run {baseDir}/scripts/cloudflare.py zones # Get zone details uv run {baseDir}/scripts/cloudflare.py zone <zone_id_or_domain>
bash# List DNS records for a zone uv run {baseDir}/scripts/cloudflare.py dns list <domain> # Add DNS record uv run {baseDir}/scripts/cloudflare.py dns add <domain> --type A --name www --content 1.2.3.4 uv run {baseDir}/scripts/cloudflare.py dns add <domain> --type CNAME --name blog --content example.com # Update DNS record uv run {baseDir}/scripts/cloudflare.py dns update <domain> <record_id> --content 5.6.7.8 # Delete DNS record (asks for confirmation) uv run {baseDir}/scripts/cloudflare.py dns delete <domain> <record_id> # Delete without confirmation uv run {baseDir}/scripts/cloudflare.py dns delete <domain> <record_id> --yes
bash# Purge everything uv run {baseDir}/scripts/cloudflare.py cache purge <domain> --all # Purge specific URLs uv run {baseDir}/scripts/cloudflare.py cache purge <domain> --urls "https://example.com/page1,https://example.com/page2" # Purge by prefix uv run {baseDir}/scripts/cloudflare.py cache purge <domain> --prefix "/blog/"
bash# List routes uv run {baseDir}/scripts/cloudflare.py routes list <domain> # Add route uv run {baseDir}/scripts/cloudflare.py routes add <domain> --pattern "*.example.com/*" --worker my-worker
All commands support --json for machine-readable output:
bashuv run {baseDir}/scripts/cloudflare.py dns list example.com --json
bash# Add CNAME for apex cloudflare dns add example.com --type CNAME --name @ --content cname.vercel-dns.com --proxied false # Add CNAME for www cloudflare dns add example.com --type CNAME --name www --content cname.vercel-dns.com --proxied false
bashcloudflare cache purge example.com --all
bashclawdhub install cloudflare
Other measured skills in the registry, with their headline benchmark lift.