Works with the AI Agents you already use
Terraform Provider and Version Pinning Audit
by Saizul Amin
This skill gives your agent a proven procedure plus scripts that check the facts, so you get the same correct answer every time, with exact fixes instead of vague advice.
$3
Terraform Provider and Version Pinning Audit
Example session with this skill installed
Run the Terraform Provider and Version Pinning Audit skill on my project and give me a prioritised list of what to fix, with exact changes.
- Read your context and instructions
- Compiled the terraform provider
Here is what the Terraform Provider and Version Pinning Audit skill produced.
Demo: real, unedited output of the skill's bundled script on a sample input from its test suite.
Output
== -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/terraform-iac-skills/tests/fixtures/tf/pin-root-bad (root module)
HIGH random: hashicorp/random is required but not in the lock file: run terraform init and commit the lock file [lock.provider_missing] -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/terraform-iac-skills/tests/fixtures/tf/pin-root-bad/.terraform.lock.hcl:0
HIGH cloudflare: locked version 5.1.0 does not satisfy '~> 4.20': run terraform init -upgrade [lock.version_mismatch] -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/terraform-iac-skills/tests/fixtures/tf/pin-root-bad/.terraform.lock.hcl:14
HIGH random: no version constraint: any provider version, including new majors, can be installed [pin.provider_version] -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/terraform-iac-skills/tests/fixtures/tf/pin-root-bad/main.tf:7
HIGH module.vpc: registry module without version: the latest release (including new majors) is used [module.registry_unpinned] -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/terraform-iac-skills/tests/fixtures/tf/pin-root-bad/main.tf:29
HIGH module.network: git source without ?ref=: every init can pull a different commit; pin a tag or commit SHA [module.git_unpinned] -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/terraform-iac-skills/tests/fixtures/tf/pin-root-bad/main.tf:33
MEDIUM tls: provider tls is used but not in required_providers (implicitly hashicorp/tls, any version) [pin.provider_undeclared] -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/terraform-iac-skills/tests/fixtures/tf/pin-root-bad/main.tf:0
MEDIUM terraform: no required_version: add e.g. required_version = "~> 1.9" (root) or ">= 1.5" (module) [pin.required_version] -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/terraform-iac-skills/tests/fixtures/tf/pin-root-bad/main.tf:1
MEDIUM aws: version inside a provider block is deprecated: move it to required_providers [pin.provider_block_version] -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/terraform-iac-skills/tests/fixtures/tf/pin-root-bad/main.tf:25
MEDIUM module.dns: ref=main is a branch and moves; pin a release tag or commit SHA [module.git_branch] -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/terraform-iac-skills/tests/fixtures/tf/pin-root-bad/main.tf:37
LOW aws: lock file has h1 hashes for one platform only; CI on another OS/arch or a provider mirror may fail: terraform providers lock -platform=linux_amd64 -platform=darwin_arm64 ... [lock.single_platform] -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/terraform-iac-skills/tests/fixtures/tf/pin-root-bad/.terraform.lock.hcl:4
LOW aws: version '>= 4.0' has no upper bound; `terraform init -upgrade` may install a new major version (use "~> X.Y") [pin.provider_unbounded] -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/terraform-iac-skills/tests/fixtures/tf/pin-root-bad/main.tf:3
11 finding(s)
What you do next
- Fix the highest-severity items first.
- Ask your agent to apply the fixes it suggests, then run the skill again to confirm.
- Keep the skill installed and re-run it whenever the project changes.
Connects securely to your tools. The creator never sees your data.
About this skill
Audit and fix Terraform/OpenTofu version pinning with a deterministic script - required_version, required_providers source and version constraints (tight ~> pins in root modules, minimum >= bounds in reusable modules), providers used but not declared, deprecated version arguments in provider blocks, the .terraform.lock.hcl dependency lock file (missing, providers missing from it, locked versions that violate constraints, hashes for only one platform), git module sources without ?ref= or pinned to a branch, and registry modules without a version. Covers safe upgrade steps (terraform init -upgrade, providers lock for several platforms, reading upgrade guides) for Terraform and OpenTofu.
Who it's for
Use when the user asks about version constraints, "which provider version should we pin", lock file conflicts or "checksums did not match", Dependabot/Renovate for Terraform, upgrading the AWS/Azure/Google provider, or CI that breaks because a new provider version was released.
What's inside
- Tested, offline Python script(s): pin_audit.py (deterministic results, standard library only unless noted)
- Reference guides: constraints.md, upgrades.md
- Step-by-step agent instructions in SKILL.md covering: When to use; When not to use; Workflow
Why it's worth it
Generic prompts guess. This skill gives your agent a proven procedure plus scripts that check the facts, so you get the same correct answer every time, with exact fixes instead of vague advice. See the real demo below.
Works with every major AI agent
Built on the open SKILL.md standard: Claude Code, Codex CLI, Cursor, VS Code Copilot, Gemini CLI, Windsurf and 20+ other agents.
Requirements
- Python 3.8+ for the bundled scripts
- No API keys, no account, runs locally
Open source: saizul/terraform-iac-skills on GitHub (MIT licence, by Saizul Amin).
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 1 day ago
- Software
Python 3.8+