terraform-policy
HashiCorp's skill for Terraform Policy, the policy-as-code format written in .policy.hcl files and tested with .policytest.hcl files using the tfpolicy CLI.
スキルの内容
HashiCorp's skill for Terraform Policy, the policy-as-code format written in .policy.hcl files and tested with .policytest.hcl files using the tfpolicy CLI. It helps an agent write new policies from a requirement, convert existing Sentinel policies or whole libraries to the new format, and write or debug policy tests with mock resources. Before advising, the agent checks the installed tfpolicy version, because the guidance differs between the 0.4 and 0.5 release lines. Detailed authoring and testing rules sit in two reference files, alongside example policies.
できること
- Write Terraform Policy files
- Convert Sentinel policies to Terraform Policy
- Write and debug policy tests
- Tailor guidance to the installed tfpolicy version
概要
- 公開元
- HashiCorp
- ツール
- Terraform
インストール
- すべてのクライアントに追加するには、次のコマンドを実行します:
npx skills add hashicorp/agent-skills/plugins/terraform/skills/terraform-policy
含まれるファイル
- .gitignore
- README.md
- examples/README.md
- examples/conversion/cloudfront-associated-with-waf/README.md
- examples/conversion/cloudfront-associated-with-waf/cloudfront-associated-with-waf.policy.hcl
- examples/conversion/cloudfront-associated-with-waf/cloudfront-associated-with-waf.sentinel
- examples/conversion/cloudtrail-server-side-encryption-enabled/README.md
- examples/conversion/cloudtrail-server-side-encryption-enabled/cloudtrail-server-side-encryption-enabled.policy.hcl
- examples/conversion/cloudtrail-server-side-encryption-enabled/cloudtrail-server-side-encryption-enabled.sentinel
- examples/conversion/dms-endpoint-should-be-ssl-configured/README.md
- examples/conversion/dms-endpoint-should-be-ssl-configured/dms-endpoint-should-be-ssl-configured.policy.hcl
- examples/conversion/dms-endpoint-should-be-ssl-configured/dms-endpoint-should-be-ssl-configured.sentinel
- examples/conversion/dms-endpoints-should-use-ssl/README.md
- examples/conversion/dms-endpoints-should-use-ssl/dms-endpoints-should-use-ssl.policy.hcl
- examples/conversion/dms-endpoints-should-use-ssl/dms-endpoints-should-use-ssl.sentinel
- examples/conversion/ec2-network-acl-should-have-subnet-ids/README.md
- examples/conversion/ec2-network-acl-should-have-subnet-ids/ec2-network-acl-should-have-subnet-ids.policy.hcl
- examples/conversion/ec2-network-acl-should-have-subnet-ids/ec2-network-acl-should-have-subnet-ids.sentinel
- examples/conversion/ec2-vpc-default-security-group-no-traffic/README.md
- examples/conversion/ec2-vpc-default-security-group-no-traffic/ec2-vpc-default-security-group-no-traffic.policy.hcl
- examples/conversion/ec2-vpc-default-security-group-no-traffic/ec2-vpc-default-security-group-no-traffic.sentinel
- examples/conversion/efs-access-point-should-enforce-user-identity/README.md
- examples/conversion/efs-access-point-should-enforce-user-identity/efs-access-point-should-enforce-user-identity.policy.hcl
- examples/conversion/efs-access-point-should-enforce-user-identity/efs-access-point-should-enforce-user-identity.sentinel
- examples/conversion/elasticache-redis-replication-group-encryption-at-transit-enabled/README.md
MCPサーバーやスキルは、お使いのコンピューターでコードを実行したり、データを操作したりできます。インストールする前にソースを確認してください。
詳細
| 項目 | 内容 | 出典 |
|---|---|---|
| 種類 | スキル | |
| ツール | Terraform | |
| 公開元 | HashiCorp | 出典 |
| 公式かどうか | 公式published in HashiCorp's own GitHub organisation; contributions restricted to HashiCorp-internal contributors | 出典 |
| ステータス | active | 出典 |
| APIキーまたはサインインが必要 | ドキュメントに記載なし | |
| スクリプトを含む | いいえ | 出典 |
| プラットフォーム | ドキュメントに記載なし | |
| AIクライアント | ドキュメントに記載なし | |
| ライセンス | MPL-2.0 | 出典 |
| 料金 | ドキュメントに記載なし | |
| 活動状況 | 最終コミット 2026年11月4日GitHubスター 925ダウンロード数のデータなし(npm・PyPIで未公開) | 出典 |
| リンク | リポジトリ |
出典
- スキルファイル(SKILL.md)github.com/hashicorp/agent-skills2026年11月10日
- README(README.md)github.com/hashicorp/agent-skills2026年11月12日
- ライセンスファイル(LICENSE)github.com/hashicorp/agent-skills · 根拠となる項目:ライセンス2026年11月12日
- GitHubリポジトリgithub.com/hashicorp/agent-skills · 根拠となる項目:公式かどうか, 公開元, 活動状況, ライセンス2026年11月11日
- リポジトリ内のフォルダ(terraform-policy)github.com/hashicorp/agent-skills · 根拠となる項目:スクリプトを含む2026年11月10日
- リポジトリ内のファイル(SKILLS.md)github.com/hashicorp/agent-skills · 根拠となる項目:ステータス2026年11月12日