---
name: "tflint-pluggable-linter"
description: "Find Terraform errors, deprecated syntax, and cloud provider misconfigurations before applying."
metadata:
  author: "Terraform Linters"
  version: "1.0.0"
  runtime_compatibility:
    - "codex"
    - "claude-code"
    - "cursor"
    - "windsurf"
triggers:
  - "install tflint plugins"
  - "run tflint terraform"
  - "configure .tflint.hcl"
permissions:
  fs_read: true
  fs_write: "workspace"
  shell_exec: false
  net_access: false
---

# TFLint Pluggable Terraform Linter & Cloud Rule Sets

Configures TFLint: installing provider plugins (tflint-ruleset-aws, tflint-ruleset-google), detecting invalid EC2 instance types, verifying naming conventions, and running automated lint checks in CI.

## When to Invoke
Invoke this skill whenever you need to:
- install tflint plugins
- run tflint terraform
- configure .tflint.hcl

## Execution SOP & Rules
1. Create .tflint.hcl declaring plugin 'aws' { enabled = true, version = '...', source = '...' }.
2. Initialize plugins: tflint --init.
3. Run linter: tflint --recursive to scan all modules across the codebase.
4. Enforce in CI: tflint --format compact with non-zero exit code on errors.

## Verification Checklist
- Run local linting, syntax validation, and type-checks before reporting completion.
- Ensure all created or modified files adhere to workspace boundaries and avoid uncommitted secrets.
- Verify tests or build commands exit cleanly with return code 0.
