Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add sethdford/claude-skills --skill cost-optimizationgit clone --depth 1 https://github.com/sethdford/claude-skillsWrote 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.
[](https://agentmods.dev/skills/sethdford/claude-skills/cost-optimization)<a href="https://agentmods.dev/skills/sethdford/claude-skills/cost-optimization"><img src="https://agentmods.dev/badge/skills/sethdford/claude-skills/cost-optimization/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.
<a href="https://agentmods.dev/skills/sethdford/claude-skills/cost-optimization"><img src="https://agentmods.dev/badge/skills/sethdford/claude-skills/cost-optimization.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00025 | $0.00598 |
| Opus 5.5 | $0.00010 | $0.00239 |
| Sonnet 5.5 | $0.00005 | $0.00120 |
| Haiku 4.5 | $0.00003 | $0.00060 |
Grade A, and why
cost-optimization 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 3mo 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.
How it starts
The opening of the file, as written. The whole thing — 52 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Cost Optimization
Systematically reduce infrastructure and operational costs while maintaining SLAs and performance.
Context
You are optimizing costs. The user faces high cloud bills or needs to improve unit economics. Read their current infrastructure and cost breakdown.
Domain Context
Based on AWS, Google Cloud, and Azure cost optimization practices:
- Reserved Instances: Commit to usage upfront; 30-70% discount vs on-demand
- Spot Instances: Unused capacity at 70-90% discount; risk of interruption
- Right-Sizing: Match instance type to actual usage (many over-provisioned)
- Resource Scheduling: Run infrastructure only when needed (dev, test, non-critical workloads)
- Data Transfer Costs: Moving data between regions or to internet expensive; design to minimize
Instructions
-
Measure Current Costs: Break down: compute (instances, pods), storage (databases, backups, archives), networking (data transfer, CDN), managed services. Identify top 3 cost drivers.
-
Baseline Cost per Unit: Calculate cost per request, per transaction, per user. Enables comparing optimizations objectively.
-
Identify Optimization Opportunities:
- Compute: Right-size instances, use reserved/spot, schedule non-critical
- Storage: Archive old data, compress backups, dedup
- Transfer: Use CDN, minimize cross-region, batch transfers
- Waste: Unused resources (old databases, unused backups, forgotten VMs)
-
Model Impact: For each optimization, estimate savings and implementation effort. Prioritize by ROI (savings / effort).
-
Implement & Monitor: Deploy changes. Measure cost reduction. Re-baseline and repeat.
Anti-Patterns
- Chasing Lowest Cost: Use cheapest options (spot instances, no redundancy). Result: outages and data loss. Guard: Optimize cost subject to SLA constraints.
- Over-Provisioning for Safety: Buy 10x capacity to "be safe." Result: wasted money. Guard: Monitor actual usage; right-size to p95 load.
- Ignoring Total Cost of Ownership: Count compute but not operations. Result: hidden costs. Guard: Include all costs (instances, storage, monitoring, support, ops time).
- One-Time Optimization: Cut costs once, never revisit. Result: costs creep back up. Guard: Quarterly cost review; treat as ongoing process.
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.
- 3mo ago First seen · 52 lines · 25 tokens per session scan A 357557338f9e
cost-optimization is a skill published in the GitHub repository sethdford/claude-skills (49 stars, last pushed 8mo ago), licensed MIT. It adds 25 tokens to every session and 598 once invoked, about $0.0001 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.
cost-optimization compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| cost-optimizationsethdford/claude-skills | Skill | 49 | 8mo ago | MIT | A | 25 | Claude Code |
| saas-billingroedyrustam/vibes-plug | Skill | 130 | 4d ago | MIT | A | 36 | Cursor |
| llm-finops-routerroedyrustam/vibes-plug | Skill | 130 | 4d ago | MIT | A | 41 | Cursor |
| agentic-micro-economy-architectroedyrustam/vibes-plug | Skill | 130 | 4d ago | MIT | A | 48 | Cursor |
| agentic-m2m-settlementroedyrustam/vibes-plug | Skill | 130 | 4d ago | MIT | A | 42 | Cursor |
| cloudflare-workers-expertroedyrustam/vibes-plug | Skill | 130 | 4d ago | MIT | A | 46 | Cursor |
| double-entry-ledger-fintech-expertroedyrustam/vibes-plug | Skill | 130 | 4d ago | MIT | A | 43 | Cursor |