What problem does it solve?
Editing Terraform code without first understanding the codebase structure, state backend, or existing drift can lead to failed deployments, unintended infrastructure destruction, or costly outages. This Skill eliminates that risk by providing a structured pre-change navigation and safety workflow for Terraform projects.
Core Features & Use Cases
- Module-to-Resource Mapping: Quickly locate which files or modules own specific Terraform resources, eliminating hours of manual grepping.
- State Backend & Version Verification: Identify the configured state backend, provider versions, and required Terraform version to avoid misconfiguration errors.
- Safe Local Validation: Run Terraform fmt and validate workflows locally without cloud credentials, with a built-in fallback for backend initialization failures.
- Drift & Risk Flagging: Detect documented known drift and flag high-risk operations like full apply or destroy that require explicit user approval.
- Use Case: If you need to update an Azure Virtual Network resource in a large Terraform codebase, use this Skill first to confirm the resource's location, check for drift, and validate your changes locally before running a plan.
Quick Start
Use the terraform-module-ops skill to map all resources in your Terraform root directory and identify any known drift before you make changes to .tf files.