
hashicorp / agent-skills
✓ Official★ 697A skill package that teaches your agent 32 capabilities — every one documented and browsable below, no GitHub required · by hashicorp.
Each skill below is one capability this package teaches your agent. Install the whole package, or open a skill to install just that one.
Build Amazon Machine Images (AMIs) with Packer using the amazon-ebs builder. Use when creating custom AMIs for EC2 instances.
1 file — installable on its own
Build custom Amazon Machine Images with Packer's amazon-ebs builder. Automates AMI creation from source AMIs using HCL templates with provisioners for customization (shell scripts, file uploads, configuration management) Supports multi-region AMI distribution via ami_regions and flexible source AMI filtering by name, owner, and virtualization type Authenticates via environment variables, AWS credentials file, or IAM instance profiles; includes validation and build commands for template...
1 file — installable on its own
Build Azure managed images and Azure Compute Gallery images with Packer. Use when creating custom images for Azure VMs.
1 file — installable on its own
Build Azure managed images and Azure Compute Gallery images with Packer. Use when creating custom images for Azure VMs.
1 file — installable on its own
Certification requirements and best practices for Azure Terraform modules seeking AVM compliance. Enforces provider version constraints (azurerm >= 4.0, < 5.0; azapi >= 2.0, < 3.0) and prohibits git-based module references in favor of pinned Terraform registry sources Mandates lower snake_casing for all identifiers, precise variable types, discrete output attributes via anti-corruption layer pattern, and alphabetically ordered locals Requires feature toggle variables for new resources added...
1 file — installable on its own
Azure Verified Modules (AVM) requirements and best practices for developing certified Azure Terraform modules. Use when creating or reviewing Azure modules…
1 file — installable on its own
Scaffold a new Terraform provider using the Plugin Framework. Generates a new Go module workspace with the standard "terraform-provider-" naming convention and initializes required dependencies Provides a template main.go file following HashiCorp's Plugin Framework patterns, with TODO markers for customization Validates the setup by running build and test commands to ensure the provider compiles and passes initial checks Handles workspace management by confirming intent before creating a new...
3 files — installable on its own
Use this when scaffolding a new Terraform provider.
3 files — installable on its own
Implement Terraform Provider actions using the Plugin Framework. Use when developing imperative operations that execute at lifecycle events (before/after…
1 file — installable on its own
Implement imperative Terraform Provider actions at resource lifecycle events using the Plugin Framework. Supports before/after create and before/after update lifecycle triggers (destroy events not available in Terraform 1.14.0) Requires proper schema definition with correct framework types, ElementType for collections, and validators for input validation Includes progress reporting, timeout management, and comprehensive error handling for long-running operations Implements polling and...
1 file — installable on its own
Create, update, and review Terraform provider documentation for Terraform Registry using HashiCorp-recommended patterns, tfplugindocs templates, and schema…
5 files — installable on its own
Create, update, and review Terraform provider documentation for Terraform Registry using HashiCorp-recommended patterns, tfplugindocs templates, and schema…
5 files — installable on its own
Implement Terraform Provider resources and data sources with complete CRUD operations and testing. Covers both SDKv2 and Plugin Framework patterns for resource implementation, including schema design, plan modifiers, and validators Provides complete CRUD operation examples (Create, Read, Update, Delete) with error handling, state management, and resource not-found patterns Includes acceptance testing patterns: basic tests, disappears tests, helper functions, and test execution commands...
1 file — installable on its own
Implement Terraform Provider resources and data sources using the Plugin Framework. Use when developing CRUD operations, schema design, state management, and…
1 file — installable on its own
Patterns for writing acceptance tests using terraform-plugin-testing with the Plugin Framework .
5 files — installable on its own
Patterns for writing acceptance tests using terraform-plugin-testing with the Plugin Framework .
5 files — installable on its own
Push Packer build metadata to HCP Packer registry for image lifecycle tracking and governance. Registers build artifacts in HCP Packer with minimal overhead, storing metadata only (not actual images) and adding less than one minute to build time Supports bucket-level labels (updated per build) and immutable build-level labels (git SHA, timestamps) for version control and compliance tracking Integrates with Terraform via hcp_packer_artifact data source to query and deploy images across...
1 file — installable on its own
Push Packer build metadata to HCP Packer registry for tracking and managing image lifecycle. Use when integrating Packer builds with HCP Packer for version…
1 file — installable on its own
Transform monolithic Terraform configurations into reusable, maintainable modules following HashiCorp's module design principles and community best practices.
1 file — installable on its own
Break monolithic Terraform configurations into reusable, well-structured modules with clear contracts and migration paths. Analyzes existing code to identify refactoring candidates, groups resources by logical function, and assesses complexity before design Generates module interfaces with typed variables, validation rules, and descriptive outputs following HashiCorp best practices Provides state migration strategies using moved blocks (Terraform 1.1+) or manual terraform state mv commands...
1 file — installable on its own
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`.
1 file — installable on its own
Execute and diagnose Go acceptance tests for Terraform providers with structured troubleshooting. Run focused acceptance tests using go test -run=TestAccFeatureHappyPath with TF_ACC=1 environment variable Diagnose failures progressively: retry with -count=1 , enable verbose output with -v , activate debug logging via TF_LOG=debug , and persist Terraform workspace with TF_ACC_WORKING_DIR_PERSIST=1 Validate test reliability by intentionally breaking a TestCheckFunc, re-running the test to...
1 file — installable on its own
Discover existing cloud resources using Terraform Search queries and bulk import them into Terraform management. Use when bringing unmanaged infrastructure…
5 files — installable on its own
Discover existing cloud resources using Terraform Search queries and bulk import them into Terraform management. Use when bringing unmanaged infrastructure…
5 files — installable on its own
Comprehensive guide for working with HashiCorp Terraform Stacks. Use when creating, modifying, or validating Terraform Stack configurations (.tfcomponent.hcl,…
8 files — installable on its own
Comprehensive guide for creating, validating, and managing Terraform Stack configurations across environments. Covers Stack language fundamentals: component definitions (.tfcomponent.hcl), deployment instances (.tfdeploy.hcl), file organization, and required Terraform v1.13+ Supports multi-region and multi-environment deployments using for_each on providers and components, with automatic dependency inference between components Includes workload identity (OIDC) authentication, identity token...
8 files — installable on its own
Generate and maintain Terraform code following HashiCorp's official style conventions. Enforces two-space indentation, lowercase underscore naming, and standard file organization across terraform.tf , providers.tf , main.tf , variables.tf , outputs.tf , and locals.tf Requires type and description on all variables and outputs, with validation rules and sensitive flag support for credentials Prioritizes for_each over count for dynamic resources, applies security hardening (encryption, private...
2 files — installable on its own
Generate Terraform HCL code following HashiCorp's official style conventions and best practices. Use when writing, reviewing, or generating Terraform…
2 files — installable on its own
Comprehensive guide for writing and running Terraform tests. Use when creating test files (.tftest.hcl), writing test scenarios with run blocks, validating…
5 files — installable on its own
Comprehensive guide for writing and running Terraform tests with assertions, mocking, and module validation. Write test files using .tftest.hcl syntax with run blocks that execute in plan or apply mode, supporting sequential and parallel execution with optional state isolation Assert conditions on resource attributes, outputs, and data sources; use expect_failures to validate that invalid inputs are properly rejected Mock providers (Terraform 1.7.0+) simulate infrastructure behavior without...
5 files — installable on its own
Build Windows images with Packer using WinRM communicator and PowerShell provisioners. Use when creating Windows AMIs, Azure images, or VMware templates.
1 file — installable on its own
Build Windows images with Packer using WinRM communicator and PowerShell provisioners. Use when creating Windows AMIs, Azure images, or VMware templates.
1 file — installable on its own
HashiCorp Agent Skills
A collection of Agent skills and Claude Code plugins for HashiCorp products.
| Product | Use cases |
|---|---|
| Terraform | Write HCL code, build modules, develop providers, and run tests |
| Packer | Build machine images on AWS, Azure, and Windows; integrate with HCP Packer registry |
Legal Note: Your use of a third party MCP Client/LLM is subject solely to the terms of use for such MCP/LLM, and IBM is not responsible for the performance of such third party tools. IBM expressly disclaims any and all warranties and liability for third party MCP Clients/LLMs, and may not be able to provide support to resolve issues which are caused by the third party tools.
Installation
Individual Skills
Install Agent Skills in GitHub Copilot, Claude Code, Opencode, Cursor, and more:
# List all skills
npx skills add hashicorp/agent-skills
# Install a specific skill
npx skills add hashicorp/agent-skills/terraform/code-generation/skills/terraform-style-guideClaude Code Plugin
First, add the marketplace, then install plugins:
# Add the HashiCorp marketplace
claude plugin marketplace add hashicorp/agent-skills
# Install plugins
claude plugin install terraform-code-generation@hashicorp
claude plugin install terraform-module-generation@hashicorp
claude plugin install terraform-provider-development@hashicorp
claude plugin install packer-builders@hashicorp
claude plugin install packer-hcp@hashicorpOr use the interactive interface:
/pluginStructure
agent-skills/
├── .claude-plugin/
│ └── marketplace.json
├── terraform/ # Terraform skills
├── packer/ # Packer skills
├── <product>/ # Future products (Vault, Consul, etc.)
└── README.mdEach product folder contains plugins, and each plugin contains skills:
<product>/
└── <plugin>/
├── .claude-plugin/plugin.json
└── skills/
└── <skill>/
└── SKILL.mdLicense
MPL-2.0
Install the whole package (32 skills):
npx skills add https://github.com/hashicorp/agent-skillsOr install a single skill:
npx skills add https://github.com/hashicorp/agent-skills --skill <name>Pick the skill name from the Skills tab — each entry there installs independently.