lang-terraform
Skill5 starsChanged 47 days agoMITView on GitHub
use this when writing or reviewing Terraform / HCL — *.tf, *.hcl. do not use for general YAML or for Docker.
In this repository49 other files it gives its agents.
- AGENTS.mdAGENTS.md
- maintainers/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- buying-researcherSkill
- cursor-cloud-agents-whenSkill
- debug-anthropicSkill
- debug-pocockSkill
- debugSkill
- discover-the-ideaSkill
- docs-google-styleSkill
- golang-safetySkill
- golang-securitySkill
- golang-testingSkill
- grok-acpSkill
- host-config-pyinfraSkill
- lang-cppSkill
- lang-csharpSkill
- lang-cSkill
- lang-dartSkill
- lang-dockerSkill
- lang-goSkill
- lang-javaSkill
- lang-js-tsSkill
- lang-kotlinSkill
- lang-luaSkill
- lang-makefileSkill
- lang-phpSkill
- lang-powershellSkill
- lang-protobufSkill
- lang-pythonSkill
- lang-rubySkill
- lang-rustSkill
- lang-shellSkill
- lang-sqlSkill
- lang-swiftSkill
- language-routerSkill
- lang-web-markupSkill
- modern-pythonSkill
- pr-reviewSkill
- sdlc-artifactsSkill
- sdlc-onboardingSkill
- security-hardeningSkill
- shell-safetySkill
- tddSkill
- tracker-sdlcSkill
- ui-craftSkill
- ux-designSkill
- verify-before-doneSkill
- yagniSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 23
Read the plan. Do not apply in this skill.
- Very specific: line 50
No secrets in .tf / committed .tfvars.
- Distinctive: line 56
No access keys in the tree.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Terraform
No scripts/.
Process skills that may load with this one: load-with list.
Iron law
State is sensitive. Plans are read. Secrets stay out of VCS.
Tooling / verify
terraform fmt -check
terraform validate
terraform planRead the plan. Do not apply in this skill.
Idioms a linter misses
- Remote state with locking when the project already has it.
- Pin
required_providersand Terraform version as the root module already does. for_eachovercountfor sets.- Variables for anything that changes by env. No copied prod IDs in a public file.
- Expand-contract for destructive destroys.
ignore_changesonly with a named reason.
Errors
- Failed plan is a stop. Do not
-auto-approveto hide it.
Testing
terraform planagainst the real backend is the default test.terraform plan -lock=falseis not a substitute.terraform test/ terratest only if the repo already has it.
PR review
- Plan attached or reproducible from the module.
- IAM not widened (
*actions). - No secrets in
.tf/ committed.tfvars. - State backend unchanged unless the ticket says so.
Security
- Least-privilege IAM. Do not widen
*. - No access keys in the tree.
- State contains secrets — treat backends as sensitive.
Always
fmt+validate+ a plan you read.
Ask first
- State migration.
- New cloud account or region.
- Destroy of existing resources.
Never
- Secrets in VCS.
applywithout a plan you read.- Force-unlock as a habit.
-auto-approveas the default path.
Red flags
- "I'll apply -auto-approve"
- "The secret is just a variable"
- "force-unlock, it's stuck"
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

