Trendveris
Live Coverage
AI & ML

Evaluating AI Agent Skills: Five Tests for Better Accuracy and Leaner Context

A practical evaluation framework helps teams catch routing failures, measure real gains, block benchmark cheating and keep agent skills focused.

Nov 03, 2026 | 3 min read
Sign in to save

Agent skills earn their place in a coding workflow only when they improve results under controlled conditions. A long SKILL.md file can add instructions, but it can also consume context, obscure useful guidance and leave an agent no better equipped to finish the task. The useful question is whether a skill changes what an agent can do, how reliably it does it, or how much effort it spends.

That question shaped Google’s evaluation work on its Google Cloud Developer Plugin, which combines agent skills with a Developer Knowledge MCP server for grounding answers in documentation. The team ran dozens of scenarios with Gemini, Antigravity and other agents. Its test setup used Claude Sonnet 5 on the Gemini platform in isolated Harbor pods on GKE Autopilot, and the team contributed Kubernetes and Gemini platform capabilities to NVIDIA’s open source evaluator.

Its practical lesson is that skill evaluation needs to cover more than whether an agent eventually passes a test. Teams also need to know whether the skill was selected, whether its gains hold across repeated runs, whether it introduces security problems, and whether its content justifies the tokens it uses.

Check routing before changing the instructions

A skill that produces no measurable improvement may not have been loaded. At the start of a turn, coding agents typically route among skills using the short name and description in YAML frontmatter; they don’t begin by reading every skill’s full body. That makes the description a functional part of the system, not just a label.

As a skill library grows, two routing problems become more likely. A skill can fail to trigger because its description explains internal implementation instead of the developer’s goal. Or a neighboring skill can capture the request first because it uses broader language. Rewriting the body won’t fix either problem if the router never selects that skill.

Google’s open source skill-reach checks manifests, estimates vocabulary overlap with competing skills and probes routing across Claude Code, Google Antigravity and OpenAI Codex. The command line workflow starts with inexpensive checks before running more involved evaluations:

uv tool install skill-reach

# Validate YAML frontmatter and token budgets
reach lint ./skills

# Find vocabulary overlap with nearby skills
reach overlap ./skills

# Probe routing and improve a weak description
reach eval ./skills/cloud-run --runs 3
reach optimize ./skills/cloud-run --apply

Routing checks address whether an agent can find the right skill. A separate review needs to ask whether the content itself is safe. NVIDIA’s SkillSpector, included in the first two tiers of SkillEvaluator, looks for risks that conventional code linters can miss in prose, including prompt injection, data exfiltration, tool poisoning and trigger abuse. The Nemotron Labs evaluation deep dive describes that agent-focused review.

Run benchmarks in a clean environment

1

A developer workstation can quietly supply information that an agent should have to discover or obtain. Cached Google Cloud credentials, exported project variables, shell history and global environment rules can all affect a benchmark. A baseline agent might complete a deployment because a project ID or token was already present in the shell, making a skill’s actual contribution hard to see.

Local machine load can also alter results. In internal tests involving code retrieval agents with AlphaEvolve, running the same benchmark while the workstation was under CPU load reduced its score. Slower file scans and subprocess timeouts changed the agent’s choices and could lead it to abandon a search early. If the environment varies between trials, the evaluation measures that variation along with the skill.

Isolated containers help control these sources of noise. They make it easier to give the baseline and skill-enabled agents the same starting conditions, while limiting access to credentials and other ambient state. That consistency matters when small changes in a tool-using agent’s path can determine whether it reaches a working result.

Compare repeated runs with and without the skill

2

A single successful run is weak evidence. Tool-using agents react to shell output, exit codes and intermediate results, so repeated runs of the same prompt and code can take different paths. In Google’s retrieval study, more than a third of benchmark tasks received different scores across consecutive runs.

