AGENT SKILL
llm-cost-latency
Budget and reduce token cost and latency of model calls without losing quality.
- License 许可
- MIT
- 所属仓库
- Zwin-ux/kit
- 最近更新
- 2026-11-02
- Stars
- ★ 0
- Forks
- 2
01 前言 Front Matter
- name
- llm-cost-latency
- description
- Budget and reduce token cost and latency of model calls without losing quality.
03 SKILL.md 正文
LLM cost and latency
Use when adding a model call, or when calls are slow or expensive.
- Measure first: input tokens, output tokens, latency (p50 and p95) and cost per call, from logs or a small benchmark.
- Cut input: remove unused context, cache stable prefixes (prompt caching) where the provider supports it, and retrieve fewer, better chunks.
- Cut output: ask for the exact format needed and set a max token limit.
- Pick the smallest model that passes the evals (see the llm-evals skill); route only hard cases to larger models.
- Batch or stream where the product allows it.
- Report before and after numbers and the eval score, so a cost cut never hides a quality drop.
04 同仓库更多 Skills
concepts
暂无简介
★ 0
write-tests
Add focused tests for important project behavior.
★ 0
workspace-setup
Set up monorepo and multi-package workspaces for agents and humans.
★ 0
ship-checklist
Run a practical pre-ship checklist for an app release.
★ 0
project-setup
Set up a clean project baseline for agents and humans.
★ 0
pr-ready
Prepare a clear pull request summary, test plan, and risk notes.
★ 0