What problem does it solve?
Reviewing infrastructure pull requests requires running Terraform plan against real Azure state, but doing so in your working directory risks polluting your worktree, touching remote state, or accidentally applying changes. This Skill performs a safe, read-only plan review in an isolated worktree.
Core Features & Use Cases
- Isolated Plan Execution: Creates a detached git worktree at the PR's exact head SHA so your primary worktree and remote state are never modified.
- Backend Parity with CI: Mirrors the backend key and TF_VAR inputs from the repository's deploy workflow so the plan matches what CI would produce.
- Guardrailed Review: Blocks on destroy/replacement actions, identity or authentication changes, and state-access failures, and never applies, unlocks, imports, or merges.
- Use Case: A maintainer receives a PR that changes Terraform modules under infra/. Instead of checking out the branch locally, they ask the assistant to plan the PR, and receive a full report of every resource action compared against the diff.
Quick Start
Ask the assistant to run a Terraform plan review for the open infrastructure pull request and report every planned resource action.