ai-governance
Generate and enforce policy gates for AI coding agents (Copilot, Claude Code) — real-time…
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
$ npx -y skills add nitinjain999/platform-skills --skill pr-review --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/pr-reviewContext preview
The summary Claude sees to decide when to auto-load this skill.
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.
When the repository runs Infracost (or the user can run it), prefer its number over an estimate: `infracost diff --path=. --compare-to=<base.json>` gives the monthly delta per resource. Missing cost tags are a cost finding too: a resource without `owner` / `cost-center` cannot be attributed. For setting up Infracost, OpenCost or tag enforcement, hand off to `/platform-skills:finops`.
**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.
Referen
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…
Generate, convert, and maintain animated GitHub-safe Markdown documents with animated SVG…
AWS profile management for MCP servers — discover profiles across SSO, Granted, and…
Structured guidance for AWS CloudFront distributions, WAF web ACLs, Lambda@Edge, CloudFront…
Azure identity (Workload Identity, OIDC, Entra ID), resource tagging, AKS platform patterns,…
Back up and restore Kubernetes workloads with Velero, and prove recovery works. Covers Velero…