Logo van Cloudflare Skill

Cloudflare Skill

Community
zeenie-ai
cloudflare-skill

Work with Cloudflare via the official cf CLI — check auth identity, list zones, list/create/delete DNS records, query the GraphQL Analytics API (zone traffic, Web Analytics/RUM), and run any other cf command. Output is parsed JSON.

Overzicht

Uitgeverzeenie-ai
RepositoryOpenCompany
Skillnaamcloudflare-skill
Sterren
912
Forks
137
Meegeleverde bestanden
Alleen instructies
LicentieMIT
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Compleet zonder extra bestanden

    Alles wat het model nodig heeft, staat in de instructies — geen extra bestanden om te synchroniseren.

  • Open source

    Gepubliceerd door zeenie-ai op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Cloudflare Skill in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/zeenie-ai/OpenCompany/tree/main/server/skills/cloudflare/cloudflare-skill
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/zeenie-ai/OpenCompany.git /tmp/OpenCompany
mkdir -p .claude/skills
cp -r /tmp/OpenCompany/server/skills/cloudflare/cloudflare-skill .claude/skills/cloudflare-skill
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Cloudflare Skill in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Cloudflare Skill automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Cloudflare Skill niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

Cloudflare Skill

Wrapper over the official Cloudflare CLI (cf, a Technical Preview — "the next version of Wrangler"). Typed operations for the core flows plus a custom passthrough that covers the entire cf surface. cf prints JSON to stdout by default, so results come back parsed in result.

Tool: cloudflare

Operations

OperationPurposeKey fields
whoamiAuth status + identity (email, scopes)—
zones_listList/filter zones (parsed JSON)name_filter, account_id (both optional)
dns_records_listDNS records for a zone (parsed JSON)zone (zone ID or domain)
dns_record_createCreate a DNS recordzone, record_body (raw JSON record)
dns_record_deleteDelete a DNS record by idzone, record_id
graphql_queryGraphQL Analytics API (traffic, RUM, DNS analytics)graphql_query, graphql_variables (JSON)
customAny other cf commandcommand — exactly what you would type after cf

Response

json
{
  "operation": "zones_list",
  "success": true,
  "result": [{ "id": "023e105f4ecef8ad9ca31a8372d0c353", "name": "example.com", "status": "active" }],
  "stdout": null,
  "stderr_tail": null
}

Parsed JSON lands in result; plain text (rare) lands in stdout. On failure the tool raises an error carrying cf's own message — surface it verbatim; cf's errors are precise (including "Not logged in", which tells the user exactly how to authenticate).

DNS records

