- Understand what your skill is doing using coding harness tracing
- Set up your eval environment
- Build your baseline
- Improve your skill
- Continuously monitor and improve your skill
Understand what your skill is doing using coding harness tracing
Coding harness tracing records every interaction with your coding agent, such as Codex or Claude Code, in Arize AX. Each turn is captured as a trace, with spans for every model and tool call, including loading skills.

- The agent reads the
descriptionof each of your skills when it starts. These descriptions guide the agent in selecting a skill to use. - Once the agent picks a skill, it loads the relevant
SKILL.mdfile - The
SKILL.mdfile can reference other files, and the agent loads these if needed
- Was my skill loaded and used
- What references were loaded
- The latency of using the skill
- The total token cost
Set up your eval environment
Next set up evals to build a reproducible way to test your skills, allowing you to test changes in your skills, or test new models in your agent. This involves not only creating the evals you want to use to measure your skills, but also setting them up in a way that you are measuring only your skills, using a clean room type setup.Set up a clean room
Agents are smart. They use the resources available to them to work on the prompts you provide. This includes using your skills, but also using other skills, MCP servers, and reading other data on your machine. If you want to ensure your skill testing is repeatable, you need to run this on a clean room setup. This limits the agent to just your skills, stopping it reading other data that would bias the test. The easiest way to do this is in a Docker container, or other containerized environment. Inside this environment, set up:- The coding agent
- Coding harness tracing
- Your skills
- Any other capabilities needed to run the skills under test, such as a code repo or other resources


If your skill is a coding skill that needs to work with many different types of apps, use one container configuration per app.
Create a dataset of prompts
To test your skill, you need a set of real world prompts that map to what your users would actually ask, ideally captured from real-world sessions. Typically skills are not isolated to a single workflow, instead they cover multiple tasks that a user might do. For example, the Arize skills cover instrumentation, reading traces, creating evals, and more. Group your prompts into datasets for the different skill capabilities you want to test, allowing you to iterate and improve different parts of your skills. This dataset should also contain ground truth for you to evaluate against. This includes details like which skill should be used if you have multiple, what reference files should be loaded by the skill, what actions should happen such as tool calls, and what the output should look like. As well as the positive cases where the skill is called, your dataset needs negative cases where your skill should not be called. For example, two rows in a dataset for a skill that runs Arize AX experiments might look like this:Build trajectory evals to grade how the agent calls the skill
The first eval to build is a trajectory sanity check for the skill. This is a code-based evaluator that checks that the skill is called, makes comparisons against the ground truth, checks the trajectory used by the agent such as routing to the right references, and measures cost and latency. The typical checks this evaluator should make are:Build evals to grade the quality of the outcome
The second eval to build is a check on the output of the skill. This checks that the skill actually worked and performed the steps or provided the expected output. Reviewing your traces is a good place to start planning your evals. Depending on the type of skill, a code evaluator might be enough, or you may need to pass the output to a decision model, LLM, or agent as a judge. For other skills, you may need to build more advanced testing harnesses. For example:
Each check should be scored separately, instead of a single pass/fail or score. This allows you to later tune each part of the skill depending on the individual grade.
Build your baseline
Now grade your skill by running an experiment. For each row in your dataset, run the prompt in the clean room setup, creating a new environment each time if needed. Run the evals over the generated trace and skill output. Agents are non-deterministic, so run each experiment multiple times to get a grade range to compare your changes against noise. Your initial pass should run two scenarios:- How the current skills perform using your agent
- How the agent scores without your skills
Improve your skill
You now have both the data to improve your skill, and an environment to score your changes to ensure they are making a demonstrable improvement, within your limits for cost and latency.Ensure descriptions are concise and accurate
The skill descriptions are what tell the agent when to use the skill. These are limited to 1024 characters, but must contain enough information to trigger the skill when needed. Some approaches to take:- If the description needs to be too long to guide the agent, consider splitting the skill into multiple skills with clearly defined tasks
- Use imperative phrasing, for example “Use this skill when you need to”, rather than “This skill does”. Tell the agent when to act.
- Focus on the user’s intent in the terms the user would use, not specific implementation details
Cut before you add
Every word in your skill adds a token cost. The more wordy the skill, the less effective it can be. Agents like short succinct skills, and the shorter the skill is, the more space in the context window for the important information the agent needs, and the cheaper and faster the skill runs.- Prefer concise steps to long prose
- If there is branching in your skill (for example in a coding skill having “do this for Python, do this for JavaScript”), then split the branches out into separate reference files
Keep what only you know, and add what the agent can’t know
Skills are most useful when they encode logic or workflows that the agent is unable to discover or know. Some approaches to take:- Define the workflows that the agent needs to follow that are specific to your skill
- Review the baseline run to learn what the agent can do by itself. Remove anything from the skill that the agent has demonstrated it can do. This can be public APIs and SDKs that the agent was trained on, well known practices like running code, or public documentation.
- Add gotchas, templates, checklists, validation steps, anything the agent cannot infer
- Provide specific guidance for tasks the agent gets wrong, such as directing it to a particular API for a scenario where it wants to call the wrong API
- Map your users’ terminology to the names your tools and APIs use
- Say when a reference is required
- Say how to call the tools, and what to do when a tool call fails
Grade the skill updates
Grade your new skill, and compare against the baseline scores for the original skill and no skill.

- New instructions can make every run slower, or more expensive, even when they solve the problem
- An example in the skill can get copied word for word, rather than adapted to the request
- A broader description can fix a missed skill trigger, but take requests from another of your skills
If not, iterate on these steps to make more changes to the skill and test again.
Continuously monitor and improve your skill
As with running evals against your production agents, this is not a one and done task. Make sure your setup is able to be rerun when needed. Run it:- When you need to add more capabilities to the skills. In this case, expand the dataset to include prompts for the new capabilities.
- When you need to support a new coding agent, or model. For new models, also rerun the no-skill baseline to see how much the new model can do without using your skills.
Next steps
Instrument your coding agent
Set up coding harness tracing for Claude Code, Codex, and other agents.
Explore your traces
Filter spans to find the same failure across runs.
Build a dataset
Turn traces or your own examples into a dataset of prompts.
Arize skills
Give your coding agent skills for tracing, datasets, experiments, and evals in Arize AX.