- Home
- Skills
- Code Quality & Review
- 💸 LLM Cost Leak Linter
More screenshots
Works with the AI tools you already use
💸 LLM Cost Leak Linter
The problem LLM application code often contains hidden patterns that drain budgets before billing alerts trigger.
$12
💸 LLM Cost Leak Linter
Example session with this skill installed
Scan the src directory for potential LLM cost leaks and tell me if I am wasting tokens.
- Read your context and instructions
- Compiled the llm cost leak
Found 3 cost leaks:
- LCL002 (High): Loop in
chains.py:42calls gpt-4-turbo without a max_retries limit. - LCL005 (Med):
loaders.ts:12passes raw file buffer to prompt without truncation. - LCL003 (Low): Using gpt-4 for sentiment analysis on line 88; consider gpt-3.5-turbo.
Connects securely to your tools. The creator never sees your data.
What you get
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
Works the same in every agent - Claude, Cursor, Codex, Copilot and 20+ more.
- 1
Download the ZIP
Free skills download straight away. Paid skills unlock right after purchase.
- 2
Unzip into your skills folder
Every agent reads skills from one folder on your machine. Drop the unzipped folder in there.
- 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 2 months ago
- Passed all security checks, Safe to install