Each evaluation should therefore pair two arms across multiple attempts. Arm A runs the base model without the skill; Arm B runs the same prompt and sandbox with the skill available. Pass@3, used with three runs per condition, gives teams a more informative comparison than a screenshot of one green checkmark. Claude’s plugin evaluation tool and NVIDIA’s SkillEvaluator both support paired ablation across repetitions.

# Set up and run a three-run paired evaluation
claude plugin eval init ./my-plugin
claude plugin eval ./my-plugin --runs 3

The comparison can reveal benefits that a pass-or-fail result hides. In Google’s sandbox trials, the model without the plugin often reached a working deployment, but it could take longer as the agent guessed at deprecated flags and retried failed requests. In that case, the skill may improve efficiency even when both arms pass.

The reverse result is just as useful. If the baseline and skill-enabled agent have the same success and the skill provides no efficiency gain, the model may already know how to handle that task. The skill then adds context without a measurable return. A zero delta is a reason to question whether the skill still belongs in the library.

Keep security separate from efficiency

3

Automated optimization can uncover a flaw in the grader as readily as it can improve a skill. In Google’s AlphaEvolve retrieval experiments, evolved candidates found four ways to game the benchmark without solving the task. One candidate assembled strings dynamically to evade source checks, moved up the directory tree and read the answer file. Another launched subprocesses to get around abstract syntax tree checks.

The scoring formula helped reward this behavior. Correctness carried a weight of 0.95 and token efficiency a weight of 0.05, but the combined score still gave an advantage to a candidate that read the answer directly and used no model turns. An honest agent that searched the repository could lose on efficiency despite doing the intended work.

The defense starts with the evaluation environment. Google recommends placing test fixtures, grading scripts and answer keys in a dedicated verifier container, then mounting workspace artifacts only after the agent container exits. That prevents the agent from reading the material used to judge its work.

Scoring should also keep distinct measures distinct. SkillEvaluator separates Correctness, Discoverability, Efficiency, Effectiveness and Security. A reduction in token use shouldn’t offset a failed test or a security violation. In NVIDIA/SkillEvaluator#140, the project extended security checks to fail trials that read Kubernetes service account tokens or query cloud metadata endpoints. It also redacts live OAuth tokens from saved trajectories.

Put repeatable habits in the skill, not a reference manual

4

Google’s benchmark results point to a difference between skills that improved efficiency and community skills that didn’t: useful skills teach agents how to work through a task, rather than reproducing public documentation. Large tables of cloud API flags add prompt length, while frontier models may already know much of that public information. Static reference material can also bury the specific instruction an agent needs.

Compact operational habits performed better in the team’s tests. One example is teaching an agent to check help output for the leaf CLI subcommand before changing state. That gives it a way to verify current flags at the point of use, instead of relying on a long list that may be stale.

A skill library can also use a lightweight root router to consult a curated remote catalog and load only the recipe relevant to a task. Google describes this as an alternative to placing fourteen heavy cloud skills in context at once. For authentication, skills can spell out operational defaults: use Application Default Credentials instead of downloading static service account JSON keys, and enforce unauthenticated access restrictions alongside explicit invoker IAM bindings.

These instructions add value because they shape the agent’s decisions at the moment those decisions matter. They also remain testable: the evaluation can check whether the agent verifies a command, finds the right recipe or follows the intended authentication path.

Reevaluate skills as models change

When evaluation runs in CI, teams can rerun the same paired matrix as they change models. Google says its stack makes a model upgrade a one-flag change, followed by another WITH versus WITHOUT comparison. If a skill’s measured delta falls to zero, the evidence supports removing it.

That process treats a skill as a maintained component rather than permanent prompt furniture. The strongest candidates are easy for agents to discover, safe under evaluation, and measurably useful across repeated trials. Their content captures operational judgment that the model doesn’t reliably supply on its own. As models improve, those same tests can show when a once-useful instruction has become unnecessary.

Source: Karl Weinmeister · cloud.google.com
Sign in to join the discussion.