Cloudflare Domain Registration
Use this skill for Cloudflare Registrar ownership flows. Do not use deployment, Pages, DNS-zone, or custom-domain workflows when the user is asking to purchase or verify registrar ownership.
Requirements
The user must provide their own Cloudflare values:
CLOUDFLARE_REGISTRAR_TOKEN: Cloudflare API token with Registrar access.CLOUDFLARE_ACCOUNT_ID: Cloudflare account ID, or pass--account-id.
Never print token values. Do not hardcode personal account IDs, contact IDs, private domains, or purchase transcripts in public examples.
Quick Start
From this skill directory:
python3 scripts/cf_domain_registration.py check example.com
python3 scripts/cf_domain_registration.py list --find example.com
python3 scripts/cf_domain_registration.py register example.com --dry-run
python3 scripts/cf_domain_registration.py register example.com --yes
Claude Code can reference the bundled script with:
python3 ${CLAUDE_SKILL_DIR}/scripts/cf_domain_registration.py check example.com
Purchase Rules
- Availability checks are read-only.
- Only submit a registration when the user explicitly asks to buy, purchase, or register the domain.
- Live registration requires
--yes; use--dry-runto inspect the exact request body. - Reject premium domains unless the user explicitly approves premium pricing, then rerun with
--allow-premium. - Default to one year, auto-renew on, and WHOIS privacy redaction unless the user asks otherwise.
Registrar Flow
- Check availability:
POST /accounts/{account_id}/registrar/domain-check
{
"domains": ["example.com"]
}
- Confirm the domain object has
registrable: true. - Register:
POST /accounts/{account_id}/registrar/registrations
{
"domain_name": "example.com",
"years": 1,
"auto_renew": true,
"privacy_mode": "redaction"
}
- Verify ownership:
GET /accounts/{account_id}/registrar/domains?page=0&per_page=100
Cloudflare Registrar listing can be zero-indexed. If a page one list call is empty but result_info.total_count is non-zero, retry from page=0.
Helper Commands
check DOMAIN [DOMAIN...]: calldomain-checkand print registrability/pricing.register DOMAIN --yes: preflight check, submit registration, and verify in the registrar domain list.register DOMAIN --dry-run: show the exact submit body without purchasing.list --find DOMAIN: read registrar inventory from zero-based pagination and search for a domain.status DOMAIN: read/registrar/registrations/{domain}/registration-status.
Read references/registrar-flow.md for the endpoint summary and failure modes to avoid.