ai-governance
Generate and enforce policy gates for AI coding agents (Copilot, Claude Code) — real-time session hooks that deny protected-path edits and dangerous commands,…
Runs through the full Terraform validation pipeline — fmt, validate, tflint, security scan — and reviews a module or plan for blast radius, IAM risk, and state impact.
> /plugin marketplace add nitinjain999/platform-skills > /plugin install platform-skills@platform-skills
How it fires
How this command gets triggered: by you, by Claude, or both.
/terraformContext preview
What this command does when you run it.
Runs through the full Terraform validation pipeline — fmt, validate, tflint, security scan — and reviews a module or plan for blast radius, IAM risk, and state impact.
name: terraform description: Runs through the full Terraform validation pipeline — fmt, validate, tflint, security scan — and reviews a module or plan for blast radius, IAM risk, and state impact. argument-hint: "[paste terraform code, plan output, or describe the change]" title: "Terraform Command" sidebar_label: "terraform" custom_edit_url: null
---
When invoked with no arguments, ask before reviewing:
**Q1 — What to review?**
Paste the Terraform code or plan output, or describe the change (e.g. "adding an aws_rds_instance", "plan shows 3 resources destroyed", "here's my EKS module"):
**Q2 — Focus area?** (ask after Q1)
Any specific focus, or full review? 1. Full review — validation pipeline + blast radius + IAM + state impact 2. IAM / security — least privilege, wildcard actions, sensitive vars 3. Blast radius — what gets replaced vs updated, downstream impact 4. Module design — variable validation, output types, provider config Enter 1–4 [default: 1]:
Then proceed with the review framework below.
---
You are a senior platform engineer reviewing Terraform.
The input is: $ARGUMENTS
Walk through each gate in order. For each, state whether it would pass or fail based on the provided code, and why:
1. **`terraform fmt -check -recursive`** — formatting and style 2. **`terraform validate`** — syntax, type correctness, reference integrity (note: use `-backend=false` in CI) 3. **`tflint --recursive`** — provider-specific rules (invalid instance types, deprecated arguments, missing required_version) 4. **`tfsec . --minimum-severity HIGH`** or **`checkov -d . --framework terraform --compact`** — security misconfigurations
> **Checkov deep scan:** For full static and plan-level Checkov scanning with bootstrap, multi-cloud provider detection, private module auth, pre-commit generation, and fix mode — use `/platform-skills:checkov`.
> **tfsec version note:** Flag syntax changed in v1.0+. Check with `tfsec --version`. > - `< v1.0`: use `--minimum-severity HIGH` > - `>= v1.0`: use `--severity HIGH` > - Drop-in alternative: `trivy config . --severity HIGH`
**Pre-merge validation:** Run against a test workspace before merging:
terraform workspace select <test-workspace> terraform plan -out=tfplan # Review the plan output for unexpected resource replacements (lines marked with -/+) # Any replacement of stateful resources (RDS, ElastiCache, EKS node group) requires explicit approval
List exact fixes with the corrected HCL snippet where applicable.
A production-grade field handbook for platform, DevOps, SRE, and cloud engineers covering Kubernetes, Flux CD, Terraform, GitHub Actions, AWS, OPA/Rego, KEDA, Karpenter, supply chain security, Falco, observability, and more.
Repo: nitinjain999/platform-skills
Generate and enforce policy gates for AI coding agents (Copilot, Claude Code) — real-time session hooks that deny protected-path edits and dangerous commands,…
Generate, convert, and maintain animated GitHub-safe Markdown documents with animated SVG diagrams. Covers four SVG patterns (architecture flow, lifecycle…
AWS profile management for MCP servers — discover profiles across SSO, Granted, and assumed-role chains, check credential TTL, switch profiles across VS Code…
Structured guidance for AWS CloudFront distributions, WAF web ACLs, Lambda@Edge, CloudFront Functions, Firewall Manager multi-account enforcement, and IAM/IRSA…
Azure identity (Workload Identity, OIDC, Entra ID), resource tagging, AKS platform patterns, RBAC scoping, and production-readiness review — with Terraform…
Design, run, and debug Chaos Engineering experiments on Kubernetes using Litmus Chaos v3 and Chaos Mesh v2. Covers fault injection (pod-delete, network-loss,…