cloudflare-dns
Skill438 starsChanged 3 months agoMITView on GitHub
Use the flarectl command-line tool to manage Cloudflare DNS records, including listing, adding, updating, and deleting DNS records, as well as querying zone information. This skill must be triggered whenever a user mentions "Cloudflare DNS," "CF DNS," "add DNS record," "delete DNS record," "update DNS," "view DNS records," "cloudflare-dns," "flarectl," or any scenario involving Cloudflare DNS management.
- Reads credentials
2 other projects use a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- lsongdev/skillsedited, first seen Sep 10, 2026
- ravidsrk/agent-skillstheir own version, first seen Jul 11, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- lsongdev/skills★ 130% same
Wrote their own version · 1
- ravidsrk/agent-skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository51 other files it gives its agents.
- android-devSkill
- android-ui-automationSkill
- apple-remindersSkill
- appstoreprice-hubSkill
- asc-cliSkill
- bilibili-hubSkill
- Clash 控制器Skill
- codex-imageSkill
- codex-on-ishSkill
- contact-vcard-extractorSkill
- deepseek-usageSkill
- doubao-ttsSkill
- douyin-downloaderSkill
- exa-searchSkill
- free-ttsSkill
- fucai3d-latestSkill
- generative-ui-minisSkill
- github-sync-helperSkill
- health-sleep-analysisSkill
- hyperframes-cliSkill
- hyperframesSkill
- korea-stockSkill
- maimai-hubSkill
- memos-apiSkill
- nano-bananaSkill
- notion-hubSkill
- openstreetmap-markerSkill
- pdf-converterSkill
- production-agent-publicSkill
- qbt-hubSkill
- quark-hubSkill
- reverse-dcfSkill
- self-improving-agentSkill
- shortcut-share-fileSkill
- spotify-hubSkill
- stock-fund-flowSkill
- stock-priceSkill
- tavily-searchSkill
- tg-hubSkill
- todoocardSkill
- twitter-downloaderSkill
- twitter-x-hubSkill
- us-stockSkill
- web-content-extractorSkill
- web-searchSkill
- weibo-hubSkill
- whenpeakSkill
- xianyu-hubSkill
- xiaohongshu-hubSkill
- youtube-downloaderSkill
- ytmusic-hubSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 2 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 41
Check whether the environment variables are set:
- Distinctive: line 47
If they are not set, tell the user which variable names are required and provide setup links:
- Very specific: line 161
Verify authentication: Check whether CF_API_TOKEN or CF_API_KEY+CF_API_EMAIL is set
- Very specific: line 162
Confirm the domain: If the user has not specified a zone, first use flarectl zone list to list available domains for the user to choose from
- Very specific: line 163
Perform the operation: Run list/create/update/delete as needed
- Very specific: line 164
Display results: After the operation, use flarectl dns list --zone <zone> to show the latest record status
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Cloudflare DNS Management
Environment Setup
Install flarectl
In the current environment (Alpine Linux arm64), the preinstalled version can be used directly. If it is not available, install it from the release:
if ! which flarectl > /dev/null 2>&1; then
wget -q https://github.com/wsvn53/flarectl/releases/download/flarectl-v0.1.0-alpine-arm64/flarectl-linux-arm64 \
-O /usr/local/bin/flarectl && chmod +x /usr/local/bin/flarectl
fiAuthentication Configuration
flarectl supports two authentication methods. Prefer the API Token method:
Method 1: API Token (recommended)
export CF_API_TOKEN=<your_token>Method 2: Global API Key
export CF_API_KEY=<your_key>
export CF_API_EMAIL=<your_email>Optional:
export CF_ACCOUNT_ID=<account_id> # Specify when using multiple accountsCheck whether the environment variables are set:
[ -n "$CF_API_TOKEN" ] && echo "Token: set" || echo "Token: NOT SET"
[ -n "$CF_API_KEY" ] && echo "API Key: set" || echo "API Key: NOT SET"If they are not set, tell the user which variable names are required and provide setup links:
- API Token: Set CF_API_TOKEN
- API Key: Set CF_API_KEY and Set CF_API_EMAIL
Common Operations
Query the Zone List
flarectl zone listExample output:
ID NAME PLAN STATUS
abc123... example.com Free activeList DNS Records
# List all records for a domain
flarectl dns list --zone example.com
# Filter by type
flarectl dns list --zone example.com --type A
# Filter by name
flarectl dns list --zone example.com --name sub.example.com
# Output in JSON format (useful for parsing IDs)
flarectl --json dns list --zone example.comAdd DNS Records
# A record
flarectl dns create --zone example.com --type A --name sub.example.com --content 1.2.3.4 --ttl 1
# CNAME record (enable orange-cloud proxy)
flarectl dns create --zone example.com --type CNAME --name www.example.com --content example.com --proxy
# MX record
flarectl dns create --zone example.com --type MX --name example.com --content mail.example.com --priority 10
# TXT record
flarectl dns create --zone example.com --type TXT --name _dmarc.example.com --content "v=DMARC1; p=none"
# AAAA record (IPv6)
flarectl dns create --zone example.com --type AAAA --name ipv6.example.com --content "2001:db8::1"Parameter descriptions:
--ttl 1: Automatic TTL (recommended); other values are in seconds (for example,--ttl 300)--proxy: Enable the Cloudflare orange-cloud proxy (supported only for A/AAAA/CNAME records)
Update DNS Records
Updating requires the record id. Use dns list to get it first:
# Get the record ID
flarectl --json dns list --zone example.com --name sub.example.com | python3 -c "
import sys,json
for r in json.load(sys.stdin):
print(r['id'], r['type'], r['name'], r['content'])
"
# Update the content
flarectl dns update --zone example.com --id <record_id> --content 5.6.7.8
# Update and enable proxy
flarectl dns update --zone example.com --id <record_id> --content 5.6.7.8 --proxyCreate or Update (upsert)
# Update if it exists; create it if it does not exist
flarectl dns create-or-update --zone example.com --type A --name sub.example.com --content 1.2.3.4Delete DNS Records
# Look up the ID first
flarectl --json dns list --zone example.com --name sub.example.com | python3 -c "
import sys,json
for r in json.load(sys.stdin):
print(r['id'], r['name'], r['type'])
"
# Delete
flarectl dns delete --zone example.com --id <record_id>Batch Delete Records with the Same Name
flarectl --json dns list --zone example.com --name sub.example.com | python3 -c "
import sys,json,subprocess
for r in json.load(sys.stdin):
subprocess.run(['flarectl','dns','delete','--zone','example.com','--id',r['id']])
print('Deleted:', r['id'], r['type'], r['content'])
"Workflow
- Verify authentication: Check whether
CF_API_TOKENorCF_API_KEY+CF_API_EMAILis set - Confirm the domain: If the user has not specified a zone, first use
flarectl zone listto list available domains for the user to choose from - Perform the operation: Run list/create/update/delete as needed
- Display results: After the operation, use
flarectl dns list --zone <zone>to show the latest record status
Notes
- Deletions are irreversible; confirm with the user before proceeding
--proxysupports only A, AAAA, and CNAME record types- MX records must specify
--priority - TXT record content that contains spaces must be enclosed in quotes
- The global flag
flarectl --jsonmust be placed before the subcommand.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

