rad-modules: Instructions file for Claude Code

CLAUDE.md

rad-modules CLAUDE.md is an instructions file for Claude Code from techequitycloud/rad-modules. It costs 11,916 tokens per session, scanned C, original, MPL-2.0.

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 for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

This is techequitycloud/rad-modules's own configuration. It tells Claude Code how to work on rad-modules itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything rad-modules configures →

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is tflint --init --config ../../.tflint.hcl.

Reuse

Borrowing it

Nothing to install: this file belongs to techequitycloud/rad-modules. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/techequitycloud/rad-modules/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/techequitycloud/rad-modules

Made for: Claude Code.

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 rad-modules CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/techequitycloud/rad-modules/claude-md/github.svg)](https://agentmods.dev/instructions/techequitycloud/rad-modules/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/techequitycloud/rad-modules/claude-md"><img src="https://agentmods.dev/badge/instructions/techequitycloud/rad-modules/claude-md/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 rad-modules CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/techequitycloud/rad-modules/claude-md"><img src="https://agentmods.dev/badge/instructions/techequitycloud/rad-modules/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 11,916 This file is loaded in full into every session.
When invoked 11,916 The same file — it is already loaded in full.
Security scan C 1 finding. 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.11916 $0.11916
Opus 5.5 $0.04766 $0.04766
Sonnet 5.5 $0.02383 $0.02383
Haiku 4.5 $0.01192 $0.01192

Measured 6d ago against content hash a5e247a16df8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 6d 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 · 525 lines

How it starts

The opening of the file, as written. The whole thing — 525 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 · 525 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. 6d ago Changed · +24 tokens per session a5e247a16df8
  2. 13d ago Changed · +4 lines · +356 tokens per session 7893bc2a3d32
  3. 26d ago Changed · +10 lines · +493 tokens per session b75e13c28a68
  4. 1mo ago Changed · +10 lines · +761 tokens per session 1722ed3dddd3
  5. 1mo 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 yesterday), licensed MPL-2.0. It adds 11,916 tokens to every session, about $0.0477 per session on Opus 5.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.

Related

Other instructions, from other repositories

plan-forge naming.instructions.md

Azure naming conventions — Microsoft CAF abbreviations, constraints, uniqueness, tagging.

srnichols/plan-forge · 1,453 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,461 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,731 tokens