Skills

Terraform Policy

Write, test, or convert Terraform Policy files (.policy.hcl, .policytest.hcl...

Install

npx skills add hashicorp/agent-skills --skill terraform-policy -g -a claude-code -y
Category
Testing
Updated
7d ago
License
MPL-2.0
Context cost
Mediumabout 1,520 tokens
Runs scripts
No, instructions only

What it does

Write, test, or convert Terraform Policy files (.policy.hcl, .policytest.hcl, Sentinel→tfpolicy). Triggers: policy.hcl, policytest, convert sentinel, tfpolicy, write a policy.

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
Read the whole SKILL.md on GitHub

More in Testing