Works with the AI tools you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIGitHub CopilotGitHub CopilotGemini CLIGemini CLI+20 more

    llm cost optimization audit

    1

    Audit LLM spend to find recoverable waste in prompt caching, model routing, and token usage.

    $11

    Secure checkout via Stripe

    30-day refund guarantee

    Converts to your local currency at checkout

    0 installsSecurity scanned
    llm cost optimization audit

    llm cost optimization audit

    Example session with this skill installed

    Our Claude bill is spiking. We added prompt caching but it hasn't moved the needle. Here is our prompt template and a sample of our usage logs. Can you find the leak?

    • Read your context and instructions
    • Compiled the llm cost optimization

    The audit shows cache_read_input_tokens is zero despite cache_control being set. Your prompt template includes a 'current_time' variable at the start of the system prompt. This invalidates the cache for every request. Moving this after the stable prefix will save an estimated 70% on input tokens.

    Connects securely to your tools. The creator never sees your data.

    What you get

    Identify silent cache invalidators in prompt-assembly codeRank cost-reduction levers by impact vs implementation effortVerify if prompt caching is actually saving money or increasing the billCalculate ROI for switching latency-tolerant traffic to batch processing

    About this skill

    The problem

    LLM bills often grow into unmanaged line items that eat product margins. Developers frequently mistake setting a configuration flag for actually saving money, leading to "optimized" prompts that are silently more expensive than the baseline.

    What it does

    • Profiles token usage across input, output, and cache creation to find the real cost drivers.
    • Identifies silent cache invalidators like per-request timestamps or unsorted JSON that break prompt caching.
    • Calculates the break-even point for caching based on reuse frequency and TTL windows.
    • Audits model routing to find high-volume, low-complexity tasks running on over-powered tiers.
    • Sizes estimated savings for request batching and context compaction before you write any code.

    Frameworks & tools

    Works with any LLM provider usage logs. Specific logic for Anthropic Claude API prompt caching and Batch API. Uses current pricing snapshots for ROI calculations.

    Why this beats prompting it yourself

    Generic prompts often guess at savings. This skill uses a "profile first" discipline to ensure recommendations are based on your actual token distribution. It accounts for hidden costs like the prompt-cache write premium, which can actually increase your bill if reuse is infrequent.

    Use cases

    • Diagnosing why prompt caching is resulting in zero read tokens despite being enabled.
    • Evaluating the margin impact of moving high-latency background jobs to a Batches API.
    • Reducing context waste in long-running agent loops or chat histories.
    • Right-sizing models for specific tasks like classification or extraction without losing quality.

    Known limitations

    Does not perform quality benchmarks or "capability bake-offs" between models. Focuses on inference costs only, excluding database, hosting, or egress fees.

    How to install

    Works the same in every agent - Claude, Cursor, Codex, Copilot and 20+ more.

    ~30 seconds
    1. 1

      Download the ZIP

      Free skills download straight away. Paid skills unlock right after purchase.

    2. 2

      Unzip into your skills folder

      Every agent reads skills from one folder on your machine. Drop the unzipped folder in there.

    3. 3

      Ask your agent to use it

      Restart the agent if it was already running. It picks the skill up automatically - no config needed.

    Skills folder by agent

    Click the path to copy it. Create the folder if it does not exist yet.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill passes our trust checks below.

    Security scanned

    Passed our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    30-day refund

    Not a fit? Get your money back

    Trust & safety

    Security scanned

    Verified clean 1 month ago

    • Passed all security checks, Safe to install

    Listed1 month ago
    Updated1 month ago

    What's inside

    Frequently Asked Questions