ワンクリックで
cost-audit
Review cloud costs against budget and identify optimization opportunities
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Review cloud costs against budget and identify optimization opportunities
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Scaffold and run batch scoring jobs (CronJob + Parquet output) that reuse the service's model + feature-engineering code without opening the live API
Root-cause a performance alert using sliced metrics + ground-truth
Debug ML inference issues — latency spikes, wrong predictions, event loop blocking
Deploy ML service to EKS with Kustomize overlays and IRSA
Deploy ML service to GKE with Kustomize overlays and Workload Identity
Run and interpret DATA drift (PSI) AND CONCEPT drift (sliced performance) for an ML service
| name | cost-audit |
| description | Review cloud costs against budget and identify optimization opportunities |
| allowed-tools | ["Read","Grep","Glob","Bash(gcloud:*)","Bash(aws:*)","Bash(kubectl:*)"] |
| when_to_use | Use when reviewing monthly cloud costs, optimizing spend, or preparing FinOps reports. Examples: 'review monthly costs', 'cost optimization', 'FinOps report', 'budget review' |
| argument-hint | [month] [year] |
| authorization_mode | {"collect_billing":"AUTO","analyze_spend":"AUTO","propose_optimizations":"AUTO","apply_optimizations":"STOP","escalation_triggers":[{"cost_over_budget_120":"STOP"},{"new_resource_type":"CONSULT"}]} |
gcloud billing accounts list
gcloud billing budgets list --billing-account={ACCOUNT_ID}
# Or use the billing export in BigQuery
aws ce get-cost-and-usage \
--time-period Start=$(date -d '30 days ago' +%Y-%m-%d),End=$(date +%Y-%m-%d) \
--granularity MONTHLY \
--metrics BlendedCost \
--group-by Type=DIMENSION,Key=SERVICE
Compute serving (N APIs × 2 clouds): $___/mo
Compute training (Spot, monthly avg): $___/mo
Databases (Cloud SQL + RDS): $___/mo
Storage (GCS + S3): $___/mo
Registry (Artifact Registry + ECR): $___/mo
Monitoring and Logging: $___/mo
TOTAL: $___/mo
| Rule | Status | Action if Violated |
|---|---|---|
| Training on Spot/Preemptible | ✅/❌ | Switch to spot instances (70% savings) |
| Serving on On-Demand | ✅/❌ | Do not change — availability required |
| CPU-only HPA (no idle pods) | ✅/❌ | Fix HPA to avoid over-provisioning |
| Lifecycle policies on buckets | ✅/❌ | Archive after N days, delete after M |
| Budget alerts at 50%/90% | ✅/❌ | Configure in Terraform |
| Non-prod clusters destroyed | ✅/❌ | terraform destroy -var-file=staging.tfvars |
Update the TCO section in service READMEs and relevant ADRs with:
# GCP
terraform plan -target=google_billing_budget.ml_budget
# AWS
terraform plan -target=aws_budgets_budget.ml_budget
Verify alerts fire at 50% and 90% of monthly budget.
The audit is complete when ALL of the following hold:
ops/audit.jsonl with operation=cost_review,
result=success, link to the reportIf apply_optimizations was invoked (STOP-class), an additional human
sign-off must be linked from the audit entry per ADR-005.
.windsurf/rules/01-mlops-conventions.md §FinOps.windsurf/workflows/cost-review.md