Help us improve
Share bugs, ideas, or general feedback.
From grimoire
Detects, audits, and remediates drift between infrastructure-as-code declarations and actual deployed state using Terraform, CloudFormation, or kubectl.
npx claudepluginhub jeffreytse/grimoire --plugin grimoireHow this skill is triggered — by the user, by Claude, or both
Slash command
/grimoire:audit-infra-driftThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Detect and remediate differences between infrastructure-as-code declarations and the actual state of deployed resources.
Detects drift between cloud infrastructure and IaC using terraform plan, CloudFormation detect-stack-drift, or Pulumi preview. Parses changes, generates resource-level reports, and suggests remediation.
Use when detecting infrastructure drift between Terraform state and actual AWS resources. Identifies out-of-band changes.
Analyzes Terraform, CloudFormation, and Pulumi configurations for module structure, state management, drift prevention, and security posture.
Share bugs, ideas, or general feedback.
Detect and remediate differences between infrastructure-as-code declarations and the actual state of deployed resources.
Adopted by: WeaveWorks (GitOps origin), AWS (Config + CloudFormation drift detection), HashiCorp (Terraform plan as drift detection) Impact: Puppet's State of DevOps report found that IaC adoption reduces change failure rate by 60%; undetected drift is the #1 cause of "works in staging, fails in production" incidents.
Drift accumulates when engineers make manual ("click-ops") changes to production that are not reflected in the IaC source of truth. Over time, the declared state diverges from reality, making changes unpredictable and compliance verification impossible. Regular drift audits restore confidence in IaC as the authoritative source.
terraform plan (Terraform), kubectl diff (Kubernetes), or aws cloudformation detect-stack-drift to surface all differences between declared and actual state.terraform plan in CI on a schedule (e.g., nightly); alert on non-empty plans. Use AWS Config rules for real-time compliance checks.ignore_changes or AWS Config suppressions to exclude from alerts.terraform plan on a production environment is an incident signal — investigate before the next deploy.# Terraform drift detection
terraform plan -detailed-exitcode
# Exit code 2 = changes detected (drift present)
# AWS Config drift detection
aws cloudformation detect-stack-drift --stack-name production-stack
aws cloudformation describe-stack-resource-drifts --stack-name production-stack \
--stack-resource-drift-status-filters MODIFIED DELETED
terraform apply -auto-approve without reviewing the plan — applies unintended drift removals that may cause outages.