mirror of
https://github.com/hashicorp/agent-skills
synced 2026-07-22 15:43:45 +00:00
No description
- HCL 50.1%
- Shell 44.7%
- Go 5.2%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
* feat: add terraform-policy-code plugin with tfpolicy-author and tfpolicy-test skills
Adds the terraform-policy-code Claude Code plugin under terraform/policy-code/.
The plugin contains two active skills for HCP Terraform's native policy engine:
- tfpolicy-author: authoring .policy.hcl files from natural-language requirements
or Sentinel source, including operation scoping, core:: functions, cross-resource
checks, input parameterization, and IAM policy patterns.
- tfpolicy-test: writing and debugging .policytest.hcl test files, designing
resource mocks, reasoning about runner behavior, and edge-case test generation.
Also includes:
- reference/verified-syntax.md: shared source-of-truth for verified syntax,
function names, and runtime limitations.
- sentinel-to-tfpolicy/SKILL.md: deprecated stub pointing at tfpolicy-author.
- Sentinel-to-Terraform-Policy conversion examples (10 real-world examples).
- Quick-start and common-patterns learning docs.
Updates marketplace.json, README.md, terraform/README.md, and AGENTS.md to
register and document the new plugin alongside existing Terraform plugins.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* fix: resolve waza compliance issues for terraform-policy skill
- Rename terraform/policy-code/ → terraform/terraform-policy/ to satisfy
spec-dir-match (directory basename must match SKILL.md name field)
- Fix broken link in sentinel-to-tfpolicy/SKILL.md: conversion-examples/
did not exist in that directory; now points to
../tfpolicy-author/conversion-examples/README.md
- Fix directory links: skills/ → skills/tfpolicy-author/SKILL.md in root
SKILL.md, and conversion-examples/ → conversion-examples/README.md in
tfpolicy-author/SKILL.md
- Rewrite root SKILL.md to meet compliance score requirements:
- Add USE FOR section with 5 trigger phrases
- Add DO NOT USE FOR section
- Lead first sentence with action verb
- Add Quick Start code block
- Add Examples section with numbered routing guidance
- Update marketplace.json, terraform/README.md, and AGENTS.md to reflect
the renamed directory path
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* fix: trim terraform-policy SKILL.md to pass waza token budget (488/500)
Further tightened the router SKILL.md to bring it within the 500-token
hard limit. Previous iteration was at 516 tokens; now at 488 (12 remaining).
waza check now passes all checks:
- Compliance Score: High
- Spec Compliance: 9/9
- Links: 54/54 valid
- Token Budget: 488/500 (within budget)
- All advisory checks pass
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* feat: add terraform-policy-code plugin with tfpolicy-author and tfpolicy-test skills
Adds the terraform-policy-code Claude Code plugin to the agent-skills marketplace.
Structure:
- SKILL.md: waza-compliant router (433/500 tokens, 9/9 spec, 43/43 links)
- references/tfpolicy-author.md: authoring + Sentinel conversion (consolidated)
- references/tfpolicy-test.md: testing + full testing guide (consolidated)
- references/verified-syntax.md: shared syntax source-of-truth (39 verified rules)
- examples/conversion/: 13 side-by-side Sentinel→tfpolicy examples
- evals/: 3-task eval suite, 100% pass rate
Synced from hashicorp/terraform-policy-agent-skills fix/waza branch.
Updates AGENTS.md directory tree and npx skills add paths.
Updates CHANGELOG.md.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* fix: restructure terraform-policy plugin to use skills/ layout for CI compliance
Move tfpolicy-author and tfpolicy-test into skills/ subdirectories with SKILL.md
files to satisfy validate-structure.sh requirements. Keep references/verified-syntax.md
as a shared reference doc.
Update all internal cross-links for the new path depths:
- verified-syntax.md: bare tfpolicy-*.md refs → ../skills/*/SKILL.md
- skills/tfpolicy-author/SKILL.md: self-refs, verified-syntax anchors, README path
- Root SKILL.md: references/tfpolicy-*.md → skills/*/SKILL.md
waza (from terraform/terraform-policy/): Compliance High, 9/9 spec, 43/43 links,
454/500 tokens. Local validate-structure.sh: All checks passed.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* refactor: move terraform-policy to terraform/policy/skills/terraform-policy/
Restructure plugin to follow recommended product/use-case layout:
terraform/policy/ ← use-case plugin root
├── .claude-plugin/ ← plugin registration
└── skills/
└── terraform-policy/ ← skill content
├── SKILL.md
├── references/
├── examples/
└── evals/
Update marketplace.json source: ./terraform/terraform-policy → ./terraform/policy
Update AGENTS.md directory tree and npx install path.
Local validate-structure.sh: All checks passed.
waza: Compliance High, 9/9 spec, 43/43 links, 433/500 tokens.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: vpaul97 <v.paul@v.paul-GHRW27M29M>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Gautam <gautambaghel93@gmail.com>
|
||
| .claude-plugin | ||
| .github | ||
| packer | ||
| scripts | ||
| terraform | ||
| .copywrite.hcl | ||
| AGENTS.md | ||
| CHANGELOG.md | ||
| CODEOWNERS | ||
| LICENSE | ||
| README.md | ||
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, run tests, and author policies |
| 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-guide
Claude 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 terraform-policy-code@hashicorp
claude plugin install packer-builders@hashicorp
claude plugin install packer-hcp@hashicorp
Or use the interactive interface:
/plugin
Structure
agent-skills/
├── .claude-plugin/
│ └── marketplace.json
├── terraform/ # Terraform skills
├── packer/ # Packer skills
├── <product>/ # Future products (Vault, Consul, etc.)
└── README.md
Each product folder contains plugins, and each plugin contains skills:
<product>/
└── <plugin>/
├── .claude-plugin/plugin.json
└── skills/
└── <skill>/
└── SKILL.md
License
MPL-2.0