/claude-skills:terraform-registryfrom claude-skills
Searches and inspects the Terraform Registry via its JSON API to retrieve module inputs/outputs/versions and resource type attributes for any provider (AWS, Azure, GCP, Kubernetes, etc.). Useful when writing or reviewing Terraform IaC and needing current registry facts without scraping HTML.
Ships in claude-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
A self-contained CLI (registry_helper.py, stdlib-only) that queries the Terraform
Registry's JSON API directly. It exists so an agent can get accurate, current
module/provider facts deterministically — fetch the structured payload, filter to the
slice you need, return that. No HTML, no full-text crawl, no page-dump into context.
Call the script by its absolute path — never a bare relative one. It sits next to this
SKILL.md, in the base directory announced when the skill loads (usually
~/.claude/skills/terraform-registry, or a plugin path if installed that way). You'll normally
be working inside some other repo, so a bare registry_helper.py won't resolve and the
script never runs. Define a tfreg shell function at the start of each command block, then
call it. Two deliberate choices: a function (not a VAR="…"; $VAR string) passes arguments
correctly under both bash and zsh — a plain $VAR doesn't word-split in zsh — and the name
tfreg avoids colliding with the terraform CLI. Shell state doesn't persist between separate
tool calls, so re-declare tfreg in every block (or write the full uv run python <path> …).
# uv is the preferred runner. Resolve it even when it isn't on a bare PATH — non-interactive
# shells often drop ~/.local/bin or the Homebrew bin, which is the usual cause of
# `uv: command not found`:
UV="$(command -v uv || ls "$HOME/.local/bin/uv" "$HOME/.cargo/bin/uv" /opt/homebrew/bin/uv /usr/local/bin/uv 2>/dev/null | head -1)"
tfreg() { "$UV" run python "$HOME/.claude/skills/terraform-registry/registry_helper.py" "$@"; } # use the announced base dir
tfreg search vpc --provider aws --limit 5 # confirms the runner + path resolve
The script is stdlib-only, so if (and only if) uv is genuinely not installed you can swap the
runner for plain python3 — same arguments:
tfreg() { python3 "$HOME/.claude/skills/terraform-registry/registry_helper.py" "$@"; }.
If a call fails with command not found (uv unresolved) or No such file or directory (wrong
path), fix the runner/path — re-resolve uv as above, or use the announced base directory. Don't
fall back to scraping registry.terraform.io's HTML: this client returns the registry's JSON
directly, which is the entire point.
| You want | Source | Command |
|---|---|---|
| Find a module / its inputs, outputs, versions | Registry v1 JSON API (provider-agnostic) | search, inspect-module |
A resource type's attributes (e.g. aws_s3_bucket) | terraform providers schema -json dump (the registry API does not serve schemas) | refresh-schema, then inspect-resource |
The module side works for any provider with no special-casing — the provider is just a
path/query parameter. The resource-schema side needs the terraform CLI once to cache a
provider's schema; after that, lookups are offline.
tfreg is the function defined in Running the helper above — re-declare it at the top of the
block if this is a fresh command (shell state doesn't carry over between tool calls).
# Search modules (any provider). --provider/--namespace narrow it; --limit caps results.
tfreg search vpc --provider aws --limit 5
tfreg search network --provider google
tfreg search keyvault --provider azurerm
# Inspect a module: namespace/name/provider[/version][//modules/x]. Project + filter to stay small.
tfreg inspect-module terraform-aws-modules/vpc/aws --fields inputs --filter name~cidr
tfreg inspect-module Azure/avm-res-keyvault-vault/azurerm --fields meta,outputs
# A submodule, in Terraform's own // syntax; `--fields meta` lists the submodule paths.
tfreg inspect-module 'terraform-aws-modules/eks/aws/21.30.2//modules/karpenter' --fields inputs
# Resource attributes (needs a cached schema first):
tfreg refresh-schema --provider google --namespace hashicorp
tfreg inspect-resource google_storage_bucket --filter name~location
--fields inputs,outputs,versions,meta — return only the sections you need.--filter name~<substr> — keep only inputs/outputs/attributes whose name matches.Every fetch is written to an on-disk snapshot cache (--cache-dir, default
~/.cache/terraform-registry) and re-read on the next call.
--max-age-hours (default 24).
Served from cache, it carries a cache age warning. This matters for AVM 0.x modules,
which rename inputs on patch releases..../latest is not a registry version (the API 404s on it). The CLI treats it as the
unversioned path and says so in warnings.deprecation in the registry payload becomes a module is deprecated warning.--offline — use the cache only; never touch the network. Errors if a payload isn't
cached; serves an expired moving path with its age in the warning.--refresh — bypass the cache and re-fetch (then re-cache)..../aws/5.8.1) and committing the cached
payload — that snapshot becomes a stable, citable fact. See the source-snapshot skill.--format json (for agents) emits a stable envelope:
{ "ok": true, "command": "...", "data": {...},
"provenance": { "source_url": "...", "source_kind": "registry_module_api|terraform_provider_schema",
"retrieved_at": "...", "cached": true, "age_hours": 3.2, "moving": true },
"warnings": [], "error": null }
--format text (default) is human-readable. Exit codes: 0 ok · 1 not-found · 2
usage · 3 network/registry error. On error with --format json, ok is false and
error carries {message, code}.
source-snapshot skill (its cached payloads are the
snapshots).fact-verifier agent: it can cite a module input or a
resource attribute from a cached payload — deterministically and offline — instead of
guessing or scraping.This is the generic registry client only. It does not edit code, write Terraform, or
apply anything — it reads the registry and returns facts. Tests: evals/ (offline,
deterministic, multi-provider) — cd evals && uv run python grade.py.
README.md (opens in a new tab)evals/eval.json (opens in a new tab)evals/fixtures/cache/v1_modules_Azure_avm-res-keyvault-vault_azurerm.json (opens in a new tab)evals/fixtures/cache/v1_modules_example-deprecated_network_google.json (opens in a new tab)evals/fixtures/cache/v1_modules_search__limit=5&provider=aws&q=vpc.json (opens in a new tab)evals/fixtures/cache/v1_modules_terraform-aws-modules_eks_aws_21.30.2.json (opens in a new tab)evals/fixtures/cache/v1_modules_terraform-google-modules_network_google.json (opens in a new tab)evals/grade.py (opens in a new tab)registry_helper.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
32 skills in this plugin
/adr-authorWrite or amend an architecture decision record (ADR) that a team will want to read and that names exactly what it decides: the modules, functions, paths or settings, and what must or must never happen. Asks whether the decision deserves a record, interviews briefly, follows the repo's existing ADR format and numbering, shows the draft before writing, and self-checks it (hedged decisions, names missing from the code, status and supersede links). Also amends or supersedes a record when the code turned out to be right. Use for "write an ADR", "record this decision", "document the architecture decision we made", "turn this into a decision record", "supersede ADR 4", "our ADR no longer matches the code", or a one-off exception to an existing ADR. Does not judge code against records, and does not make the decision. General prose and docs are clear-and-human./azadvertizerOffline lookups over AzAdvertizer's published Azure data: Policy, policy initiative and RBAC role metadata with cross-references found nowhere else in one place (which roles a policy uses, which initiatives include a policy, which policies use a role), plus Entra ID roles, API permissions (Microsoft Graph and other first-party apps) and resource types with their latest API versions. Use whenever accurate current facts about an Azure built-in policy, initiative, RBAC or Entra role, Graph permission or resource API version are needed for Azure IaC, governance or landing-zone work.npx claudepluginhub kevin-burns/claude-skills --plugin claude-skillsOther plugins' skills for the same job