Sign in
Explore
Skills · SkillData & AIReviewed

agentic-eval

Patterns for evaluating and improving AI agent output: self-critique loops, evaluator-optimizer pipelines and LLM-as-judge scoring.

Kind
Skill
Works with
GitHub Copilot
Source
Awesome Copilot @ d85f762d6e52
Path
skills/agentic-eval/SKILL.md
License
MIT
Jobs
Review, Testing
InstallCopy it from the source repository, or sign in and let the assistant adapt it for your project.
# Agentic Evaluation Patterns

Patterns for self-improvement through iterative evaluation and refinement.

## Overview

Evaluation patterns enable agents to assess and improve their own outputs, moving beyond single-shot generation to iterative refinement loops.

```
Generate → Evaluate → Critique → Refine → Output
    ↑                              │
    └──────────────────────────────┘
```

## When to Use

- **Quality-critical generation**: Code, reports, analysis requiring high accuracy
- **Tasks with clear evaluation criteria**: Defined success metrics exist
- **Content requiring specific standards**: Style guides, compliance, formatting

---

## Pattern 1: Basic Reflection

Agent evaluates and improves its own output through self-critique.

```python
def reflect_and_refine(task: str, criteria: list[str], max_iterations: int = 3) -> str:
    """Generate with reflection loop."""
    output = llm(f"Complete this task:\n{task}")
    
    for i in range(max_iterations):
        # Self-critique
        critique = llm(f"""
        Evaluate this output against criteria: {criteria}
        Output: {output}
        Rate each: PASS/FAIL with feedback as JSON.
        """)
…