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
by LukasNiessen
AI & ML · MIT · Updated: 6 months ago
322
stars
14
Forks
verified
AA
Safety
high
AA
Quality
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:

🔓 Sign in to unlock more
Sign in with GitHub