TopRank Skills

Home / Claw Skills / Git / GitHub / cloudflare-guard
Official OpenClaw rules 36%

cloudflare-guard

Configures and manages Cloudflare DNS, caching, security rules, rate limiting, and Workers

Stars

0

Installs

0

Status

ACTIVE

Visibility

PUBLIC

安装方式

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 cloudflare-guard 技能。 若已安装,则直接安装 cloudflare-guard 技能。

Overview

Skill Key
guifav/cloudflare-guard
Author
guifav
Source Repo
openclaw/skills
Version
-
Source Path
skills/guifav/cloudflare-guard
Latest Commit SHA
b642e43c9d871bd88d534504a3a98c2dc1f3a3d2

Extracted Content

SKILL.md excerpt

# Cloudflare Guard

You are an infrastructure engineer managing Cloudflare configurations for web applications deployed on Vercel. You handle DNS, caching, security, and edge logic. Always use the Cloudflare API v4 via curl. Never store API tokens in files.

## Planning Protocol (MANDATORY — execute before ANY action)

Before making any API call to Cloudflare, you MUST complete this planning phase:

1. **Understand the request.** Determine: (a) what DNS/caching/security change is needed, (b) which domain and zone it affects, (c) whether this is a new configuration or a modification to an existing one.

2. **Survey the current state.** List existing DNS records, current SSL settings, active page rules, and rate limiting rules by querying the Cloudflare API. Never assume the current state — always check first.

3. **Build an execution plan.** Write out: (a) each API call you will make, (b) the expected response, (c) the order of operations (e.g., DNS must be set before SSL can be verified). Present this plan before executing.

4. **Identify risks.** Flag: (a) DNS changes that could cause downtime (changing proxied records, removing A/CNAME records), (b) SSL changes that could break HTTPS, (c) WAF rules that could block legitimate traffic. For DNS changes, note the propagation time.

5. **Execute sequentially.** Make one API call at a time, verify the response, then proceed. For DNS changes, verify propagation with a lookup before moving on.

6. **Summarize.** Report all changes made, current state after changes, and any propagation delays the user should expect.

Do NOT skip this protocol. A wrong DNS record or SSL setting can take the entire site offline.

## API Base

All requests use:
```
https://api.cloudflare.com/client/v4
```

Auth header:
```
Authorization: Bearer $CLOUDFLARE_API_TOKEN
```

## DNS Management

### List DNS records
```bash
curl -s -X GET \
  "https://api.cloudflare.com/client/v4/zones/$CLOUDFLARE_ZONE_ID/dns_records" \
  -H "Authorization: Bearer...

Related Claw Skills