← All plugins
terraform-policy-code
v1.0.0Terraform Policy skills for authoring .policy.hcl files, writing .policytest.hcl tests, and converting Sentinel policies to Terraform Policy.
Claude Code1 skill1 MCP serverstdio
by HashiCorpMPL-2.0790updated 5 days ago
Source
git clone https://github.com/hashicorp/agent-skillsClone the source, then follow the repository's marketplace instructions for your runtime. The plugin root is terraform/policy/ inside the repository.
Layout
terraform/policy/
├── .claude-plugin/plugin.json├── skills/terraform-policy/SKILL.md└── .mcp.json
Skills1
terraform-policyskills/terraform-policy/SKILL.md
Write, test, or convert Terraform Policy files (.policy.hcl, .policytest.hcl, Sentinel→tfpolicy). Triggers: policy.hcl, policytest, convert sentinel, tfpolicy, write a policy.
MCP servers1
terraformstdio
- command
- docker
- args
- run -i --rm -e TFE_TOKEN -e TFE_ADDRESS hashicorp/terraform-mcp-server
- env.TFE_TOKEN
- ${TFE_TOKEN}
- env.TFE_ADDRESS
- ${TFE_ADDRESS}
Manifests1
terraform/policy/.claude-plugin/plugin.json
{
"name": "terraform-policy-code",
"version": "1.0.0",
"description": "Terraform Policy skills for authoring .policy.hcl files, writing .policytest.hcl tests, and converting Sentinel policies to Terraform Policy.",
"author": {
"name": "HashiCorp",
"url": "https://github.com/hashicorp"
},
"homepage": "https://developer.hashicorp.com/terraform/cloud-docs/policy-enforcement",
"repository": "https://github.com/hashicorp/agent-skills",
"license": "MPL-2.0",
"keywords": [
"terraform",
"policy",
"hcp-terraform",
"sentinel",
"policy-as-code",
"tfpolicy",
"enforcement"
],
"mcpServers": {
"terraform": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"TFE_TOKEN",
"-e",
"TFE_ADDRESS",
"hashicorp/terraform-mcp-server"
],
"env": {
"TFE_TOKEN": "${TFE_TOKEN}",
"TFE_ADDRESS": "${TFE_ADDRESS}"
}
}
}
}