cost-optimization

cost-optimization is a skill for Claude Code from borhen68/SkillEngine. It costs 52 tokens per session (2,423 once invoked), scanned A, original, MIT.

Guidance for reducing cloud and infrastructure spending while keeping a system reliable and adequately fast. It focuses on finding waste in resources such as servers, storage, and data transfers.

In plain words
What is it for?
Use it to review cloud costs, choose more economical infrastructure, prepare for increased traffic, assess architecture options, or set up ongoing cost monitoring.
Why use it?
It helps explain and control unexpected bills caused by oversized resources, unused environments, inefficient storage, or network charges.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: positional $N argument.

Part of the skillengine plugin — 28 skills, 9 commands, 5 agents, 1 hook shipped together

Good fit Use it to review cloud costs, choose more economical infrastructure, prepare for increased traffic, assess architecture options, or set up ongoing cost monitoring.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/borhen68/skillengine/cost-optimization
Install

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.

Any agent
npx skills add borhen68/SkillEngine --skill cost-optimization
Clone the repo
git clone --depth 1 https://github.com/borhen68/SkillEngine

Made for: Claude Code.

Or install skillengine, the plugin that ships this one along with the rest of its 28 skills, 9 commands, 5 agents, 1 hook.

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-optimization

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

agentmods 80×15 button for cost-optimization

Your own site · 80×15
<a href="https://agentmods.dev/skills/borhen68/skillengine/cost-optimization"><img src="https://agentmods.dev/badge/skills/borhen68/skillengine/cost-optimization.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,423 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.00052 $0.02423
Opus 5.5 $0.00021 $0.00969
Sonnet 5.5 $0.00010 $0.00485
Haiku 4.5 $0.00005 $0.00242

Measured 1mo ago against content hash 086d3b1087d3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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 1mo 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.

skills/cost-optimization/SKILL.md · 301 lines

How it starts

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

Cost Optimization

Overview

Cost optimization is not about being cheap — it's about spending money where it creates value and eliminating waste. In cloud environments, costs compound silently: oversized instances, forgotten dev environments, unoptimized storage tiers, and data transfer charges that nobody tracks. This skill provides a systematic approach to finding and eliminating waste while maintaining (or improving) system reliability.

The 80/20 rule of cloud costs: 80% of your bill comes from 20% of your resources. Focus on the big items first.

When to Use

  • Monthly cloud bill has grown > 20% without corresponding traffic growth
  • Setting up new infrastructure and want cost-aware defaults
  • Reviewing architecture for a system that's been running > 6 months
  • Preparing for scaling events (launch, Black Friday, viral growth)
  • Evaluating multi-cloud vs single-cloud strategies
  • After an audit reveals "surprise" charges (data transfer, API calls, storage)

NOT for:

  • Systems where reliability is worth any cost (life-critical, financial trading)
  • One-time cost reduction without ongoing monitoring (costs creep back)

The Cost Optimization Process

Step 1: Measure and Allocate

You can't optimize what you can't measure. Before changing anything:

COST ALLOCATION FRAMEWORK:
├── Tag everything (owner, environment, product, cost-center)
├── Enable detailed billing exports (hourly granularity)
├── Set up cost anomaly detection
├── Allocate shared costs (network, monitoring, platform)
└── Create per-team visibility dashboards

Key metrics to track:

Metric Why It Matters Target
Cost per request Efficiency of serving traffic Trending down
Cost per user Unit economics Trending down
Idle resource % Waste identification < 10%
Storage $/GB Tier optimization Match workload pattern
Data transfer Often the "surprise" line item < 10% of total

Step 2: Identify Waste

Read the full file on GitHub · 301 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. 1mo ago First seen · 301 lines · 52 tokens per session scan A 086d3b1087d3

Subscribe to this mod's changes

cost-optimization is a skill published in the GitHub repository borhen68/SkillEngine (17 stars, last pushed 4mo ago), licensed MIT. It adds 52 tokens to every session and 2,423 once invoked, about $0.0002 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.

Related

Other skills, from other repositories