cloudflare-dns

cloudflare-dns is a skill for Claude Code, Codex from alivirgo/Major-AI-Skills. It costs 27 tokens per session (1,045 once invoked), scanned A, original, MIT.

A guide to managing Cloudflare DNS, the system that connects domain names to servers and can route traffic through Cloudflare’s network. It covers records, proxy settings, access tokens, and domain cutovers.

In plain words
What is it for?
Use it to create or update DNS records, plan migrations with TTL changes, choose proxy or direct-DNS mode, and automate changes through the Cloudflare API.
Why use it?
It helps prevent outages and accidental exposure when changing records for websites, APIs, email, or certificate checks.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex.

Part of the major-ai-skills plugin — 147 skills, 7 plugins shipped together

Good fit Use it to create or update DNS records, plan migrations with TTL changes, choose proxy or direct-DNS mode, and automate changes through the Cloudflare API.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alivirgo/major-ai-skills/cloudflare-dns
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add alivirgo/Major-AI-Skills --skill cloudflare-dns
Clone the repo
git clone --depth 1 https://github.com/alivirgo/Major-AI-Skills

Made for: Claude Code, Codex.

Or install major-ai-skills, the plugin that ships this one along with the rest of its 147 skills, 7 plugins.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cloudflare-dns

README.md
[![agentmods](https://agentmods.dev/badge/skills/alivirgo/major-ai-skills/cloudflare-dns/github.svg)](https://agentmods.dev/skills/alivirgo/major-ai-skills/cloudflare-dns)
Your own site
<a href="https://agentmods.dev/skills/alivirgo/major-ai-skills/cloudflare-dns"><img src="https://agentmods.dev/badge/skills/alivirgo/major-ai-skills/cloudflare-dns/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cloudflare-dns

Your own site · 80×15
<a href="https://agentmods.dev/skills/alivirgo/major-ai-skills/cloudflare-dns"><img src="https://agentmods.dev/badge/skills/alivirgo/major-ai-skills/cloudflare-dns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,045 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00027 $0.01045
Opus 5 $0.00014 $0.00522
Sonnet 5 $0.00005 $0.00209
Haiku 4.5 $0.00003 $0.00104

Measured yesterday against content hash 398ee6418747, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

cloudflare-dns scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

### API token create (dashboard mentally) then CLI with curl
skills/cloudflare-dns/SKILL.md · 115 lines

How it starts

The opening of the file, as written. The whole thing — 115 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Cloudflare DNS AI Skill Guide

Overview

Cloudflare DNS manages authoritative records for a zone and optionally proxies traffic (orange cloud) through Cloudflare's edge. DNS-only (grey cloud) returns origin IPs directly. Agents must distinguish proxy mode from pure DNS - proxied records change visible IPs, affect TLS termination, and hide origin addresses. Prefer scoped API tokens over Global API keys.

Registrar / NS -> Cloudflare authoritative DNS
                      |
                      +--> DNS-only A/AAAA/CNAME (grey)
                      +--> Proxied record (orange) -> Cloudflare edge -> origin

When to use

  • Creating or updating A/AAAA/CNAME/MX/TXT records
  • Planning domain cutovers and low-TTL rehearsals
  • Choosing proxied vs DNS-only for APIs, mail, or ACME challenges
  • Automating record changes via Cloudflare API

Operational directives

  1. Inventory existing records before edits; export a backup of the zone.
  2. Lower TTL ahead of migrations; raise TTL after stability.
  3. Keep MX and many ACME/validation records DNS-only when required.
  4. Use least-privilege API tokens limited to the single zone and DNS edit.
  5. Never delete apex records casually - confirm traffic owners first.

Concrete examples

Common record set

Type Name Content Proxy
A @ origin IPv4 Proxied (web) or DNS-only (special cases)
AAAA @ origin IPv6 Match A mode
CNAME www example.com Proxied
TXT @ SPF/verification DNS-only
MX @ mail provider DNS-only

API token create (dashboard mentally) then CLI with curl

# List DNS records
curl -s -X GET "https://api.cloudflare.com/client/v4/zones/$ZONE_ID/dns_records" \
  -H "Authorization: Bearer $CF_API_TOKEN" \
  -H "Content-Type: application/json" | jq '.result[] | {type,name,content,proxied,ttl}'

# Upsert-style create A record (DNS-only for origin cutover lab)
curl -s -X POST "https://api.cloudflare.com/client/v4/zones/$ZONE_ID/dns_records" \
  -H "Authorization: Bearer $CF_API_TOKEN" \
  -H "Content-Type: application/json" \
  --data '{"type":"A","name":"api","content":"203.0.113.10","ttl":120,"proxied":false}'

Read the full file on GitHub · 115 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday Changed · -7 tokens per session 398ee6418747
  2. 6d ago First seen · 115 lines · 34 tokens per session scan A 890b9fb54292

Subscribe to this mod's changes

cloudflare-dns is a skill published in the GitHub repository alivirgo/Major-AI-Skills (1 stars, last pushed today), licensed MIT. It adds 27 tokens to every session and 1,045 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-05.