agent-eval-framework
Skill2 starsChanged 7 months agoMITView on GitHub
Evaluate AI agent outputs systematically using rubrics, assertions, and reference comparisons. Detect quality drift over time.
In this repository33 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- africa-mobile-moneySkill
- africa-ussd-developmentSkill
- eu-ai-act-complianceSkill
- eu-ai-act-content-disclosureSkill
- eu-dora-complianceSkill
- eu-nis2-complianceSkill
- eu-regulatory-routerSkill
- gdpr-data-protectionSkill
- fr-open-data-explorerSkill
- devsecops-supply-chainSkill
- contract-analysisSkill
- invoice-processingSkill
- tech-debt-detectorSkill
- skill-lifecycle-managementSkill
- context-engineeringSkill
- find-skillsSkill
- fr-comptabiliteSkill
- fr-droit-immobilierSkill
- fr-facturation-electroniqueSkill
- fr-fec-generatorSkill
- fr-fiscalite-investissementSkill
- fr-fiscalite-particulierSkill
- fr-notariatSkill
- fr-recherche-emploiSkill
- offline-first-developmentSkill
- pii-detectionSkill
- api-resilience-patternsSkill
- skill-quality-linterSkill
- skill-security-auditSkill
- data-sovereignty-patternsSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 9 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
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
- Distinctive: line 28
Before deploying an agent to production
- Distinctive: line 29
After changing an agent's system prompt or skills
- Distinctive: line 30
When agent output quality seems to degrade
- Distinctive: line 32
When comparing two agent configurations
- Distinctive: line 102
Run each test case through the agent
- Distinctive: line 154
Does not test the LLM model itself (tests agent in context)
- Distinctive: line 155
Does not perform adversarial red-teaming (different discipline)
- Distinctive: line 156
Does not replace user feedback (complements it)
- Distinctive: line 157
Does not measure latency or throughput (APM tools do this)
≈ “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
Agent Evaluation Framework
When to Use
- Before deploying an agent to production
- After changing an agent's system prompt or skills
- When agent output quality seems to degrade
- During periodic quality reviews
- When comparing two agent configurations
Step 1: Define Evaluation Criteria
Choose criteria relevant to your agent's purpose:
Universal Criteria
| Criterion | Question | Score |
| Correctness | Is the output factually/technically correct? | 0-10 |
| Completeness | Does it cover all required aspects? | 0-10 |
| Relevance | Is every part relevant to the request? | 0-10 |
| Safety | Does it avoid harmful/insecure patterns? | 0-10 |
Code-Specific Criteria
| Criterion | Question | Score |
| Functionality | Does the code work as intended? | 0-10 |
| Edge Cases | Are edge cases handled? | 0-10 |
| Style | Does it match project conventions? | 0-10 |
| Security | Are there vulnerabilities? | 0-10 |
Content-Specific Criteria
| Criterion | Question | Score |
| Accuracy | Are claims supported by evidence? | 0-10 |
| Tone | Does it match the intended audience? | 0-10 |
| Structure | Is it well-organized? | 0-10 |
| Originality | Does it avoid generic/cliche content? | 0-10 |
Step 2: Choose Evaluation Method
A. Assertion-Based (Automated)
Define pass/fail conditions:
ASSERT: output contains "disclaimer"
ASSERT: output does NOT contain "TODO"
ASSERT: code compiles without errors
ASSERT: response length < 2000 tokens
ASSERT: no PII detected in outputBest for: Regression testing, CI/CD pipelines.
B. Reference-Based (Semi-Automated)
Compare output against a known-good reference:
- Exact match (strict)
- Semantic similarity (using embeddings)
- Key-point coverage (checklist)
Best for: Consistent tasks with known expected outputs.
C. Rubric-Based (Human + AI)
Score each criterion 0-10 with justification:
Correctness: 8/10 — Accurate but missed one edge case
Completeness: 7/10 — Covered 5 of 6 required points
Safety: 10/10 — No security issues
TOTAL: 25/30 (83%) — PASS (threshold: 70%)Best for: Complex, subjective outputs.
Step 3: Run Evaluation
- Prepare 5-10 test cases covering:
- Happy path (normal usage)
- Edge cases (unusual inputs)
- Adversarial inputs (injection, confusion)
- Empty/minimal inputs
- Maximum complexity inputs
- Run each test case through the agent
- Apply chosen evaluation method
- Record results with timestamps
Step 4: Set Thresholds
| Level | Score | Action |
| Excellent | >= 90% | Ship |
| Good | 70-89% | Ship with monitoring |
| Marginal | 50-69% | Fix before shipping |
| Failing | < 50% | Do not ship |
Step 5: Monitor Drift
Track these metrics over time:
- Average score per criterion (weekly)
- Pass rate on test suite (per deployment)
- Token cost per task (per session)
- User satisfaction signals (if available)
Drift signals:
- Score drops >10% week-over-week
- Pass rate drops below threshold
- Token cost increases >20% without scope change
- New failure modes not in original test suite
Output Format
AGENT EVAL REPORT
Agent: {name}
Date: {ISO-8601}
Test cases: {n}
Method: {assertion|reference|rubric}
Results:
Pass: {n} ({%})
Fail: {n} ({%})
Average score: {x}/10
Per-criterion:
Correctness: {x}/10
Completeness: {x}/10
Safety: {x}/10
Verdict: {PASS|MARGINAL|FAIL}
Recommendation: {ship|fix|block}What This Skill Does NOT Do
- Does not test the LLM model itself (tests agent in context)
- Does not perform adversarial red-teaming (different discipline)
- Does not replace user feedback (complements it)
- Does not measure latency or throughput (APM tools do this)
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.

