agentic-eval

Implements iterative evaluation and refinement loops for improving AI agent outputs.

209|5|Updated Feb 27, 2026
One-click install
npx skills add https://github.com/junevm/splathash --skill agentic-eval-junevm
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: agentic-eval
Source: https://github.com/junevm/splathash/tree/main/.github/skills/agentic-eval
Command: npx skills add https://github.com/junevm/splathash --skill agentic-eval-junevm

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Single-shot LLM generation often produces outputs with quality issues, and there is no built-in mechanism for an agent to assess and improve its own work. This Skill provides proven patterns for building self-critique, evaluation, and refinement loops into agent workflows. ## Core Features & Use Cases - Reflection Loops: Generate output, self-critique against criteria, and refine iteratively until all checks pass. - Evaluator-Optimizer Pipelines: Separate generation and evaluation into distinct components with score thresholds and structured JSON feedback. - Test-Driven Code Refinement: Generate code and tests, run them, and automatically fix failures in a loop. - Evaluation Strategies: Outcome-based checks, LLM-as-judge comparisons, and weighted rubric scoring. - Use Case: You are building an agent that generates compliance reports. Use the evaluator-optimizer pattern to score each draft against accuracy, clarity, and completeness dimensions, refining until the score exceeds 0.8. ## Quick Start Ask the agent to implement a reflection loop that generates a report, critiques it against your criteria, and refines it up to three times.

Frequently Asked Questions about agentic-eval

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add self-critique to an LLM agent's output?▼

Use a reflection loop: generate the output, prompt the LLM to evaluate it against your criteria returning structured JSON, then refine based on failed criteria. Repeat up to a maximum of 3 iterations or until all checks pass.

What is the evaluator-optimizer pattern for AI agents?▼

The evaluator-optimizer pattern separates generation and evaluation into distinct components. A generator produces output, an evaluator scores it against dimensions like accuracy and clarity, and an optimizer refines it until the score exceeds a defined threshold.

How do I use LLM-as-judge to compare two outputs?▼

Prompt the LLM with both outputs and your comparison criteria, asking which is better and why. This works well for ranking candidate generations or A/B testing prompt variations against a defined quality standard.

How many refinement iterations should an agent run?▼

Set a maximum of 3 to 5 iterations to prevent infinite loops and control costs. Also add convergence detection that stops the loop if the output score stops improving between iterations.

Why does my evaluation loop fail to parse critique results?▼

Free-text critiques are unreliable to parse. Instruct the LLM to return structured JSON with explicit PASS/FAIL status per criterion, and handle parse failures gracefully so the loop can recover or exit cleanly.