Api spend recovery
Skill Touchdown-Labs/inference-optimization-agent-pack/skills/api-spend-recovery
Loadable systems-thinking skill pack for full-stack inference optimization.
npx -y skills add Touchdown-Labs/inference-optimization-agent-pack --skill api-spend-recoveryAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Reduce API-side AI spend by diagnosing model routing, prompt/context bloat, RAG duplication, retry loops, tool-result caching, and task success.
SKILL.md
2.1 KB, 440 tokens by cl100k_base, as published. Nobody here has run it
API Spend Recovery
Use this when the team uses hosted APIs, coding agents, chat/RAG products, voice APIs, media APIs, or managed model platforms.
You do not need to own GPUs to have an inference optimization problem.
Common Leaks
- Premium model overuse.
- Prompt and context bloat.
- Duplicate RAG chunks.
- Repeated tool calls.
- Failed retries.
- Weak routing.
- Missing exact or semantic cache.
- Human rework from bad outputs.
- Rejected media renders.
- Unresolved voice calls.
Fix Order
Prefer low-risk changes first:
- Measure cost per successful task.
- Add route labels: easy, hard, final, fallback, human.
- Stabilize prompt prefixes.
- Dedupe retrieval.
- Cache safe tool results.
- Add retry budgets.
- Route drafts to cheaper paths.
- Use premium models only where success requires them.
- Replay before/after traces.
Coding-Agent Pattern
Before: broad search, full files, noisy logs, premium model for every step, repeated tests.
After: context map, targeted reads, cheap scout, premium patch/review only when needed, test budget, tool-result cache, evidence packet.
Chat/RAG Pattern
Before: full chat history, broad chunks, duplicate docs, premium answer model for everything.
After: intent classification, stable policy prefix, dedupe, rerank, cache, route, structured output, replay.
Voice Pattern
Before: one premium realtime path for every caller.
After: endpointing, short tool schemas, FAQ route, cached static TTS, semantic trigger, human handoff, per-turn trace.
Media Pattern
Before: final-quality render on first attempt.
After: classify, draft, cache, evaluate, human approve, final render only after direction is accepted.
Output
Write an OPTIMIZATION_RECIPE.md with:
- baseline;
- top leak;
- one first fix;
- verification plan;
- rollback;
- next test.
Do not claim a savings percentage unless traces prove it.
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.