agentsclimarketplace

Check terraform

Skill Proportione/proportione-plugins/plugins/check-terraform/skills/check-terraform

Claude Code plugin marketplace + playbook. 9 QA skills (review, security, architecture, performance, WordPress, Terraform) and 8 production guides from an AI-first consultancy.

Install
npx -y skills add Proportione/proportione-plugins --skill check-terraform

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

2.6 KB, 733 tokens by cl100k_base, as published. Nobody here has run it

Skill: Check Terraform

Validacion de seguridad y correctitud de infraestructura como codigo.

Target: $ARGUMENTS (directorio con ficheros .tf, o proyecto completo)

Configuration

This skill references external paths. Set these environment variables or replace inline:

  • $QA_PROPORTIONE_DIR — Root of the QA_Proportione repo (e.g. /path/to/QA_Proportione)

Dependencias

which terraform   # brew install terraform
which checkov     # pip install checkov
which semgrep     # pip install semgrep

Si no estan instaladas, informar al usuario y ofrecer instalarlas.


Flujo

PASO 1 — Identificar alcance

  1. Detectar directorio con ficheros .tf
  2. Leer CLAUDE.md del proyecto si existe
  3. Identificar provider (GCP, AWS, Azure)

PASO 2 — terraform validate

cd [directorio-terraform]
terraform init -backend=false  # Solo providers, no state
terraform validate

Reportar errores de sintaxis o configuracion.

PASO 3 — terraform plan (si hay state)

Solo si el usuario lo autoriza (puede tener coste o side-effects):

terraform plan -no-color 2>&1 | tee /tmp/tf-plan.txt

Analizar el plan:

  • Recursos que se DESTRUYEN (flag critico)
  • Cambios inesperados
  • Recursos nuevos sin tags

PASO 4 — Checkov scan

checkov -d [directorio-terraform] \
  --quiet \
  --compact \
  --framework terraform \
  2>&1 | tee /tmp/checkov-results.txt

Clasificar findings:

  • CRITICAL/HIGH: bloqueantes — deben resolverse
  • MEDIUM: evaluar con contexto
  • LOW: informativo

PASO 5 — Semgrep con reglas custom

semgrep --config $QA_PROPORTIONE_DIR/rulesets/semgrep/terraform.yml \
  [directorio-terraform]

PASO 6 — Revision manual Claude

Revisar los ficheros .tf buscando:

  1. Secrets hardcoded — passwords, tokens, API keys en texto plano
  2. IAM excesivo — roles/owner, roles/editor, allUsers
  3. Recursos publicos — buckets, Cloud Run, VM sin firewall
  4. Sin encryption — discos, bases de datos sin CMEK
  5. Sin logging — audit logs desactivados
  6. Lifecycle rules — prevent_destroy en recursos criticos
  7. State file — verificar que no esta en el repo (.gitignore)

PASO 7 — Generar informe

# Check Terraform — [proyecto]
**Fecha:** YYYY-MM-DD
**Directorio:** [path]

## Resumen
- terraform validate: OK/FAIL
- Checkov findings: X CRITICAL, Y HIGH, Z MEDIUM
- Semgrep findings: X ERROR, Y WARNING
- Revision manual: X issues

## Findings criticos
[lista]

## Recomendaciones
[lista priorizada]

Guardar en reports/{YYYY-MM-DD}/{proyecto}/check-terraform.md

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.