Skip to content

Guide · Agent skill

How to use the Domain & DNS Ops agent skill

Updated · written with AI from the project's own documentation and checked against our catalogue data

The Domain & DNS Ops skill (domain-dns-ops) is a checklist that tells an AI agent how to set up vanity domains on Cloudflare: create the zone, point nameservers at Cloudflare, add placeholder DNS records, configure a redirect, and verify each step with dig and curl. It is written for one person's setup and depends on a private runbook repository, so read the requirements before installing it. After this guide you will know what the skill does, how to install it, how to ask for it in plain language, and what safety limits to respect.

Domain & DNS Opssteipete/agent-scripts · MIT

Quick start

  1. 1Download and unzip the skill. Download the domain-dns-ops ZIP from this page and unzip it into ~/.claude/skills/ or a project's .claude/skills/ folder.
  2. 2Prepare the manager repo. Make sure ~/Projects/manager exists with DOMAINS.md, DNS.md, redirect-worker.ts and the bin/ scripts, since the skill does not include them.
  3. 3Configure cli4 and tokens. Set up cli4 for Cloudflare API access and provide a Cloudflare API token with the permissions your task needs.
  4. 4Ask for the task in plain language. Name the domain and the goal, such as setting up a Cloudflare zone and redirect or checking a current redirect.
  5. 5Review the commands. Read each registrar or Cloudflare command the agent proposes before it runs, since these change live DNS.
  6. 6Verify each change. Check nameservers, then DNS with dig, then the redirect with curl -I, and expect a 301 response.
  7. 7Commit manager repo changes. Review with git status and git diff, commit with a Conventional Commits message, and push only when you explicitly ask.

What an agent skill is and what this one does

An agent skill is a folder of instructions (a SKILL.md file plus optional reference files) that an AI agent loads when a request matches the skill's description. This skill does not contain DNS logic itself. Its SKILL.md acts as a thin router: it tells the agent to treat the ~/Projects/manager repository as the source of truth, run the scripts stored there, and follow the checklists in that repository.

  • Decide the redirect model: Page Rule, Rulesets / Bulk Redirects, or a Worker route.
  • Create the Cloudflare zone and confirm it with the cli4 tool.
  • Point nameservers at Cloudflare, using bin/namecheap-set-ns for Namecheap or the notes in DNS.md for DNSimple.
  • Add proxied placeholder A records (apex and wildcard) pointing to 192.0.2.1.
  • Configure the redirect and verify it: dig for DNS, curl -I for an expected 301.
  • Commit any changes made to the manager repo, pushing only when explicitly asked.

Install the skill from a ZIP file

Download the ZIP for domain-dns-ops from this page and unzip it. Then place the folder in one of these locations: your personal skills directory at ~/.claude/skills/, or a project-specific .claude/skills/ folder inside the project that needs it.

You can also upload the skill in the Claude apps under Settings → Capabilities → Skills.

  • Personal install: unzip into ~/.claude/skills/.
  • Project install: unzip into the project's .claude/skills/ folder.
  • Claude apps: Settings → Capabilities → Skills, then upload the skill.

Prepare the manager repository before you use it

The skill points to files that are not included in the skill folder. Before it can do anything useful, you need a local ~/Projects/manager repository that contains DOMAINS.md, DNS.md, redirect-worker.ts, redirect-worker-mapping.md and a bin/ directory with the helper scripts. The reference file references/manager-repo.md lists these files and says that bin/namecheap-set-ns reads environment variables from a profile file in that repository.

You also need the cli4 command-line tool configured for Cloudflare API access, a Cloudflare API token with the permissions your task needs, Namecheap or DNSimple account access for nameserver changes, git, dig and curl.

  • ~/Projects/manager with DOMAINS.md, DNS.md, redirect-worker.ts and bin/ scripts
  • cli4 configured for Cloudflare API access
  • Cloudflare API token with the required permissions
  • Namecheap or DNSimple account access for nameserver changes
  • git, dig and curl installed
ls -la ~/Projects/manager/bin

Trigger the skill with natural requests

You do not need special syntax. Describe the domain work in plain language and mention Cloudflare, DNS, nameservers or redirects so the agent matches the skill. Name the domain and the outcome you want. The agent will then check DOMAINS.md for the domain's target and registrar before changing anything.

Good requests name a specific domain and a specific goal, for example asking to move a domain's nameservers to Cloudflare, set up a redirect to a target, or check what a domain currently resolves to.

  • "Set up example.com on Cloudflare and redirect it to my main site."
  • "Flip the nameservers for example.com to Cloudflare; it is registered at Namecheap."
  • "Check whether example.com redirects over HTTPS with a 301."
  • "Find example.com in my domain map and tell me its target and registrar."

