eval-cost
Skill42 starsChanged 6 months agoMITView on GitHub
Use when the user asks to make an AI app cheaper or faster, reduce tokens, latency, model/tool/retrieval/rerank/self-check/retry/evaluator cost, or compare cost before/after.
In this repository8 other files it gives its agents.
- AGENTS.mdAGENTS.md
- eval-auditSkill
- eval-datasetSkill
- eval-diagnoseSkill
- eval-engineerSkill
- eval-fetchSkill
- eval-measureSkill
- eval-setupSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 5 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use this skill for tokenomics RCA.
- Very specific: line 15
Run skills/eval-engineer/scripts/compare_tokenomics_packets.py when both baseline and verification packets exist.
- Very specific: line 26
Run compare_tokenomics_packets.py without explicit quality metrics first when packets use custom quality names, then inspect the inferred …
- Distinctive: line 29
Treat behavior counters such as handoff count, tool count, step count, retry count, and self-check count as efficiency or workflow …
- Distinctive: line 36
Treat lower traffic volume as inconclusive unless per-trace efficiency also improves.
- Distinctive: line 54
Before keeping a candidate:
- Distinctive: line 59
Check segment metrics when available.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Eval Cost
Use this skill for tokenomics RCA. Cost changes are accepted only when Galileo quality metrics do not regress.
Conditional References
- Load
skills/eval-engineer/references/tokenomics-rca.mdwhen choosing the tokenomics workflow or diagnosing why cost moved. - Run
skills/eval-engineer/scripts/compare_tokenomics_packets.pywhen both baseline and verification packets exist. - Load
skills/eval-engineer/assets/cost-diagnosis-template.md,skills/eval-engineer/assets/tokenomics-fix-plan-template.md, andskills/eval-engineer/assets/quality-preserving-verification-template.mdonly when writing those artifacts.
Do
- Compare cost, latency, tokens, retrieved context, tool calls, retries, rerank/self-check spans, model spans, and evaluator cost.
- Run
compare_tokenomics_packets.pywithout explicit quality metrics first when packets use custom quality names, then inspect the inferredQuality metrics comparedlist before accepting the decision. - Treat behavior counters such as handoff count, tool count, step count, retry count, and self-check count as efficiency or workflow evidence, not quality gates by default. Promote one to quality only when the metric profile states the desired direction for that route or segment.
- Protect named quality metrics and segment gates.
- Reject cheaper candidates when aggregate quality holds but any required segment gate regresses.
- Treat lower traffic volume as inconclusive unless per-trace efficiency also improves.
Gotchas
- Cost, latency, wall time, duration, token count, span count, and tool count are efficiency evidence, not quality gates by default.
- Quality metrics are not always higher-is-better. Error, toxicity, hallucination, policy-violation, and tool-error rates regress when they rise.
- Aggregate quality can hide route, risk-profile, or customer-segment regressions.
- For RAG pruning, include hard multi-source or multi-hop cases before keeping a top-k reduction.
- For agentic workflows, compare agent steps, planner spans, rerank passes, self-check spans, and tool calls so the cheaper loop is explainable.
Validation Loop
Before keeping a candidate:
- Compare baseline and verification packets with
compare_tokenomics_packets.py. - Inspect inferred quality metrics before accepting the decision.
- Check segment metrics when available.
- Confirm metric gaps are recorded as inconclusive or follow-up work.
- Reject or revise the candidate if quality evidence is missing or regressed.
Output
State keep/reject/inconclusive first. Explain why the cost moved, which quality metrics do not regress, and which latency/tool-count tradeoffs remain.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

