LLM Pipeline Cost Optimization Skill
Plan model routing, budget limits, retries and caching for an AI application.
What this skill does
Task routing
Map task complexity to a suitable model using the model choices and prices you supply.
Budget tracking
Design immutable cost records and explicit ceilings for a pipeline or request.
Waste control
Narrow retries and introduce caching where it preserves the required output behavior.
What to provide & what you get
- Input
- The LLM workflow, usage patterns, supplied model prices and budget
- Expected output
- A model-routing, caching, retry and budget-control plan
Community source
Upstream source
Open the upstream instructions at the fixed revision used for this resource. Review the source and its supporting files before installing.
Read upstream SKILL.md- Repository
- affaan-m/ECC
- File
skills/cost-aware-llm-pipeline/SKILL.md- Revision
76aaa77df6adc5b889e689007bf99b9a4f74af34
Local package changes
- Added portable install, target-language and external-action boundaries; replaced fixed own-skill paths with SKILL_DIR.
- Labeled model/pricing examples as illustrative and required current user-supplied configuration.
Installation
- Download and extract the ZIP. Keep each complete skill folder, including its supporting files. Do not copy only
SKILL.md. - Copy the skill folder into your agent's skills directory. Use the project path below for this project, or the personal path for all your projects.
Codex
- This project
.agents/skills/cost-aware-llm-pipeline/SKILL.md- All your projects
~/.agents/skills/cost-aware-llm-pipeline/SKILL.md
Claude Code
- This project
.claude/skills/cost-aware-llm-pipeline/SKILL.md- All your projects
~/.claude/skills/cost-aware-llm-pipeline/SKILL.md
- Check the final path. It must match one of the paths above, with one
cost-aware-llm-pipeline/folder directly underskills/. Avoid an extra ZIP-name folder around it. - Start a new task in your project. Use the matching example below to invoke the installed skill. If it is missing, recheck the folder name and reopen your agent.
Before the first run
- An AI application and its usage patterns
- Your provider models, current prices and budget; SDKs only for implementation
The ZIP installs the skill instructions and bundled files. Any listed software, accounts or external tools need their own setup.
What's in the download
5 files across 1 skill folder. Includes cost-aware-llm-pipeline/SKILL.md.
File integrity (SHA256):
4d71ceadc869eb5ce77cd555a3088891a12b15efd6e576dce7094154b72f3ad4How to use
- Provide the pipeline, representative requests, available models, current prices and a budget.
- Ask for a routing and accounting plan with failure and retry rules.
- Simulate realistic traffic and verify quality and cost accounting before integrating the changes.
Try it in your agent
Install first, then attach or provide the inputs described above. Replace any bracketed placeholders before running.
Codex
Use $cost-aware-llm-pipeline. Review this LLM pipeline and propose budget controls using the models and prices I supply.
Claude Code
/cost-aware-llm-pipeline Review this LLM pipeline and propose budget controls using the models and prices I supply.
Check the result: Check current model availability and prices. Example model names or savings in upstream material are not a live pricing guarantee.
Keep in mind
- Sample model names and prices in upstream examples are illustrative, not current recommendations.