LaunchKit · 2026
Back to Skills

spf-dkim-setup

Manage DNS records via the Cloudflare API.

0
257 downloads
by @masasdani

Setup & Installation

openclaw skills install @masasdani/spf-dkim-setup

Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:

npx clawhub install spf-dkim-setup

What This Skill Does

Manages DNS records on Cloudflare-hosted domains via the Cloudflare API. Supports creating, listing, updating, and deleting A, AAAA, CNAME, TXT, MX, SPF, DKIM, and DMARC records. Pairs with mailtarget-email for fully automated sending domain setup without manual DNS editing.

Combining this with mailtarget-email lets an agent handle the full domain authentication flow autonomously, from record creation to verification, without any manual dashboard work.

When to use it

  • Setting up SPF and DKIM records for a new sending domain
  • Adding a CNAME tracking subdomain for email campaigns
  • Verifying domain ownership by creating a TXT record
  • Automating end-to-end email authentication setup
  • Cleaning up stale DNS records after migrating email providers

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: Set up email authentication for mydomain.com using Mailtarget

AGENT
  1. 1Creates sending domain in Mailtarget via POST /domain/sending
  2. 2Fetches required SPF, DKIM, and CNAME values from Mailtarget via GET /domain/sending/{id}
  3. 3Creates TXT record for SPF on mydomain.com in Cloudflare
  4. 4Creates TXT record for DKIM selector in Cloudflare with proxied set to false
  5. 5Triggers domain verification in Mailtarget via PUT /domain/sending/{id}/verify-txt
OUTPUT

All DNS records created and domain verified in Mailtarget, ready for sending

Requirements

Accounts, API keys, or tools you or your AI assistant may need to set up while using this skill.

CLOUDFLARE_API_TOKEN environment variable (DNS Write permission)CLOUDFLARE_ZONE_ID environment variable (found on domain overview in Cloudflare dashboard)