TL;DR
Current LLM agents route user requests to reusable skills based purely on task semantics, completely ignoring user-specific constraints like budget, platform, or expertise. This paper introduces personalized skill routing and SkillFeed, a retrieve-and-rerank framework that leverages user profiles and counterfactual training to select the most suitable skill, achieving a 23.1-point improvement in top-1 accuracy over standard baselines.
What Problem Does This Paper Address?
As large language model (LLM) agents grow more sophisticated, they rely on "skill routing"—the process of matching a user's natural language request to an executable procedure or tool bundle (often documented in a SKILL.md manifest).
However, existing routers operate under a major flaw: they assume the task alone uniquely determines the appropriate skill. In reality, two users might issue the exact same request but have completely incompatible constraints. For instance, if a student and a business executive both ask to "plan a trip to Shanghai," a task-only router will recommend the same skill to both. But the student likely needs a budget-friendly, subway-mapped planner, while the business traveler requires a premium, taxi-based itinerary.
When routers ignore these constraints, they conflate semantic relevance with actual suitability. To fix this, the authors formalize personalized skill routing as profile-conditioned retrieval, where the ideal skill depends jointly on the task and the user's profile.
Methods
The authors propose SkillFeed, a progressive two-stage retrieve-and-rerank framework designed to handle repository-scale skill pools while remaining sensitive to fine-grained user constraints.
- Two-Phase Retriever Training: To prevent the user profile from being treated as background noise, the dense retriever is trained progressively. Phase 1 establishes basic task-skill alignment using task-only queries. Phase 2 introduces profile constraints and counterfactual pairs, forcing the model to use the profile as a discriminative signal.
- Structured Skill-Body Chunking: Crucial execution constraints (like supported platforms or payment methods) are usually buried deep within a skill's documentation rather than its short description. SkillFeed splits
SKILL.mdfiles into Markdown-structured chunks and retrieves localized evidence, aggregating these chunk scores into a final skill-level compatibility metric. - Profile-Aware Reranking: Candidates from dense retrieval, profile-aware chunk retrieval, and lexical retrieval (BM25) are combined using weighted reciprocal rank fusion. A listwise reranker then evaluates the top candidates against the full task and profile context to make the final recommendation.
Datasets
The authors introduced SkillFeed-Bench, a new benchmark built on top of a massive candidate pool of 228,432 community-sourced skills (compiled from GitHub, SkillNet, and SkillSMP).
The evaluation dataset consists of 329 annotated queries across 10 distinct domains (such as Development, Business, and Research). Crucially, it includes 77 profile-counterfactual pairs—instances where the task query is held completely constant, but the user profile is altered in a way that forces the target ground-truth skill to change. This serves as a strict stress test for profile sensitivity.
Key Insights and Ideas
- Task Semantics are Insufficient: Traditional benchmarks fail to expose routing flaws because they don't test if a system can dynamically change its prediction when only the user profile changes.
- Counterfactual Supervision is the Secret Sauce: By training models on paired tuples—where the exact same task maps to different skills based solely on the profile—the framework successfully teaches the model to overturn an otherwise plausible semantic match if it violates a user constraint.
- Granular Documentation Matters: Moving from document-level embeddings to chunk-level skill-body retrieval prevents critical local constraints (like a specific API dependency or budget limit) from being diluted by unrelated text in long documentation files.
Key Results
- Overall Performance: On SkillFeed-Bench, the full SkillFeed pipeline achieved 75.1% top-1 accuracy (Hit@1), outperforming the pretrained Qwen3 baseline by 23.1 percentage points.
- Counterfactual Mastery: On the challenging profile-counterfactual subset (where the task is fixed but the profile changes), task-only baselines completely collapsed, scoring between 5.2% and 14.3% Hit@1. SkillFeed raised this counterfactual-switch accuracy dramatically to 37.7%, proving it actually listens to the user profile rather than relying solely on keyword matching.
- Ablation Impact: Removing the profile-dense retrieval component caused a noticeable drop in both Hit@1 and MRR@20, confirming that multi-source recall is vital for capturing persona-relevant candidates.
Limitations and Future Work
While SkillFeed demonstrates strong generalization across diverse user profiles, the authors note that performance drops on highly specialized technical and scientific queries, where fine-grained domain constraints remain difficult to parse.
Additionally, the current setup assumes user profiles are structured and pre-defined. The authors point to dynamic profile extraction—automatically mining and updating user constraints from multi-turn conversational contexts—as the next major frontier for personalized skill routing.
Summary updated