More screenshots

    Works with the AI tools you already use

    CClaude CodeCCursorCCodex CLIGGitHub CopilotGGemini CLI+17 more

    💸 LLM Cost Leak Linter

    by JustHandled Labs

    2

    The problem LLM application code often contains hidden patterns that drain budgets before billing alerts trigger.

    Secure checkout via Stripe

    0 installsSecurity scanned

    See it in action

    You say

    Scan the src directory for potential LLM cost leaks and tell me if I am wasting tokens.

    Your agent does

    Found 3 cost leaks:

    • LCL002 (High): Loop in chains.py:42 calls gpt-4-turbo without a max_retries limit.
    • LCL005 (Med): loaders.ts:12 passes raw file buffer to prompt without truncation.
    • LCL003 (Low): Using gpt-4 for sentiment analysis on line 88; consider gpt-3.5-turbo.

    What you get

    Detect uncapped LLM generations in loops and retries.Identify expensive models used for high-frequency trivial tasks.Spot missing truncation in prompt assembly logic.Audit code for missing token and cost logging.

    About this skill

    The problem

    LLM application code often contains hidden patterns that drain budgets before billing alerts trigger. Developers lack automated ways to detect uncapped generations, expensive models used for trivial tasks, or inefficient prompting patterns during development.

    What it does

    • Scans source files for LLM calls lacking output caps or truncation logic.
    • Identifies model calls inside loops or retry blocks without attempt limits.
    • Flags expensive models used for high-frequency or simple tasks based on model-pricing.json.
    • Detects instances where entire files are injected into prompts without preprocessing.
    • Points out missing token usage logging and cost instrumentation.

    Frameworks & tools

    Supports Python, JavaScript, TypeScript, and React (JSX/TSX). Works with any LLM provider but requires manual updates to pricing reference files.

    Why this beats prompting it yourself

    Generic LLMs often miss specific architectural cost leaks like loop retry logic or missing backoff limits. This skill provides a structured heuristic scan that maps code patterns to specific cost-risk IDs rather than offering vague advice.

    Use cases

    • Pre-production audit of AI features to prevent runaway costs.
    • Reviewing legacy LLM implementations for potential savings.
    • Standardizing cost-conscious coding practices across a team.

    Known limitations

    This is a heuristic linter, not a runtime monitor. It identifies risky patterns but does not track real-world token usage or live expenditure.

    How to install

    Drop the file into your AI Agent. Works with Claude, Cursor, ChatGPT, and 20+ more.

    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

    Frequently Asked Questions

    Popular in Code Review