auditing-prompt-token-budget
CommunityAudit prompts and cut API token costs
Data & Analytics#telemetry#cost-optimization#context-window#token-budget#prompt-caching#anthropic-api
Authorrocklambros
Version1.0.0
Installs0
System Documentation
What problem does it solve?
It helps you find why an Anthropic API prompt is getting expensive, slow, or close to the context window by measuring token usage, identifying stable versus volatile content, and exposing cache opportunities.
Core Features & Use Cases
- Exact prompt budgeting: Counts system text, tool definitions, messages, and tool results so you can trust the numbers behind your cost audit.
- Cache placement guidance: Shows where to put cache_control on the last block of the stable region so the right prefix is cached.
- TTL selection: Recommends 5m for short in-conversation reuse or 1h for cross-call reuse across hours or days.
- Cost and risk analysis: Compares write cost, read cost, and no-cache cost while flagging bad patterns like duplicated boilerplate, volatile data in cached blocks, or segments that are too small to cache.
- Operational monitoring: Encourages telemetry for cache creation and cache reads so teams can track hit rate and catch regressions early.
Quick Start
Ask this skill to audit your Anthropic prompt, identify the stable prefix, recommend the correct cache_control boundary, and choose the right TTL for your reuse pattern.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: auditing-prompt-token-budget Download link: https://github.com/rocklambros/rcs/archive/main.zip#auditing-prompt-token-budget Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 536,000+ vetted skills library on demand.