rad-modules CLAUDE.md

Repository guidance for a collection of OpenTofu and Terraform modules that deploy Google Cloud and multi-cloud Kubernetes learning environments. OpenTofu and Terraform are tools that describe and create cloud infrastructure from configuration files.

In plain words
What is it for?
Use it to format and validate modules, run tests without cloud credentials, lint them, launch the interactive tool, or plan, apply, and destroy a real project.
Why use it?
It provides the commands and project context needed to validate modules safely before planning or applying cloud changes.

Instructions file

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.

agentmods
npx agentmods add instructions/techequitycloud/rad-modules/claude-md
Clone the repo
git clone --depth 1 https://github.com/techequitycloud/rad-modules
Per session 10,282 This file is loaded in full into every session.
When invoked 10,282 The same file — it is already loaded in full.
Security scan C 1 finding. Scan, not verified.
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 $0.10282 $0.10282
Opus 5 $0.05141 $0.05141
Sonnet 5 $0.02056 $0.02056
Haiku 4.5 $0.01028 $0.01028

Measured 2d ago against content hash 39c324951bff, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

rad-modules CLAUDE.md scanned grade C with 1 finding 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 2d 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.

Reaches for credential fileshighPrivilege escalation

SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.

**Credentials are machine-global, not session-scoped.** `gcloud auth application-default login` overwrites the single `~/.config/gcloud/application_default_credentials.json` for every terminal and every tool on the machi
CLAUDE.md · 501 lines

How it starts

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

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

What This Repo Is

rad-modules is a catalog of standalone OpenTofu/Terraform modules that deploy educational Google Cloud and multi-cloud Kubernetes reference architectures ("RAD Lab"). Modules are deployed via the interactive rad-launcher CLI or via Cloud Build pipelines driven by the RAD platform UI.

Common Commands

All Terraform commands run from within a module directory (e.g. cd modules/Istio_GKE):

# Validate and format-check a module
tofu init -backend=false
tofu validate
tofu fmt -check

# Run module-level tests (uses mock providers, no GCP credentials needed)
tofu test

# Plan/apply with a real project
tofu plan  -var="project_id=my-gcp-project"
tofu apply -var="project_id=my-gcp-project"
tofu destroy -var="project_id=my-gcp-project"

Lint all modules from the repo root:

# Format check (CI uses terraform, but tofu also works)
terraform fmt -check -recursive modules/

# tflint (run from within a module directory)
tflint --init --config ../../.tflint.hcl
tflint --config ../../.tflint.hcl --format compact

Run the interactive launcher:

cd rad-launcher
python3 installer_prereq.py   # install prerequisites once
python3 radlab.py             # interactive module deploy/destroy

Non-interactive launcher:

python3 rad-launcher/radlab.py \
  -m Istio_GKE -a create \
  -p my-mgmt-project -b my-mgmt-project-radlab-tfstate \
  -f /path/to/my.tfvars

Before running tofu plan/apply directly against a module directory (bypassing the launcher), check for leftovers from a prior manual run:

  • ls *.auto.tfvars — OpenTofu loads these automatically with no -var-file flag. A stale one from an earlier lab pins project_id (or other vars) to a project you may no longer have access to, and the failure mode is a confusing 403 deep in plan, not an obviously-wrong-input error. Bank_GKE has shipped one before; there is no repo convention preventing another.
  • ls *.tfstate* — local state from a previous run against a different project makes plan try to reconcile resources that don't exist in the target project. The launcher and rad-ui always use a GCS backend and never hit this; a bare tofu init/apply in a module directory does.

Read the full file on GitHub · 501 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. 2d ago First seen · 501 lines · 10,282 tokens per session scan C 39c324951bff

Subscribe to this mod's changes

rad-modules CLAUDE.md is an instructions file published in the GitHub repository techequitycloud/rad-modules (2 stars, last pushed 8d ago), licensed MPL-2.0. It adds 10,282 tokens to every session, about $0.0514 per session on Opus 5. A static security scan graded it C with 1 finding (reaches for credential files). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.