# Budget Tokens

> Compute cost per request and right-size the context to fewest-high-precision chunks. Reach for this on a cost/context question.

- Skill: `mcorbett51090/budget-tokens` (Agent Skill)
- Install (CLI): `npx get-skill add mcorbett51090/budget-tokens`
- Raw SKILL.md: https://api.skillmd.com/api/skills/mcorbett51090/budget-tokens/raw
- Safety review: pending (external: skill-scanner PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: mcorbett51090 (https://skillmd.com/u/mcorbett51090)
- Updated: 2026-11-19
- Page: https://skillmd.com/skills/mcorbett51090/budget-tokens

---


# Skill: Budget tokens

More context is not better, and it costs tokens (§3 #5).

## Step 1 — Count the tokens
Input (context + prompt) + output tokens per request (§3 #5).

## Step 2 — Compute cost
Tokens × per-1k price × requests via `ai_rag_engineering_calc.py token-cost`; mark prices unverified (§3 #8).

## Step 3 — Right-size context
Fewest high-precision chunks — guard against lost-in-the-middle (§3 #5).

## Step 4 — Check the fit
Confirm chunk size × top-k fits the window via `ai_rag_engineering_calc.py chunk-budget` (§3 #5).

## Output
A token-cost read and a right-sized context recommendation with the monthly projection.

