cloudflare-hygiene

cloudflare-hygiene is a skill for Claude Code, Codex from pivoshenko/pivoshenko.ai. It costs 220 tokens per session (2,540 once invoked), scanned A, original, MIT.

A read-only audit workflow for Cloudflare websites and domains, checking connection security, delivery settings, DNS records, caching, and protection features.

In plain words
What is it for?
It is for reviewing HTTPS, modern web protocols, caching, DNS email-authentication records, DNSSEC, firewalls, bot protection, and related Cloudflare settings.
Why use it?
It shows which settings are already sound and which may need attention without changing the live configuration during the audit.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: names the AskUserQuestion tool.

Good fit It is for reviewing HTTPS, modern web protocols, caching, DNS email-authentication records, DNSSEC, firewalls, bot protection, and related Cloudflare settings.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pivoshenko/pivoshenko.ai/cloudflare-hygiene
Install

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.

Any agent
npx skills add pivoshenko/pivoshenko.ai --skill cloudflare-hygiene
Clone the repo
git clone --depth 1 https://github.com/pivoshenko/pivoshenko.ai

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for cloudflare-hygiene

README.md
[![agentmods](https://agentmods.dev/badge/skills/pivoshenko/pivoshenko.ai/cloudflare-hygiene/github.svg)](https://agentmods.dev/skills/pivoshenko/pivoshenko.ai/cloudflare-hygiene)
Your own site
<a href="https://agentmods.dev/skills/pivoshenko/pivoshenko.ai/cloudflare-hygiene"><img src="https://agentmods.dev/badge/skills/pivoshenko/pivoshenko.ai/cloudflare-hygiene/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.

agentmods 80×15 button for cloudflare-hygiene

Your own site · 80×15
<a href="https://agentmods.dev/skills/pivoshenko/pivoshenko.ai/cloudflare-hygiene"><img src="https://agentmods.dev/badge/skills/pivoshenko/pivoshenko.ai/cloudflare-hygiene.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 220 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,540 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00220 $0.02540
Opus 5 $0.00110 $0.01270
Sonnet 5 $0.00044 $0.00508
Haiku 4.5 $0.00022 $0.00254

Measured 4d ago against content hash b556dc9dca1e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

cloudflare-hygiene scanned grade A with 0 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 4d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/audit.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/cloudflare-hygiene/SKILL.md · 72 lines

How it starts

The opening of the file, as written. The whole thing — 72 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Cloudflare Hygiene

Periodic posture sweep over live zones: preflight -> sweep (read-only) -> report -> confirm -> apply -> verify. Optimization = real wins only: TLS strict, HTTPS forced, modern protocols on, DNS proxied + mail auth complete. No theater (no settings churned that already match optimal, no proxying records that must stay direct). Building on Cloudflare (Workers/Pages/KV/D1) -> cloudflare, hand off.

Preflight

  1. Permission scope — this skill mutates zone settings + DNS, needs an authorized session that can write them. Probe once: GET /zones/{id}/settings/ssl. 9109/10000 (Unauthorized) -> scope too narrow, STOP and surface the upgrade path (see Access setup below) before sweeping. Don't limp through a settings-blind run.

  2. Enumerate zones — GET /zones (paginate). List name · id · plan. Warn: full sweep across N zones takes a moment.

  3. All work goes through mcp__cloudflare__execute, which runs a JS async arrow function — not a plain REST caller. Every call in this skill is shorthand for that shape:

    async () => cloudflare.request({ method: "GET", path: `/zones/${zoneId}/settings/ssl` })
    

    accountId is pre-injected; zone ids come from step 2. Returns {success, status, result, errors, result_info} — read errors[0].code for the 9109 probe, result_info.total_pages to paginate. Batch a whole category's GETs into one execute call (loop inside the function, return an object) — one round-trip per category beats one per setting. mcp__cloudflare__search (OpenAPI spec, refs resolved) for endpoint/body shapes; mcp__cloudflare__docs for product behavior.

Sweep (read-only)

Per zone, every category below — each shows in the report, clean ones as "ok", never silently dropped. GETs only here; no mutation. Full endpoint + optimal-value matrix lives in references/best-practices.md; scripts/audit.mjs is the reference read-only sweep logic (GETs + verdict classifier).

  1. SSL/TLSsettings/ssl (want strict); settings/always_use_https (on); settings/min_tls_version (≥1.2); settings/tls_1_3 (on); settings/automatic_https_rewrites (on); settings/security_header HSTS (enabled, max-age ≥6mo, includeSubDomains; preload = opt-in only).
  2. Security / WAF / botrulesets phases (http_request_firewall_managed deployed? ddos_l7 present?); settings/security_level (medium); bot_management (Bot Fight Mode on — Free tier); settings/email_obfuscation (on); settings/browser_check (on); custom firewall ruleset (http_request_firewall_custom — any bespoke rules?); rate limiting ruleset (http_ratelimit phase — login/API endpoints protected?); IP access rules / Zone Lockdown (firewall/access_rules/rules — stale allowlists?); Page Shield (page_shield — client-side/Magecart, plan-gated); Authenticated Origin Pulls (settings/tls_client_auth — mTLS edge->origin so origin only trusts CF); Leaked Credential Check (leaked-credential-checks — alerts on breached creds, plan-gated). Under Attack mode = situational (incident only), never default-on.
  3. Performance / cachingsettings/brotli (on); settings/early_hints (on); settings/cache_level (aggressive/standard); settings/browser_cache_ttl; settings/rocket_loader (case-by-case — can break JS, report don't force).
  4. Network protocolssettings/http3 (on); settings/0rtt (on, idempotent-GET caveat); settings/ipv6 (on); settings/websockets (on); HTTP/2 (on).
  5. DNS hygienedns_records: proxiable A/AAAA/CNAME should be proxied (orange) unless intentionally direct (flag grey-cloud = origin exposed); dnssec (active); parse TXT for SPF (root v=spf1), DKIM (*._domainkey), DMARC (_dmarc.<zone> — flag missing as action); dangling CNAMEs -> takeover risk; low TTLs on stable records.
  6. Analytics / observabilityWeb Analytics (/accounts/{acct}/rum/site_info/list — privacy-first, free; enabled for this zone?); Security Events summary (GraphQL firewallEventsAdaptive — last 24h threats blocked, top rules/countries -> posture context, not a setting); Logpush (logpush/jobs — paid/Enterprise, report gap only). Pull the security-events summary read-only so the report shows what the WAF is actually catching, not just whether it's on.

Read the full file on GitHub · 72 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

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.

  1. 4d ago Changed · +9 lines b556dc9dca1e
  2. 10d ago First seen · 63 lines · 220 tokens per session scan A 7969f55eee27

Subscribe to this mod's changes

cloudflare-hygiene is a skill published in the GitHub repository pivoshenko/pivoshenko.ai (4 stars, last pushed today), licensed MIT. It adds 220 tokens to every session and 2,540 once invoked, about $0.0011 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.