DEV Community

Cover image for Fix AI Agent Skill Selection: Prune Your Catalog, Don't Upgrade Models
Vinny Barreca
Vinny Barreca

Posted on

Fix AI Agent Skill Selection: Prune Your Catalog, Don't Upgrade Models

Your agent does not read skill documentation before it chooses. It reads a name and a short description, and that is the entire surface. A new paper measured what follows across three vision-language models and two embodied skill libraries: selectors picked the correct skill for 43 percent of tasks on average. You are wrong 57 percent of the time.

WHAT THIS POST COVERS

This post covers one thing: how to improve AI agent skill selection accuracy through catalog pruning and skill naming conventions, rather than model upgrades or prompt tweaking through another round of description edits. It walks the evidence for that order of operations, then gives you a metadata audit you can run this week and an FAQ that answers the three questions people ask first.

The underlying study is "From Internal Evidence to Behavioral Commitment in Embodied Skill Selection" by Hanyu Wang, Vaishnav Tadiparthi, Nakul Agarwal, Hossein Nourkhiz Mahjoub, and Ehsan Moradi Pari, published on arXiv as 2612.00018 and presented at NeurIPS 2026. Every number below is theirs. The measurement method is mine.

Here is the part that should stop you before you blame the model. Probe the hidden states before the skill name is written and the correct skill is linearly decodable for 64 to 86 percent of tasks. The information is already in there. The output layer throws it away. Skill selection is a catalog problem, not a capability problem, and the cheapest fix in the whole paper is deleting skills.

We wrote that a skill library rots past 100 entries. This is the second half of that argument. Half your entries are dead weight on every single call, and you can measure it this week.

DEFINITIONS: THE TERMS THIS POST USES

Agent Skill. A named bundle of instructions, scripts, or tools that an agent can load at runtime. Before any procedure loads, the model sees only two fields: the skill's name and its description.

Skill selection. The act of choosing which skill to invoke for a given task, performed from that name and description alone, before any skill body is read.

Selection accuracy. The share of tasks where the skill the agent picked is the skill that was actually correct. The paper's baseline across its models and libraries is 43 percent.

Selection collision. A case where two skills are similar enough in name or description that the selector cannot reliably tell them apart, so the choice becomes a coin flip on wording rather than on capability.

Catalog pruning. Deleting skills that can never be the correct answer for any real task. In this paper, pruning alone raised selection accuracy by 13 to 24 points while leaving the model untouched.

WHY YOUR AGENT ONLY READS THE LABEL

Before any procedure loads, every Agent Skill shows the model only its name and its description. The model picks on the label the way you pick a restaurant off the menu text. It never sees the recipe.

That looks like a model failure until you look inside. The correct answer is present in the hidden states 64 to 86 percent of the time. The model knows and cannot say. That distinction, knows but cannot say, is what makes this an architecture problem. A better model is not the fix. A smaller catalog is.

An illustrative log shape, not the paper's code, because the measurement you need is the one you are not taking:

illustrative selection log, not the paper's instrumentation rows = load_selection_log()   # one row per task: task_id, picked, correct acc = sum(r["picked"] == r["correct"] for r in rows) / len(rows)

never_correct = {r["picked"] for r in rows} - {r["correct"] for r in rows} print(f"selection accuracy {acc:5.1%}  prune candidates {len(never_correct)}")
Enter fullscreen mode Exit fullscreen mode

The second line is the one that pays. never_correct holds every skill your agent chose and was still wrong about, which is a skill that does not belong in the library, not a skill that needs a better description. The block asserts structure and nothing else; the numbers come out of your own tasks, not this snippet.

THE RESULT THAT SHOULD CHANGE YOUR LIBRARY

Two numbers, side by side. Contrastive activation steering, a careful intervention on the model's internals, bought 1.6 points of selection accuracy. Pruning the skills that can never be correct bought 13 to 24 points.

Deleting is an order of magnitude cheaper than engineering, and it costs an afternoon. Write the rule down where your team will read it: before you upgrade the model to fix selection, cut the library.

