Cloudflare

From intentic/intentic · View interactive version

Cloudflare is an AI agent skill from the GitHub repository intentic/intentic. Manage Cloudflare DNS, zones, cache, tunnels, Workers and Pages via the Cloudflare API. Use when the user asks about their domains, DNS records, cache purging, or apps hosted on Cloudflare.

How to use this skill

Skill file

Cloudflare (connected)

Token in $CLOUDFLARE_API_TOKEN; $CLOUDFLARE_ACCOUNT_ID may be set too (when empty, list accounts below).

Base is $CLOUDFLARE_API_BASE_URL (it stands in for https://api.cloudflare.com/client/v4). Define this helper once per shell:

cf <METHOD> <path> [-d '<json>']:

cf() { local m="$1" p="$2"; shift 2; curl -s -X "$m" -H "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
  -H "Content-Type: application/json" "$CLOUDFLARE_API_BASE_URL/$p" "$@"; }

Every response is an envelope {success, errors, result, result_info}: check .success and on false read

.errors[] | {code, message} instead of assuming the shape of .result. The token is scoped: an empty list or

a 403 often means the permission or zone was never granted, so say which grant is missing rather than "it's not

there". DNS edits and cache purges change live traffic: say what you are about to do first, then report.

Notes: paginate with ?page=N&per_page=50 and read .result_info | {page, total_pages}. wrangler, if

installed, reads the plain names, so hand them over per command and it needs no login:

CLOUDFLARE_API_TOKEN=$CLOUDFLARE_API_TOKEN CLOUDFLARE_ACCOUNT_ID=$CLOUDFLARE_ACCOUNT_ID CLOUDFLARE_API_BASE_URL=$CLOUDFLARE_API_BASE_URL wrangler <CMD>. A proxied (orange-cloud) record hides the

origin IP: turning proxied off exposes it, so don't do that as a side effect of another edit.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.