/cloudflare
Query Cloudflare HTTP analytics AND manage security rules across zones. Traffic investigation (top IPs, paths, user agents, bot scores, timelines, scrape analysis) plus export and port of Custom Rules + Rate Limit Rules between zones (e.g. civitai.com -> civitai.red).
Claude Code
$ npx -y skills add civitai/civitai --skill cloudflare --agent claude-code
Codex
$ npx skills add civitai/civitai --skill cloudflare -a codex -y
Cursor
$ npx skills add civitai/civitai --skill cloudflare -a cursor -y
Gemini CLI
$ npx skills add civitai/civitai --skill cloudflare -a gemini-cli -y
GitHub Copilot
$ npx skills add civitai/civitai --skill cloudflare -a github-copilot -y
OpenCode
$ npx skills add civitai/civitai --skill cloudflare -a opencode -y
Windsurf
$ npx skills add civitai/civitai --skill cloudflare -a windsurf -y
SKILL.md
cloudflare.SKILL.mdname: cloudflare
description: Query Cloudflare HTTP analytics AND manage security rules across zones. Traffic investigation (top IPs, paths, user agents, bot scores, timelines, scrape analysis) plus export and port of Custom Rules + Rate Limit Rules between zones (e.g. civitai.com -> civitai.red).
Cloudflare Analytics + Rule Management
Query Cloudflare HTTP traffic analytics and manage security rules (Custom Rules, Rate Limit Rules) across zones. The `CF_API_TOKEN` in `.env` needs **Zone Analytics: Read** for analytics, and **Zone WAF: Edit** for rule management.
Running Commands
node .claude/skills/cloudflare/query.mjs <command> [options]
Commands
| Command | Description | |---------|-------------| | `top-clients` | Top IPs by request count | | `top-paths` | Top request paths | | `top-agents` | Top user agents | | `timeline` | Requests per minute timeline (bar chart) | | `ip <addr>` | Full breakdown for a specific IP (paths, UAs, statuses, geo) | | `scrape` | Full scrape analysis — top IPs, paths, UAs + detail on high-volume IPs | | `bot-scores` | Bot score distribution | | `bot-clients` | Top clients with low bot scores (likely bots) | | `firewall` | Recent firewall/WAF events | | `rate-limits` | Current rate limit rules | | `waf-rules` | Current WAF custom rules | | `list-zones` | List all accessible zones (id, name, plan) | | `export-rules <zone>` | Dump Custom Rules + Rate Limit Rules from a zone | | `port-rules` | Copy rules between zones (dry-run by default) |
Flags
| Flag | Description | |------|-------------| | `--start`, `--from` | Start time: relative (`-1h`, `-2d`, `-30m`), time (`16:41`), or ISO datetime | | `--end`, `--to` | End time (default: now) | | `--limit` | Max results (default: 20) | | `--path` | Filter by path pattern using SQL LIKE (`/api/%`, `/api/trpc/%`) | | `--ip` | Filter by client IP | | `--score` | Max bot score for `bot-clients` (default: 10) | | `--source`, `--target` | Zone name or id (used by `port-rules`) | | `--phase` | `custom`, `ratelimit`, or `all` (default) for rule commands | | `--out` | Write `export-rules` output to a JSON file | | `--skip-disabled` | When porting, skip rules with `enabled: false` | | `--skip-hosts` | Comma-separated list of hosts; rules referencing them are skipped | | `--rewrite-host FROM:TO` | Replace `"FROM"` with `"TO"` in rule expressions during port | | `--only` | Comma-separated substrings; only port rules whose description matches | | `--pro-compat` | Strip Enterprise-only syntax to fit Pro/Free target zones (see below) | | `--apply` | Actually write. Without this, `port-rules` is a dry run |
Only `--skip-disabled`, `--pro-compat` and `--apply` carry no value; each also accepts an explicit `--apply true` / `--apply false`. Every other flag must be given one — a bare flag, or one whose value starts with `--`, is an error rather than the string `'true'` it used to become. Use `--flag=value` for a value that legitimately starts with `--`.
Examples
# Full scrape analysis for a time window
node .claude/skills/cloudflare/query.mjs scrape --start "2026-03-24 16:41" --end "2026-03-24 19:08"
# Top IPs hitting API endpoints in the last 2 hours
node .claude/skills/cloudflare/query.mjs top-clients --start -2h --path "/api/%"
# What paths is a specific IP hitting?
node .claude/skills/cloudflare/query.mjs ip 1.2.3.4 --start -6h
# Traffic timeline for API/trpc routes
node .claude/skills/cloudflare/query.mjs timeline --start -1h --path "/api/trpc/%"
# Find likely bots (low bot score) hitting API
node .claude/skills/cloudflare/query.mjs bot-clients --start -3h --score 5 --path "/api/%"
# Top user agents on search-related paths
node .claude/skills/cloudflare/query.mjs top-agents --start -2h --path "/api/trpc/image%"
# Check current rate limit rules
node .claude/skills/cloudflare/query.mjs rate-limits
# List all zones (id, name, plan)
node .claude/skills/cloudflare/query.mjs list-zones
# Export civitai.com rules (custom + rate limit) to a file
node .claude/skills/cloudflare/query.mjs export-rules civitai.com --out com-rules.json
# Dry-run a port from civitai.com to civitai.red — preview only
node .claude/skills/cloudflare/query.mjs port-rules \
--source civitai.com --target civitai.red \
--skip-disabled \
--skip-hosts api.civitai.com,metrics.civitai.com,education.civitai.com,image.civitai.com,meilisearch-v1-9.civitai.com,meilisearch-v1-6.civitai.com,meilisearch-metrics.civitai.com \
--rewrite-host civitai.com:civitai.red \
--pro-compat
# Same thing, but actually write it (REPLACES target rulesets wholesale)
node .claude/skills/cloudflare/query.mjs port-rules \
--source civitai.com --target civitai.red \
--skip-disabled \
--skip-hosts api.civitai.com,metrics.civitai.com,education.civitai.com,image.civitai.com,meilisearch-v1-9.civitai.com,meilisearch-v1-6.civitai.com,meilisearch-metrics.civitai.com \
--rewrite-host civitai.com:civitai.red \
--pro-compat \
--apply
# Port only specific rules (match by description substring)
node .claude/skills/cloudflare/query.mjs port-rules \
--source civitai.com --target civitai.red --phase ratelimit \
--only "Global Limit,Rate limit trpc (No Regex)" \
--rewrite-host civitai.com:civitai.red \
--pro-compat --apply
Porting Security Rules Between Zones
`port-rules` replaces the target zone's Custom Rules ruleset and/or Rate Limit Rules entrypoint with a filtered + transformed copy of the source zone's rules. It **overwrites** the target ruleset — existing rules on the target are wiped.
What gets ported
The Cloudflare "Security Rules" surface maps to two phase entrypoints:
| Phase | UI name | Flag value | |-------|---------|-----------| | `http_request_firewall_custom` | Custom Rules | `--phase custom` | | `http_ratelimit` | Rate Limit Rules | `--phase ratelimit` |
Managed Rules, IP Access Rules, Zone Lockdown, and User Agent Blocking are **not** ported.
Filters
Without filters, every rule fr
Read more
name: cloudflare description: Query Cloudflare HTTP analytics AND manage security rules across zones. Traffic investigation (top IPs, paths, user agents, bot scores, timelines, scrape analysis) plus export and port of Custom Rules + Rate Limit Rules between zones (e.g. civitai.com -> civitai.red).
Cloudflare Analytics + Rule Management
Query Cloudflare HTTP traffic analytics and manage security rules (Custom Rules, Rate Limit Rules) across zones. The `CF_API_TOKEN` in `.env` needs **Zone Analytics: Read** for analytics, and **Zone WAF: Edit** for rule management.
Running Commands
node .claude/skills/cloudflare/query.mjs <command> [options]
Commands
| Command | Description | |---------|-------------| | `top-clients` | Top IPs by request count | | `top-paths` | Top request paths | | `top-agents` | Top user agents | | `timeline` | Requests per minute timeline (bar chart) | | `ip <addr>` | Full breakdown for a specific IP (paths, UAs, statuses, geo) | | `scrape` | Full scrape analysis — top IPs, paths, UAs + detail on high-volume IPs | | `bot-scores` | Bot score distribution | | `bot-clients` | Top clients with low bot scores (likely bots) | | `firewall` | Recent firewall/WAF events | | `rate-limits` | Current rate limit rules | | `waf-rules` | Current WAF custom rules | | `list-zones` | List all accessible zones (id, name, plan) | | `export-rules <zone>` | Dump Custom Rules + Rate Limit Rules from a zone | | `port-rules` | Copy rules between zones (dry-run by default) |
Flags
| Flag | Description | |------|-------------| | `--start`, `--from` | Start time: relative (`-1h`, `-2d`, `-30m`), time (`16:41`), or ISO datetime | | `--end`, `--to` | End time (default: now) | | `--limit` | Max results (default: 20) | | `--path` | Filter by path pattern using SQL LIKE (`/api/%`, `/api/trpc/%`) | | `--ip` | Filter by client IP | | `--score` | Max bot score for `bot-clients` (default: 10) | | `--source`, `--target` | Zone name or id (used by `port-rules`) | | `--phase` | `custom`, `ratelimit`, or `all` (default) for rule commands | | `--out` | Write `export-rules` output to a JSON file | | `--skip-disabled` | When porting, skip rules with `enabled: false` | | `--skip-hosts` | Comma-separated list of hosts; rules referencing them are skipped | | `--rewrite-host FROM:TO` | Replace `"FROM"` with `"TO"` in rule expressions during port | | `--only` | Comma-separated substrings; only port rules whose description matches | | `--pro-compat` | Strip Enterprise-only syntax to fit Pro/Free target zones (see below) | | `--apply` | Actually write. Without this, `port-rules` is a dry run |
Only `--skip-disabled`, `--pro-compat` and `--apply` carry no value; each also accepts an explicit `--apply true` / `--apply false`. Every other flag must be given one — a bare flag, or one whose value starts with `--`, is an error rather than the string `'true'` it used to become. Use `--flag=value` for a value that legitimately starts with `--`.
Examples
# Full scrape analysis for a time window node .claude/skills/cloudflare/query.mjs scrape --start "2026-03-24 16:41" --end "2026-03-24 19:08" # Top IPs hitting API endpoints in the last 2 hours node .claude/skills/cloudflare/query.mjs top-clients --start -2h --path "/api/%" # What paths is a specific IP hitting? node .claude/skills/cloudflare/query.mjs ip 1.2.3.4 --start -6h # Traffic timeline for API/trpc routes node .claude/skills/cloudflare/query.mjs timeline --start -1h --path "/api/trpc/%" # Find likely bots (low bot score) hitting API node .claude/skills/cloudflare/query.mjs bot-clients --start -3h --score 5 --path "/api/%" # Top user agents on search-related paths node .claude/skills/cloudflare/query.mjs top-agents --start -2h --path "/api/trpc/image%" # Check current rate limit rules node .claude/skills/cloudflare/query.mjs rate-limits # List all zones (id, name, plan) node .claude/skills/cloudflare/query.mjs list-zones # Export civitai.com rules (custom + rate limit) to a file node .claude/skills/cloudflare/query.mjs export-rules civitai.com --out com-rules.json # Dry-run a port from civitai.com to civitai.red — preview only node .claude/skills/cloudflare/query.mjs port-rules \ --source civitai.com --target civitai.red \ --skip-disabled \ --skip-hosts api.civitai.com,metrics.civitai.com,education.civitai.com,image.civitai.com,meilisearch-v1-9.civitai.com,meilisearch-v1-6.civitai.com,meilisearch-metrics.civitai.com \ --rewrite-host civitai.com:civitai.red \ --pro-compat # Same thing, but actually write it (REPLACES target rulesets wholesale) node .claude/skills/cloudflare/query.mjs port-rules \ --source civitai.com --target civitai.red \ --skip-disabled \ --skip-hosts api.civitai.com,metrics.civitai.com,education.civitai.com,image.civitai.com,meilisearch-v1-9.civitai.com,meilisearch-v1-6.civitai.com,meilisearch-metrics.civitai.com \ --rewrite-host civitai.com:civitai.red \ --pro-compat \ --apply # Port only specific rules (match by description substring) node .claude/skills/cloudflare/query.mjs port-rules \ --source civitai.com --target civitai.red --phase ratelimit \ --only "Global Limit,Rate limit trpc (No Regex)" \ --rewrite-host civitai.com:civitai.red \ --pro-compat --apply
Porting Security Rules Between Zones
`port-rules` replaces the target zone's Custom Rules ruleset and/or Rate Limit Rules entrypoint with a filtered + transformed copy of the source zone's rules. It **overwrites** the target ruleset — existing rules on the target are wiped.
What gets ported
The Cloudflare "Security Rules" surface maps to two phase entrypoints:
| Phase | UI name | Flag value | |-------|---------|-----------| | `http_request_firewall_custom` | Custom Rules | `--phase custom` | | `http_ratelimit` | Rate Limit Rules | `--phase ratelimit` |
Managed Rules, IP Access Rules, Zone Lockdown, and User Agent Blocking are **not** ported.
Filters
Without filters, every rule fr
Other skills on civitai.
More skills from other plugins.
hf-cli
Hugging Face Hub CLI (`hf`) for downloading, uploading, and managing models, datasets, spaces, buckets, repos, papers, jobs, and…
feast-architecture
Internals of the Feast codebase — how each component works, where the key abstractions live, and the data flow through the…
accessing-mlflow
Query and browse evaluation results stored in MLflow. Use when the user wants to look up runs by invocation ID, compare metrics…
Questions about cloudflare.
- Which coding agents can use cloudflare?
- cloudflare installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.

