Skills rarely fire when the code is already in the prompt: a small routing survey and a proposal
While measuring the description change in #612 I ran nine adjacent prompts as must-not-fire checks for the review skill. Each pastes a function or a diff and asks for something another skill owns. The review skill stayed quiet, as intended. What I did not expect is that the owning skill stayed quiet too, in every run.
Same setup for all of them: claude plugin eval, single arm, --model claude-opus-5-5, Claude Code 2.1.283, three runs per prompt, repeated under two descriptions of the review skill (so six runs each). The plugin was loaded with all 25 skills; the Skill tool was available and used elsewhere in the same sessions.
| Prompt (code or diff pasted inline) | Skill that should own it | Fired |
|---|---|---|
| "Simplify this function, it works but it is hard to read" | code-simplification | 0 of 6 |
| "This test started failing right after this change, here is the diff, what broke?" | debugging-and-error-recovery | 0 of 6 |
| "Write me a commit message for this diff" | git-workflow-and-versioning | 0 of 6 |
| "Write the changelog entry for this diff" | git-workflow-and-versioning or documentation-and-adrs | 0 of 6 |
| "Is this search handler safe against SQL injection?" | security-and-hardening | 0 of 6 |
| "This endpoint takes four seconds on two million rows, how do I make it fast?" | performance-optimization | 0 of 6 |
| "Add unit tests for this function, there are none yet" | test-driven-development | 0 of 6 |
| "Add paging to the orders endpoint, today it looks like this" | incremental-implementation or spec-driven-development | 0 of 6 |
For contrast, in the same sessions "Write a failing test for this bug before we fix it" fired test-driven-development 6 of 6, and after #612 "Review this pull request for me before it goes into main" fires code-review-and-quality 6 of 6.
My reading: when the material is already in the prompt and the request is direct, the model treats the task as something it can just do, and no description in the pack says otherwise. Process-shaped requests ("before we fix it") get routed; direct ones with code attached do not. The replies are competent, but they skip what the skills add (the Prove-It loop, the five axes, the boundary checks), which is the whole point of the pack.
#612 fixed this for one skill with one clause, "even when the diff is pasted inline", taking plain review requests from 7 of 27 fires to 21 of 27 with no change on the must-not-fire prompts. I think the same lever applies elsewhere, skill by skill, and I would rather not guess which ones matter to you.
Proposal, if it seems worth it: one skill at a time, same method as #612 (two or three description variants, the owning prompts plus adjacent must-not-fire prompts, model pinned, Tier 2 re-checked), one small PR each with the numbers in the body. About 15 USD of runs per skill.
I already did the first one, test-driven-development, since "add tests for this function" not firing it seemed the most costly of the eight. Six runs per prompt, same model pinned:
| Prompt (code pasted inline) | Original | With one added clause |
|---|---|---|
| "Add unit tests for this function. There are none yet." | 0 of 6 | 6 of 6 |
| "Fix this bug: splitCents(100, 3) returns [33, 33, 33] and a cent goes missing. Here is the function." | 0 of 6 | 6 of 6 |
| "Change this function so that size can never exceed 100." | 0 of 6 | 1 of 6 |
| "Write a failing test for this bug before we fix it" (control) | 6 of 6 | 6 of 6 |
| Eight adjacent must-not-fire prompts | 0 of 24 | 0 of 24 |
The clause is "Use when asked to add tests to a function, fix a bug in it or change its behavior, even when the code is pasted inline and the request does not mention tests." Unlike the review skill, the "pasted inline" tail alone did not move anything here; naming the three requests and the absence of test words is what did. The one-line behavior change stays at the floor: the trace shows a single-turn edit with no tool call at all. Tier 2 is unchanged at 100% rank-1. The PR is ready on my fork (one line in the description, two Tier 2 positives, a fires and a stays-quiet case for the clause, a README paragraph), and I will open it if you want it; otherwise it stays there.
Next in line would be code-simplification. Happy to reorder, or to stop here if you would rather leave the other descriptions as they are.
Two caveats worth stating. Three runs per prompt per description is a small sample; the zeros are consistent across 48 runs, but single-digit differences between variants would not be. And every number above was measured with --model claude-opus-5-5 pinned. I say so because on the day of the pilot the CLI updated itself twice and its default model moved from claude-opus-5 to claude-opus-5-5 between two batches; unpinned, the earlier batches looked more favourable to the skills, so any comparison across runs needs the model pinned and the Claude Code version written down.
Source: addyosmani/agent-skills