Logo von Cloudflare Ops

Cloudflare Ops

Organisation
serversathome
cloudflare-ops

Read and manage Cloudflare: DNS records for your domains, Cloudflare Tunnels and their ingress rules, connector health, and Zero Trust Access applications. Use this whenever the user asks about a domain or DNS record, whether a service is reachable from outside, a tunnel being up or down, cloudflared, publishing a service to the internet, an Access application or who can sign in to one, or asks to add, repoint or remove a DNS record or a tunnel route. This integration CAN change DNS and tunnels when registered with an Edit token; destructive operations refuse to run without --force.

Übersicht

Herausgeberserversathome
Repositoryhomelabhero
Skill-Namecloudflare-ops
Sterne
104
Forks
4
Mitgelieferte Dateien
Nur Anweisungen
Links
  • Anweisungen in Markdown

    Eine SKILL.md-Datei, die das Modell bei Bedarf lädt. So werden nur dann Token verbraucht, wenn eine Anfrage tatsächlich dazu passt.

  • Funktioniert mit jedem LLM

    KI-Skills bestehen aus reinem Markdown, nicht aus anbieterspezifischem Code. Daher funktionieren sie mit GPT, Claude, Gemini, Grok oder einem lokalen Modell.

  • In sich abgeschlossen

    Alles, was das Modell braucht, steht in den Anweisungen — keine zusätzlichen Dateien zum Synchronisieren.

  • Open Source

    Von serversathome auf GitHub veröffentlicht. Prüfen Sie vor der Installation die Quelldateien.

Installation

Installieren Sie den KI-Skill Cloudflare Ops in TypingMind, um ihn mit jedem LLM zu nutzen, oder fügen Sie ihn einem anderen Agenten hinzu, der SKILL.md lesen kann.

1

In TypingMind installieren

TypingMind installiert einen Skill direkt aus seinem GitHub-Ordner. Dabei liest die App SKILL.md, bündelt die Ressourcendateien und speichert das Ergebnis lokal.

  1. Öffnen Sie die App und gehen Sie zu Plugins → Skills.
  2. Wählen Sie „Von GitHub installieren“.
  3. Fügen Sie die unten angegebene URL des Skill-Ordners ein und bestätigen Sie.
    https://github.com/serversathome/homelabhero/tree/main/ops/.claude/skills/cloudflare-ops
  4. Aktivieren Sie den Skill in jedem Chat, in dem er verfügbar sein soll.
Plugins → Skills → Skill hinzufügen → Über GitHub-URL. Fügen Sie dann die Ordner-URL ein und klicken Sie auf „Weiter“.
2

In einem anderen Agenten installieren

Jeder Agent, der das Agent-Skills-Format unterstützt, kann diesen Skill nutzen. Kopieren Sie den Ordner in das Skill-Verzeichnis des jeweiligen Agenten.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/serversathome/homelabhero.git /tmp/homelabhero
mkdir -p .claude/skills
cp -r /tmp/homelabhero/ops/.claude/skills/cloudflare-ops .claude/skills/cloudflare-ops
Starten Sie Claude Code nach dem Kopieren neu, damit der neue Skill erkannt wird.

In TypingMind verwenden

Aktivieren Sie Cloudflare Ops in einem beliebigen Chat in TypingMind. Den Rest übernimmt das Modell. Name und Beschreibung des Skills stehen im System-Prompt. Sobald eine Anfrage passt, lädt das Modell selbstständig die vollständigen Anweisungen — Sie müssen den Skill nie manuell aufrufen, und er verbraucht erst Token, wenn er tatsächlich genutzt wird.

Das Modell lädt Cloudflare Ops automatisch, sobald eine passende Anfrage gestellt wird.

Funktioniert mit jedem KI-Modell

KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher ist Cloudflare Ops nicht an das Modell gebunden, für das der Skill geschrieben wurde. Installieren Sie ihn einmal in TypingMind und nutzen Sie ihn mit GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder einem selbst betriebenen lokalen Modell — alles mit Ihren eigenen API-Schlüsseln.

  • Wird nur bei Bedarf geladen

    Der System-Prompt enthält nur den Namen und die Beschreibung. Die Anweisungen werden bei der ersten passenden Anfrage geladen. Ein ungenutzter Skill verursacht daher keine Kosten.

  • Modell im laufenden Chat wechseln

    Da der Skill aus Anweisungen statt aus Code besteht, funktioniert er auch nach einem Modellwechsel — das nächste Modell liest dieselbe SKILL.md-Datei.

Skill-Anweisungen

Dies ist der Inhalt von SKILL.md, den das Modell lädt. Lesen Sie ihn vor der Installation — ein Skill besteht aus Anweisungen, denen Ihr Modell folgt.

Cloudflare (DNS, Tunnels, Access)

Cloudflare is the front door: the DNS for your domains, and the tunnels that publish homelab services without opening a port. Everything goes through:

hh cloudflare <op> [alias] [args]

