rad-modules: Command for Claude Code

.claude/commands/check-conventions.md

check-conventions is a command for Claude Code from techequitycloud/rad-modules. It costs 0 tokens per session (642 once invoked), scanned A, original, MPL-2.0.

A command for checking every independent module in a repository against shared coding and configuration rules.

In plain words
What is it for?
Use it to inspect variables, file layout, provider authentication, and other conventions across all modules, with optional strict warning handling.
Why use it?
It finds differences that can break validation tools or make modules behave inconsistently, including issues that an automatic checker cannot judge.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions CLAUDE.md.

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 runs a file that does not travel with it, so clone the repository first. The line is python3 scripts/check_conventions.py # FAIL findings break, WARN findings inform.

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/commands/check-conventions.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 check-conventions

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/techequitycloud/rad-modules/check-conventions"><img src="https://agentmods.dev/badge/commands/techequitycloud/rad-modules/check-conventions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 642 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.00000 $0.00642
Opus 5.5 $0.00000 $0.00257
Sonnet 5.5 $0.00000 $0.00128
Haiku 4.5 $0.00000 $0.00064

Measured 26d ago against content hash 1474d2b3c2b1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

check-conventions 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 26d 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.

.claude/commands/check-conventions.md · 69 lines

What it actually says

Check every module under modules/ for convention drift against the binding rules in .agent/skills/module-conventions/SKILL.md and CLAUDE.md.

rad-modules has NO shared foundation module — each module is independent. "Drift" here means a module diverging from the repo-wide conventions, not from a parent module.

Start by running the mechanical checker, then add the judgement-based checks it can't do:

python3 scripts/check_conventions.py            # FAIL findings break, WARN findings inform
python3 scripts/check_conventions.py --strict   # treat warnings as failures too

Summarise its output, then verify the following across all modules.


Step 1 — STANDARD VARIABLE CONSISTENCY

Collect every module's variables.tf. For the ten standard variables (module_description, module_dependency, module_services, credit_cost, require_credit_purchases, enable_purge, public_access, deployment_id, resource_creator_identity, trusted_users) verify: a) The variable is present (note the legitimate exceptions: AKS_GKE, EKS_GKE and Migration_Center omit enable_services; Container_Migration, Gemini_Enterprise, Migration_Center and VMware_Engine omit trusted_users). b) Its TYPE matches across modules (e.g. trusted_users is always list(string)). c) resource_creator_identity default is the standard SA ("[email protected]"). d) trusted_users carries the duplicate-and-whitespace validation blocks from AKS_GKE/variables.tf.

Report per module: ": — ".


Step 2 — UIMETA COMPLETENESS

Every variable in every module must have a {{UIMeta group=N order=M}} tag in its description. List any variable missing it, grouped by module.


Step 3 — API ENABLEMENT INVARIANT

For every google_project_service across all modules, confirm disable_dependent_services = false and disable_on_destroy = false, and that none use lifecycle { prevent_destroy = true }. Report any violation — this is a hard rule.


Step 4 — LICENSE HEADERS & SYMLINKS

a) Report any .tf file missing the Apache 2.0 header. b) Report any symlink found inside a module directory (modules must never share files).


Output

Group findings by module; skip modules with none. If everything is consistent, say: "All modules are consistent with the repo conventions."

If asked to FIX drift: for a missing standard variable, copy the complete variable block (description with its {{UIMeta}} tag, type, default, validations) from a module that has it correct (prefer AKS_GKE for the standard ten), inserting it in the right SECTION/order. Never invent a hardcoded credential default. After fixing, run tofu fmt -recursive modules/ and re-run the checker.

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. 26d ago Changed 1474d2b3c2b1
  2. 1mo ago First seen · 69 lines · 0 tokens per session scan A d037bbcb8e1d

Subscribe to this mod's changes

check-conventions is a command published in the GitHub repository techequitycloud/rad-modules (2 stars, last pushed yesterday), licensed MPL-2.0. It costs nothing until one of its globs matches a file; then it loads 642 tokens. 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.