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 pivoshenko/pivoshenko.ai --skill cloudflare-hygienegit clone --depth 1 https://github.com/pivoshenko/pivoshenko.aiWrote 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/pivoshenko/pivoshenko.ai/cloudflare-hygiene)<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.
<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>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.00220 | $0.02540 |
| Opus 5 | $0.00110 | $0.01270 |
| Sonnet 5 | $0.00044 | $0.00508 |
| Haiku 4.5 | $0.00022 | $0.00254 |
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.
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.
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
-
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. -
Enumerate zones —
GET /zones(paginate). List name · id · plan. Warn: full sweep across N zones takes a moment. -
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` })accountIdis pre-injected; zone ids come from step 2. Returns{success, status, result, errors, result_info}— readerrors[0].codefor the 9109 probe,result_info.total_pagesto paginate. Batch a whole category's GETs into oneexecutecall (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__docsfor 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).
- SSL/TLS —
settings/ssl(wantstrict);settings/always_use_https(on);settings/min_tls_version(≥1.2);settings/tls_1_3(on);settings/automatic_https_rewrites(on);settings/security_headerHSTS (enabled, max-age ≥6mo, includeSubDomains; preload = opt-in only). - Security / WAF / bot —
rulesetsphases (http_request_firewall_manageddeployed?ddos_l7present?);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_ratelimitphase — 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. - Performance / caching —
settings/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). - Network protocols —
settings/http3(on);settings/0rtt(on, idempotent-GET caveat);settings/ipv6(on);settings/websockets(on); HTTP/2 (on). - DNS hygiene —
dns_records: proxiable A/AAAA/CNAME should be proxied (orange) unless intentionally direct (flag grey-cloud = origin exposed);dnssec(active); parse TXT for SPF (rootv=spf1), DKIM (*._domainkey), DMARC (_dmarc.<zone>— flag missing as action); dangling CNAMEs -> takeover risk; low TTLs on stable records. - Analytics / observability — Web Analytics (
/accounts/{acct}/rum/site_info/list— privacy-first, free; enabled for this zone?); Security Events summary (GraphQLfirewallEventsAdaptive— 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.
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.
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.
- 4d ago Changed · +9 lines b556dc9dca1e
- 10d ago First seen · 63 lines · 220 tokens per session scan A 7969f55eee27
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.
Other skills, from other repositories
agents-sdk
Build, debug, or review Cloudflare Agents SDK applications using the agents package.
cloudflare-one-migrations
Assess and plan migrations from existing VPN, SWG, or SASE platforms to Cloudflare One, including policy mapping, parity gaps, and rollout.
sandbox-migrate-to-next
Migrate Cloudflare Sandbox apps from stable @cloudflare/sandbox to @cloudflare/sandbox@next (SDK 1.0 preview). Use sandbox-next for apps already on the preview.
sandbox-stable
Build or maintain Cloudflare Sandbox apps on the stable @cloudflare/sandbox package. Use sandbox-next for preview apps and sandbox-migrate-to-next for stable-to-preview migrations.
sandbox-next
Build or maintain Cloudflare Sandbox apps on @cloudflare/sandbox@next (SDK 1.0 preview). Use sandbox-migrate-to-next when porting a stable app.
durable-objects
Build, debug, or review Cloudflare Durable Objects code for persistent state and coordination.