cloud-platform-skills / skills
Cursor rule1 starsChanged 3 months agoMITView on GitHub
Cloud FinOps: the Inform, Optimize and Operate lifecycle, allocation tagging, showback and chargeback, unit economics, Kubernetes cost attribution with Kubecost and OpenCost, Savings Plans, Reserved Instances and CUD commitment modelling, and waste detection. Use when a cloud bill has jumped unexpectedly and the driver is unknown, when deciding whether to buy commitments, or when charging shared spend back to teams.
Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.
Of the Cursor rule files we read, the 1,531 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository167 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .agents/rules/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/00-index.mdcCursor rule
- .cursor/rules/skills/ai-agent-security-llm-threats.mdcCursor rule
- .cursor/rules/skills/api-gateway-service-mesh.mdcCursor rule
- .cursor/rules/skills/aws-cloud-migration-strategies.mdcCursor rule
- .cursor/rules/skills/aws-eks-enterprise-patterns.mdcCursor rule
- .cursor/rules/skills/aws-iam-zero-trust-policies.mdcCursor rule
- .cursor/rules/skills/azure-aks-enterprise-landing-zones.mdcCursor rule
- .cursor/rules/skills/azure-cloud-engineering-patterns.mdcCursor rule
- .cursor/rules/skills/backup-and-disaster-recovery.mdcCursor rule
- .cursor/rules/skills/chaos-engineering-resilience-testing.mdcCursor rule
- .cursor/rules/skills/cicd-pipeline-design.mdcCursor rule
- .cursor/rules/skills/cloud-native-microservices-patterns.mdcCursor rule
- .cursor/rules/skills/cloud-security-posture-cspm-cis.mdcCursor rule
- .cursor/rules/skills/configuration-management-ansible.mdcCursor rule
- .cursor/rules/skills/container-runtime-security-falco.mdcCursor rule
- .cursor/rules/skills/database-devops-lifecycle.mdcCursor rule
- .cursor/rules/skills/detection-engineering-threat-hunting.mdcCursor rule
- .cursor/rules/skills/devops-metrics-dora-kpis.mdcCursor rule
- .cursor/rules/skills/docker-containerization-basics.mdcCursor rule
- .cursor/rules/skills/enterprise-iac-governance-terragrunt.mdcCursor rule
- .cursor/rules/skills/gcp-cloud-engineering-patterns.mdcCursor rule
- .cursor/rules/skills/gcp-gke-autopilot-multi-tenant.mdcCursor rule
- .cursor/rules/skills/git-branching-merge-strategies.mdcCursor rule
- .cursor/rules/skills/gitops-multi-cluster-argo-flux.mdcCursor rule
- .cursor/rules/skills/helm-kubernetes-deployment.mdcCursor rule
- .cursor/rules/skills/incident-management-and-postmortem.mdcCursor rule
- .cursor/rules/skills/infrastructure-host-monitoring.mdcCursor rule
- .cursor/rules/skills/internal-developer-portal-backstage.mdcCursor rule
- .cursor/rules/skills/linux-sysadmin-troubleshooting.mdcCursor rule
- .cursor/rules/skills/performance-load-testing.mdcCursor rule
- .cursor/rules/skills/policy-as-code-opa-kyverno.mdcCursor rule
- .cursor/rules/skills/prometheus-grafana-otel-tracing.mdcCursor rule
- .cursor/rules/skills/scalability-high-availability-patterns.mdcCursor rule
- .cursor/rules/skills/scripting-and-automation.mdcCursor rule
- .cursor/rules/skills/secops-incident-triage-forensics.mdcCursor rule
- .cursor/rules/skills/secrets-management-vault-kms.mdcCursor rule
- .cursor/rules/skills/serverless-event-driven-architecture.mdcCursor rule
- .cursor/rules/skills/shift-left-security-sast-sca.mdcCursor rule
- .cursor/rules/skills/sli-slo-error-budget-design.mdcCursor rule
- .cursor/rules/skills/supply-chain-security-slsa-sigstore.mdcCursor rule
- .cursor/rules/skills/terraform-iac-modules.mdcCursor rule
- .cursor/rules/skills/write-a-skill.mdcCursor rule
- .cursor/rules/skills/zero-downtime-release-strategies.mdcCursor rule
- ai-agent-security-llm-threatsSkill
- api-gateway-service-meshSkill
- aws-cloud-migration-strategiesSkill
- aws-eks-enterprise-patternsSkill
- aws-iam-zero-trust-policiesSkill
- azure-aks-enterprise-landing-zonesSkill
- azure-cloud-engineering-patternsSkill
- backup-and-disaster-recoverySkill
- chaos-engineering-resilience-testingSkill
- cicd-pipeline-designSkill
- cloud-native-microservices-patternsSkill
- cloud-security-posture-cspm-cisSkill
- configuration-management-ansibleSkill
- The first 60 shown.
The file
We split this finops-framework-inform-optimize-operate.mdc into the rules it gives an agent
4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 65
Orphaned Storage Cleanup: Delete unattached EBS volumes, unreferenced Azure managed disks, and stale RDS/EBS snapshots.
- Distinctive: line 79
Start with showback. Chargeback on top of unreliable allocation produces disputes about the data instead of decisions about the spend.
- Distinctive: line 115
Remove waste first (idle, orphaned, over-provisioned) — commitments on inefficient baselines fund the inefficiency for three years.
- Distinctive: line 119
Prefer the flexible instrument (Compute Savings Plans, spend-based CUDs, convertible RIs) whenever an architecture change is plausible …
≈ “Common” is an estimate: at least 1 in 5 of the 3,030 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
---
description: "Cloud FinOps: the Inform, Optimize and Operate lifecycle, allocation tagging, showback and chargeback, unit economics, Kubernetes cost attribution with Kubecost and OpenCost, Savings Plans, Reserved Instances and CUD commitment modelling, and waste detection. Use when a cloud bill has jumped unexpectedly and the driver is unknown, when deciding whether to buy commitments, or when charging shared spend back to teams."
globs:
alwaysApply: false
---
# Cloud FinOps Framework: Inform, Optimize & Operate
## When to Use This Skill
**Triggers — load this skill when:**
- Cloud spend must be allocated, attributed, or forecast credibly
- A right-sizing, waste-cleanup, or commitment-purchase decision is needed
- Unit economics (cost per request/tenant/feature) must be established
**Route elsewhere when:**
- Capacity and autoscaling design -> `scalability-high-availability-patterns`
- Cluster-level node efficiency -> `aws-eks-enterprise-patterns` / `gcp-gke-autopilot-multi-tenant`
- Efficiency vs delivery-throughput metrics -> `devops-metrics-dora-kpis`
## 1. The FinOps 3-Phase Lifecycle
```text
+--------------+
| INFORM | -> Visibility, Cost Allocation, Unit Economics
+------+-------+
|
+------v-------+
| OPTIMIZE | -> Right-sizing, Waste Reduction, Commitment Models
+------+-------+
|
+------v-------+
| OPERATE | -> Continuous Governance, Automated Budget Alerts
+--------------+
```
---
## 2. Mandatory Enterprise Tagging Strategy (IaC / Terraform)
Enforce default provider tags across all cloud resources to ensure $100\%$ cost attribution:
```hcl
provider "aws" {
region = "us-east-1"
default_tags {
tags = {
Environment = "production"
CostCenter = "CC-4092"
Owner = "data-platform-team"
Service = "stream-processing"
FinOpsManaged = "true"
BusinessUnit = "E-Commerce"
}
}
}
```
---
## 3. High-Impact Cloud Cost Optimization Checklist
- **Orphaned Storage Cleanup**: Delete unattached EBS volumes, unreferenced Azure managed disks, and stale RDS/EBS snapshots.
- **Commitment Coverage Target**: Maintain $75\%-85\%$ coverage with Compute Savings Plans / Reserved Instances (RIs) for steady-state baselines.
- **Kubernetes Cost Allocation**: Deploy Kubecost / OpenCost to slice cluster costs down to namespaces, labels, and individual Pods.
- **Storage Lifecycle Policies**: Transition S3 / GCS buckets to Infrequent Access (IA) after 30 days and Glacier / Archive after 90 days.
---
## 4. Showback, Chargeback & Cost Spike Triage
| Model | What the team sees | When it fits |
| --- | --- | --- |
| **Showback** | Their cost, reported, not billed | Starting point; builds awareness without finance plumbing |
| **Chargeback** | Their cost, charged to their budget | Mature tagging + trusted allocation; real spend accountability |
Start with showback. Chargeback on top of unreliable allocation produces disputes about the
data instead of decisions about the spend.
**Shared cost is where showback loses credibility.** Decide and publish the rule before the
first report: split shared clusters, observability, and support by a measured driver (Kubecost
/ OpenCost namespace cost, request count, or storage GB), never evenly. Keep unallocatable
spend visible as its own line — a hidden 30% "platform" bucket destroys trust in the whole model.
**Cost spike triage, in order:**
1. **Scope it**: Cost Explorer / BigQuery billing export grouped by service, then by usage type,
at daily granularity — one dimension at a time until the delta is a single line item.
2. **Date it**: align the step change against deploys, autoscaling events, and commitment
expiries; a step means a change shipped, a ramp means growth or a leak.
3. **Name the driver**: NAT gateway or cross-AZ data transfer, log ingestion volume, orphaned
volumes and snapshots, idle load balancers, a retry storm, or expired Savings Plan coverage.
4. **Decide**: fix the driver, or accept it and re-forecast — with a named owner and a date.
Commitment purchases come last, after the waste is removed: buying a three-year commitment on
an inefficient baseline locks in the inefficiency. Cover measured steady-state usage only
(typically 60–80%), and let elastic peaks run on demand or spot.
---
## 5. Commitment Instruments Compared
| Instrument | Cloud | Flexibility | Typical discount | Watch out for |
| --- | --- | --- | --- | --- |
| Compute Savings Plan | AWS | Any region, family, OS, and across EC2/Fargate/Lambda | ~20-30% | Lowest discount of the AWS options |
| EC2 Instance Savings Plan | AWS | Locked to family + region, size-flexible | ~30-40% | Family lock-in outlives most architectures |
| Reserved Instances (RI) | AWS, Azure | Standard RIs are family/region-locked; convertible RIs can be exchanged | ~30-55% | Standard RIs are only tradable on the marketplace |
| Reservations | Azure | Scope to subscription or shared; exchangeable | ~30-60% | Cancellation limits apply |
| **CUDs** (Committed Use Discounts) | GCP | Resource-based CUDs are region+family scoped; spend-based CUDs are broader | ~25-55% | Resource CUDs do not follow a migration to a new machine family |
Sequence that avoids locking in waste:
1. Remove waste first (idle, orphaned, over-provisioned) — commitments on inefficient baselines
fund the inefficiency for three years.
2. Measure the trough, not the average: commit to the floor of steady-state usage, typically
60-80% coverage, and leave peaks on demand or spot.
3. Prefer the flexible instrument (Compute Savings Plans, spend-based CUDs, convertible RIs)
whenever an architecture change is plausible within the term.
4. Track coverage and utilisation monthly as two separate metrics; high coverage with low
utilisation means the commitment is being wasted.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

