doorman
FreeNo executable scriptsNot checkedManage Vercel, Cloudflare, Fastly, and Google Cloud Armor (beta) WAF firewall rules as code with the Doorman CLI. Use for any firewall-as-code task — creating…
by gfargo232 installs in other catalogsAbout this skill
Doorman — Firewall Rules as Code
Doorman is a CLI for managing WAF (Web Application Firewall) rules as code across Vercel, Cloudflare, Fastly Next-Gen WAF, and Google Cloud Armor (beta). Configuration lives in .doorman.json, syncs bidirectionally with provider APIs, and integrates into CI/CD pipelines.
Command Quick Reference
# Setup & Init
doorman setup # Show setup guide with links
doorman init --interactive # Create new config interactively
doorman init security-focused # Start with security templates
# Rule Creation
doorman add --interactive # Guided rule creation
doorman add --name "Block" --field path --op pre --value "/admin" --action deny
doorman template ai-bots # Add pre-built template
# Status & Inspection
doorman status # Sync status + health score
doorman list # Show deployed rules (table/json)
doorman diff # Local vs remote differences
# Sync & Deploy
doorman validate # Check config syntax + health
doorman sync # Deploy local config to provider
doorman download # Pull remote rules to local config
# Advanced
doorman watch # Auto-sync on file changes
doorman backup # Create/restore config backups
doorman export --format markdown # Export as markdown|json|yaml|terraform
doorman remove --name "Old Rule" # Remove rules by name/ID
All commands accept --provider vercel|cloudflare|fastly|gcp and --config <path>.
Environment Variables
# Vercel (default provider)
VERCEL_TOKEN=your_token
VERCEL_PROJECT_ID=prj_xxx
VERCEL_TEAM_ID=team_xxx
# Cloudflare (beta)
CLOUDFLARE_API_TOKEN=your_token
CLOUDFLARE_ZONE_ID=zone_xxx
CLOUDFLARE_ACCOUNT_ID=acc_xxx # optional, enables Lists API for bulk IP management
# Fastly Next-Gen WAF (beta)
FASTLY_API_TOKEN=your_token
FASTLY_WORKSPACE_ID=workspace_xxx
Config Structure
{
"$schema": "https://doorman.griffen.codes/schema.json",
"projectId": "prj_xxx",
"teamId": "team_xxx",
"rules": [],
"ips": []
}
For Cloudflare or Fastly, add provider and providers fields instead of projectId/teamId — and note this switches the rule shape too, not just the top-level fields. See Rule Shape below.
Core Workflow
# Edit .doorman.json (add/modify rules), then:
doorman validate && doorman diff && doorman sync
# Pull existing rules from a live provider:
doorman download
# Safe production deployment:
doorman backup && doorman validate && doorman diff && doorman sync && doorman status
Rule Shape (Minimal)
Two different rule shapes, picked by whether the config has provider/providers set (see Config Structure above) — they are not interchangeable, and mixing them fails validation.
Legacy shape (no provider/providers — Vercel-only):
{
"name": "Block Admin",
"active": true,
"conditionGroup": [{ "conditions": [{ "type": "path", "op": "pre", "value": "/admin" }] }],
"action": { "mitigate": { "action": "deny" } }
}
Logic: Conditions within a group are AND'd. Multiple groups are OR'd.
Condition types: path, method, host, user_agent, ip_address, header, query, cookie, geo_country, geo_city, geo_continent, geo_country_region, geo_as_number, scheme, protocol
Operators: eq, pre (prefix), suf (suffix), sub (contains), inc (in array), re (regex), ex (exists), nex (not exists)
Actions: deny, challenge, rate_limit, redirect, log, bypass (no allow/block)
Unified shape (provider/providers set — required for Cloudflare/Fastly):
{
"name": "Block Admin",
"enabled": true,
"conditions": [{ "field": "path", "operator": "starts_with", "value": "/admin" }],
"action": { "type": "deny" }
}
Logic: conditions default to AND across all of them. Tag conditions with a group number for OR-of-AND-groups (same conditions sharing a group are AND'd, distinct groups are OR'd) — see references/rules.md for the full explanation and an example.
Condition fields: ip, country, region, city, asn, path, host, method, header, query, cookie, user_agent, referer, scheme, port — support varies by provider, see references/cloudflare.md/references/fastly.md/references/gcp.md
Operators: eq, ne, contains, not_contains, starts_with, ends_with, matches, in, not_in, gt, ge, lt, le, exists, not_exists — on Vercel, gt/ge/lt/le have no native equivalent and are dropped with a warning (Vercel has no numeric-comparison operator at all); every other operator, including ne/not_contains/not_in, is fully supported there.
Actions: log,
Install doorman in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the doorman skill do?
Manage Vercel, Cloudflare, Fastly, and Google Cloud Armor (beta) WAF firewall rules as code with the Doorman CLI. Use for any firewall-as-code task — creating rules, IP blocking, rate limiting, bot protection, geo-blocking, syncing local config to providers, validating configurations, exporting documentation, CI/CD automation, or translating rules between provider formats.
How do I install the doorman skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the doorman skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
by Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
by Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
by Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
by Anthropic