Skip to content
Back to skills

Agent Evaluation

ASecurity

Evaluating the project's agents and skills — reference tasks, runs with and without a skill, scoring against acceptance criteria and the skill's checks, regression when a skill or agent changes, root cause analysis of errors, level confirmation, run cost: model and effort per role, context size (agent evaluation, eval, regression, benchmark, cost, model routing, tokens).

  • 5 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentsgocode-reviewsecurity

Works with

  • claude code

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned December 3, 2026

npx -y skills add vectora-os/kit --skill agent-evaluation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Agent Evaluation?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Agent Evaluation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectora-os-agent-evaluation/badge)](https://www.skillsdirectory.com/skills/vectora-os-agent-evaluation)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: agent-evaluation
description: Evaluating the project's agents and skills — reference tasks, runs with and without a skill, scoring against acceptance criteria and the skill's checks, regression when a skill or agent changes, root cause analysis of errors, level confirmation, run cost: model and effort per role, context size (agent evaluation, eval, regression, benchmark, cost, model routing, tokens).
metadata:
  category: ai-platform
---

# Evaluating agents and skills

## Purpose

This skill verifies that a skill or agent actually improves the result and tracks the cost of runs. Evaluation is based on the task's acceptance criteria and the skill's checks, not on impressions. Roles: AI Evaluation Engineer, AI Cost Optimizer.

Creating skills — `skill-engineering`; agent profiles and orchestration — `agent-engineering`.

## Inputs

- Changed agent, skill, prompt or model; eval cases.

## Outputs

- Eval report with before/after scores and cost.

## Read first

- [Project Brain](../../../project-brain/README.md) — `npm run brain -- query "agent evaluation"` for prior decisions, patterns and lessons.
- [docs/agents.md](../../../docs/agents.md) — agents, roles, levels, workflow and retry limits.
- [AGENTS.md](../../../AGENTS.md) — invariants: violating one in a run is a failure regardless of everything else.
- [agents and workflow](../../../docs/agents.md) — a task with an owner, allowed files, an input contract and acceptance criteria.
- The "Checks" section of the evaluated skill and the body of the evaluated agent in `.agents/agents/`.
- Format of reference tasks and the report: [references/eval-format.md](references/eval-format.md).

## Steps

1. **Reference tasks.** 3–5 tasks per skill or agent from its zone: a typical one, an edge case and a trap task where the easy path violates an invariant from `AGENTS.md` or an ADR (for example, a secret in code or a log, "read then write" without race protection, reporting success before the result is committed, a test bent to fit a bug). Every task has an input, allowed files, acceptance criteria and expected artifacts.
   Done when every criterion is verified by a command, a test or a link to a document line.
2. **Storing reference tasks.** The storage location is chosen by the owner (for example, `.agents/evals/` or a section in `docs/`); if there is no decision, it is a question for the owner and the reference tasks are attached to the evaluation report.
   Done when the storage location is recorded in the report as the owner's decision or an open question.
3. **Run.** Every task is run twice: with the skill (or agent) and without it — the baseline: for a skill — the same agent without that skill in `skills`; for an agent — a general agent without the profile, with the same task and the same allowed files; on the same model, in a separate worktree, with a clean context. Retries — no more than the limit in the [rules](../../../docs/agents.md#rules-and-authority).
   Done when every pair has artifacts and the output of the check commands.
4. **Scoring.** For every criterion: met, not met, invariant violated. An invariant violation fails the task. Scoring is done by an independent reviewer, not the skill's author.
   **Rule:** "it got better" — only if the skill wins on the criteria in at least one task and loses in none.
   Done when the results table is filled in for both runs.
5. **Error analysis.** For every failure — the cause: the skill (missing step or wrong rule), context (a document was not loaded), the model, a tool, or the process (a task without criteria, a wrong split). Fix the cause, not the symptom.
   Done when every failure has a named cause and a proposed fix with an owner.
6. **Regression.** A change to a skill or agent reruns its reference tasks. A change that breaks a previously passing task is not accepted without the owner's decision.
   Done when results before and after the change are attached to the skill's PR.
7. **Level.** A role's level in the registry is confirmed by results: Middle — tasks from a specification, Senior — edge cases and trap tasks without violations. The model's name does not confirm a level.
   Done when the level proposal is based on the results table.
8. **Cost.** Claude Code supports `model` and `effort` fields for an agent, but the canonical agent format does not carry them over: the [generation script](../../../scripts/sync-agents.mjs) writes only `name`, `description`, `skills` and the editing restriction for reviewers. Setting a model or effort per role requires changing the script, with the owner's approval; choosing the values is also the owner's decision, the skill prepares a comparison. Context is reduced by links instead of copies and by reading `references/` as needed. The report contains only costs measured by the run tool; no estimates "by eye".
   Done when the cost report contains measured values or explicitly says "not measured".

## Best practices

- Identical cases and settings before and after.
- Several runs per case; report variance.

## Common mistakes

- Tuning the rubric to pass.
- Single-run comparisons.

## Example

Shortened reviewer prompt: recall 11/12 → 9/12 on seeded bugs; regression blocked.

## Reusable prompt

```text
Apply the agent-evaluation skill (.agents/skills/agent-evaluation/SKILL.md).
Context: {{task card or question; links to PRD, ADRs, code paths}}
Constraints: {{approved thresholds, deadlines, allowed files}}
Run the reference cases before and after the change with identical settings and report scores, variance, cost and a verdict.
Cite evidence for every claim; list open questions separately.
```

## Checks

- [ ] Every reference task has verifiable criteria and there is a trap task for an invariant.
- [ ] Data in reference tasks is synthetic: no secrets and no real personal data.
- [ ] Runs with and without the skill use the same model and a clean context.
- [ ] Scoring is not done by the skill's author.
- [ ] Every failure has a cause from the five categories.
- [ ] Regression was run when the skill or agent changed.
- [ ] Cost figures are measured, not invented; the choice of model and effort is left to the owner.

## Out of scope

- Writing and taking in skills — `skill-engineering`.
- Agent profiles and permissions — `agent-engineering`.
- Code review — `independent-code-review`; security — `independent-security-review`.

Files in this skill

  • SKILL.md6.3 KB
  • references/eval-format.md1.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.