# Cost Optimization

> Keep a governed session within budget. Use this before long-running agent work, bulk processing, or any task where spend pressure could change the plan.

- Skill: `aryaminus/cost-optimization` (Agent Skill, multi-file: 3 files)
- Install (CLI): `npx skillmds@latest add aryaminus/cost-optimization`
- Raw SKILL.md: https://api.skillmd.com/api/skills/aryaminus/cost-optimization/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- License: Apache-2.0
- Author: aryaminus (https://skillmd.com/u/aryaminus)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/aryaminus/cost-optimization

---


# Cost Optimization Skill

## Budget protocol

1. Estimate before expensive work with `ck_budget`.
2. Prefer smaller checkpoints over one large call when spend is uncertain.
3. Use `ck_route` to prefer cheaper valid agents when quality permits.
4. When the budget is low, reduce scope and escalate to the human early.
5. Commit actual usage after completion if your harness is responsible for spend recording.
6. Use `ck_cost_optimizer` to discover savings models, caching strategies, and local model alternatives.

## Additional resources

- For estimation, warning thresholds, and split strategies, see [references/budget-playbook.md](references/budget-playbook.md)

