terraform-specialist
Skill0 starsChanged 2 months agoMITView on GitHub
Deep-dive Terraform architecture review, module design, state management, and migration. Use for structured investigations of Terraform workspaces, provider configuration, module coupling, import workflows, and test coverage. Triggers on: "Terraform audit", "module review", "state management", "Terraform import", "workspace design", "provider config review", "Terraform testing".
4 other projects use a version of this.
Adopted by
Most recently taken up by
- TheHiddenDeveloper/jarvis-skillstheir own version, first seen Aug 19, 2026
- ai4brands-design/claude-skillstheir own version, first seen Mar 22, 2026
- daryllundy/claude-skills-librarytheir own version, first seen Mar 20, 2026
- xfstudio/skillstheir own version, first seen Jan 22, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- xfstudio/skills★ 9same name
- ai4brands-design/claude-skills★ 2same name
- daryllundy/claude-skills-library★ 1same name
- TheHiddenDeveloper/jarvis-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository48 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- changelogSkill
- dependabot-sweepSkill
- markdownSkill
- merge-prSkill
- pre-prSkill
- pr-tldrSkill
- tldrSkill
- agents-searchSkill
- audit-and-fixSkill
- aws-specialistSkill
- azure-specialistSkill
- code-simplifierSkill
- create-assessmentSkill
- create-auditSkill
- create-experimentSkill
- create-inspectionSkill
- crossplane-specialistSkill
- deploy-statusSkill
- detect-flakySkill
- fix-with-evidenceSkill
- flyctlSkill
- gcp-specialistSkill
- gitSkill
- ground-firstSkill
- handoffSkill
- kubernetes-specialistSkill
- local-attestSkill
- plan-graderSkill
- post-pr-reviewSkill
- pr-conductorSkill
- project-syncSkill
- pulumi-specialistSkill
- quality-reviewSkill
- release-conductorSkill
- reproduce-bugSkill
- review-prSkill
- review-prsSkill
- rollback-prodSkill
- security-auditSkill
- security-reviewSkill
- smoke-testSkill
- specSkill
- terragrunt-specialistSkill
- validate-specSkill
- veracity-auditSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 3 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
3
Distinctive
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
- Distinctive: line 46
Check backend and provider configuration:
- Distinctive: line 51
Check for existing state:
- Distinctive: line 127
After fixes are applied:
- Very specific: line 130
Run terraform plan — confirm zero unexpected changes.
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Terraform Specialist
Structured investigation for Terraform codebases. Five phases: gather context, diagnose, design, recommend, verify.
Arguments
$0— module path, workspace context, or problem description. Required.
Phase 1: Context Gathering
- Identify the scope: module, workspace, or full repo.
- Glob for Terraform files:
find . -name "*.tf" | sort find . -name "*.tfvars" | sort find . -name ".terraform.lock.hcl" | sort - Check backend and provider configuration:
grep -r "backend" . --include="*.tf" -l grep -r "required_providers" . --include="*.tf" -l - Check for existing state:
terraform workspace list terraform state list
Phase 2: Diagnosis
Module structure:
# Check module inputs/outputs surface
grep -r "variable\|output\|locals" . --include="*.tf" -l
terraform validateState health:
terraform state list
terraform state show <resource>
terraform plan -detailed-exitcodeProvider locks:
cat .terraform.lock.hcl
terraform providersTest coverage:
find . -name "*_test.go" -o -name "*.tftest.hcl" | sortPhase 3: Design / Root-Cause Analysis
Map symptoms to causes:
| Symptom | Common Causes | Check |
| Plan shows unexpected replace | ForceNew attribute changed, ID drift | terraform state show + provider docs |
| State drift | Manual console change, import not run | terraform refresh + terraform plan |
| Module coupling | Outputs passed through too many layers | Count cross-module variable chains |
| Provider version conflict | Lock file pinned differently per module | .terraform.lock.hcl comparison |
count vs for_each bug | Resource renamed on index change | Switch to for_each with stable keys |
Cite file:line for every finding.
Phase 4: Recommendations
Output findings in priority order:
[CRITICAL] <title>
Resource: <address or file:line>
Issue: <one sentence>
Evidence: <plan output or code snippet>
Fix: <specific change, with HCL diff if applicable>
Trade-off: <alternative and its downside, if meaningful>Order: CRITICAL → WARNING → INFO.
Phase 5: Verification
After fixes are applied:
- Re-run
terraform validate— no errors. - Run
terraform plan— confirm zero unexpected changes. - For state moves:
terraform state listbefore and after. - For module refactors: run tests if present (
terraform testorgo test ./...). - Confirm
.terraform.lock.hclis committed and unchanged.
Reference Docs
| File | When to use |
modules.md | Module design, variable/output surface, coupling |
state-management.md | Backends, state mv, import, drift remediation |
workspaces.md | Workspace-per-env vs stack-per-env trade-offs |
testing.md | Unit tests, integration tests, tftest |
providers.md | Provider config, version pinning, aliases |
import-patterns.md | terraform import, import blocks, bulk import |
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.