hh cf also works. The alias can be omitted when only one account is registered. hh list shows it with platform cloudflare and an ACCESS column saying whether its token is read-only or READ/WRITE.

Why this exists, and when it is the right tool

hh run <host> "cloudflared tunnel list" asks the daemon what it thinks. That tells you nothing when the host is down - which is exactly when someone reports that the service is unreachable from outside. hh cloudflare tunnels asks Cloudflare's edge, which knows whether it still has connections, and answers either way.

Know the model before you change anything

capabilities/cloudflare.md opens with what these objects are and how they relate. The three that get conflated:

A tunnel, a DNS record, and an Access application are independent. A hostname is published only when BOTH an ingress rule and a CNAME to <tunnel-id>.cfargotunnel.com exist; either alone looks like a fault and is not. Access sits in front of a hostname regardless of how it is served, so "behind a tunnel" and "behind Access" are different claims - do not report one as the other.

And the one that cannot be undone: turning a proxied record dns-only publishes the origin address to anyone watching. Making it proxied again does not unsee it.

Start here

hh cloudflare summary       # tunnels total/healthy, any that are down,
                            # zones and any not active
hh cloudflare tunnels       # per-tunnel status, connection count, edge
                            # colos, cloudflared version

A tunnel that is not healthy is the most common single cause of "it works at home but not from outside", so summary names those rather than counting them.

Reading further

hh cloudflare account                      # which account this alias means
hh cloudflare zones                        # domains this token can see
hh cloudflare records <zone> [substring]   # DNS records
hh cloudflare tunnel-show <tunnel>         # connectors AND the ingress
                                           # table: which hostname maps to
                                           # which local service
hh cloudflare access-apps                  # Zero Trust Access applications
hh cloudflare get /client/v4/...           # anything else, read-only

tunnel-show is usually the op you want when tracing "why does this hostname not reach my service": it shows the hostname -> service mapping as Cloudflare holds it.

A locally managed tunnel keeps its ingress in the cloudflared config file on the host instead of at Cloudflare. tunnel-show says so when that is the case, and the file is what to read:

hh run <host> "cat /etc/cloudflared/config.yml"

If an account-scoped op says it cannot find an account

tunnels, tunnel-show and access-apps are account-scoped and need to know which account to address. Cloudflare's GET /accounts only lists accounts when the token carries Account Settings: Read, and without it the endpoint answers with an empty list rather than an error - which reads like "you have no accounts" and is never true of a working token.

HomelabHero works around it by reading the account off one of the zones, so a token with Zone: Read resolves fine either way. hh cloudflare account says which account it settled on and where it came from - run that first when an account-scoped op misbehaves.

If it genuinely cannot resolve one (a tunnel-only token that can see no zones), the fix is either adding Account Settings: Read to the token, or writing ACCOUNT=<id> into the alias's registry entry. The error says both. Zone-scoped ops (zones, records) never need it.

Changing things

These exist only when the alias was registered with an Edit token. With a Read token they refuse immediately and explain why, without making a request.

hh cloudflare dns-set <zone> <type> <name> <content> [ttl] <on|off>
hh cloudflare dns-proxy <zone> <name> on|off
hh cloudflare dns-delete <zone> <name> [type]
hh cloudflare tunnel-route <tunnel> <hostname> <service>
hh cloudflare tunnel-unroute <tunnel> <hostname>
hh cloudflare purge <zone>
hh cloudflare access-revoke <app>

dns-set creates the record if it is absent and updates it if it is present, so it is the one op for "point this name at that". A bare label is expanded against the zone: home in zone example.com means home.example.com.

Proxying is required for A, AAAA and CNAME, not defaulted, and the op refuses without it. Both settings are ordinary and the right one depends on the record:

  • a CNAME to <tunnel-id>.cfargotunnel.com must be on - a tunnel hostname does not work unproxied;
  • a record pointing at a reverse proxy the user runs themselves (nginx proxy manager, Caddy, Traefik) is usually off, so their proxy terminates the connection rather than Cloudflare.

Do not guess on the user's behalf. If the target is a cfargotunnel.com name it is on; otherwise ask what the record is for rather than assuming.

The rules for writing

Anything destructive refuses without --force, and that refusal is the confirmation step. It prints exactly what would change. Show the user what it said, in your own words, and let them decide before re-running with --force.

That applies to: dns-delete, tunnel-unroute, access-revoke, dns-proxy off (which publishes the origin address in public DNS), and to any dns-set that would repoint a record currently aimed at this machine.

Remember DNS is cached. A change does not take effect everywhere at once, and a wrong one outlives the moment it was made. Say so when it matters.

Publishing a service takes two steps, not one. tunnel-route adds the ingress rule; the hostname still needs a CNAME to <tunnel-id>.cfargotunnel.com before anything resolves. The command prints the exact dns-set to follow it with. Do not report a service as published after only the first step.

There is no generic write op, and the read escape hatch refuses the handful of endpoints that return credentials rather than describe them - the tunnel token above all. If someone needs that token, it comes from the Cloudflare dashboard or from cloudflared tunnel token on a host they trust, never through an agent session.

