terraform-state-manager

Analyze Terraform state files to detect drift and generate structured reports.

5|Updated Jul 6, 2025
One-click install
npx skills add https://github.com/GuicedEE/ai-rules --skill terraform-state-manager-guicedee
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: terraform-state-manager
Source: https://github.com/GuicedEE/ai-rules/tree/main/skills/.curated/terraform-state-manager
Command: npx skills add https://github.com/GuicedEE/ai-rules --skill terraform-state-manager-guicedee

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This skill helps teams safely inspect Terraform state, detect drift, and perform controlled state manipulations to keep infrastructure in sync with configuration.

Core Features & Use Cases

  • Inspect state: list resources, view details, and identify orphaned or untagged resources.
  • Drift detection: compare state with deployed infrastructure and highlight differences, with actionable remediation steps.
  • State manipulation & auditing: move or remove resources, import existing ones, and generate structured state analysis reports for audits and governance.
  • Use Case: In a multi-environment setup, teams can regularly audit terraform.tfstate and resolve drift before applying changes.

Quick Start

Provide your terraform state file to the tool and run the skill to generate drift reports and remediation steps.

Frequently Asked Questions about terraform-state-manager

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect drift in a Terraform state file?

You can detect Terraform state drift by providing your state file to the tool, which compares state with deployed infrastructure and generates a report highlighting differences with actionable remediation steps.

What is Terraform state auditing and why do I need it?

Terraform state auditing is the process of inspecting your state file to list resources, identify orphaned or untagged entries, and generate structured analysis reports for governance and infrastructure compliance.

How do I safely move or remove resources from Terraform state?

You can safely manipulate Terraform state by using the tool's guided commands to move, remove, or import existing resources, ensuring your infrastructure stays synchronized with your configuration without unintended deletions.

Can I use this for Terraform drift detection in multi-environment setups?

Yes, you can use the tool in multi-environment setups to regularly audit terraform.tfstate files, detect drift, and resolve infrastructure differences before applying configuration changes across collaborative teams.

Does Terraform state management work with existing command-line workflows?

Yes, the tool supports command-line usage integrated with existing workflows, allowing you to generate structured state analysis reports and remediation steps directly within your current infrastructure automation pipeline.