Example workflow: a new vanity domain

Suppose you want a new vanity domain to redirect to an existing site. The skill's golden path starts by choosing a routing model, then creating the zone in the Cloudflare UI and confirming it with cli4 using the zone listing call. If the registrar is Namecheap, the agent runs the helper script from inside the manager repo after sourcing its profile file. Next it adds the placeholder records and configures the redirect using the templates in DNS.md. Finally it verifies DNS and the HTTPS redirect, checking each stage before moving on.

cli4 --get name=example.com /zones cd ~/Projects/manager && source profile && bin/namecheap-set-ns example.com emma.ns.cloudflare.com scott.ns.cloudflare.com dig +short example.com @1.1.1.1 curl -I https://example.com

Run the routine Cloudflare checks

Besides new domains, the skill covers routine tasks. One common one is turning off Cloudflare's "Block AI bots" setting. The skill directs the agent to check status first and then disable, using the bin/cloudflare-ai-bots helper in the manager repo. The bot helper needs a token with the right permissions.

cd ~/Projects/manager && source profile && bin/cloudflare-ai-bots status cd ~/Projects/manager && source profile && bin/cloudflare-ai-bots disable

Safety notes for scripts and network access

This skill runs scripts and uses the network. The steps execute real registrar and Cloudflare commands, and a wrong nameserver or redirect change can take a site offline. The skill's own guidance is to prefer reversible steps and to verify after each change in the order NS, then DNS, then redirect.

The skill also tells the agent to export only the Cloudflare token needed for a single command, and to leave lore domains and steipete.md alone unless you explicitly ask. Review git status and git diff before any commit, and push only when you have asked for it.

  • Review the planned command before the agent runs any registrar or Cloudflare change.
  • If Cloudflare reports invalid nameservers, first confirm the registrar; the skill notes this is often a wrong-registrar problem.
  • Do not change live DNS or nameservers without review.

Tips for getting reliable results

Keep DOMAINS.md accurate, because the agent uses it as the map from each domain to its target, registrar and exclusions. Use the search pattern from the reference file to find a domain quickly. If you do not keep a runbook repo with this layout, the skill will not give you a working setup by itself.

  • Search the domain map: rg -n "\bexample\.com\b" ~/Projects/manager/DOMAINS.md
  • Ask the agent to verify after every change rather than only at the end.
  • Read DNS.md first if your registrar is DNSimple, since the skill defers those steps to it.
rg -n "\bexample\.com\b" ~/Projects/manager/DOMAINS.md

What people use it for

  • Moving a vanity domain onto Cloudflare and pointing its nameservers at Cloudflare from Namecheap.
  • Adding a redirect from a new domain to an existing site, then confirming the 301 response with curl.
  • Checking which target and registrar a domain is mapped to in DOMAINS.md before making a change.
  • Turning off Cloudflare's Block AI bots setting with the bin/cloudflare-ai-bots helper after checking its status.
  • Running a repeatable DNS-and-redirect checklist with verification after each change.

Frequently asked questions

Is the Domain & DNS Ops skill free to use?

The skill is published under the MIT licence, as stated on this page. Your own costs depend on the services it touches, such as your Cloudflare and registrar accounts, which this source does not price.

How do I install the domain-dns-ops skill?

Download the ZIP from this page and unzip it into ~/.claude/skills/ for personal use or a project's .claude/skills/ folder. You can also upload it in the Claude apps under Settings → Capabilities → Skills.

What do I need before the skill works?

You need a local ~/Projects/manager repository with DOMAINS.md, DNS.md, redirect-worker.ts and bin/ scripts, which are not included in the skill. You also need cli4 configured for Cloudflare, a Cloudflare API token, Namecheap or DNSimple access, git, dig and curl.

Why won't the skill work on its own?

The SKILL.md file is a router that points to files and scripts in the author's private manager repository. Without that repository, the agent has no domain map, runbook or helper scripts to run.

Does the skill change live DNS automatically?

It runs real registrar and Cloudflare commands when asked to perform a change, so it can affect live sites. Its guidance is to prefer reversible steps and verify after each change, and you should review commands before they run.

How is this different from managing DNS by hand or with another tool?

This skill does not contain DNS logic; it is a checklist that directs an agent to the author's own scripts and notes. If you do not keep a similar runbook repository, you will need to write your own checklist or use a different tool.

New agent skills, repos and AI tools — every week

The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.

Our verdict

Use this skill if you manage many domains on Cloudflare, keep your own runbook repo with the same layout, and want an agent to follow a repeatable DNS and redirect checklist with checks after each change. Pick something else if you do not have the ~/Projects/manager repository, because the skill cannot run on its own, or if you want a general-purpose DNS tool that does not depend on a private setup.

Download the skill