terrashark

Terraform Skill for Claude Code and Codex. LLMs hallucinate a lot with Terraform - TerraShark fixes this. It eliminates hallucinations, is designed for modular and secure code and grounds your IaC in the official Hashicorp Terraform best practices.

LukasNiessen
開発者 LukasNiessen
AI・機械学習 · MIT · 更新日: 6 months ago
322
スター
14
Forks
検証済み
AA
安全性:
優秀
AA
品質:
awsazureclaudeclaude-codeclaude-code-skillsclaude-skillscodexcodex-skillsdevopsgcpinfrastructure-as-codemodulesopentofuskillsterraform

name: terrashark description: "Prevent Terraform/OpenTofu hallucinations by diagnosing and fixing failure modes: identity churn, secret exposure, blast-radius mistakes, CI drift, and compliance gate gaps. Use when generating, reviewing, refactoring, or migrating IaC and when building delivery/testing pipelines."

Terrashark: Failure-Mode Workflow for Terraform/OpenTofu

Run this workflow top to bottom.

1) Capture execution context

Record before writing code:

If unknown, state assumptions explicitly.

2) Diagnose likely failure mode(s)

Select one or more based on user intent and risk:

3) Load only the relevant reference file(s)

Primary references:

Supplemental references (only when needed):

Conditional references (CRR; load only on detected signals):

Do not load multiple conditional references unless the task spans multiple detected backends, providers, or tools.

4) Propose fix path with explicit risk controls

For each fix, include:

5) Generate implementation artifacts

When applicable, output:

When a trusted registry module covers the requested resource and the user has not asked for raw HCL, default to that module with an exact version pin (see references/conditional/trusted-modules.md).

6) Validate before finalize

Always provide command sequence tailored to runtime and risk tier. Never recommend direct production apply without reviewed plan and approval.

7) Output contract

Return:

🔓 サインインしてさらに解放
GitHub でサインイン