agentic-eval
Use when designing or implementing an evaluation loop for AI agent outputs — reflection loops, evaluator-optimizer pipelines, LLM-as-judge scoring, or…
Skill by matt-riley
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/matt-riley-agentic-eval
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: testing, ml, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/agentic-eval
What's inside
- Skill name
agentic-eval- Description
- Use when designing or implementing an evaluation loop for AI agent outputs — reflection loops, evaluator-optimizer pipelines, LLM-as-judge scoring, or rubric-based iteration. Not when running an existing test suite or reviewing a completed artifact without iterating.
- License
- GPL-3.0
- Metadata
- kind: task · version: 2.0.1 · audience: general-coding-agent · category: workflow · maturity: draft
- Instructions
- 108 lines in SKILL.md · view on GitHub
Files (6)
- SKILL.md
- openai.yaml · agents/
- eval-checklist.md · assets/
- evals.json · evals/
- trigger-queries.json · evals/
- patterns.md · references/
SKILL.md (first lines)
# Agentic Evaluation Use this skill when you are designing or implementing an evaluation loop that lets an agent assess and improve its own outputs through iteration — not when you are running a pre-existing test suite or doing a one-off review with no refinement cycle. The core pattern is: **Generate → Evaluate → Critique → Refine → Output**, looping until a convergence condition is met or a max-iteration budget is exhausted. ## Use this skill when - Implementing a self-critique or reflection loop that feeds output quality back into generation. - Building an evaluator-optimizer pipeline that separates generation from evaluation responsibilities. - Designing LLM-as-judge scoring to compare or rank multiple candidate outputs. - Adding rubric-based scoring with weighted dimensions to iterative generation. - Setting iteration limits, convergence checks, or structured evaluation output contracts. - The task requires measurable improvement across runs, not just a single-shot best effort. ## Do not use this skill when - You are running an existing test suite to verify code — use `verification-before-completion`. - You are diagnosing a specific failure or bug, not evaluating output quality — use `systematic-debugging`. - The goal is writing test coverage (unit tests, integration tests) — use `test-driven-development`. - You are reviewing a completed artifact once without a refinement loop (a single code review, an editorial pass, a PR check). ## Routing boundary | Situation | Use this skill? | Route instead | | --- | --- | --- | | Designing a reflection loop with a score threshold and max iterations | Yes | — | | Implementing LLM-as-judge comparison of two candidate outputs | Yes | — | | Running `npm test` to confirm a fix works | No | `verification-before-completion` | | Tracing why a specific assertion fails | No | `systematic-debugging` | | Writing Jest or pytest test coverage for a module | No | `test-driven-development` | | Reviewing a PR diff once, no iteration | No | [`implementation-review`](../implementation-review/SKILL.md) | ## Inputs to gather **Required before starting** - The skill or agent behavior to evaluate. - The evaluation objective and target metric for the application's outputs. **Helpful if present** - Existing evaluation fixtures or application quality criteria to extend. ## First move 1. Identify the application behavior to evaluate and the desired outcome. 2. Define the evaluation criteria and target metric. 3. Open the relevant reference file based on the evaluation type. ## Navigation The three evaluation strategy patterns (outcome-based, LLM-as-judge, rubric-based) and full Python examples are in `references/patterns.md`. The implementation checklist — criteria, threshold, loop wiring, convergence, logging — is in `assets/eval-checklist.md`. For a new implementation, start with the checklist to confirm your setup is complete, then use the patterns reference to choose and adapt an evaluation strategy. ## Outputs - Evaluation loop design with defined criteria, convergence check, and max iteration budget. - Structured evaluation scores per iteration with input, output, and critique logged. - Convergence or budget-exhaustion result confirming the loop terminated cleanly. ## Workflow 1. Name the application behavior under evaluation and the success criteria. 2. Choose a strategy from [`references/patterns.md`](references/patterns.md): outcome-based, LLM-as-judge, or rubric-based. 3. Complete the setup checklist in [`assets/eval-checklist.md`](assets/eval-checklist.md) (criteria, threshold, max iterations, logging). 4. Isolate generate → evaluate → optimize steps; keep the evaluator replaceable. 5. Run the loop with a hard `max_iterations` bound and a convergence check. 6. Log full trajectories (input, output, score, critique) for every iteration. 7. Stop on threshold met, no improvement, or budget exhaustion; report structured scores. 8. Feed failures back into evaluator criteria, prompts, or optimization steps, then re-run. ## Guardrails - Always set a `max_iterations` bound (3–5 is a safe default) before wiring up a refinement loop. Unbounded loops stall agents. - Require structured output (JSON) from the evaluation step so the optimize step has a reliable signal to act on. Free-text critique is fragile. - Add a convergence check: if the score does not improve between iterations, stop early. Oscillating loops that never converge waste budget. - Log the full iteration trajectory. Evaluation loops are hard to debug post-hoc without a history of inputs, outputs, scores, and critiques. - Define evaluation criteria before generating any output. Criteria added mid-loop drift and make scores incomparable across iterations. - Keep the evaluate step isolated from the generate step. Blending them makes it hard to replace the evaluator or diagnose score instability. - Handle evaluation parse failures gracefully — if the LLM judge returns malformed JSON, fall back to a safe default (treat as failing) rather than crashing the loop. ## Validation After implementing an evaluation loop, confirm: - [ ] `max_iterations` is set and respected by the loop - [ ] Evaluate step returns structured output (JSON or equivalent) - [ ] Convergence check exits early when score does not improve - [ ] All iterations are logged with input, output, score, and critique - [ ] Parse-failure fallback is present on the evaluate step - [ ] Criteria are defined before any generation begins ## Examples - "Add a self-critique loop to my report-generation agent that retries up to three times if the rubric score is below 0.8." - "Implement an evaluator-optimizer where a separate LLM judge scores code clarity and the generator rewrites until it passes." - "Build a rubric-based evaluator with accuracy, completeness, and style dimensions that returns a weighted score as JSON." ## Reference files - `references/patterns.md` — The three evaluation strategy patterns (outcome-based, LLM-as-judge, rubric-based) with annotated Python examples and a best-practices table. - `assets/eval-checklist.md` — Implementation checklist: setup, loop wiring, convergence, logging, and safety items to confirm before shipping.
From matt-riley/agent-skills, GPL-3.0.
More from matt-riley/agent-skills
- 0.614score
code-intelligence
matt-riley
Use when navigating or refactoring code — choosing between LSP, rg, or semantic search tools; an LSP call returns empty and you need to know if it failed; or…
SkillAFreshness: A★ 4Claude Code +9 - 0.614score
code-tour
matt-riley
Use when asked to create a .tour walkthrough — onboarding, PR review, RCA, architecture, or any persona-targeted step-by-step code narrative.
SkillAFreshness: A★ 4Claude Code +9 - 0.614score
agent-governance
matt-riley
Use this skill when building AI agents that call external tools, implementing policy-based access controls, adding semantic intent classification, creating…
SkillAFreshness: A★ 4Claude Code +9 - 0.614score
api-smoke-validation
matt-riley
Use when running quick, repeatable API smoke tests after changes with hurl, including auth, status-code, response-shape, endpoint sanity, and pre-integration…
SkillAFreshness: A★ 4Claude Code +9 - 0.614score
aws-sdk-v2-to-v3-migration
matt-riley
Use when the codebase still imports from 'aws-sdk' v2, uses new AWS.*() constructors, .promise() calls, AWS.config.update(), DocumentClient, or s3.upload() —…
SkillAFreshness: A★ 4Claude Code +9 - 0.614score
circleci-to-github-actions-migration
matt-riley
Use when a repository still depends on .circleci/config.yml jobs, workflows, or artifacts that need to be replaced or phased out with GitHub Actions —…
SkillAFreshness: A★ 4Claude Code +9 - 0.614score
mocha-to-jest-migration
matt-riley
Use when a JavaScript or TypeScript suite still depends on Mocha, Chai, or Sinon and needs an incremental Jest migration.
SkillAFreshness: A★ 4Claude Code +9 - 0.614score
project-references-migration
matt-riley
Use when a layered TypeScript workspace needs an incremental project-references migration without breaking package boundaries or editor resolution.
SkillAFreshness: A★ 4Claude Code +9 - 0.614score
ast-grep
matt-riley
Use when you need ast-grep structural search, linting, or safe codemod rewrites, especially for requests that mention ast-grep, sg, codemod, rule files, or…
SkillAFreshness: A★ 4Claude Code +9 - 0.614score
agent-instructions
matt-riley
Use when creating or updating agent instruction files (AGENTS.md for Pi, copilot-instructions.md for Copilot, per-path guides, or AGENTS.md router) —…
SkillAFreshness: A★ 4Claude Code +9 - 0.614score
autoresearch
matt-riley
Use when running autonomous iterative experiments to optimize a measurable metric on an existing codebase — not for writing tests or diagnosing a specific…
SkillAFreshness: A★ 4Claude Code +9 - 0.614score
aws-lambda-go-deployment
matt-riley
Use when deploying or debugging Go-based AWS Lambda packaging, bootstrap, runtime, or handler issues — not when the main failure is SAM stack wiring, IAM OIDC…
SkillAFreshness: A★ 4Claude Code +9
Signals
- Stars
- 4
- Forks
- 0
- Open issues
- 1
- Last commit (this folder)
- Sep 24, 2026 (1 month ago)
- Last release
- Oct 23, 2026 (5 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- Version
- 2.0.1
- License
- GPL-3.0
- Repository
- github.com/matt-riley/agent-skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from matt-riley
- 0.614score
agent-instructions
matt-riley
Use when creating or updating agent instruction files (AGENTS.md for Pi, copilot-instructions.md for Copilot, per-path guides, or AGENTS.md router) —…
SkillAFreshness: A★ 4Claude Code +9 - 0.614score
agent-supply-chain
matt-riley
Use this skill when generating SHA-256 integrity manifests for agent plugins, verifying that installed plugins match their manifests, detecting tampered…
SkillAFreshness: A★ 4Claude Code +9 - 0.614score
api-smoke-validation
matt-riley
Use when running quick, repeatable API smoke tests after changes with hurl, including auth, status-code, response-shape, endpoint sanity, and pre-integration…
SkillAFreshness: A★ 4Claude Code +9 - 0.614score
aws-sdk-v2-to-v3-migration
matt-riley
Use when the codebase still imports from 'aws-sdk' v2, uses new AWS.*() constructors, .promise() calls, AWS.config.update(), DocumentClient, or s3.upload() —…
SkillAFreshness: A★ 4Claude Code +9 - 0.614score
circleci-to-github-actions-migration
matt-riley
Use when a repository still depends on .circleci/config.yml jobs, workflows, or artifacts that need to be replaced or phased out with GitHub Actions —…
SkillAFreshness: A★ 4Claude Code +9 - 0.614score
agent-governance
matt-riley
Use this skill when building AI agents that call external tools, implementing policy-based access controls, adding semantic intent classification, creating…
SkillAFreshness: A★ 4Claude Code +9
Cite this page
agentic-eval skill. Agent Mart. https://agentmart.dev/skills/matt-riley-agentic-eval (last updated 2026-10-24)