What Cloudflare can and cannot see

It knows the edge: DNS as the world resolves it, whether a tunnel has live connections, what Access is protecting. It does NOT know whether the service behind the tunnel is healthy - a tunnel can be perfectly healthy and the app behind it returning 502 all day.

Pair with netbird-ops for the overlay, network-diag for DNS resolution and the hosts themselves, and docker-stack-ops for the service behind the tunnel.

Cloudflare may not be the only way in. If the account also runs NetBird BYOP (its own reverse proxy), some services are published through that instead. A service missing from tunnel-show is not necessarily unpublished - check hh netbird services before saying so.

Useful order when something is unreachable from outside:

  1. hh cloudflare summary - is the tunnel even up?
  2. hh cloudflare tunnel-show <tunnel> - is the hostname routed, and to where?
  3. hh cloudflare records <zone> <name> - does the DNS record exist and point at the tunnel?
  4. Then the service itself on the host, via docker-stack-ops.

Recording what you learn

Which services sit behind which tunnel, and which hostnames they answer on, belong in infra/network.md. That file already has a place for it.

Häufig gestellte Fragen

Was macht der KI-Skill Cloudflare Ops?

Read and manage Cloudflare: DNS records for your domains, Cloudflare Tunnels and their ingress rules, connector health, and Zero Trust Access applications. Use this whenever the user asks about a domain or DNS record, whether a service is reachable from outside, a tunnel being up or down, cloudflared, publishing a service to the internet, an Access application or who can sign in to one, or asks to add, repoint or remove a DNS record or a tunnel route. This integration CAN change DNS and tunnels when registered with an Edit token; destructive operations refuse to run without --force.

Warum Cloudflare Ops in TypingMind nutzen?

Weil Sie den Skill einmal installieren und mit jedem Modell verwenden können. Cloudflare Ops besteht aus reinem Markdown statt aus anbieterspezifischem Code. So funktioniert derselbe Skill mit GPT-5, Claude, Gemini, Grok oder einem lokalen Modell – und Sie können das Modell mitten im Chat wechseln, ohne dass der Skill seine Funktion verliert. TypingMind verwendet Ihre eigenen API-Schlüssel. Sie bezahlen die Anbieter daher direkt statt über ein Abonnement pro Nutzerplatz, und Ihre Skills und Chats bleiben in Ihrem eigenen Speicher.

Wie installiere ich Cloudflare Ops in TypingMind?

Öffnen Sie in TypingMind Plugins → Skills → Von GitHub installieren und fügen Sie https://github.com/serversathome/homelabhero/tree/main/ops/.claude/skills/cloudflare-ops ein. TypingMind liest die Datei SKILL.md und installiert den Skill, den Sie für jeden Chat einzeln aktivieren können.

Welche KI-Modelle können Cloudflare Ops nutzen?

Jedes Modell, das Sie mit TypingMind verbinden. KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher können GPT, Claude, Gemini, Grok und lokale Modelle diesen Skill laden, wenn eine Anfrage dazu passt.

Wie viele KI-Modelle kann ich mit Cloudflare Ops verwenden?

So viele Sie möchten. In TypingMind können Sie Cloudflare Ops mit jedem Modell verwenden, das Skills unterstützt, etwa mit GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama. Dabei nutzen Sie Ihre eigenen API-Schlüssel.

Ist der KI-Skill Cloudflare Ops kostenlos?

Der Skill wird von serversathome auf GitHub veröffentlicht. Prüfen Sie im Repository, ob dort Lizenzbedingungen angegeben sind. Sie bezahlen nur Ihren eigenen KI-Anbieter für die verwendeten Token.

Was sind KI-Skills?

Ein KI-Skill ist ein wiederverwendbares Anweisungspaket, das einem KI-Modell vermittelt, wie es eine bestimmte Aufgabe erledigt. Es folgt dem offenen Format Agent Skills: Die Datei SKILL.md enthält den Namen und die Beschreibung des Skills. Hinzu kommen bei Bedarf Skripte, Vorlagen oder Referenzdateien für das Modell. Das Modell liest die Anweisungen nur, wenn Ihre Anfrage zum Skill passt. Ein installierter Skill verursacht daher erst Kosten, wenn er verwendet wird.

Wie unterscheiden sich KI-Skills von Plugins oder MCP-Servern?

Ein Plugin oder MCP-Server stellt einem Modell neue aufrufbare Tools bereit – Code, der auf einem System ausgeführt wird und ein Ergebnis zurückgibt. Ein KI-Skill vermittelt dem Modell stattdessen Wissen und Vorgehensweisen: wie es eine Aufgabe angeht, welche Schritte es befolgt und wie eine gute Ausgabe aussieht. Skills bestehen aus reinem Markdown und kommen daher ohne Server, API-Schlüssel und Laufzeitumgebung aus. Sie funktionieren mit jedem Modell.

Alle anzeigen

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