Repository navigation
Done
Description
Motivation
skill-up is good at evaluating whether an Agent completes a task correctly once a Skill is installed. For Skill development, another important question is whether the Skill should be triggered for a prompt at all.
Routing behavior matters because:
- a Skill should trigger for intended prompts
- it should not trigger for unrelated prompts
- in multi-Skill environments, one Skill should not over-trigger or shadow another Skill
Proposed capability
A routing case could look like this:
id: route-code-review-positive
tag: routing
input:
prompt: "Review this pull request and identify risks"
routing_expect:
must_include: [code-review]
allow_extra: false
max_skills: 1A negative case could look like this:
id: route-code-review-negative
tag: routing
input:
prompt: "Write a poem about winter"
routing_expect:
must_not_include: [code-review]Possible semantics:
must_include: expected Skill names must be selected or loadedmust_not_include: listed Skills must not be selected or loadedallow_extra: false: no other Skills should be triggeredmax_skills: upper bound for triggered Skills
Why this matters
Without routing evals, a Skill can pass positive task cases but still be harmful in practice:
- it may trigger too often
- it may respond outside its intended scope
- it may cause negative delta in multi-Skill setups
Initial small scope
To keep the first version manageable, this could start as:
- model routing cases as normal cases with
tag: routing - add a
routing_expectschema - support only engines that expose triggered/loaded Skill information
- return a clear skipped/unsupported result when routing info is unavailable
Open questions
- Do current agent adapters expose enough information to reliably identify which Skills were triggered?
- Should routing be a top-level suite type, or regular cases with
tag: routingplusrouting_expect? - Should the first version support only single-Skill routing, leaving multi-Skill routing for later?
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
- StatusShow more project fieldsDone
Activity
zpzjzj commentedon Aug 7, 2026
The routing-eval goal is valuable, but I think there is an observability question that must be resolved before adding
routing_expect: how can skill-up reliably know that an engine actually selected, loaded, or applied a Skill?These are different states:
The current
SessionResulthas transcript and output data, but no normalized Skill activation events. Adapter observability is also inconsistent: an engine may expose a structured Skill tool call, another may expose only command/MCP calls, and another may provide only the final response. Looking at an output that resembles the Skill's behavior is not sufficient evidence, because the base model may produce the same answer without loading the Skill.I suggest reversing the implementation order:
1. Prove an observation source first
Run a real canary for each candidate engine and determine whether it emits a stable, structured event containing the Skill identity, for example:
{ "type": "skill.loaded", "name": "code-review", "status": "success" }A generic Skill tool call plus a successful tool result may also be usable. Monitoring a
SKILL.mdfile read is weaker evidence: it proves that a file was opened, not that the complete Skill was selected or followed.2. Normalize engine-native evidence
If at least one engine exposes reliable evidence, adapters could normalize it into something like:
The engine should also expose an explicit capability indicating whether Skill activation events are supported.
3. Reuse rule_based assertions
Rather than introducing a separate case evaluation path immediately, routing can remain a normal case and use deterministic judge rules:
Aggregate constraints such as
allow_extraormax_skillscan be added after multi-Skill event reporting is proven. The tag should remain classification metadata rather than changing execution semantics.4. Do not silently pass unsupported engines
When an engine does not expose reliable activation evidence, the result should be explicitly
UNSUPPORTEDorERROR, not silently treated as PASS. Defaulting to SKIP can create false-green CI; skipping should require an explicit opt-in.Even with a reliable load event, “applied” cannot be proven by that event alone. The strongest practical evidence is a combination of:
So my recommendation is to keep this issue, but make the first milestone an engine capability investigation and real canary. The final
routing_expectorskill_activatedschema should be designed only after we know which engines provide trustworthy evidence and what those events actually mean.googs1025 commentedon Aug 8, 2026
Thanks for the detailed feedback. I agree that we should resolve the observability problem before introducing
routing_expect.The distinction between
installed -> selected -> loaded -> applied -> outcome changedmakes sense. In particular, installed Skills are not enough evidence for routing, and matching the final output is also too weak because the base model may produce the same behavior without loading the Skill.I think we can split this into two milestones:
Capability investigation / canary
selected,loaded, or tool-call based invocation.Normalized activation evidence
UNSUPPORTEDorERRORrather than silently passing.For the first assertion API, reusing
rule_basedjudge sounds like the right direction:We can leave aggregate constraints like
allow_extraandmax_skillsfor a later milestone after multi-Skill activation reporting is proven.Would you prefer the first PR to focus only on the canary/capability investigation and documentation, or should it also introduce the normalized
SkillActivationtype and capability flag for adapters that can support it?zpzjzj commentedon Aug 17, 2026
I would prefer the first PR to focus only on the capability investigation and canary, without introducing
SkillActivation, the capability flag, or a public assertion schema yet.The important constraint is that this should be an executable and repeatable investigation, not documentation based only on manual observation. We do not yet know whether similarly shaped events from different engines mean the same thing. For example, a
Skilltool call may proveinvoked, but not necessarily that the complete body was loaded or that its instructions were applied. Defining the normalized type first risks encoding a false equivalence betweenselected,loaded, andinvoked.I suggest the first PR produce:
The matrix should distinguish cases such as structured activation/invocation events, file-read-only evidence, and no observable evidence. It should also keep result semantics precise:
UNSUPPORTED: the engine does not expose a trustworthy activation signal;ERROR: the engine claims/supports that signal, but collection or parsing failed;SKIP: only when the eval explicitly opts into skipping unsupported engines.Once the canary proves at least one reliable observation source, a second PR can derive
SkillActivation, the engine capability flag, andskill_activatedrules from the actual event contracts. That keeps the first abstraction evidence-driven and avoids committing to a schema that the adapters cannot implement consistently.karanb192 commentedon Nov 2, 2026
For what it is worth, routing can already be tested on
claude_codewith what exists today:skills: [], so nothing is installed and the agent picks from the skills already on the machine.rule_basedjudge withtool_called: {name: Skill, args: {skill: <name>}}insuccessfor "should route", or infailurefor "should not route".This worked on 0.14.0 across seven cases. Two gaps showed up: it tests the user's real setup rather than a pinned one, and nothing in the report separates "did not route" from "routed but did the task badly" unless you split them into separate judges.
One more trick that helped: setting
skillListingMaxDescCharsin the fixture's.claude/settings.jsoncuts each listed description short, which lets a Claude run approximate how clients that truncate descriptions (Codex, for example) see the list.Walternater commentedon Nov 13, 2026
Following the first milestone from the earlier discussion: a real, repeatable engine canary, without introducing
SkillActivation, a capability flag orskill_activatedyet.PR: #402. It adds
examples/routing-canary/(two Skills with disjoint triggers,relevant/unrelated/competingcases that check marker files written by the Skill bodies, so green means applied rather than "the answer looked similar"),scripts/routing-canary/run.shto run it per engine against a temp copy, and a report atdocs/design/routing-canary.md.What the canary observed so far:
Skilltool call + paired result (Launching skill: <name>)<skills_instructions>catalog, activation only visible ascat .../SKILL.mdBoth measured engines passed 3/3 by behavior evidence (markers) including the negative and competing cases, so the canary is not just "did anything happen" — but that is outcome, and the observability question is separate.
Three confounders worth knowing before designing the normalized type:
~/.agents/skills(100+ unrelated Skills, including the user's owngstack/canary) into the same catalog as the canary Skills;CODEX_HOMEisolates only part of its roots. Claude Code transcripts show shell exploration of~/.claude/skills. Worth quarantining for any CI signal.Skillcall uses the install directory name (skill), Codex's catalog uses the SKILL.mdname(canary-routing) pointing at the same directory. ASkillActivation.Namecannot compare those strings directly (this is adjacent to a local_path skill is installed under its folder's name, not the name in SKILL.md #367/fix(agent): install a Skill under its declared name #393).skills[].pathis copied recursively — my first fixture did that accidentally; the committed fixture keeps the Skills flat.I have kept the report explicit about what it does not prove (applied, with/without delta) and why Codex should be reported as unsupported rather than silently green for now. Happy to extend the matrix for OpenCode/docker in a follow-up once the shape here is agreed.
docs: add a routing canary for Skill activation evidence
docs: add a routing canary for Skill activation evidence (alibaba#402)