agentleFS
mmccallammccalla/coding-agent-skill-library/skills/evaluation-and-monitoring/SKILL.md

evaluation-and-monitoring

Skill4 starsChanged 5 months agoApache-2.0View on GitHub

Use when measuring coding-agent quality, RAG evaluation, regression risk, latency, cost, reliability, safety, or production performance for agent systems.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 5 are distinctive, and 0 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.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when an agent or generated system must be measured objectively before, during or after deployment.

    line 13
  2. Distinctive:

    Run baseline evaluation before changes.

    line 24
  3. Distinctive:

    Do not rely on exact string match for semantic answers except where exactness is required.

    line 44
  4. Distinctive:

    Do not use LLM-as-judge without calibration examples and spot checks.

    line 45
  5. Distinctive:

    Do not optimise a single metric if it harms safety or reliability.

    line 46

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

Evaluation and Monitoring

When to use

Use this skill when an agent or generated system must be measured objectively before, during or after deployment. Apply it to coding-agent changes, RAG systems, tool-use workflows, multi-agent systems and production assistants.

Objective

Measure agent or system quality with explicit metrics, representative scenarios, and actionable monitoring evidence.

Procedure

  1. Define measurable objectives and indicators.
  2. Select quantitative and qualitative metrics.
  3. Build an evaluation dataset or scenario set.
  4. Run baseline evaluation before changes.
  5. Evaluate after each material change.
  6. Monitor production behaviour continuously.
  7. Feed results into prioritization, rollback, tuning or human review.

Metrics catalogue

  • Quality: correctness, relevance, completeness, faithfulness, pass rate.
  • Engineering: test coverage, build success, type-check success, defect rate.
  • Runtime: latency, throughput, timeout rate, retry rate.
  • Cost: tokens, API spend, compute, storage, human review effort.
  • Safety: policy violation rate, unsafe tool attempt rate, escalation rate.
  • Reliability: availability, failure recovery rate, mean time to recovery.

Implementation guidance

For coding agents, treat tests as first-class evaluations. Add targeted regression tests for every bug fix. For RAG, measure retrieval recall, answer faithfulness and citation accuracy. For tool-use agents, measure tool-call correctness and error recovery.

Guardrails

  • Do not rely on exact string match for semantic answers except where exactness is required.
  • Do not use LLM-as-judge without calibration examples and spot checks.
  • Do not optimise a single metric if it harms safety or reliability.
  • Alert on drift, unusual tool behaviour and repeated recovery failures.

References

Verification

  • Baseline exists.
  • Metrics are tied to objectives.
  • Evaluation set covers edge cases.
  • Monitoring captures latency, cost and failures.
  • Findings drive concrete action.

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.