원클릭으로
cloudflare
Manage Cloudflare zones, DNS records, Workers, Pages and cache via API
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Manage Cloudflare zones, DNS records, Workers, Pages and cache via API
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Manage Cloudinary media assets, transformations and upload via REST API
Monitor infrastructure, query metrics, manage monitors and events via Datadog API
Manage DigitalOcean droplets, domains, databases, apps and volumes via API v2
Manage Firebase projects, Firestore, Auth users and Hosting via REST API
Manage Intercom conversations, contacts, articles and help center via REST API
Manage MercadoPago payments, customers and account via API
| name | cloudflare |
| description | Manage Cloudflare zones, DNS records, Workers, Pages and cache via API |
| user-invocable | true |
| argument-hint | ["zone name or account ID"] |
Connect to the Cloudflare API to manage zones (domains), DNS records, Workers, Pages projects and cache purging. Pure Ruby, zero gems — stdlib only.
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 zone
ruby ~/.claude/skills/cloudflare/scripts/check_setup.rb
If 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.
The argument $ARGUMENTS may contain a zone name or account ID.
ruby ~/.claude/skills/cloudflare/scripts/zones.rb
Present the zones to the user. If $ARGUMENTS matches a zone name, use that zone. Otherwise ask which zone to work with.
ruby ~/.claude/skills/cloudflare/scripts/zone.rb ZONE_ID
Present the zone info and ask what the user wants to do.
List DNS records:
ruby ~/.claude/skills/cloudflare/scripts/dns_records.rb ZONE_ID
Create 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 300
Delete 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_ID
Purge 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_ID
List 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_ID
List Pages projects (requires account ID):
ruby ~/.claude/skills/cloudflare/scripts/pages_projects.rb ACCOUNT_ID
~/.config/cloudflare/token (outside the repo, never commit)https://api.cloudflare.com/client/v4