xieyuanqing

Cloudflare Dns Updater

IT運用・セキュリティv0.1.1
作者:xieyuanqing更新日 2026-05-17全 2 バージョン · 最新版の公開日 2026-02-06cloudflare-dns-updater@clawhub_xieyuanqing/cloudflare-dns-updater
サーバー運用

AlphaMoatによると、2026-09時点でCloudflare Dns Updaterのダウンロード数は2,856、スター数は0で、AIスキル全体5,078件中3,830位、IT運用・セキュリティでは264件中244位です。

インストール数
129
ダウンロード数
2856
スター数
-
総合順位
#3,830
全体の上位 76% · IT運用・セキュリティの上位 93%
プラットフォームインストール数ダウンロード数スター数コメント
ClawHub ↗852697--
SkillHub ↗1292856-—

プラットフォームごとに集計方法と集計時点が異なります。

このスキルでできること

DNS編集権限を持つAPIトークンで、指定したホスト名をIPアドレスへ向け、プロキシを有効にします。ゾーン、レコード名、接続先を誤るとトラフィックが誤った場所に向かう可能性があります。対象ゾーン、ホスト名、サーバーIPを別途確認し、トークン権限を必要なゾーンに限定してください。トークンをログやプロンプトに含めないでください。

資料公開日 2026-10-29

できること

  • サブドメインを指定サーバーのアドレスに向ける
  • CloudflareのプロキシDNS Aレコードを更新する
  • デプロイ自動化で確認済みのDNS変更を適用する

使う場面

  • 利用者がCloudflare DNSの変更を明示的に依頼したとき
  • 対象ゾーン、レコード、サーバーIPを独立して確認できるとき
  • APIトークンを必要なゾーンに限定できるとき

プロンプト例

スキルのドキュメントをもとに生成した例であり、実際の実行結果ではありません。

変更するゾーン、レコード名、対象IP、プロキシ設定を提示してください。トークンを読み取ったり表示したりせず、私が確認して承認するまで変更を適用しないでください。

月次の推移

ダウンロード数2856
1528224129542026-03 · ダウンロード数 16262026-05 · ダウンロード数 21072026-06 · ダウンロード数 22412026-07 · ダウンロード数 24322026-08 · ダウンロード数 26022026-09 · ダウンロード数 285626-0326-09
スター数-
0112026-03 · スター数 -2026-05 · スター数 -2026-06 · スター数 -2026-07 · スター数 -2026-08 · スター数 -2026-09 · スター数 -26-0326-09

2026-09 から集計方法を変更し、同名スキルを作者ごとに分けて集計し、全スキルを対象にしました。破線は変更前の月で、変更後のデータとは直接比較せず、変更をまたぐ増減も計算していません。

月ダウンロード数前月比スター数
2026-092856—-
2026-082602+7.0%-
2026-072432+8.5%-
2026-062241+6.4%-
2026-052107—-
2026-031626—-

SKILL.md 原文

作者が公開した元のファイルをテキストのまま表示しています。AlphaMoat による編集や審査はしていません。リンクはクリックできません。コマンドは内容を確認してから実行してください。取得日 2026-10-23。

3.5 KB・ClawHub v0.1.1
---
name: cloudflare-dns-updater
description: "Creates or updates a proxied Cloudflare DNS A record. Use when you need to programmatically point a subdomain to an IP address. Takes record name, zone name, and IP address as input."
metadata:
  openclaw:
    requires:
      bins: ["python3"]
      python: ["requests"]
---
すべて表示(全 80 行)
# Cloudflare DNS Updater

This skill creates or updates a Cloudflare DNS 'A' record, pointing it to a specified IP address and ensuring it is proxied. It is a foundational tool for automating service deployment and DNS management.

## Pre-requisites

This skill requires the `CLOUDFLARE_API_TOKEN` environment variable to be set with a valid Cloudflare API Token that has DNS edit permissions.

The model should verify this prerequisite before attempting to use the skill. If the variable is not set, it should inform the user and stop.

## Core Action: `scripts/update-record.py`

The core logic is handled by the `update-record.py` script.

### **Inputs (Command-Line Arguments)**

- `--zone`: (Required) The root domain name. Example: `example.com`
- `--record`: (Required) The name of the record (subdomain). Use `@` for the root domain itself. Example: `www`
- `--ip`: (Required) The IPv4 address to point the record to.
- `--proxied`: (Optional) Boolean (`true` or `false`) to set the Cloudflare proxy status. Defaults to `true`.

### **Output**

The script will print its progress to stdout.
- On success, it prints a confirmation message and a JSON object of the created/updated record.
- On failure, it prints a descriptive error message to stderr and exits with a non-zero status code.

### **Execution Workflow**

To use this skill, follow these steps:

1.  **Verify Prerequisites**: Check if the `CLOUDFLARE_API_TOKEN` environment variable is set. If not, notify the user and abort.
2.  **Gather Inputs**: From the user's request, identify the `zone`, `record` name, and target `ip`.
3.  **Construct Command**: Build the full shell command to execute the script.
4.  **Execute Command**: Run the command using the `exec` tool.
5.  **Report Result**:
    - If the command succeeds, report the successful creation or update to the user.
    - If the command fails, analyze the error message from stderr and report the issue to the user in a clear, understandable way.

### **Example Usage**

**User Request:** "Point www.example.com to the server's public IP."

**AI's Thought Process:**
1.  The user wants to update a DNS record on Cloudflare. The `cloudflare-dns-updater` skill is perfect for this.
2.  I will use the `update-record.py` script.
3.  I need the zone, record name, and IP.
    - Zone: `example.com`
    - Record: `www`
    - IP: I need to find the server's public IP first. I can use `curl -s https://ipv4.icanhazip.com/`.
4.  I will first get the IP, then construct the final command.
5.  I will execute the command and report the outcome.

**AI's Actions:**
```bash
# Step 1: Get IP
PUBLIC_IP=$(curl -s https://ipv4.icanhazip.com/)

# Step 2: Run the skill's script
python3 skills/cloudflare-dns-updater/scripts/update-record.py \
  --zone "example.com" \
  --record "www" \
  --ip "$PUBLIC_IP"
```

### **Failure Strategy**

- **If `CLOUDFLARE_API_TOKEN` is not set:** Do not attempt to run the script. Inform the user that the required environment variable is missing and needs to be configured by the administrator.
- **If the script exits with an error:** Read the error message from stderr. Common errors include invalid API token, incorrect zone name, or insufficient permissions. Report the specific error to the user.

IT運用・セキュリティの人気スキル

データ月:2026-09 · ダウンロード数、スター数、インストール数は公開スキルレジストリ(ClawHub、SkillHub)から月単位で集計しています。詳しくはデータの方法論をご覧ください。