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.
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/cloudflareRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/civitai/civitai /tmp/civitai && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/civitai/.claude/skills/cloudflare ~/.gemini/antigravity-cli/skills/cloudflareAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
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
ANo 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 →Retrieves lab biomarker results and clinician notes from Function Health through its FHIR API. It is for people who want an AI assistant to review their own lab history and notes.
Gives an AI assistant a methodology for finding and exploiting privilege escalation weaknesses on Windows systems during authorized penetration tests. It is for security testers and defenders validating escalation paths.
Guides the assistant through designing, debugging and hardening GitHub Actions CI/CD workflows. It is aimed at teams that run production pipelines on GitHub.
Develops evidence-backed structural security hardening proposals from disclosures, findings, source code, or Codex Security scans. It is for teams that need systemic fixes and architectural tradeoffs.
Claude Security scans code for security issues with Claude Code. It covers whole repositories, branch or pull request diffs, single commits, and existing findings from SARIF files or earlier reports.
Turns vulnerability notes, disclosure reports, PoCs, source code, or Codex Security findings into self-contained vulnerability reports. Built for security researchers who need claims the evidence supports.
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.