record_body is the raw JSON request body (the API's DNS record shape — stable across cf versions, unlike per-field flags):

json
{ "operation": "dns_record_create", "zone": "example.com", "record_body": "{\"type\":\"A\",\"name\":\"www\",\"content\":\"192.0.2.1\",\"ttl\":1,\"proxied\":false}" }

Common record fields: type (A/AAAA/CNAME/TXT/MX/NS/SRV), name (record name; @ for the zone apex), content, ttl (1 = auto), proxied (orange-cloud), priority (MX/SRV). Get record ids from dns_records_list before deleting:

json
{ "operation": "dns_records_list", "zone": "example.com" }
{ "operation": "dns_record_delete", "zone": "example.com", "record_id": "023e105f4ecef8ad9ca31a8372d0c353" }

To update a record, use custom with --body:

json
{ "operation": "custom", "command": "dns records update <record-id> --zone example.com --body '{\"content\":\"192.0.2.2\"}'" }

Analytics — the GraphQL Analytics API

Cloudflare's legacy Zone Analytics REST API was deprecated (2021) and the DNS analytics REST API is scheduled for removal (2026-12-01); the official replacement for both is the GraphQL Analytics API. The cf CLI does not expose it (its commands are generated from the REST schema), so use the graphql_query operation — it POSTs to the official endpoint api.cloudflare.com/client/v4/graphql.

Requires the API token from Credentials -> Cloudflare (the OAuth login has no analytics scopes): permission Account > Account Analytics > Read, plus Zone > Analytics > Read for zone-scoped queries.

Zone HTTP traffic (official migration-guide query, current dataset):

json
{
  "operation": "graphql_query",
  "graphql_query": "query Sample($zoneTag: string, $start: Time, $end: Time) { viewer { zones(filter: {zoneTag: $zoneTag}) { series: httpRequestsAdaptiveGroups(limit: 5, orderBy: [count_DESC], filter: {datetime_geq: $start, datetime_lt: $end, requestSource: \"eyeball\"}) { count avg { sampleInterval } sum { visits edgeResponseBytes } dimensions { coloCode } } } } }",
  "graphql_variables": "{\"zoneTag\": \"<zone id>\", \"start\": \"2026-07-01T00:00:00Z\", \"end\": \"2026-07-15T00:00:00Z\"}"
}

Web Analytics / RUM (account-scoped datasets: rumPageloadEventsAdaptiveGroups, rumPerformanceEventsAdaptiveGroups, rumWebVitalsEventsAdaptiveGroups):

json
{
  "operation": "graphql_query",
  "graphql_query": "query Rum($accountTag: string, $start: Time, $end: Time) { viewer { accounts(filter: {accountTag: $accountTag}) { rumPageloadEventsAdaptiveGroups(limit: 100, orderBy: [count_DESC], filter: {datetime_geq: $start, datetime_lt: $end}) { count sum { visits } dimensions { requestPath } } } } }",
  "graphql_variables": "{\"accountTag\": \"<account id>\", \"start\": \"2026-07-01T00:00:00Z\", \"end\": \"2026-07-15T00:00:00Z\"}"
}

DNS analytics: dnsAnalyticsAdaptive / dnsAnalyticsAdaptiveGroups (zone- and account-scoped). Notes: a query spans at most 10 zones or 1 account; the user quota is 300 queries per 5 minutes; wide time ranges are sampled (multiply by sampleInterval for estimates). Web Analytics site CONFIG (create/list sites) lives on REST under accounts/{account_id}/rum/site_info — the cf CLI has no rum commands yet, and those endpoints also need the API token.

The full cf surface via custom

json
{ "operation": "custom", "command": "accounts list" }
{ "operation": "custom", "command": "dns records get <record-id> --zone example.com" }
{ "operation": "custom", "command": "registrar domains list" }
{ "operation": "custom", "command": "zones get --zone example.com" }
{ "operation": "custom", "command": "dns analytics report --zone example.com" }

Discovery helpers when unsure of a command's shape:

  • { "operation": "custom", "command": "agent-context dns" } — cf's built-in per-product agent context (also agent-context --list for the product catalogue).
  • { "operation": "custom", "command": "schema zones list" } — the API schema behind a command.
  • Append --dry-run to any write command to validate without executing.

Quoting and escaping

command is parsed with shlex.split — wrap JSON bodies in single quotes: custom: "dns records create --zone example.com --body '{\"type\":\"A\",...}'".

Authentication

Two independent paths; the token wins when both exist (cf's documented resolution order):

  1. OAuth login — Credentials Modal → Cloudflare → Login (cf opens the browser itself; localhost callback, so the browser must be on the server's machine), or cf auth login in a terminal. The OAuth grant is a FIXED scope set: zones, DNS (incl. dns_analytics:read), accounts, registrar, Workers — but NO Web Analytics/RUM or zone analytics scopes, and no way to request more.
  2. API token or Global API Key — pasted in the credentials panel (or CLOUDFLARE_API_TOKEN / CLOUDFLARE_API_KEY+CLOUDFLARE_EMAIL in the server env; panel values take precedence). Required for graphql_query and anything else outside the OAuth scopes. Scoped token: dash.cloudflare.com/profile/api-tokens with the permission groups the task needs. Global API Key (cfk_ prefix): full access, needs the Account Email field filled alongside it.

If a command fails with an authentication or 403 error, tell the user which permission group the token needs; don't ask them to paste a token in chat.

Best practices

  1. Run whoami first when auth state is unknown — it returns the authenticated email and scopes without side effects.
  2. Pass zone as the domain name (cf resolves it to the zone ID).
  3. Preview writes with --dry-run via custom when the user's intent is ambiguous.
  4. Destructive operations (zone deletes, record deletes) — confirm with the user before running unless they explicitly asked.
  5. Surface cf error messages verbatim — don't paraphrase.

Veelgestelde vragen

Wat doet de AI-skill Cloudflare Skill?

Work with Cloudflare via the official cf CLI — check auth identity, list zones, list/create/delete DNS records, query the GraphQL Analytics API (zone traffic, Web Analytics/RUM), and run any other cf command. Output is parsed JSON.

Waarom Cloudflare Skill gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Cloudflare Skill bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Cloudflare Skill in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/zeenie-ai/OpenCompany/tree/main/server/skills/cloudflare/cloudflare-skill. TypingMind leest het bestand SKILL.md en installeert het als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Cloudflare Skill gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Cloudflare Skill gebruiken?

Zoveel als je wilt. Je kunt Cloudflare Skill gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Cloudflare Skill gratis?

Ja. Deze skill is door zeenie-ai op GitHub gepubliceerd onder de licentie MIT. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