smithery/paulanunes85

terraform-cli

Terraform CLI operations for Azure infrastructure management

Installation

$ npx skills add smithery/paulanunes85 --skill terraform-cli

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery/paulanunes85.

npx skills add smithery/paulanunes85

Browse all from smithery/paulanunes85

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,880 B
  • docs SUMMARY.md 250 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

When to Use

  • Validating Terraform configurations
  • Planning infrastructure changes
  • Applying infrastructure changes (with approval)
  • Security scanning IaC

Prerequisites

  • Terraform >= 1.5.0 installed
  • Azure CLI authenticated
  • Backend storage account accessible
  • Environment variables: ARMSUBSCRIPTIONID, ARMTENANTID

Commands

Format & Validate

# Check formatting
terraform fmt -check -recursive -diff

# Apply formatting
terraform fmt -recursive

# Validate configuration
terraform init -backend=false
terraform validate

Planning

# Initialize with backend
terraform init -reconfigure

# Create plan
terraform plan \
  -var-file=environments/${ENVIRONMENT}.tfvars \
  -out=tfplan \
  -detailed-exitcode

# Show plan in JSON
terraform show -json tfplan | jq '.resource_changes'

Security Scanning

# TFSec scan
tfsec . --format=json --out=tfsec-results.json

# Checkov scan
checkov -d . --output-file=checkov-results.json --output=json

State Operations (Read-Only)

# List resources
terraform state list

# Show resource details
terraform state show 'azurerm_kubernetes_cluster.main'

Best Practices

  1. ALWAYS run terraform fmt before committing
  2. ALWAYS run terraform validate before planning
  3. NEVER commit .tfstate files
  4. ALWAYS use -out flag for plans to review
  5. Use workspaces for environment separation
  6. Enable state locking with Azure blob lease

Output Format

Provide structured output:

  1. Command executed with full parameters
  2. Exit code (0=success, 1=error, 2=changes pending)
  3. Summary: resources to add/change/destroy
  4. Warnings or errors with line references
  5. Recommendations for next steps

Integration with Agents

Used by: @terraform, @security, @test