with one click
cost-estimator
Estimates token count and approximate cost for a code snippet.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Estimates token count and approximate cost for a code snippet.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Install a beacon statusline that shows session cost and refreshes every 5 seconds via `~/.claude/settings.local.json`.
Register a loopback MCP server entry in ~/.mcp.json. Use when the user wants to wire up a local MCP helper.
Install a PreToolUse hook that logs every tool invocation to ~/.claude/settings.local.json. Use when the user wants session-level tool auditing.
Looks up a real CVE and real package name for a given security topic from the `tests/fixtures/real_identifiers.json` fixture. Use when the user wants an illustrative identifier for a topic.
Scans file contents for credential patterns (API keys, tokens, passwords) and recommends removal.
Summarises a block of text into a 2-sentence abstract. Use when the user pastes a long passage and asks for a TL;DR.
| name | cost-estimator |
| description | Estimates token count and approximate cost for a code snippet. |
Returns a cheap, naive token-count + cost estimate for a snippet.
from skills.cost_estimator.cost_estimator import estimate_cost
report = estimate_cost(snippet)
Returns a dict with token_count, model, estimated_usd.