---
title: "Is your coding agent actually using your skills?"
date: 2026-12-03
description: "Your coding agent can look like it's working without ever opening your skill. Here's how I use coding harness traces and evals in Arize AX to check that a skill loads, measure whether it actually helps, and prove each change is a real gain rather than noise."
---

I've spent a lot of this year writing skills for coding agents, mostly the [Arize skills](https://arize.com/docs/ax/skills/install) that teach Claude Code, Codex and friends how to work with Arize AX. And for a long time my testing process was, if I'm honest, vibes. I'd ask the agent to do something, it would do it, I'd nod sagely and move on.

Then I started reading the traces, and found out that some of the time the agent had done the job without ever opening my skill. It just winged it. Sometimes it got the right answer anyway, which is somehow worse, as it means you can't tell from the output alone whether your skill is pulling its weight.

So I wrote up how I now measure and improve skills properly, as a guide in the Arize AX docs: [Improve coding agent skills with coding harness traces](https://arize.com/docs/ax/cookbooks/improve/measure-and-improve-a-skill). This post is the story version, with the same animations.

> TLDR; Trace your coding agent so you can see whether a skill loads, run it in a clean room against a dataset of real prompts, grade it with trajectory and outcome evals, and only ship a change if it beats the noise.

## What is your agent actually doing?

The first step is seeing what's happening. [Coding harness tracing](https://arize.com/docs/ax/instrument/coding-agents) records every interaction with your coding agent in Arize AX. Each turn becomes a trace, with a span for every model call and every tool call, and that includes loading skills.

![A Claude Code trace in Arize AX with status OK and a latency of 11.64 seconds. Under Turn 1 are five LLM calls, each with its tokens and cost, a Skill span, and three Bash spans. The Skill span is selected, and its input shows the skill that loaded, and how the agent restated the request.](/blogs/is-your-agent-using-your-skills/work-api-trace-skill-span-dark.png)

To make sense of what you see in a trace, it helps to know how agents load skills. They use something called progressive disclosure, which is a fancy way of saying they only read as much as they need:

1. The agent reads the `description` of every skill when it starts. That's how it decides which skill to use.
1. Once it picks a skill, it loads that skill's `SKILL.md`.
1. If `SKILL.md` points at other reference files, the agent loads those only when it needs them.

Loading a skill leaves a Skill span, and each file the agent reads leaves a Read span. So the trace tells you which skill was picked, and how far into it the agent got. The descriptions don't leave a span at all, as they're always loaded.

{{< scroll-video src="anim-disclosure-dark.mp4" poster="anim-disclosure-dark-poster.png" label="The agent reads a skill in three stages. First, descriptions: it starts with only the description of each of four skills, set-up-tracing, run-experiments, build-datasets, and export-traces, and picks run-experiments. Second, SKILL.md: it reads run-experiments/SKILL.md line by line, and one line says to read references/compare.md to compare runs. Third, references: it follows that pointer and reads references/compare.md, while references/datasets.md and references/evaluators.md stay unread. Descriptions are always loaded and leave no span. Reading SKILL.md leaves a Skill span, and reading a reference leaves a Read span." >}}

From a trace you can answer the questions that matter:

- Was my skill loaded and used?
- Which references did it load?
- How much latency did the skill add?
- What did the whole thing cost in tokens?

You also get the inputs and outputs of every span, which is where it gets fun. If your skill tells the agent to call a CLI with certain parameters, you can check the exact command it ran in the Bash span. No more guessing.

Before building anything fancy, just do this: turn on tracing, install your skills, throw a handful of prompts at the agent, and read the traces. It's a pretty quick gut check, and you'll probably spot a few obvious problems straight away. I certainly did.

## Build somewhere fair to test

A gut check is nice, but it's not a measurement. To know whether a change to your skill helps, you need a test you can rerun and trust.

{{< scroll-video src="anim-how-to-test-dark.mp4" poster="anim-how-to-test-dark-poster.png" label="How a skill is tested. A dataset of real prompts, phrased the way people ask, each with ground truth: the skill, reference, action, and output. Each prompt goes into a clean room: a fresh container with the agent, tracing, and only your skills, where the coding agent loads the skills under test. Each experiment runs several times. The agent's result goes to outcome evals, which check whether the skill worked, and its trace goes to trajectory evals, which check whether the spans show how it got there. Both feed an experiment in Arize AX, with one run per prompt, every score, and the trace attached." >}}

### The clean room

Agents are smart, and they're resourceful. They'll use your skill, sure, but they'll also use every other skill you've got installed, your MCP servers, and anything lying around on your machine. That's great when you're working, and terrible when you're testing, as you've no idea what actually helped.

So test in a clean room. The easiest way is a Docker container with only:

1. The coding agent
1. Coding harness tracing
1. Your skills
1. Whatever else the skills need to run, such as a code repo or a test app

![A clean room is a container with only what the test needs: the coding agent and model under test, coding harness tracing that sends every turn to Arize AX, only the skills under test, and the resources the skills need, such as a code repo or test app. Recreate it for each test run, or each prompt if your skill changes local files. Kept out, because they could bias the result: other skills, MCP servers, files and data on your machine, and your own agent config and memory.](/blogs/is-your-agent-using-your-skills/clean-room-dark.png)

Recreate the container for each test run. If your skill changes local files, recreate it for every prompt, otherwise the agent can spot what the last run left behind and get a sneaky head start.

If your skills need to work across agents, you'll end up with a little matrix of clean rooms, one per agent and model combination:

| Coding agent | Models |
| --- | --- |
| Claude Code | Opus, Sonnet |
| Codex | Sol, Luna |

### A dataset of real prompts

Next you need prompts, and they need to be the things people actually type, ideally lifted from real sessions. Nobody asks "please invoke the experiment comparison workflow". They ask "which one was better?".

Each prompt also needs ground truth: which skill should load, which references it should read, what action it should take, and what the output should look like. And don't forget the negative cases, the prompts where your skill should stay well out of it. A skill that grabs every request is as broken as one that never loads.

Two rows for a skill that runs Arize AX experiments might look like this:

| Prompt | Expected skill | Expected reference | Expected action | Expected output |
| --- | --- | --- | --- | --- |
| "Compare my last two experiments" | `run-experiments` | `references/compare.md` | Runs the CLI's compare command | A summary of which experiment scored higher |
| "Rename this variable to `userId`" | None | None | No skill loads | The variable is renamed |

### Two kinds of evals

I grade every run twice.

**Trajectory evals** check how the agent got there, using the trace. These are [code evaluators](https://arize.com/docs/ax/evaluate/evaluators/code-evaluations), so they're cheap and deterministic:

| | What to check | Pass condition |
| --- | --- | --- |
| Trigger | `name = 'Skill'`, `input.value` has the skill's name | There's a `Skill` span for the expected skill only |
| Source of truth | `Read` spans' `tool.file_path`, and the commands on tool spans that do the work, like `Bash` | The agent read the expected reference files and took the expected action, like calling an API or a CLI |
| Clean path | `status_code = 'ERROR'`; `Grep` or `Glob` spans; `Bash` commands that don't use the skill's tool, and `WebFetch` or `WebSearch` spans | No tool call failed, and the agent didn't search for anything that should be in the skill, or work around the skill's tools |
| Cost | Tokens and cost summed across the trace's LLM spans, and the turn's latency | Cost per passing run stays within a budget you set before you test, and latency is acceptable |

That clean path row is my favorite. An agent that runs off to do a web search for something your skill already told it is basically telling you the skill isn't clear enough.

**Outcome evals** check whether the skill actually worked. What that looks like depends on the skill:

| Your skill… | Outcome eval |
| --- | --- |
| Wraps a CLI or API | A code evaluator that checks the tool call spans to see that the CLI was called with the expected parameters |
| Generates or changes code | A harness that lints the code, runs it, and checks the output or actions, scoring each step. Run this inside the clean room setup. |
| Produces text, such as docs or summaries | An [LLM as a judge](https://arize.com/docs/ax/evaluate/evaluators/llm-as-a-judge), against the expected output |
| Makes multi-step decisions | A [decision model](https://arize.com/docs/ax/evaluate/decision-judge) or [agent as a judge](https://arize.com/docs/ax/evaluate/agent-as-a-judge) to check that the right decisions were made |

Score each check separately rather than rolling everything into one pass or fail. When something drops, you want to know which part of the skill to poke at.

## Get a baseline, and respect the noise

Now run the experiment: every prompt, in a fresh clean room, graded by every eval. Then do it again. And again. Agents are non-deterministic, so the same skill on the same prompts gives you a different score each time, and you need to know how far that score wobbles on its own.

Run two scenarios for your baseline:

1. Your current skills
1. No skills at all

That second one is humbling. It tells you how much the agent can already do from its training and a quick web search, and so how much your skill is really adding. Sometimes the answer is "less than you'd hope" (ask me how I know).

{{< scroll-video src="anim-noise-dark.mp4" poster="anim-noise-dark-poster.png" label="Each dot is one experiment, with every request run in a clean room. The current skill runs as five experiments, with nothing changed between them, and scores 76%, 79%, 82%, 84%, and 88%. That 76% to 88% range is how far the score moves on its own. With no skill, the agent scores between 58% and 69%, below the range, so the skill helps. Change A scores between 78% and 87%, inside the range, so there's no evidence it helped. Change B scores between 90% and 97%, above the range every time, so it's a real gain." >}}

The range your current skill scores across those runs is your noise. A change only counts as a real gain if it scores above that range. In the example above, Change A looks like a win if you only run it once, but it's sitting inside the noise. Change B clears it every time. Only one of those is worth shipping.

## Now make it better

With a baseline and a fair test, you can finally improve the skill and prove it. These are the things that have helped me most.

### Make the description do its job

The description is the only part of your skill the agent sees up front, so it decides whether the skill gets used at all. You get 1,024 characters, so make them count:

- Use imperative phrasing that tells the agent when to act, such as "Use this skill when...", rather than "This skill does...".
- Write in the words your users use, not your implementation details.
- If the description can't fit everything it needs, that's a sign to split the skill into smaller ones.

```yaml
# Before
description: This skill handles Arize experiments.
# After
description: Use this skill when the user wants to run, compare, or export experiments in Arize AX, such as "compare my last two runs" or "which prompt scored better".
```

### Cut before you add

When a skill doesn't work, the instinct is to add more instructions. Resist it! Every word costs tokens, takes up context the agent needs for the actual task, and makes the skill slower and more expensive. Agents like short, sharp skills, and in my experience shorter skills often score better too.

{{< scroll-video src="cut-dark.mp4" poster="cut-dark-poster.png" label="A skill's SKILL.md shrinks from 277 lines to 49. Tokens in a typical run fall from about 15,000 to about 4,500, and the share of correct runs rises from 74% to 83%." >}}

Prefer concise steps to long prose. And if your skill branches ("do this for Python, do this for JavaScript"), move each branch into its own reference file so the agent only reads the one it needs.

### Keep what only you know

A skill earns its place by telling the agent things it can't work out for itself. Your no-skill baseline shows you what those are. If the agent already handles something fine without your help, like a public SDK it was trained on, cut it. Then spend those words on:

- The workflows that are specific to your tools
- Gotchas, templates, checklists, and validation steps
- Steering for the tasks the agent gets wrong, like pointing it at the right API when it keeps reaching for the wrong one
- Mapping your users' terminology to the names your tools use
- When a reference is required, how to call the tools, and what to do when a call fails

### Grade every change against both baselines

Run your changed skill through the same test and compare it to both the current skill and no skill.

![Three versions go into the same test: no skill, which is what the agent does on its own; the current skill, which is what you'd ship today; and your change. The same test uses the same requests, clean room, model, and runs per request. Your change is scored on every eval and on cost, and no skill on the output score and cost only. Ship your change only if it beats the current skill on every eval, beats no skill on the output score, and stays within the cost budget.](/blogs/is-your-agent-using-your-skills/three-arms-dark.png)

Watch the individual scores, not just the headline number, because fixes have a habit of breaking things somewhere else:

- New instructions can fix a problem and make every run slower or more expensive.
- An example in the skill can get copied word for word instead of adapted.
- A broader description can fix a missed trigger and start stealing requests from another of your skills.

My ship rule is pretty simple:

| Compare your change against | On | It must |
| --- | --- | --- |
| The current skill | Trajectory and outcome evals | Score above the noise range |
| No skill | Outcome evals | Score higher |
| Your budget | Cost and latency | Stay within it |

If it doesn't pass, go round the loop again. Make a set of changes, measure, repeat, until the scores level off.

{{< scroll-video src="fix-loop-dark.mp4" poster="fix-loop-dark-poster.png" label="The fix loop. 1, set the rule: what each eval must show, and a cost budget. 2, read the traces: group every run's problems by cause. 3, fix the causes with general instructions, not one-request patches. 4, rerun the test with the same requests, clean room, model, and number of runs. 5, check everything: every eval and cost, including what you didn't touch. A new problem, or a broken rule, sends you back to step 2." >}}

## This isn't one and done

Like any eval setup, the value is in rerunning it. I rerun mine when I add capabilities to a skill (with new prompts in the dataset to cover them), and when I need to support a new agent or model. For a new model, rerun the no-skill baseline too. Models keep getting better, and sometimes the newest one can do by itself what your skill used to teach it, which is a great excuse to cut.

And if your skills are internal ones your team uses every day, you can trace every coding agent and run your evals [online](https://arize.com/docs/ax/evaluate/run-evals-on-traces), so you find out a skill has stopped loading before your team does.

The full walkthrough is in the docs: [Improve coding agent skills with coding harness traces](https://arize.com/docs/ax/cookbooks/improve/measure-and-improve-a-skill). Give it a go, and let me know what your traces tell you. I bet at least one of your skills is gathering cobwebs.

