platform-skills: Cursor rule for Cursor

.cursorrules

cursorrules is a cursor rule for Cursor from nitinjain999/platform-skills. It costs 2,001 tokens per session, scanned A, original, Apache-2.0.

A set of project rules for platform engineering, the work of building and operating shared systems for running software. It covers cloud infrastructure, Kubernetes, deployment automation, security, monitoring, and code review.

In plain words
What is it for?
Use it to guide implementation, troubleshooting, audits, generated code, and reviews involving Terraform, Kubernetes, GitOps, GitHub Actions, AWS, Azure, Helm, policy checks, observability, networking, or service meshes.
Why use it?
It gives an AI coding assistant consistent boundaries and production-focused review habits across related tools. It also makes risky changes easier to assess by requiring impact, validation, and rollback information.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

This is nitinjain999/platform-skills's own configuration. It tells Cursor how to work on platform-skills itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything platform-skills configures →

Reuse

Borrowing it

Nothing to install: this file belongs to nitinjain999/platform-skills. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/nitinjain999/platform-skills/main/.cursorrules
Clone the repo
git clone --depth 1 https://github.com/nitinjain999/platform-skills

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cursorrules

README.md
[![agentmods](https://agentmods.dev/badge/rules/nitinjain999/platform-skills/cursorrules/github.svg)](https://agentmods.dev/rules/nitinjain999/platform-skills/cursorrules)
Your own site
<a href="https://agentmods.dev/rules/nitinjain999/platform-skills/cursorrules"><img src="https://agentmods.dev/badge/rules/nitinjain999/platform-skills/cursorrules/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cursorrules

Your own site · 80×15
<a href="https://agentmods.dev/rules/nitinjain999/platform-skills/cursorrules"><img src="https://agentmods.dev/badge/rules/nitinjain999/platform-skills/cursorrules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,001 This file is loaded in full into every session.
When invoked 2,001 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.02001 $0.02001
Opus 5.5 $0.00800 $0.00800
Sonnet 5.5 $0.00400 $0.00400
Haiku 4.5 $0.00200 $0.00200

Measured 2d ago against content hash cb11addce9e6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cursorrules scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursorrules · 172 lines

How it starts

The opening of the file, as written. The whole thing — 172 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Platform Engineering Rules — platform-skills v1.45.10

Source: https://github.com/nitinjain999/platform-skills

Scope: project-level — applies to all Cursor AI in this workspace

Upgrade: git pull in the platform-skills clone → re-copy this file → commit

Role

You are a senior platform engineer working in production-first environments. Apply platform engineering best practices for Kubernetes, Terraform, GitOps, GitHub Actions, AWS, Azure, Helm, Kyverno, OPA/Conftest, observability, and PR review.

How to respond

  • Lead with the root cause, not the symptom
  • For any risky change: state blast radius, validation steps, and rollback path
  • For generated code: include the thinnest working slice, note what is intentionally out of scope
  • For reviews: group findings as Critical / Improvement / Note

Layer ownership — never cross these boundaries

Layer Owns Does not own
Terraform Cloud resources, IAM, networking, cluster bootstrap In-cluster workloads, Helm releases
Flux / Argo CD In-cluster state, workload promotion, HelmReleases Cloud resources, IAM
GitHub Actions CI validation, artifact publish, promotion triggers Long-lived environment state
Kubernetes Workload specs, RBAC, network policy, limits Cloud account structure

Code generation rules

Kubernetes — always include

resources:
  requests: { cpu: "100m", memory: "128Mi" }
  limits: { memory: "256Mi" }   # omit cpu limit — causes throttling
securityContext:
  runAsNonRoot: true
  allowPrivilegeEscalation: false
  readOnlyRootFilesystem: true
  capabilities: { drop: ["ALL"] }
livenessProbe:
  httpGet: { path: /healthz, port: 8080 }
readinessProbe:
  httpGet: { path: /ready, port: 8080 }

OpenShift: never set runAsUser to a specific UID.

Kubernetes posture — Kubescape

  • Gate CI on --severity-threshold or --baseline … --baseline-fail-on-new; a scan without a gate exits 0
  • Install the CLI with cosign verify-blob; never kubescape/github-action (bundles CLI v3.0.21)
  • Exceptions that must stop the gate use "actions": ["disable"] with an until-YYYY-MM-DD name; alertOnly keeps failing
  • Operator: pin the chart, set kubescape.image.tag ≥ v4.0.14, keep remediation and autoUpgrading disabled, use containerprofiles (not applicationprofiles)

Read the full file on GitHub · 172 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago Changed cb11addce9e6
  2. 6d ago Changed 4b4f8142f392
  3. 8d ago Changed f8f80af56326
  4. 9d ago Changed · +7 lines · +148 tokens per session cb6705a01ca2
  5. 15d ago Changed · +13 lines · +377 tokens per session c70b10fd641c
  6. 1mo ago Changed 13694c979f5e
  7. 1mo ago Changed c54f30abe6ae
  8. 1mo ago First seen · 152 lines · 1,476 tokens per session scan A 39c39ecf7c82

Subscribe to this mod's changes

cursorrules is a cursor rule published in the GitHub repository nitinjain999/platform-skills (70 stars, last pushed yesterday), licensed Apache-2.0. It adds 2,001 tokens to every session, about $0.0080 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.