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.
curl -O https://raw.githubusercontent.com/techequitycloud/rad-modules/main/.claude/commands/add-docs.mdgit clone --depth 1 https://github.com/techequitycloud/rad-modulesWrote 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.
[](https://agentmods.dev/commands/techequitycloud/rad-modules/add-docs)<a href="https://agentmods.dev/commands/techequitycloud/rad-modules/add-docs"><img src="https://agentmods.dev/badge/commands/techequitycloud/rad-modules/add-docs/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.
<a href="https://agentmods.dev/commands/techequitycloud/rad-modules/add-docs"><img src="https://agentmods.dev/badge/commands/techequitycloud/rad-modules/add-docs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.00744 |
| Opus 5.5 | $0.00000 | $0.00298 |
| Sonnet 5.5 | $0.00000 | $0.00149 |
| Haiku 4.5 | $0.00000 | $0.00074 |
Grade A, and why
add-docs 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 1mo 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.
What it actually says
Generate or refresh documentation for one or more rad-modules modules: $ARGUMENTS
$ARGUMENTS is a comma/space-separated list of module names (e.g. "Istio_GKE", "Bank_GKE
EKS_GKE"). If empty, process every module under modules/.
For each module, produce/update three artifacts to match variables.tf/outputs.tf and the
shapes defined in .agent/skills/module-conventions/SKILL.md → "Documentation". Read an
existing well-formed module (Bank_GKE or Container_Migration) first to match table style.
ARTIFACT 1 — README.md (~90–110 lines)
Sections, in order:
- One-paragraph overview, including the
mig-{deployment_id}-*(or module-appropriate) resource-naming convention. - A link to the lab guide:
[<Module>.md](../../docs/labs/<Module>.md). NEVER link to a LAB_GUIDE.md inside the module directory. ## Usage— a minimalmodule "<name>" { source = "..." ... }block with the required inputs.## Requirements— provider/version table from versions.tf or provider.tf.## Providers— the same providers.## Modules— only if the module has nested helpers undermodules/.## Resources—name | typetable of the resources the module creates.## Inputs— a row for EVERY variable in variables.tf: name, description (verbatim minus the{{UIMeta ...}}tag), type, default, required. Required = "yes" when there is no default.## Outputs— a row for every output in outputs.tf (and outputs in main.tf, if any).
The Inputs/Outputs tables must be exhaustive and exact — they are the module's contract.
ARTIFACT 2 — docs/modules/<Module>.md (long-form deep dive, published to the docs site)
An educational deep dive into how the module works: the architecture it provisions, the
provider-auth pattern it uses and why, the post-provisioning null_resource flow, key design
decisions (e.g. Istio's IstioOperator HPA block, MC_Bank's static provider aliases), and
gotchas. This is narrative prose with code excerpts, not a table dump.
ARTIFACT 3 — docs/labs/<Module>.md (shared lab guide)
A hands-on lab guide. Structure: Overview & Architecture → Lab Setup (prereqs, project,
bucket, varfile) → numbered Exercises (deploy via rad-launcher, explore, modify) → Cleanup
(radlab.py -m <Module> -a delete ...) → Reference. If this file already exists, update it
rather than overwriting hand-written exercises.
AFTER GENERATING
- Set/verify
module_documentationdefault in variables.tf points to the GitHub URL ofdocs/labs/<Module>.md. - Add the module to the "Module Families" table in CLAUDE.md if missing. Do NOT add it to README.md — that file is the upstream OpenTofu project README and has no module list.
- Report what was written/updated per module. Do not commit unless asked.
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.
- 1mo ago First seen · 59 lines · 0 tokens per session scan A 33e582bf84e9
add-docs 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 744 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.
Other commands, from other repositories
checklist
Generate a custom checklist for the current feature based on user requirements.
clarify
Identify underspecified areas in the current feature spec by asking up to 5 highly targeted clarification questions and encoding answers back into the spec.
specify
Create or update the feature specification from a natural language feature description.
converge
Assess the current codebase against the feature's spec, plan, and tasks, then append any remaining unbuilt work as new tasks to tasks.md so implement can complete it.
speckit.bug.fix
Apply the remediation from a bug assessment and record what was changed.
speckit.bug.test
Validate that a previously fixed bug is resolved and record the verification report.