/tsh-platform-engineering:optimizing-cloud-costfrom TSH Platform Engineering
Provides a cloud-agnostic cost optimization framework for matching workloads to pricing models (reserved, spot, serverless), storage tiering with lifecycle policies, cost-allocation tagging, right-sizing based on utilization, and cost-impact estimates for infrastructure proposals.
Ships in TSH Platform Engineering. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The framework applied when provisioning, and when estimating what a change will cost. Decisions here are cloud-agnostic: which pricing model fits a workload shape, which storage tier fits an access pattern, what every resource must be tagged with.
Auditing a live account is a different job, and a cloud-specific one — it needs that
provider's service families, CLI verbs and billing API. Where the cloud's plugin is
installed, auditing-aws-cost, auditing-gcp-cost or auditing-azure-cost owns that. This skill still
carries what a proposal needs without them.
Read ${CLAUDE_PLUGIN_ROOT}/shared/discovering-infrastructure-context.md first. A
project's own tagging convention outranks the standard in
tagging standards — reconcile to the project's keys
and report the difference rather than introducing a second scheme.
| Severity | Rule |
|---|---|
| MUST | Every infrastructure proposal carries a cost impact estimate. If projected spend rises more than 10%, open the response with ⚠️ FINOPS ALERT: High Cost Impact. |
| MUST | Base right-sizing on utilization metrics. A recommendation with no observed utilization behind it is a guess and must be labelled as one. |
| MUST | Verify current instance families, machine types and pricing tiers against provider documentation before recommending a specific size — these change every few months and a stale recommendation costs money. |
| MUST | Pair every storage tier choice with a lifecycle policy. A hand-picked tier decays the moment access patterns change. |
| MUST | Apply cost-allocation tags at provisioning time, enforced in infrastructure code rather than by hand. |
| NEVER | Report an estimated saving as if it were measured. Say which it is. |
| NEVER | Propose deleting a resource whose purpose you have not established. |
| Reference | Load when | Covers |
|---|---|---|
| Tagging standards | Provisioning anything, or setting up cost governance | The mandatory tag set, workload-specific tags, the GCP label dialect, enforcement patterns |
| Workload | AWS | Azure | GCP | Saving |
|---|---|---|---|---|
| Steady-state, 24/7 | Reserved Instances / Savings Plans | Reserved VMs | Committed Use | 30–72% |
| Variable or bursty | On-Demand plus auto-scaling | Pay-as-you-go | On-Demand | baseline |
| Fault-tolerant batch | Spot | Spot VMs | Spot VMs | up to 90% |
| Event-driven | Lambda | Functions | Cloud Run / Functions | per-use |
Reserved or committed capacity pays off above roughly 70% sustained utilization. Below that, on-demand plus auto-scaling usually wins.
| Access pattern | AWS | Azure | GCP |
|---|---|---|---|
| Frequent | S3 Standard | Hot | Standard |
| Infrequent, 30+ days | S3 Standard-IA | Cool | Nearline |
| Rare, 90+ days | S3 Glacier | Cold | Coldline |
| Archive, 365+ days | S3 Deep Archive | Archive | Archive |
Check the minimum storage duration per tier before designing the transition — deleting early from a cold tier still bills the remainder, so an aggressive lifecycle rule on short-lived data costs more than leaving it hot.
Current-generation instance families are usually the cheapest single win: same performance, lower price, at the cost of a rebuild where the architecture changes.
Every proposal states, at minimum:
| Don't | Do |
|---|---|
| Over-provision "just in case" | Right-size on metrics; scale up when metrics say so |
| On-demand for steady workloads | Reserved or committed capacity |
| Everything in the hot tier | Lifecycle policies |
| Skip tagging | Tag at provisioning time, enforced in IaC |
| Review cost monthly | Review weekly, alert on anomalies |
| Non-production running 24/7 | Schedule it off |
| Quote a saving with no baseline | State current spend, then the delta |
What SKILL.md sets; muted values are Claude Code's defaults
Trigger on: estimating the cost impact of an infrastructure change, choosing between on-demand, reserved or committed capacity and spot, whether a workload should be serverless on cost grounds, storage class and lifecycle policy design, defining or enforcing cost-allocation tags, budget alerts and anomaly detection, scheduling non-production workloads off, or the general question of how to make infrastructure cheaper. Auditing a live account is `auditing-aws-cost`, `auditing-gcp-cost` or `auditing-azure-cost` in the cloud's own plugin.
Three short reads, in order
cloud-cost, finops, cost-optimization, right-sizing, tagging, pricing-models
npx claudepluginhub thesoftwarehouse/agentic-collections --plugin tsh-platform-engineering7 skills in this plugin
/deploying-to-kubernetesConfigures Kubernetes workloads to a production standard: choosing between Deployment, StatefulSet, DaemonSet and Job, resource requests and limits and the QoS class they produce, readiness/liveness/startup probes, PodDisruptionBudgets and anti-affinity, HPA/KEDA/VPA scaling, Helm chart and Kustomize overlay structure, ingress, and non-root security contexts. Use when deploying an application to a cluster, writing or reviewing manifests or charts, or adding scaling and resilience to an existing workload./designing-multi-cloud-architectureSelects cloud services and a multi-cloud topology using an explicit decision framework: which of the six multi-cloud patterns fits the actual driver, how AWS, Azure and GCP services map onto each other, where a cloud-agnostic abstraction pays for itself and where it costs more than lock-in, and how to phase a migration. Use when choosing cloud services for a workload, planning a cross-cloud or DR topology, or evaluating a move between providers./implementing-ci-cd-pipelinesDesigns and implements CI/CD pipelines on GitHub Actions, GitLab CI, Bitbucket Pipelines, Azure Pipelines or Jenkins: stage structure and caching, deployment strategy (rolling, blue-green, canary), OIDC federation for cloud credentials instead of stored keys, monorepo affected-only builds, and the plan-artifact and approval gates an infrastructure-as-code pipeline requires. Use when creating or changing a pipeline, wiring deployment or cloud authentication, or reviewing pipeline changes.Other plugins' skills for the same job