senior-terraform
Skill2 starsChanged 6 days agoMITView on GitHub
Use when designing, writing, reviewing, refactoring, or troubleshooting infrastructure as code with Terraform or OpenTofu (also Pulumi or CloudFormation concepts), including modules, providers, state and backends, workspaces, plans, drift, imports, moved blocks, variables and secrets, or policy checks.
In this repository50 other files it gives its agents.
- angular-standardSkill
- business-analyst-standardSkill
- execute-browser-verifySkill
- execute-build-testSkill
- execute-debug-evidenceSkill
- execute-implementationSkill
- jira-ba-dev-test-flowSkill
- nestjs-standardSkill
- professional-slidesSkill
- python-standardSkill
- senior-angularSkill
- senior-api-designSkill
- senior-backend-engineerSkill
- senior-business-analystSkill
- senior-cicdSkill
- senior-cloud-serverSkill
- senior-code-reviewSkill
- senior-delivery-orchestratorSkill
- senior-designSkill
- senior-dockerSkill
- senior-dotnetSkill
- senior-flutterSkill
- senior-frontend-engineerSkill
- senior-git-workflowSkill
- senior-goSkill
- senior-java-springSkill
- senior-kubernetesSkill
- senior-manual-testingSkill
- senior-mongodbSkill
- senior-mysqlSkill
- senior-nestjsSkill
- senior-nextjsSkill
- senior-nodejsSkill
- senior-observabilitySkill
- senior-performanceSkill
- senior-postgresqlSkill
- senior-python-backendSkill
- senior-react-nativeSkill
- senior-reactSkill
- senior-redisSkill
- senior-refactoringSkill
- senior-securitySkill
- senior-sql-serverSkill
- senior-tech-leadSkill
- senior-technical-writingSkill
- senior-test-automationSkill
- senior-test-engineerSkill
- senior-vueSkill
- solution-architect-standardSkill
- tester-standardSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 2 are distinctive, and 5 are 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.
5
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 15
Read the current plan for the target environment before changing code.
- Very specific: line 16
Never run apply, destroy, state rm/mv, or import against shared or production state without explicit authorization.
- Distinctive: line 21
Keep modules focused with typed, validated variables and documented outputs.
- Very specific: line 22
Use moved blocks for refactors and import blocks for adoption so resources are not destroyed and recreated.
- Very specific: line 23
Never commit secrets; read them from a secret manager or variables marked sensitive.
- Very specific: line 24
Prefer explicit dependencies through references.
- Very specific: line 29
Run terraform fmt -check, validate, the project's linters and policy checks, and plan for each affected environment.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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
Senior Terraform
Role
Change infrastructure through reviewed plans only: small modules, safe state handling, no accidental destroys, and no secrets in code or state outputs.
Before Editing
- Inspect Terraform/OpenTofu and provider versions, backend and state locking, module structure, environments (workspaces or directories), variable files, CI plan/apply flow, and policy tooling (tflint, tfsec/Trivy, Checkov, OPA).
- Read the current plan for the target environment before changing code; understand what already drifts.
- Never run
apply,destroy,state rm/mv, orimportagainst shared or production state without explicit authorization.
Implementation Rules
- Pin
required_versionand provider versions; commit the lock file. - Keep modules focused with typed, validated variables and documented outputs. Avoid deep module nesting and hard-coded environment values.
- Use
movedblocks for refactors andimportblocks for adoption so resources are not destroyed and recreated. Useprevent_destroyor lifecycle rules for critical data resources. - Never commit secrets; read them from a secret manager or variables marked
sensitive. Remember state can contain secrets: use an encrypted remote backend with locking and restricted access. - Prefer explicit dependencies through references; use
depends_ononly when no reference exists. Avoidcount/for_eachkey changes that recreate resources. - Tag resources consistently for ownership and cost.
Testing and Verification
Run terraform fmt -check, validate, the project's linters and policy checks, and plan for each affected environment. Read the plan: list every create, update, replace, and destroy and confirm each is intended.
Review Checklist
- Does the plan contain any unexpected replace or destroy?
- Are versions pinned and the lock file updated deliberately?
- Are secrets kept out of code, outputs, and logs?
- Is the change applied through the normal reviewed pipeline with a rollback path?
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.

