terraform-policy UTILITY SKILL — INVOKES: tfpolicy-author | tfpolicy-test USE FOR: Writing a new .policy.hcl policy from a description or requirement Converting a .sentinel policy to Terraform Policy Writing or debugging a .policytest.hcl test file Migrating a Sentinel policy library to Terraform Policy Before giving authoring or testing instructions, check the installed tfpolicy CLI version and tailor guidance accordingly: If the CLI is 0.1.x , do not require policy { required_providers { ... } } ; generate policies compatible with tfpolicy 0.1.x syntax and behavior. If the CLI is 0.2.0 or newer, include a top-level policy { required_providers { ... } } block when authoring .policy.hcl . It is mandatory for tfpolicy validate ; version-range validation is best effort, and wildcard targets such as resource_policy "*" are not schema-validated. If the CLI version is unknown, ask the user to check it first or provide guidance that clearly distinguishes the 0.1.x and 0.2.0+ paths. DO NOT USE FOR: Show more Installs 1.2K Repository hashicorp/agent-skills GitHub Stars 873 First Seen Jul 16, 2026 Security Audits Gen Agent Trust Hub Pass Socket Pass Snyk Warn
terraform-policy
安装
npx skills add https://github.com/hashicorp/agent-skills --skill terraform-policy