TL;DR
While "skills" (reusable knowledge artifacts) significantly boost LLM agent performance in idealized lab settings, their benefits are surprisingly fragile in realistic scenarios where agents must retrieve and adapt skills from large, noisy collections. This paper introduces a new 34k-skill benchmark and demonstrates that query-specific refinement—letting an agent "practice" a task to synthesize better instructions—can recover much of the performance lost in these realistic settings.
What Problem Does This Paper Address?
LLM-based agents (like Claude Code or OpenAI’s GPTs) often rely on "skills": structured files containing API patterns, code snippets, and domain-specific workflows. However, existing benchmarks usually provide the agent with the exact right skills for a task, bypassing the messy reality of the "open ecosystem."
In the real world, an agent faces three major hurdles:
- Retrieval: Finding the needle in a haystack of thousands of potentially relevant skills.
- Selection: Deciding which retrieved skills are actually worth loading into a limited context window.
- Adaptation: Modifying a general-purpose skill to fit a specific, unique user query.
The authors set out to quantify how much agent performance degrades when these "idealized" assumptions are removed.
Methods
The researchers developed a comprehensive framework to test skill utility under progressively harder conditions:
- Skill Collection & Search: They assembled a massive library of 34,198 real-world skills from open-source repositories. To search this library, they compared standard vector search against Agentic Hybrid Search, where the LLM iteratively formulates queries and evaluates candidates.
- Progressive Evaluation: They tested agents on a spectrum from "Forced Load" (the agent is told exactly what to use) to "Retrieved (w/o curated)" (the agent must find general skills from the 34k pool without any hand-tailored help).
- Skill Refinement Strategies: To bridge the performance gap, they introduced two refinement methods:
- Query-agnostic: Improving skills offline by generating synthetic tests (using a "skill-creator" meta-skill).
- Query-specific: An "on-the-fly" approach where the agent attempts the task, reflects on which parts of the retrieved skills were helpful or misleading, and synthesizes a new, task-tailored skill.
Datasets
- SKILLSBENCH: A benchmark of 84 software engineering and data tasks designed specifically for skill usage.
- TERMINAL-BENCH 2.0: A general-purpose agent benchmark (89 tasks) involving command-line interfaces, used to test if these skill strategies generalize to tasks not originally designed for them.
- 34k Skill Collection: A new, deduplicated collection of real-world skills sourced from platforms like
skillhub.club.
Key Insights and Ideas
- The Fragility of Skills: As settings move from "lab-perfect" to "real-world," performance drops sharply. For Claude Opus 4.6, the pass rate fell from 55.4% (forced load) to just 38.4% when it had to find its own general-purpose skills.
- The Selection Bottleneck: Agents are surprisingly bad at picking the right skills even when they are right in front of them. Adding "distractor" skills (irrelevant but similar-sounding ones) caused a significant drop in pass rates because agents either ignored the good skills or got distracted by the bad ones.
- Refinement as a Multiplier: Query-specific refinement acts as a "multiplier" on existing quality. It doesn't magically generate new knowledge, but it helps the agent synthesize and clarify the information it did find. If the initial retrieval is poor, refinement struggles to help.
- Agentic Search Wins: Traditional semantic search is often insufficient for complex skills. Letting the agent "browse" and refine its search queries (Agentic Hybrid Search) significantly improved retrieval quality.
Key Results
- Performance Degradation: Across all models (Claude, Kimi, Qwen), pass rates consistently declined as the environment became more realistic. In the most challenging "Retrieved (w/o curated)" setting, some models actually performed worse than a no-skill baseline, suggesting that noisy skills can actively mislead weaker agents.
- Refinement Gains: Query-specific refinement recovered significant ground. On TERMINAL-BENCH 2.0, it improved Claude Opus 4.6’s pass rate from 57.7% to 65.5%.
- Efficiency: While refinement requires an extra inference pass, it is more token-efficient than "best-of-n" sampling or simply giving the agent a longer timeout, as the refined skill provides more direct guidance for the final task-solving run.
Limitations and Future Work
- Cost: Query-specific refinement is computationally expensive because it requires a full "exploration" pass before the actual task execution.
- Hallucination Risks: In some cases, refinement "baked in" incorrect details or buggy code snippets, leading the final agent to follow a flawed recipe.
- Knowledge Gaps: Refinement cannot compensate for a total lack of relevant skills in the library. Future work is needed to improve how agents handle "out-of-distribution" tasks where no existing skills apply.
- Offline Potential: The authors suggest that better offline (query-agnostic) refinement is a key frontier to make skills useful without the high cost of per-task refinement.
Summary updated