platform-infrastructure-as-code

Reviews Terraform, Pulumi, CDK, and Kubernetes manifests for plan safety, state, and drift.

1|Updated Apr 15, 2026
One-click install
npx skills add https://github.com/pnewsam/skills --skill platform-infrastructure-as-code-pnewsam
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: platform-infrastructure-as-code
Source: https://github.com/pnewsam/skills/tree/main/archive/platform-compliance-evicted/platform-infrastructure-as-code
Command: npx skills add https://github.com/pnewsam/skills --skill platform-infrastructure-as-code-pnewsam

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Infrastructure changes made through ad-hoc edits, unreviewed plans, or manual console clicks cause drift, outages, and security exposure. This Skill provides a structured review and authoring framework for declarative infrastructure so changes are planned, validated, and recoverable. ## Core Features & Use Cases - Plan and State Review: Checklists for validating plan diffs, state locking, destructive changes, and environment separation before apply. - Drift and GitOps Guidance: Practices for detecting drift, reconciling manual changes, and keeping desired state in Git with automated reconciliation. - Security Guardrails: Rules for least-privilege IAM, secrets kept out of state and logs, and policy-as-code checks with Checkov or OPA. - Use Case: Before merging a Terraform PR that replaces a database instance, use this Skill to review the plan for destructive actions, confirm state locking, and define a rollback path. ## Quick Start Review this Terraform plan output and flag any destructive changes, secrets exposure, or missing rollback steps.

Frequently Asked Questions about platform-infrastructure-as-code

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

FAQPage Schema
How do I review a Terraform plan before applying?▼

Review a Terraform plan by checking which resources are created, updated, replaced, or destroyed, and highlighting destructive changes explicitly. Run terraform validate in CI on every PR and treat the plan diff as part of code review.

What is infrastructure drift and how do I detect it?▼

Drift is the difference between declared IaC state and live cloud resources, usually from manual console changes. Detect it with scheduled plan runs comparing state to live infrastructure, then reconcile by importing changes or reverting them.

Should I use Terraform modules or plain resources?▼

Use small, purposeful modules with clear inputs and outputs once resource ownership and variation are understood. Avoid creating generic shared modules early, since broad modules make small changes dangerous across teams.

Can I store secrets in Terraform variables or state?▼

No, secrets should never be stored in variables files, state, plan logs, or repository files. Reference external secret stores instead, and use policy-as-code tools like Checkov or OPA to block secrets-in-state.

When should infrastructure changes require manual approval?▼

Require human approval for destructive changes, broad cross-cutting modifications, IAM and network changes, and anything affecting production availability. Small diffs can still be high-risk when they touch permissions or data-bearing resources.