agentleFS
Galileo-Agent-LabsGalileo-Agent-Labs/eval-engineer/skills/eval-cost/SKILL.md

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.

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
  1. Distinctive:

    Use this skill for tokenomics RCA.

    line 8
  2. Very specific:

    Run skills/eval-engineer/scripts/compare_tokenomics_packets.py when both baseline and verification packets exist.

    line 15
  3. Very specific:

    Run compare_tokenomics_packets.py without explicit quality metrics first when packets use custom quality names, then inspect the inferred …

    line 26
  4. Distinctive:

    Treat behavior counters such as handoff count, tool count, step count, retry count, and self-check count as efficiency or workflow …

    line 29
  5. Distinctive:

    Treat lower traffic volume as inconclusive unless per-trace efficiency also improves.

    line 36
  6. Distinctive:

    Before keeping a candidate:

    line 54
  7. Distinctive:

    Check segment metrics when available.

    line 59

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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.md when choosing the tokenomics workflow or diagnosing why cost moved.
  • Run skills/eval-engineer/scripts/compare_tokenomics_packets.py when both baseline and verification packets exist.
  • Load skills/eval-engineer/assets/cost-diagnosis-template.md, skills/eval-engineer/assets/tokenomics-fix-plan-template.md, and skills/eval-engineer/assets/quality-preserving-verification-template.md only 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.py without explicit quality metrics first when packets use custom quality names, then inspect the inferred Quality metrics compared list 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:

  1. Compare baseline and verification packets with compare_tokenomics_packets.py.
  2. Inspect inferred quality metrics before accepting the decision.
  3. Check segment metrics when available.
  4. Confirm metric gaps are recorded as inconclusive or follow-up work.
  5. 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.