terraform-policy
Write, test, or convert Terraform Policy files (.policy.hcl, .policytest.hcl, Sentinel→tfpolicy). Triggers: policy.hcl, policytest, convert sentinel, tfpolicy, write a policy.
Works with
--- name: terraform-policy description: Write, test, or convert Terraform Policy files (.policy.hcl, .policytest.hcl, Sentinel→tfpolicy). Triggers: policy.hcl, policytest, convert sentinel, tfpolicy, write a policy. license: MPL-2.0 --- # terraform-policy **UTILITY SKILL** — INVOKES: [tfpolicy-author](references/tfpolicy-author.md) | [tfpolicy-test](references/tfpolicy-test.md) ## 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 ## DO NOT USE FOR: - Writing `.tftest.hcl` files for Terraform modules — use `terraform-test` - General Terraform HCL authoring — use `terraform-style-guide` ## Routing | Task | Sub-skill | |------|-----------| | Write or convert a `.policy.hcl` policy | [tfpolicy-author](references/tfpolicy-author.md) | | Write or debug a `.policytest.hcl` test | [tfpolicy-test](references/tfpolicy-test.md) | ## Examples - "Block EC2 instances without encryption" → [tfpolicy-author](references/tfpolicy-author.md) - "Convert this Sentinel policy to tfpolicy" → [tfpolicy-author](references/tfpolicy-author.md) - "Write a policytest for my EBS policy" → [tfpolicy-test](references/tfpolicy-test.md) ## Troubleshooting - **Wrong skill triggered?** Load the sub-skill directly from the routing table above. ```bash npx skills add hashicorp/agent-skills/terraform/terraform-policy/skills/tfpolicy-author npx skills add hashicorp/agent-skills/terraform/terraform-policy/skills/tfpolicy-test ```
More DevOps & Infrastructure skills
azure-ai
microsoft/azure-skills
Use for Azure AI: Search, Speech, OpenAI, Document Intelligence. Helps with search, vector/hybrid search, speech-to-text, text-to-speech, transcription, OCR. WHEN: AI Search, query search, vector search, hybrid search, semantic search, speech-to-text, text-to-speech, transcribe, OCR, convert text to speech.
appinsights-instrumentation
microsoft/azure-skills
Guidance for instrumenting webapps with Azure Application Insights. Provides telemetry patterns, SDK setup, and configuration references. WHEN: how to instrument app, App Insights SDK, telemetry patterns, what is App Insights, Application Insights guidance, instrumentation examples, APM best practices.
azure-storage
microsoft/azure-skills
Azure Storage Services including Blob Storage, File Shares, Queue Storage, Table Storage, and Data Lake. Answers questions about storage access tiers (hot, cool, cold, archive), when to use each tier, and tier comparison. Provides object storage, SMB file shares, async messaging, NoSQL key-value, and big data analytics. Includes lifecycle management. USE FOR: blob storage, file shares, queue storage, table storage, data lake, upload files, download blobs, storage accounts, access tiers, storage tiers, hot cool cold archive, storage tier comparison, when to use storage tiers, lifecycle management, Azure Storage concepts. DO NOT USE FOR: SQL databases, Cosmos DB (use azure-prepare), messaging with Event Hubs or Service Bus (use azure-messaging).

