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.
npx skills add tmj-90/gaffer --skill terraform-patternsgit clone --depth 1 https://github.com/tmj-90/gafferWrote 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/skills/tmj-90/gaffer/terraform-patterns)<a href="https://agentmods.dev/skills/tmj-90/gaffer/terraform-patterns"><img src="https://agentmods.dev/badge/skills/tmj-90/gaffer/terraform-patterns/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/skills/tmj-90/gaffer/terraform-patterns"><img src="https://agentmods.dev/badge/skills/tmj-90/gaffer/terraform-patterns.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.00067 | $0.00801 |
| Opus 5 | $0.00034 | $0.00400 |
| Sonnet 5 | $0.00013 | $0.00160 |
| Haiku 4.5 | $0.00007 | $0.00080 |
Grade A, and why
terraform-patterns 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 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.
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.
How it starts
The opening of the file, as written. The whole thing — 63 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Write predictable, secure Terraform
Predictable infrastructure. Secure state. Modules that compose. No drift.
Module structure (standard layout)
modules/<name>/
main.tf # resources only — no provider config
variables.tf # typed inputs with descriptions and validation
outputs.tf # only what callers need
versions.tf # required_providers + minimum version constraints
Environments (envs/prod/, envs/staging/) consume modules via module blocks — never paste resources directly into env files.
Non-negotiable rules
| Rule | Why |
|---|---|
| Remote state backend (S3+DynamoDB or GCS) | Local state breaks team workflows and loses history |
| State locking enabled | Concurrent applies corrupt state |
No credentials in .tf files |
Rotate via environment/vault; never hardcode |
Pin provider versions with ~> |
Minor-version drift breaks plans silently |
lifecycle { prevent_destroy = true } on data resources |
Accidental drops are unrecoverable |
Steps
- Read the lore + existing modules.
search_lorefor state backend, naming conventions, and existing module registry. Extend existing patterns; don't introduce a competing module style. - Design the module interface. Variables: typed + validated + described. Outputs: only what callers need — not every internal resource attribute. One module = one coherent infrastructure concern.
- Implement resources. Follow least-privilege on IAM. Encrypt at rest and in transit by default. Tag all resources with
environment,team, andmanaged-by = terraform. - Configure the backend. Remote state with locking. Workspace or path-based isolation between environments.
- CI/CD integration.
terraform fmt+terraform validateon every PR;terraform planas a required check; apply only on merge to main via a protected pipeline. - Security review. Check for: hardcoded credentials,
0.0.0.0/0ingress, public S3 buckets, overly permissive IAM. Usetfsecorcheckovin CI. - Verify.
terraform planshows expected change set only;terraform applycompletes without errors; spot-check resources in cloud console; record evidence.
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.
- 6d ago First seen · 63 lines · 67 tokens per session scan A 589cad757a18
terraform-patterns is a skill published in the GitHub repository tmj-90/gaffer (2 stars, last pushed 2d ago), licensed Apache-2.0. It adds 67 tokens to every session and 801 once invoked, about $0.0003 per session on Opus 5. 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-09-03.
Other skills, from other repositories
agent-loop-ext
Crash-resilient external agent loop with state persistence and CI/CD integration.
gh-ci-analyzer
A guide for using GitHub’s command-line tool to investigate failed GitHub Actions runs. GitHub Actions is GitHub’s system for automatically building, testing, and deploying code.
bulwark-brainstorm
Role-based brainstorming with dual modes: --scoped (sequential Task tool, 5 roles) and --exploratory (Agent Teams peer debate, 4 roles). Use for feasibility assessment and idea validation.
plan-creation
Create structured implementation plans via a 4-role scrum team (Product Owner, Architect, Eng/Delivery Lead, QA/Critic) with optional Agent Teams peer debate mode.
anthropic-validator
Validates Claude Code assets (skills, hooks, agents, commands, MCP servers, plugins) against official Anthropic standards. Fetches latest docs dynamically and produces structured validation reports.
create-subagent
Generates single-purpose Claude Code sub-agents for use via the Task tool. Use when creating dedicated sub-agents, scaffolding agent definitions, or generating agents with diagnostics and permissions setup.