cloudflare-waf-author
CommunityShip precise WAF rules with confidence.
Authord-padmanabhan
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill prevents broken or overly broad Cloudflare WAF changes by enforcing a safe, docs-first, evidence-backed authoring workflow for both custom WAF rules and managed-rule exceptions.
Core Features & Use Cases
- Rule-type correct workflow: Forces an explicit branch between Custom Rules (custom actions like block/challenge/log/skip-as-allow) and Managed-Rule Exceptions (skip) so the ruleset phase and behavior are correct.
- Docs-first predicate drafting: Requires reading the authoritative Cloudflare Ruleset Engine docs and copying field/operator details accurately before writing expressions.
- Peer-rule mirroring: Mandates surveying the closest existing rules for the same zone so the new rule matches house patterns and evaluation shape.
- Requester confirmation gate: Collects required inputs (hosts/paths/methods, source IP shape, soak plan, and—when applicable—specific OWASP child-rule IDs) before any expression is drafted.
- Provenance + consistency requirements: Enforces mandatory rationale artifacts (Terraform comments, Dashboard runbook entries, or API sibling .md files) plus four-source consistency checks to prevent title/body/code drift.
- Self-checks and anti-pattern avoidance: Includes per-interface and cross-cutting checklists (e.g., allow-before-block ordering, multi-value header correctness, safe API ETag + test validation, and soak-first block promotion).
Quick Start
Use cloudflare-waf-author to draft a Cloudflare WAF Custom Rule (or a Managed-Rule Exception) that blocks or skips specific traffic on a given host and path using the chosen interface (Terraform, Dashboard, or API).
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: cloudflare-waf-author Download link: https://github.com/d-padmanabhan/agent-engineering-handbook/archive/main.zip#cloudflare-waf-author Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.