Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add GoldenWing-360/claude-security-skills --skill cloudflare-hardeninggit clone --depth 1 https://github.com/GoldenWing-360/claude-security-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/goldenwing-360/claude-security-skills/cloudflare-hardening)<a href="https://agentmods.dev/skills/goldenwing-360/claude-security-skills/cloudflare-hardening"><img src="https://agentmods.dev/badge/skills/goldenwing-360/claude-security-skills/cloudflare-hardening/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/goldenwing-360/claude-security-skills/cloudflare-hardening"><img src="https://agentmods.dev/badge/skills/goldenwing-360/claude-security-skills/cloudflare-hardening.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00092 | $0.02274 |
| Opus 5.5 | $0.00037 | $0.00910 |
| Sonnet 5.5 | $0.00018 | $0.00455 |
| Haiku 4.5 | $0.00009 | $0.00227 |
Grade A, and why
cloudflare-hardening scanned grade A with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Asks for rootlowPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
sudo ufw delete allow 80/tcp Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
for ip in $(curl -s https://www.cloudflare.com/ips-v4); do How it starts
The opening of the file, as written. The whole thing — 212 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Cloudflare Hardening
Cloudflare gives you a powerful edge layer for free, but its defaults are conservative — most of the protection is opt-in. This skill walks the security-relevant settings and the ones that catch people out.
Applies to Cloudflare's main product (DNS + Proxy + WAF + Workers/Pages/R2). Not Magic Transit / Spectrum specifics.
When to invoke
- Domain just onboarded to Cloudflare
- Site behind CF was scraped, brute-forced, or DDoSed
- Origin IP may be exposed (showed up in
dnshistory, accidentally A-recorded) - Periodic review of an existing public site
- Setting up Cloudflare Pages or R2 with a custom domain
Step 1 — Lock the account itself
Before site settings, harden the account.
- 2FA on the account with WebAuthn / hardware key, not SMS
- API tokens, not Global API Key — Global API Key has account-wide power and cannot be scoped
- Audit Logs —
Account → Audit Logshows who did what; review monthly - Members — separate humans from automation; each automation gets its own scoped token
API tokens: scope to specific zones + specific permissions. A common mistake is creating a "DNS edit" token at account level when only one zone needs it.
Step 2 — DNS and proxy posture
Zone → DNS → Records
- All public hostnames proxied (orange cloud) unless you have a specific reason for grey-cloud (e.g. mail records — MX must be grey)
- Origin IP must not be in any public DNS record — common leaks:
- Direct A record for
direct.example.comororigin.example.comleft over - MX pointing to a host on the same IP as the web origin (move mail to a separate IP/host)
- SPF/TXT records containing IP literals that match the origin
- Direct A record for
- DNSSEC — enable in
DNS → Settings. Requires DS record at the registrar. - CAA records — restrict who can issue certs for your domain. Cloudflare adds these automatically if you turn it on.
If your origin IP is known-leaked, rotate it — provider panel usually lets you re-assign. Pair with origin allowlist (next step).
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 212 lines · 92 tokens per session scan A 600a624fef54
cloudflare-hardening is a skill published in the GitHub repository GoldenWing-360/claude-security-skills (23 stars, last pushed 1mo ago), licensed MIT. It adds 92 tokens to every session and 2,274 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 2 findings (asks for root, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
cloudflare-hardening compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| cloudflare-hardeningGoldenWing-360/claude-security-skills | Skill | 23 | 1mo ago | MIT | A | 92 | Claude Code, Codex |
| cloudflare-apijezweb/claude-skills | Skill | 1.1k | 1mo ago | MIT | A | 141 | Claude Code |
| hono-api-scaffolderjezweb/claude-skills | Skill | 1.1k | 1mo ago | MIT | A | 77 | Claude Code |
| cloudflare-worker-builderjezweb/claude-skills | Skill | 1.1k | 1mo ago | MIT | A | 86 | Claude Code |
| nemoclaw-setupjezweb/claude-skills | Skill | 1.1k | 1mo ago | MIT | D | 91 | Claude Code |
| cloud-browser-automationkevinnft/ai-agent-skills | Skill | 15 | 4mo ago | MIT | B | 29 | Claude Code, Codex |
| latchbio-integrationK-Dense-AI/scientific-agent-skills | Skill | 59k | 7d ago | MIT | A | 78 | Claude Code |