# Terraform State Drift Detector

> Detects infrastructure drift by running terraform plan -detailed-exitcode and parsing the JSON output via terraform show -json. Categorizes drift by resource type and generates targeted terraform apply plans for reconciliation.

- Skill: `agentskillexchange/terraform-state-drift-detector` (Agent Skill)
- Install (CLI): `npx skillmds@latest add agentskillexchange/terraform-state-drift-detector`
- Raw SKILL.md: https://api.skillmd.com/api/skills/agentskillexchange/terraform-state-drift-detector/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra
- Author: agentskillexchange (https://skillmd.com/u/agentskillexchange)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/agentskillexchange/terraform-state-drift-detector

---


# Terraform State Drift Detector

Detects infrastructure drift by running terraform plan -detailed-exitcode and parsing the JSON output via terraform show -json. Categorizes drift by resource type and generates targeted terraform apply plans for reconciliation.

## Installation

Basic usage or getting-started notes:
- Documentation is available on the [Terraform website](https://developer.hashicorp.com/terraform):
- [Introduction](https://developer.hashicorp.com/terraform/intro)
- [Documentation](https://developer.hashicorp.com/terraform/docs)

- Source: https://github.com/hashicorp/terraform
- Extracted from upstream docs: https://raw.githubusercontent.com/hashicorp/terraform/HEAD/README.md

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/terraform-state-drift-detector/)

