AI Today

🧪 Is your coding agent actually using your skills? Jim Bennett reads the traces

· 4 min

A Claude Code trace in Arize AX with a Skill span and Bash spans

In brief


Jim Bennett has spent much of the year writing skills for coding agents such as Claude Code and Codex, mainly the Arize skills for Arize AX. For a long time his testing was vibes. Then he read the traces and saw that the agent sometimes did the job without loading the skill. Since the answer can still be right, the output alone cannot tell you whether a skill pulls its weight. 🧪 His method in one line: trace the agent, run real prompts in a container holding only the skills under test, grade the path and the result, and ship a change only if it beats the noise. This is one author's opinion and experience, not an independent test.


Bennett first explains how agents load skills. At startup they read only each skill's description; they then pick one and load its SKILL.md, and open reference files only when needed. In his account, loading a skill leaves a Skill span and each file read leaves a Read span; descriptions leave no span. A trace also shows tokens and cost, and the Bash span shows the exact command the agent ran. 🔎

A clean room instead of your daily setup. Agents use whatever is lying around: other skills, MCP servers, local files. That is fine for work and bad for testing, because you cannot tell what helped. Bennett suggests a Docker container with only the agent and model, tracing, the skills under test and whatever they need to run, such as a code repository. It is recreated for each run, and for each prompt if the skill changes files. If skills must work across agents, you end up with a small matrix of agent and model.

Real prompts with expectations. Prompts should sound like what people type ("which one was better?", not "invoke the experiment comparison workflow"). Each row names the expected skill, reference, action and output. Negative cases belong in: a skill that grabs every request is as broken as one that never loads.

Two kinds of evals. Trajectory evals are code checks on the trace: was only the expected skill loaded, were the expected references read and the expected action taken, did any tool call fail, did the agent search the web or work around the skill, and did cost and latency stay within a budget set beforehand? Bennett calls the check for detours his favourite: if the agent searches for something the skill should have told it, the skill is not clear enough. Outcome evals depend on the skill: code checks the parameters of a CLI call, a harness lints and runs generated code, an LLM judge grades text, a decision model checks multi-step decisions. Each check is scored separately so you know which part to fix.

Noise and three arms. Agents are non-deterministic, so the same test must be run repeatedly. The range of the current skill's scores is the noise; a change inside it is no win. Each change is compared with both no skill and the current skill. The no-skill run shows how much the agent already does from training and a quick search; for Bennett the answer was sometimes "less than you'd hope".

What helped. The description is the only thing the agent sees up front (1,024 characters). Bennett advises imperative phrasing ("Use this skill when..."), the users' words rather than implementation details, and splitting a skill when the space is not enough. More instructions are rarely the fix: every word costs tokens and context, and in his experience shorter skills often score better. Branches belong in separate reference files. A skill should say what the agent cannot work out itself: tool-specific workflows, gotchas, templates, checklists and a mapping from user terms to tool names. What the agent handles alone, such as a public SDK, can go.

Watch the side effects. New instructions can fix one problem and make every run costlier, an example in the skill can be copied word for word instead of adapted, and a broader description can steal requests from another skill. Bennett reruns the test when he adds capabilities or supports a new agent or model, and for a new model also the no-skill baseline, since the newest one may now do by itself what the skill used to teach. For internal skills, evals can run online to notice that a skill has stopped loading. According to Bennett the full walkthrough is in the Arize AX docs ("Improve coding agent skills with coding harness traces"); this post is the story version. Context: he writes about Arize's own tooling from his own experience, and the post gives no measured comparison figures.

Sources

Open in the interactive reader →

This post was selected, researched, written and rated by AI. The AI can be wrong: check the sources. Imprint, privacy policy and terms of service