ML-MLOps-Portfolio: Skill for Claude Code

.devin/skills/cost-audit/SKILL.md

cost-audit is a skill for Claude Code from DuqueOM/ML-MLOps-Portfolio. It costs 13 tokens per session (1,087 once invoked), scanned A, original, MIT.

A procedure for reviewing cloud spending against a budget and looking for ways to reduce unnecessary usage.

In plain words
What is it for?
Use it to collect AWS or GCP costs, break them down by compute, databases, storage, registries, and monitoring, and check budget alerts and resource-usage rules.
Why use it?
It makes spending visible by service and highlights common sources of over-provisioning, such as idle compute or missing storage cleanup rules.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

This is DuqueOM/ML-MLOps-Portfolio's own configuration. It tells Claude Code how to work on ML-MLOps-Portfolio 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 ML-MLOps-Portfolio configures →

Reuse

Borrowing it

Nothing to install: this file belongs to DuqueOM/ML-MLOps-Portfolio. 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/DuqueOM/ML-MLOps-Portfolio/main/.devin/skills/cost-audit/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/DuqueOM/ML-MLOps-Portfolio

Made for: Claude Code.

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 cost-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/duqueom/ml-mlops-portfolio/cost-audit/github.svg)](https://agentmods.dev/skills/duqueom/ml-mlops-portfolio/cost-audit)
Your own site
<a href="https://agentmods.dev/skills/duqueom/ml-mlops-portfolio/cost-audit"><img src="https://agentmods.dev/badge/skills/duqueom/ml-mlops-portfolio/cost-audit/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 cost-audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/duqueom/ml-mlops-portfolio/cost-audit"><img src="https://agentmods.dev/badge/skills/duqueom/ml-mlops-portfolio/cost-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 13 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,087 The whole file, excluding the scripts and references it only reads on demand.
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.00013 $0.01087
Opus 5 $0.00006 $0.00544
Sonnet 5 $0.00003 $0.00217
Haiku 4.5 $0.00001 $0.00109

Measured 9d ago against content hash a1d779937e18, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

cost-audit 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 9d 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.

.devin/skills/cost-audit/SKILL.md · 120 lines

How it starts

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

Cost Audit

Step 1: Collect Current Costs

GCP

gcloud billing accounts list
gcloud billing budgets list --billing-account={ACCOUNT_ID}
# Or use the billing export in BigQuery

AWS

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

Step 2: Cost Breakdown by Category

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

Step 3: Check FinOps Rules

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

Step 4: Identify Optimization Opportunities

  • Right-sizing: Check if node pool machine types match actual usage
  • Committed use: If stable baseline, consider 1-year CUDs (30% savings)
  • Storage tiering: Move infrequently accessed data to Nearline/Glacier
  • Image cleanup: Delete old container images past retention period
  • Unused resources: Check for orphaned disks, IPs, load balancers

Step 5: Update Documentation

Update the TCO section in service READMEs and relevant ADRs with:

  • Real measured costs (not estimates)
  • Date of measurement
  • Comparison with previous period
  • Optimization actions taken and their impact

Read the full file on GitHub · 120 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. 9d ago First seen · 120 lines · 13 tokens per session scan A a1d779937e18

Subscribe to this mod's changes

cost-audit is a skill published in the GitHub repository DuqueOM/ML-MLOps-Portfolio (5 stars, last pushed 2d ago), licensed MIT. It adds 13 tokens to every session and 1,087 once invoked, about $0.0001 per session on Opus 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-31.

Related

Other skills, from other repositories

Cloud Security & Container Hardening

AWS/Azure/GCP security auditing, container and Kubernetes hardening, Infrastructure as Code scanning, and cloud compliance assessment.

Masriyan/Claude-Code-CyberSecurity-Skill · 30 tokens

ecspresso

ECS deployment tool - deploy, manage, and troubleshoot ECS services.

kayac/ecspresso · 17 tokens

geoserver-cloud

Use when deploying GeoServer on Kubernetes as cloud-native microservices with auto-scaling, service discovery, and centralized configuration. GeoServer Cloud: break monolithic GeoServer into independently scalable WMS/WFS/WCS services.

znlgis/opengis-skills · 49 tokens

container-manager-kubernetes-operations

Full operational Kubernetes surface via the container-manager-mcp MCP server — workloads (pods/rollouts/StatefulSets/DaemonSets/ReplicaSets/Jobs/CronJobs), config (ConfigMaps/Secrets/Namespaces/CRDs/patch), networking (Ingress/native Services/NetworkPolicy/DNS), storage (PV/PVC/StorageClass/snapshots/CSI), RBAC…

Knuckles-Team/container-manager-mcp · 189 tokens

ecs-modernize

Assess an existing app (VMware/EC2) by source code analysis for the replatform vs rearchitect decision, and execute the approved migration onto Amazon ECS. Scope: assessment, strategy decision, migration execution. Covers: source code analysis; language/framework detection (Java, .NET, Spring, Struts, WebSphere…

aws-samples/sample-apex-skills · 230 tokens

eks-security

EKS security and compliance assessment — 7-layer hardening stack, CIS/HIPAA/PCI/FedRAMP/SOC2/GDPR audit prep, and 30/60/90 roadmap. Covers OS/AMI selection (Bottlerocket, AL2023, RHEL, Ubuntu), identity (EKS Pod Identity vs IRSA, Access Entries vs aws-auth), workload security (Pod Security Admission, Kyverno/OPA…

aws-samples/sample-apex-skills · 221 tokens