Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

cloudflare

Skill by civitai

Query Cloudflare HTTP traffic analytics and manage security rules across zones. Built for investigating scraping and bot traffic and for copying Custom Rules and Rate Limit Rules between zones.

  • Score 84
  • 7.3k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install cloudflare

Built from the published package, never by AI.

git clone --depth 1 https://github.com/civitai/civitai /tmp/civitai && mkdir -p ~/.claude/skills && cp -r /tmp/civitai/.claude/skills/cloudflare ~/.claude/skills/cloudflare

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install cloudflare in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The cloudflare skill queries Cloudflare HTTP traffic analytics from the command line. It covers top IPs, paths and user agents, bot score distribution, request timelines, and firewall events. A full scrape analysis combines these views and adds detail on high-volume IPs. It can also list current rate limit and WAF custom rules. Commands run through a Node script called query.mjs and accept time windows and path or IP filters.

The skill can export Custom Rules and Rate Limit Rules from one zone and port them to another, such as civitai.com to civitai.red. Porting is a dry run unless the apply flag is passed, and it replaces the target ruleset. The API token needs Zone Analytics Read for analytics and Zone WAF Edit for rule management. It is aimed at site operators who investigate traffic and manage security rules across zones.

Written from the project's SKILL.md and checked against it.

What it can do

  • top-clientsLists top IPs by request count.
  • top-paths and top-agentsLists top request paths and top user agents.
  • timelineShows requests per minute as a bar chart.
  • scrapeRuns a full scrape analysis with detail on high-volume IPs.
  • bot-clientsFinds top clients with low bot scores, which are likely bots.
  • firewallShows recent firewall and WAF events.
  • export-rulesDumps Custom Rules and Rate Limit Rules from a zone to a JSON file.
  • port-rulesCopies rules between zones with filters, host rewrites and a dry run by default.

What you need

  • Cloudflare API token in a .env file
  • Zone Analytics Read permission for analytics
  • Zone WAF Edit permission for rule management
  • Node.js to run query.mjs

Try asking

  • Show the top IPs hitting /api/ paths in the last 2 hours.
  • Find likely bots with a bot score under 5 on API routes.
  • Export civitai.com custom and rate limit rules to a JSON file.

Good to know

  • port-rules replaces the target zone's ruleset wholesale.
  • Managed Rules, IP Access Rules, Zone Lockdown and User Agent Blocking are not ported.
  • Target plans cap the number of rules per phase, so large ports can fail.
  • Rule refs are stripped on write, so later ports replace rules rather than merging.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .claude/skills/cloudflare/SKILL.md, .claude/skills/cloudflare/apply-redirects.mjs, .claude/skills/cloudflare/parse-flags.mjs, .claude/skills/cloudflare/query.mjs. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md9 KB
  • apply-redirects.mjs4 KB
  • parse-flags.mjs2 KB
  • query.mjs27 KB

Alternatives to cloudflare

All alternatives →

Compare with function_health, windows-privilege-escalation or github-actions-advanced

cloudflare: common questions

Does this skill change my Cloudflare rules?

Only when port-rules runs with the apply flag. Without it, port-rules is a dry run. When applied, it overwrites the target zone's ruleset.

Which API token permissions does it need?

Zone Analytics Read is needed for traffic analytics. Zone WAF Edit is needed for managing security rules.

Which rule types can it copy between zones?

It copies Custom Rules and Rate Limit Rules. The source says Managed Rules, IP Access Rules, Zone Lockdown and User Agent Blocking are not ported.

How do I install cloudflare?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is cloudflare free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is cloudflare safe to use?

It scores 84 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to cloudflare?

Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.

cloudflare Install

Add to stack

Loading.