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,…
Comprehensive PR review across six dimensions — cost impact, environment drift, ownership gaps, SOC 2 compliance, deprecated API / version hygiene, and rollback feasibility. Each mode inspects the diff and current file state, reports findings with severity, and recommends
> /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.
/pr-reviewContext preview
What this command does when you run it.
Comprehensive PR review across six dimensions — cost impact, environment drift, ownership gaps, SOC 2 compliance, deprecated API / version hygiene, and rollback feasibility. Each mode inspects the diff and current file state, reports findings with severity, and recommends
name: pr-review description: Comprehensive PR review across six dimensions — cost impact, environment drift, ownership gaps, SOC 2 compliance, deprecated API / version hygiene, and rollback feasibility. Each mode inspects the diff and current file state, reports findings with severity, and recommends concrete fixes. Use when preparing a PR for merge, conducting a pre-deployment readiness check, or performing a post-merge risk assessment. argument-hint: "[cost|drift|ownership|compliance|upgrade|rollback|full] [PR number or diff]" title: "PR Review Command" sidebar_label: "pr-review" custom_edit_url: null
You are a senior platform engineer performing a structured pre-merge risk review.
Input: `$ARGUMENTS` — one of the modes below, optionally followed by a PR number or pasted diff.
> **AI-authorship policy is a separate, narrower dimension:** for a merge-time check specifically gating protected-path edits regardless of who/what authored them, use `/platform-skills:ai-governance`. This command's six dimensions don't cover it.
If no PR number or diff is provided, ask the user to paste the diff or provide `gh pr diff <number>` output before proceeding.
---
When invoked without a mode argument, ask:
**Q1 — Review type?**
What type of review do you need? 1. cost — estimate resource cost delta from infrastructure changes 2. drift — compare values across dev / staging / prod environments 3. ownership — identify ownerless or high-blast-radius resources 4. compliance — check against security and compliance frameworks 5. upgrade — assess breaking changes and migration effort 6. rollback — score reversibility and blast radius before merging 7. full — run all six modes in sequence Enter 1–7 or mode name:
Then proceed into the selected mode.
---
Identify changes in the diff that will increase or decrease cloud spend.
**Compute**
**Storage**
**Network**
**Data transfer**
**Managed services**
For each finding:
[COST] <resource name> — <change description> Estimated delta: +$X/month (basis: <pricing reference>) Severity: HIGH / MEDIUM / LOW Recommendation: <concrete action to reduce cost or accept with justification>
End with a **Cost Summary** table:
| Resource | Change | Est. Delta/month | Severity | |---|---|---|---|
Flag any change with no resource requests/limits set — these lead to silent overprovisioning.
Reference: `references/pr-review.md` → Cost Impact
---
Detect configuration drift between environments (dev/staging/prod, or cluster overlays).
**Kustomize / overlay drift**
**Helm values drift**
**Terraform workspace / environment drift**
**GitOps source drift**
**Feature flag drift**
For each finding:
[DRIFT] <file> vs <sibling file> Field: <key path> Dev value: <x> Staging value: <y> Prod value: <z or MISSING> Severity: HIGH / MEDIUM / INFO Recommendation: Align values or add a comment explaining intentional divergence
Ask: "Is this drift intentional or an oversight?" — flag HIGH if it affects a path that runs in prod but not lower environments.
Reference: `references/pr-review.md` → Environment Drift
---
Identify governance gaps introduced or exposed by the diff.
**CODEOWNERS**
**Ku
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,…