Terrashark
Prevent Terraform/OpenTofu hallucinations by diagnosing and fixing failure modes...
Install
npx skills add LukasNiessen/terrashark --skill terrashark -g -a claude-code -y- Repository
- LukasNiessen/terrashark716
- Category
- Testing
- Updated
- 5d ago
- License
- MIT
- Context cost
- Lightabout 762 tokens
- Runs scripts
- No, instructions only
What it does
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:
- runtime (
terraformortofu) and exact version - provider(s), target platform, and state backend
- execution path (local CLI, CI, HCP Terraform/TFE, Atlantis)
- environment criticality (dev/shared/prod)
If unknown, state assumptions explicitly.
2) Diagnose likely failure mode(s)
Select one or more based on user intent and risk:
- identity churn: resource addressing instability, refactor breakage
- secret exposure: secrets in state, logs, defaults, artifacts
- blast radius: oversized stacks, weak boundaries, unsafe applies
- CI drift: version mismatch, unreviewed applies, missing artifacts
- compliance gate gaps: missing policies/approvals/audit controls
3) Load only the relevant reference file(s)
Primary references:
references/identity-churn.mdreferences/secret-exposure.mdreferences/blast-radius.mdreferences/ci-drift.mdreferences/compliance-gates.md
Supplemental references (only when needed):
references/testing-matrix.mdreferences/quick-ops.mdreferences/examples-good.mdreferences/examples-bad.mdreferences/examples-neutral.mdreferences/coding-standards.mdreferences/module-architecture.mdreferences/ci-delivery-patterns.mdreferences/security-and-governance.mdreferences/do-dont-patterns.mdreferences/mcp-integration.md
Conditional references (CRR; load only on detected signals):
references/conditional/backend-state-safety.md(backend iss3,azurerm,gcs,remote,cloud,pg,consul, orlocal, or task mentions backend migration, locking, state backup, or restore)references/conditional/trusted-modules.md(provider isaws,azurerm,google,oci, oribm)
Do not load multiple conditional references unless the task spans multiple detected backends, providers, or tools.


