cf-iac-and-deployment

cf-iac-and-deployment is a skill for Claude Code from jsgerman-oss/blackrim-nimbus-skills. It costs 85 tokens per session (3,410 once invoked), scanned A, original, MIT.

A guide to deploying Cloudflare Workers and Pages with configuration files, Terraform, and automated build pipelines. Infrastructure as code means keeping cloud setup in files so it can be reviewed and repeated.

In plain words
What is it for?
Use it to create or review Wrangler settings, Terraform resources, GitHub Actions deployments, Cloudflare Pages builds, and environment-specific secrets.
Why use it?
It reduces deployment mistakes, unmanaged infrastructure, leaked secrets, and differences between development and production environments.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the cloud-cloudflare plugin — 6 skills, 1 command, 2 agents shipped together

Good fit Use it to create or review Wrangler settings, Terraform resources, GitHub Actions deployments, Cloudflare Pages builds, and environment-specific secrets.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jsgerman-oss/blackrim-nimbus-skills/cf-iac-and-deployment
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 jsgerman-oss/blackrim-nimbus-skills --skill cf-iac-and-deployment
Clone the repo
git clone --depth 1 https://github.com/jsgerman-oss/blackrim-nimbus-skills

Made for: Claude Code.

Or install cloud-cloudflare, the plugin that ships this one along with the rest of its 6 skills, 1 command, 2 agents.

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 cf-iac-and-deployment

README.md
[![agentmods](https://agentmods.dev/badge/skills/jsgerman-oss/blackrim-nimbus-skills/cf-iac-and-deployment/github.svg)](https://agentmods.dev/skills/jsgerman-oss/blackrim-nimbus-skills/cf-iac-and-deployment)
Your own site
<a href="https://agentmods.dev/skills/jsgerman-oss/blackrim-nimbus-skills/cf-iac-and-deployment"><img src="https://agentmods.dev/badge/skills/jsgerman-oss/blackrim-nimbus-skills/cf-iac-and-deployment/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 cf-iac-and-deployment

Your own site · 80×15
<a href="https://agentmods.dev/skills/jsgerman-oss/blackrim-nimbus-skills/cf-iac-and-deployment"><img src="https://agentmods.dev/badge/skills/jsgerman-oss/blackrim-nimbus-skills/cf-iac-and-deployment.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 85 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,410 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.00085 $0.03410
Opus 5 $0.00043 $0.01705
Sonnet 5 $0.00017 $0.00682
Haiku 4.5 $0.00009 $0.00341

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

Security

Grade A, and why

cf-iac-and-deployment 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 12d 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.

cloud-cloudflare/skills/cf-iac-and-deployment/SKILL.md · 320 lines

How it starts

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

Cloudflare IaC and Deployment

When to use

  • Setting up a new Worker, Pages, or D1 project with production-grade defaults.
  • Writing or reviewing wrangler.toml / wrangler.jsonc for multi-environment deploys.
  • Authoring or migrating Terraform for Cloudflare resources (especially v4 → v5 provider migration).
  • Designing a CI/CD pipeline with GitHub Actions that deploys to Cloudflare using scoped API tokens.
  • Managing Workers secrets safely across environments.
  • Reviewing an existing IaC repo for drift, secret hygiene, or missing resources.

Wrangler (the Cloudflare CLI)

Wrangler is the canonical tool for developing, testing, and deploying Workers and Pages projects. Wrangler ≥ 4.x (npm install -D wrangler@latest) is required for current features.

wrangler.toml vs wrangler.jsonc

  • Use wrangler.toml (TOML format) unless your project has an existing wrangler.jsonc (JSON5 with comments) convention.
  • wrangler.jsonc supports comments and is friendlier for complex configs with inline documentation.
  • Do not mix formats in the same project.

Configuration structure

name = "my-worker"
main = "src/index.ts"
compatibility_date = "2025-01-01"   # Pin; advance deliberately.
compatibility_flags = []

# Shared bindings (available in all environments)
[[kv_namespaces]]
binding = "SESSIONS"
id = "abc123..."

[env.production]
name = "my-worker-production"
[[env.production.kv_namespaces]]
binding = "SESSIONS"
id = "xyz789..."          # Different namespace ID per environment.

[[env.production.d1_databases]]
binding = "DB"
database_name = "my-db-prod"
database_id = "..."

[env.production.placement]
mode = "smart"            # Smart Placement for production if origin-latency matters.

Key rules:

  • compatibility_date: pin to a specific date; check Cloudflare's compatibility changelog before advancing.
  • Separate resource IDs per environment — never share a KV namespace or D1 database between production and development.
  • main: always explicit; never rely on convention defaults in production configs.
  • Secrets are NOT declared in wrangler.toml — they are pushed via wrangler secret put.

Read the full file on GitHub · 320 lines

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. 12d ago First seen · 320 lines · 85 tokens per session scan A fa1f1e3a94ea

Subscribe to this mod's changes

cf-iac-and-deployment is a skill published in the GitHub repository jsgerman-oss/blackrim-nimbus-skills (8 stars, last pushed 26d ago), licensed MIT. It adds 85 tokens to every session and 3,410 once invoked, about $0.0004 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.