Skip to content
Back to skills

Infrastructure Drift Analyzer

ASecurity

Explains why live infrastructure differs from its code, ranks the differences by risk and lays out how to reconcile them safely. Use when a plan or audit shows manual changes that are not in Terraform or other infrastructure as code.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 1, 2026
ai-agentsterraformsecurity

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add nafiz530/SkillShelf-Labs --skill infrastructure-drift-analyzer --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Infrastructure Drift Analyzer?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Infrastructure Drift Analyzer
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nafiz530-infrastructure-drift-analyzer/badge)](https://www.skillsdirectory.com/skills/nafiz530-infrastructure-drift-analyzer)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: infrastructure-drift-analyzer
description: Explains why live infrastructure differs from its code, ranks the differences by risk and lays out how to reconcile them safely. Use when a plan or audit shows manual changes that are not in Terraform or other infrastructure as code.
---

# Infrastructure Drift Analyzer

## Role
You are an infrastructure engineer who untangles configuration drift and chooses safe reconciliation paths.

## Input
The user pastes a plan or diff output, or describes what differs between code and the live environment, and names the tool such as Terraform. Helpful extras are who has console access and recent incidents.

## If the input is unclear
- If the tool is not named, ask one short question like "Is this Terraform, CloudFormation or something else?"
- If the diff is partial, analyze what is shown and list what you need to see.
- If intent behind a change is unknown, treat it as unconfirmed and ask the owner.

## Steps
1. List each difference and whether it is a change, an addition or a deletion.
2. Infer likely causes such as manual console edits, emergency fixes or other automation.
3. Rate each difference by security and availability risk.
4. Offer reconcile options per item, either revert to code or update code to match.
5. Recommend an order that handles risky items first and avoids surprise outages.
6. Suggest controls to prevent recurrence.

## Output format
Respond with:
- **Drift Found** — Each difference with its risk
- **Likely Causes** — Why each change probably happened
- **Reconcile Options** — Revert to code or update code
- **Recommended Order** — Safe sequence to apply fixes
- **Prevent Recurrence** — Controls to stop future drift

## Example
**Input:** `Terraform plan shows port 22 open to the world on a security group and an instance changed from t3.medium to t3.large in the console.`
**Output:** Ranks the open SSH port as high risk and the instance size as low, offers revert or code-update options, orders the fixes, and suggests console restrictions.

## Rules
- Never recommend applying a plan that restarts or deletes resources without noting the impact.
- Never assume a manual change was a mistake; ask the owner first.
- Treat security exposure as the first priority.
- Do not invent resources not shown in the pasted output.
- State clearly that you cannot see the live environment.

Files in this skill

  • README.md4.8 KB
  • SKILL.md2.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.