/ ディレクトリ / プレイグラウンド / HashiCorp Agent Skills
● 公式 hashicorp ⚡ 即起動

HashiCorp Agent Skills

作者 hashicorp · hashicorp/agent-skills

Official HashiCorp Claude Code plugins + agent skills for Terraform, Vault, Nomad.

HashiCorp's official agent skills bundle: Terraform module authoring, Vault policy generation, Nomad job specs, Consul service mesh. These encode the canonical 'right way' for each tool rather than letting the LLM hallucinate HCL.

なぜ使うのか

主な機能

ライブデモ

実際の動作

hashicorp-agent-skills.replay ▶ 準備完了
0/0

インストール

クライアントを選択

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "hashicorp-agent-skills": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/hashicorp/agent-skills",
        "~/.claude/skills/agent-skills"
      ],
      "_inferred": true
    }
  }
}

Claude Desktop → Settings → Developer → Edit Config を開く。保存後、アプリを再起動。

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "hashicorp-agent-skills": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/hashicorp/agent-skills",
        "~/.claude/skills/agent-skills"
      ],
      "_inferred": true
    }
  }
}

Cursor は Claude Desktop と同じ mcpServers スキーマを使用。プロジェクト設定はグローバルより優先。

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "hashicorp-agent-skills": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/hashicorp/agent-skills",
        "~/.claude/skills/agent-skills"
      ],
      "_inferred": true
    }
  }
}

Cline サイドバーの MCP Servers アイコンをクリックし、"Edit Configuration" を選択。

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "hashicorp-agent-skills": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/hashicorp/agent-skills",
        "~/.claude/skills/agent-skills"
      ],
      "_inferred": true
    }
  }
}

Claude Desktop と同じ形式。Windsurf を再起動して反映。

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "hashicorp-agent-skills",
      "command": "git",
      "args": [
        "clone",
        "https://github.com/hashicorp/agent-skills",
        "~/.claude/skills/agent-skills"
      ]
    }
  ]
}

Continue はマップではなくサーバーオブジェクトの配列を使用。

~/.config/zed/settings.json
{
  "context_servers": {
    "hashicorp-agent-skills": {
      "command": {
        "path": "git",
        "args": [
          "clone",
          "https://github.com/hashicorp/agent-skills",
          "~/.claude/skills/agent-skills"
        ]
      }
    }
  }
}

context_servers に追加。保存時に Zed がホットリロード。

claude mcp add hashicorp-agent-skills -- git clone https://github.com/hashicorp/agent-skills ~/.claude/skills/agent-skills

ワンライナー。claude mcp list で確認、claude mcp remove で削除。

ユースケース

実用的な使い方: HashiCorp Agent Skills

Author a reusable Terraform module the HashiCorp way

👤 Platform engineers ⏱ ~15 min intermediate

使うタイミング: You want a module that won't get torched in code review.

前提条件
  • Server/skill installed and authenticated — See repo README
フロー
  1. Scaffold
    Use the HashiCorp Terraform skill to scaffold a module for an AWS RDS Postgres with backups and CMK encryption.✓ コピーしました
    → Module skeleton with variables, outputs, README, examples/
  2. Validate
    Run tflint and the skill's checklist. Fix anything that fails.✓ コピーしました
    → Clean tflint + checklist green

結果: Module that matches HashiCorp's published conventions.

注意点
  • Versions drift fast. Re-pull the skill quarterly — Versions drift fast. Re-pull the skill quarterly — provider major versions change argument names.

コストと制限

運用コスト

APIクォータ
See provider docs for rate limits
呼び出しあたりのトークン
Varies by tool
金額
See repo README for pricing details
ヒント
Cache tool results and avoid repeated identical calls.

セキュリティ

権限、シークレット、影響範囲

認証情報の保管: Use environment variables; never commit secrets
データ送信先: Tool calls go to the provider's API as documented

トラブルシューティング

よくあるエラーと対処法

skill references deprecated argument

Update the skill (git pull in ~/.claude/skills/hashicorp-agent-skills) and re-read its docs.

確認: git log --oneline | head
provider version conflict

The skill suggests required_providers blocks; align your root module to the same major version.

確認: terraform init succeeds

代替案

HashiCorp Agent Skills 他との比較

代替案代わりに使う場面トレードオフ
Generic Terraform examplesYou want community modules instead of authoringNo authoring guidance

その他

リソース

📖 GitHub の公式 README を読む

🐙 オープンな issue を見る

🔍 400以上のMCPサーバーとSkillsを見る