THE NAME WINS

The paper's cleanest experiment is a swap. Trade the names of the correct skill and a close neighbor, and selectors follow the name over the description.

Names are not decoration here. They are the primary retrieval key, and a good description cannot outvote a bad one. Three rules follow. Keep every name unique across the library. Name the action, not the category. Never let two skills share a head noun.

We showed that description quality costs accuracy. This paper shows the name outranks the description the moment the two disagree.

THE SKILL METADATA AUDIT

Three steps, and any team can run all of them this week.

  1. Enumerate every skill and log selection against your own task set. If you cannot measure selection accuracy, you cannot fix it.
  2. Find every skill that can never be the correct answer for any task in that set, and delete it. The paper's 13 to 24 points live in this step alone.
  3. Name-audit the survivors. For each pair with overlapping descriptions, ask whether a name swap would flip the selection. If yes, rename until the answer is no.

Note what the audit does not need. No retraining, no steering, no new model. Token-level or representation-level supervision improved most settings in the paper, and it is the expensive path. Spend it only on what survives pruning.

WHAT TO DO TODAY

  1. Log the next 100 skill selections your agent makes and count the wrong ones. That count is your baseline.
  2. Delete every skill that is never the correct answer for any real task.
  3. Rename overlapping skills so no two share a leading noun.
  4. Re-run the 100-selection log. Expect double-digit improvement before you touch the model.
  5. Only then consider supervision. Steering bought 1.6 points. Pruning bought 13 to 24. Spend engineering time in that order.

FAQ: AGENT SKILL SELECTION

Why do AI agents pick the wrong skill even when the model is capable?

Because the model never sees the skill's contents when it chooses. It sees a name and a description, and it picks from that metadata alone, so a large library turns every call into a contest between similar labels. The paper's probe result is the proof: the correct skill is linearly decodable from the hidden states for 64 to 86 percent of tasks, yet the written answer is right only 43 percent of the time. The information is present and the catalog is what muddles it.

How do you fix agent skill selection without retraining or upgrading the model?

Prune the catalog first. Delete every skill that can never be the correct answer for any task in your task set, then rename the survivors so no two share a leading noun. In the paper, removing impossible skills raised accuracy by 13 to 24 points with the model, the tasks, and everything else held fixed, while activation steering on the model's internals gained only 1.6 points. Pruning and naming are file edits, not training runs.

How should you name agent skills to avoid selection collisions?

Three rules, all mechanical. Keep every name unique across the entire library. Name the action the skill performs, not the category it belongs to. Never let two skills share the same head noun, because the selector follows the name over the description the moment they disagree. The test is a name swap: if trading two skills' names would flip which one gets picked, the names are colliding and one of them has to change.

Does a better description fix a wrong selection?

Not on its own. The paper's swap experiment shows the name outranks the description when the two conflict, and a description cannot outvote a name the selector has already locked onto. Fix the label first, then the description, and expect the name to do most of the work.

THE UNCOMFORTABLE QUESTION

If your agent grabs the wrong tool more than half the time, how much of the last three months of prompt work was actually catalog work wearing a prompt's clothes?

That collapse is the input. Pruning is the decision.

If you want the other half of the argument, the next read is how skill retrieval precision falls from 29.6 percent to 3.3 percent. That note measures the same problem from the other end: precision dropping from 29.6 percent at five skills to 3.3 percent at a hundred, procedural grounding behind 65.7 percent of what skills actually contribute, and the lifecycle that says you are optimizing the wrong stage. Pruning assumes you know which entries are alive. That note tells you how far gone the library already is.

OVER TO YOU

The takeaway is one sentence: before you spend a dollar on a better model, spend an afternoon deleting skills and renaming the rest, because the selector reads labels and your labels are the interface.

So tell me two things in the comments. How many skills does your agent load on a single call right now, and what is the worst tool-selection failure you have actually shipped? The second one is more useful than the first, and I read all of them.

Top comments (0)