Skills from hashicorp/agent-skills

13 skills available

terraform-style-guide
This skill is a Terraform style guide for generating and reviewing Terraform HCL following HashiCorp conventions. It includes local CLI instructions to run `terraform fmt -recursive` and `terraform validate`, otherwise no other security-relevant behaviors were detected.
Verified
755 installs
terraform-test
Comprehensive guide for writing and running Terraform tests. Use when creating test files (.tftest.hcl), writing test scenarios with run blocks, validating infrastructure behavior with assertions, mocking providers and data sources, testing module outputs and resource configurations, or troubleshooting Terraform test syntax and execution.
Verified
448 installs
refactor-module
This skill refactors monolithic Terraform configurations into reusable modules and provides module code, state-migration plans, and testing guidance. It includes explicit shell commands like `terraform state mv aws_vpc.main module.vpc.aws_vpc.main` and remote module sources such as `git::https://github.com/org/terraform-modules.git//vpc?ref=v1.2.0`, enabling CLI execution and remote fetches.
Review
379 installs
terraform-stacks
This skill is a comprehensive guide for working with Terraform Stacks, including configuration examples, CLI usage, and API monitoring. It includes runnable commands such as `terraform stacks configuration upload`, instructs extracting `~/.terraform.d/credentials.tfrc.json` into `TOKEN`, and shows `curl` calls to `https://app.terraform.io`.
Review
334 installs
provider-resources
Implement Terraform Provider resources and data sources using the Plugin Framework. Use when developing CRUD operations, schema design, state management, and acceptance testing for provider resources.
Verified
265 installs
new-terraform-provider
Scaffolds a new Terraform provider and includes the `assets/main.go` example. The skill instructs executing commands like `go get -u github.com/hashicorp/terraform-plugin-framework@latest`, `go build -o /dev/null`, and will fetch from `github.com` and reference `registry.terraform.io/example/demo`, which requires network access and running shell commands.
Review
258 installs
provider-actions
Implement Terraform Provider actions using the Plugin Framework. Use when developing imperative operations that execute at lifecycle events (before/after create, update, destroy).
Verified
247 installs
run-acceptance-tests
Guide for running acceptance tests for a Terraform provider. Use this when asked to run an acceptance test or to run a test with the prefix `TestAcc`.
Verified
239 installs
azure-verified-modules
Azure Verified Modules (AVM) requirements and best practices for developing certified Azure Terraform modules. Use when creating or reviewing Azure modules that need AVM certification.
Verified
203 installs
aws-ami-builder
Build Amazon Machine Images (AMIs) with Packer using the amazon-ebs builder. Use when creating custom AMIs for EC2 instances.
Verified
128 installs
push-to-registry
Push Packer build metadata to HCP Packer registry for tracking and managing image lifecycle. Use when integrating Packer builds with HCP Packer for version control and governance.
Verified
112 installs
azure-image-builder
This skill documents building Azure VM images with Packer and provides example templates and commands. It includes shell commands like `az ad sp create-for-rbac` and `packer build` and instructs setting `ARM_CLIENT_ID`, `ARM_CLIENT_SECRET`, `ARM_SUBSCRIPTION_ID`, and `ARM_TENANT_ID` environment variables.
Verified
107 installs
windows-builder
High-risk skill: builds Windows images with Packer and runs WinRM and PowerShell provisioners. It executes remote scripts via `https://community.chocolatey.org/install.ps1` and references credentials such as `var.client_secret`.
Caution
100 installs