agentleFS
nainishshafinainishshafi/developer-productivity-skills/.github/skills/eval-driven-development/SKILL.md

eval-driven-development

Skill1 starsChanged 5 days agoMITView on GitHub

Methodology for Eval-Driven Development (EDD) to improve LLM-based system quality through iterative evaluation cycles. Use when building or optimizing RAG, agents, or LLM chains.

4 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 1 is distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Create a golden dataset (e.g., tests/evals/ground_truth.json) containing queries and expected outputs/relevant documents.

    line 13
  2. Very specific:

    Use test-data-creator to help generate synthetic queries if needed.

    line 14
  3. Very specific:

    Use llm-as-judge or Agent-as-a-Judge (using System 2 models like o1/o3) for complex scoring.

    line 20
  4. Distinctive:

    Treat eval scores as CI/CD deployment gates (block deploys if scores drop).

    line 26

“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “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-Driven Development (EDD)

Eval-Driven Development (EDD) is a feedback-driven methodology where automated evaluations guide the implementation of LLM-based systems. It shifts the focus from "writing code" to "improving measurable outcomes."

Core Workflow

  1. Define Ground Truth:
    • Create a golden dataset (e.g., tests/evals/ground_truth.json) containing queries and expected outputs/relevant documents.
    • Use test-data-creator to help generate synthetic queries if needed.
  2. Instrument Multi-Level Evaluation:
    • Response Level: End-to-end task completion rate.
    • Stepwise Level: Evaluating individual tool calls, planning steps, and reasoning chains.
    • Trajectory Level: Analyzing the full multi-step path to identify where logic diverged.
    • Use llm-as-judge or Agent-as-a-Judge (using System 2 models like o1/o3) for complex scoring.
    • For RAG systems, use rag-pipeline-eval.py to measure IR metrics:
      • .\.venv\Scripts\python.exe .github/skills/rag-pipeline/scripts/rag-pipeline-eval.py evaluate --predictions predictions.json --k 5
  3. Establish Baseline & Deployment Gates:
    • Execute the system against ground truth and record metrics (HitRate, NDCG, MRR, pass^k).
    • Treat eval scores as CI/CD deployment gates (block deploys if scores drop).
  4. Iterative Refinement & Analysis:
    • Analyze failures via tracing (LangSmith/Langfuse) and error categorization.
    • Modify prompts, chunking strategies, or tool definitions.
    • Re-run evals to verify fixes and ensure zero regressions.

Advanced EDD Trends (2025-2026)

  • Closing the 37-Point Gap: Shifting from simple observability (tracing) to active evaluation (grading).
  • System 2 Reasoning Evals: Specifically evaluating long-chain reasoning and self-reflection in agents.
  • Pass^k Metrics: Running the same task $k$ times to ensure reliability and eliminate "lucky" successes.
  • Agent-as-a-Judge: Moving beyond static LLM scoring to autonomous evaluator agents that can browse, execute code, and verify claims.
  • MCP Integration: Using standardized Model Context Protocol (MCP) to unify tool evaluation across different models.

When to use

  • Optimizing RAG retrieval quality.
  • Tuning LLM prompt sensitivity and agent planning.
  • Improving agent tool-selection accuracy and error recovery.
  • Comparing different embedding models or LLM providers.
  • Building production-grade agent "fleets" that require continuous monitoring.

Key References

  • rag-pipeline-eval.py
  • llm-as-judge
  • researcher-poc-tester
  • MCP Documentation (Industry Standard)

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.