How Do Agents Know Which Skills They Need During Execution? Teaching Them to Find and Use Skills as They Work

Ant Group’s Skill-Venus introduces “agent-oriented skill search,” which retrieves and loads skills whenever a need arises during execution, rather than only at the start of a task. The team also trained a retrieval model specifically for this approach.
← All posts
온
온틀 리서치
2026년 12월 01일 39 min read views 3

Skill-Venus, developed by Ant Group’s Venus team, changes how LLM agents find the skills they need in a large repository. Instead of selecting a set of skills upfront based solely on the user’s request, the agent searches whenever it recognizes that it needs a particular capability at the current step. It writes its own query, reviews candidates, loads a suitable skill, and searches again when another need arises. The team also trained a retrieval model for this workflow. Across three agent models, it improved end-to-end task scores by an average of 6.3% while reducing skill search calls by 26.4%.

The Problem This Paper Addresses

A skill is a reusable package of procedures and resources that equips an agent to perform a task. Think of a workflow manual bundled with scripts or templates: it extends the model’s capabilities so it can do things it could not do on its own.

The problem is that this ecosystem is growing rapidly. The paper cites the skill indexing service SkillsMP, where the number of listed skills grew from 1,727 to more than 4.1 million in roughly a year. At that scale, manually selecting skills is impractical, while exposing every skill in the agent’s context would incur an unmanageable context cost. The progressive disclosure approach used by Codex and Claude Code—showing metadata first and loading full instructions only when needed—helps agents choose among the skills already exposed to them. It does not solve the problem of discovering relevant skills in a vast external repository.

Most existing skill search is user-oriented. It uses the original user request as the search query and retrieves a set of relevant skills before execution begins. This rests on the assumption that the initial instruction tells us which skills the task will require.

There is a catch. Complex tasks unfold over multiple steps, and an agent’s capability needs keep changing as it uses tools, examines intermediate results, and encounters unexpected problems. A skill that looks relevant to the overall task may be useless for the specific operation needed right now. Conversely, a capability that would never have come to mind from the initial instruction may become necessary only after inspecting an intermediate result. A single search at the start cannot keep up with these changes.

The Core Idea

Skill-Venus starts by packaging skill search itself as a “meta-skill.” In other words, it gives the agent a skill for finding and using skills. The meta-skill’s instructions explain when to search, how to express the current capability need as a query, and how to retrieve and apply the skills it finds.

A cooking analogy helps. In the conventional approach, the cook—the agent—reads the full recipe and lays out every tool in advance. With Skill-Venus, the cook realizes midway through cooking, “I need a sieve to strain this sauce,” goes to the storeroom to find one, and returns later if the next step requires another tool. The user simply assigns the task as usual. The agent handles skill discovery as part of execution.

Two interfaces drive this process. When a capability need arises, the agent writes a query and calls Search, then scans the names and descriptions of the returned skills to shortlist suitable candidates. If the query is inadequate, it refines it and searches again. Once it chooses a skill, it uses Fetch to retrieve the full instructions and supporting resources, then applies them to the current task. If the result reveals another need, the next search follows.

Making this paradigm work presents two challenges. First, the retrieval model must understand agent queries that express specific capability needs at intermediate steps, rather than entire tasks. Second, retrieval must be guided by task utility, not just semantic relevance between a query and a skill. A skill may look topically relevant while prescribing a procedure that does not fit the current environment or fails to help with the actual task. This calls for supervision that connects a search query and its retrieved skill to whether the skill was subsequently used and whether it helped move the task forward.

Turning that signal into training data is Skill-Venus’s real contribution. Existing large-scale skill retrieval datasets mostly pair complete user tasks with query–skill relevance labels. They offer few queries generated during execution and lack the execution environments and verifiers needed to measure the actual utility of retrieved skills. Benchmarks for skill use, meanwhile, provide executable tasks but have too few examples for large-scale training. Skill-Venus builds an integrated data pipeline to connect the two.

How the Data Was Built

The pipeline works backward from skills to synthesize tasks, an approach called skill-grounded synthesis.

First, the team builds a skill corpus. They collect skills from online collections and code repositories, merge duplicates, and filter out entries missing essential information. This leaves a repository of 965,000 skills, which serves as both the search space and the raw material for task synthesis.

Next, they synthesize executable tasks from those skills. Each task consists of a user instruction, initial inputs, an execution environment, and a task verifier. The source skill set contains either a single skill or a bundle of 2–5 skills. Synthesis proceeds through five stages. (1) Skill configuration: multi-skill bundles are assembled through cluster-based sampling, and a reviewer checks that they serve a single task objective and that each skill makes a distinct contribution. (2) Task construction: GLM-5.3-Flash generates self-contained tasks and verifiers. Tasks with objectively checkable outcomes receive programmatic verifiers; “open-ended tasks” requiring semantic judgment receive evaluation rubrics aligned with disclosed success criteria. (3) Task validation: multiple reference models check whether the verifier rejects incomplete or incorrect results and whether the task can actually be solved. (4) Utility filtering: this is the clever part. (5) Task packaging.

Utility filtering deserves a closer look. A task being solvable does not necessarily make it useful for skill retrieval research: an agent might succeed without the source skills. The team therefore runs the same task independently under two conditions, with identical environments, tools, and budgets: no skills at all (none) and all source skills provided (oracle). They compare the scores and retain only tasks whose scores improve when skills are available. For multi-skill tasks, they measure the utility of the entire bundle rather than individual skills. The tasks that pass this process form a final collection of nearly 100,000 executable tasks.

The team then runs agents on these tasks to collect trajectories. In the OpenCode environment, they combine four models—Qwen3.8-27B, Qwen3.8-Flash-Next, GLM-5.3-Flash, and DeepSeek-V4.1-Flash—with two retrievers, BM25 and Qwen3-Embedding-0.6B, collecting approximately 392,000 trajectories. From each trajectory, they extract query–skill pairs showing which query retrieved which skill. The execution segment immediately after receiving the skill—up to 10 steps, ending before the next search—serves as evidence for assessing utility.

The assessment covers three dimensions. Query–skill relevance asks whether the skill provides knowledge or procedures applicable to the current need. Skill adoption requires concrete correspondence between the skill’s content and subsequent actions, showing that its rules, commands, or methods were actually applied; merely reading the skill or saying it will be used is insufficient. Task progress looks for visible advances immediately after application, such as resolving an error, passing a check, or producing an artifact. This process yields approximately 146,000 queries and 156,000 positive query–skill pairs.

Finally, the team trains the retrieval model, starting from Qwen3-Embedding-0.6B. Alongside the agent query data, they mix in the SkillRet training set—63,259 queries—at a 1:1 ratio to preserve support for searches based on complete user requests. The training objective is a masked contrastive loss, masked InfoNCE. Standard InfoNCE can mistakenly push away a positive skill for another query in the same batch by treating it as a negative for the current query, especially when a query has multiple positives. Masking known positives out of the negative pool prevents this conflict.

How the Experiments Were Designed

Evaluation is split across two benchmarks. The separation is deliberate: it distinguishes retrieval quality from whether retrieval leads to task completion.

SkillBench-Venus-S is an offline skill retrieval benchmark. Using 1,000 queries generated by agents during execution, it directly measures how well a retrieval model ranks relevant skills, at low cost. It isolates retrieval quality. What it cannot tell us is whether those highly ranked skills actually help complete the task.

SkillBench-Venus-E fills that gap with an end-to-end benchmark. It measures how well agents complete 250 validated, executable tasks using on-demand search. A key design choice is that it includes only tasks where skill access demonstrably improves performance. Existing benchmarks, SkillsBench (87 tasks) and SkillEval-v1 (100 tasks), show only small performance differences with and without skills, making it difficult to distinguish gains from skill use from the agent’s existing capabilities. Skill-Venus sharpens that distinction by collecting only tasks with demonstrated skill utility, while expanding the task count to 250 for more stable comparisons. Evaluation uses three conditions: none (no skills), oracle (source skills provided), and meta-skill (skills acquired independently through search).

Results and What They Mean

For retrieval quality, Skill-Venus improves Recall@5 by up to 13.27 percentage points over its base retrieval model. The comparison is against the same underlying model, Qwen3-Embedding-0.6B, and the figure comes from public benchmarks. “Up to” matters here: this is the largest gain under a particular condition, not a uniform 13.27-percentage-point improvement across every setting.

The more consequential result is end-to-end performance. Across three agent models, Skill-Venus improves task scores by an average of 6.3% while reducing skill search calls by 26.4%. The combination is the key finding: scores rise as calls fall. The agents did not achieve better performance by searching more often. More accurate retrieval let them do better with fewer unnecessary searches. These figures come from the 0.6B model configuration in Figure 1. The paper also reports improved retrieval quality on Ant ToolCenter, Ant Group’s largest internal skill platform.

One caution: the retrieval metric, up to 13.27 percentage points, and the end-to-end metrics, an average of +6.3% and -26.4%, come from different benchmarks and measure different things. They should not be combined into a single claim such as “a 13.27-percentage-point retrieval gain produced a 6.3% task improvement.”

Limitations and Open Questions

Start with a boundary the authors acknowledge through their design. Building the end-to-end benchmark exclusively from tasks with substantial skill utility is both a strength of the method and a limit on its scope. The benchmark is not designed to tell us how much this approach helps with ordinary tasks where skill access makes little difference.

The reliance on LLM judgment throughout data synthesis also deserves attention. Task generation, verifier construction, utility filtering, and trajectory utility annotation all pass through models such as GLM-5.3-Flash. The pipeline includes measures to reduce self-evaluation bias, including requiring agreement among multiple models for open-ended tasks and cross-evaluating with a model different from the one performing the task. Even so, the judging models’ preferences may still shape the data distribution.

To me, the more pressing practical question is the trade-off between latency and context cost. Even with 26.4% fewer search calls, repeated retrieval during execution introduces a new overhead: deciding at each step whether to search. The excerpted text provides no figures for this operational cost, so anyone considering adoption would need to measure it directly. It is also worth keeping in mind that a corpus of 965,000 skills and 100,000 tasks assumes resources on Ant Group’s scale.

How It Compares with Other Approaches

The paper draws a clear distinction from prior work. Existing user-oriented skill retrieval—the approaches by Zheng et al., Kang et al., and Wang et al. cited in the paper—searches once, before execution, using the original request. Skill-Venus’s agent-oriented retrieval distributes searches throughout execution and shifts the basis of the query from the user’s request to the agent’s intermediate state.

The training signal is different as well. Where existing large-scale datasets rely on semantic relevance labels between tasks and skills, Skill-Venus mines trajectories for utility signals: adoption and task progress, in addition to relevance. Relevance-only retrieval can rank a skill highly because it matches the topic even though it is of no practical use. Utility-based supervision is intended to filter out those cases. Claims about the precise comparative advantages should stay within the paper’s reported public benchmark results, including its improvements over Qwen3-Embedding-0.6B.

The ONTLE Perspective

Suppose ONTLE’s AI PM receives this task: “Research the pricing policies of 3 competitors, build a comparison table, and draft our positioning.” With user-oriented retrieval, the PM starts with a bundle of skills such as market research and document writing, selected from that single instruction. Once work begins, however, its needs branch out. Scraping a competitor’s site reveals a need for a procedure to parse a particular pricing table format. After that comes a need for currency and unit normalization rules. Building the comparison table calls for yet another skill in table formatting. The initial bundle likely targets none of these needs precisely.

A Skill-Venus-style meta-skill changes the workflow. The moment the PM gets stuck parsing a pricing table, it writes a query such as “a procedure for extracting numbers from pricing tables in this format,” searches, reviews the candidate descriptions, and loads and applies the right skill. When the next step reveals a need for currency normalization, it searches again. Throughout the task, the PM acquires the specific capability it needs at that moment. For a product like ONTLE, which deploys PMs across multiple domains, this has two implications. First, it reduces the burden of configuring a perfect set of domain-specific skills for every PM before deployment. Second, as the 26.4% reduction in search calls suggests, more accurate retrieval can reduce calls spent searching without finding a useful skill, potentially improving both response time and cost.

A Checklist for Practitioners

  • Does your skill repository contain more than a few thousand skills? If so, start by checking whether selecting all skills upfront is missing needs that arise at intermediate steps. The case for Skill-Venus grows stronger as repositories get larger and tasks involve more steps.
  • Check whether you evaluate retrieval solely on relevance. If your retriever ranks skills highly that match the topic but do not fit the current environment or help with the task, consider incorporating utility signals such as adoption and task progress into your labels.
  • Measure skill utility directly with a none-versus-oracle comparison. Unless you check whether providing skills actually raises scores, it is easy to mistake success from an agent’s existing capabilities for a benefit from skills.
  • Track search call counts alongside task scores. Scores alone can conceal a regression in which performance improves only because the agent searches more. Skill-Venus matters because both measures improve together.
  • Determine whether your query distribution consists of user requests or queries reflecting agents’ intermediate states. When mixing the two for training, check whether a positive for one query is mistakenly treated as a negative for another—the conflict that masked contrastive loss addresses.
  • Measure the latency and context costs of repeated retrieval directly. The excerpt does not provide figures for these operational costs, so measure them in your own environment before adoption.
Is skill search the same as RAG (document retrieval)?

The mechanisms are similar—both use embedding-based retrieval—but their targets and evaluation differ. Conventional RAG stops at finding documents semantically close to a query, whereas skill retrieval also considers utility: whether the retrieved skill was actually adopted and advanced the task. This is why Skill-Venus uses adoption and task progress as supervision signals alongside relevance.

How is fetching a full skill different from Claude Code’s progressive disclosure?

Progressive disclosure shows metadata for already exposed skills first, then loads their full instructions when needed. The paper argues that this alone does not solve the problem of discovering relevant skills in a vast external repository. Skill-Venus combines the two stages: Search handles discovery, and Fetch handles loading.

Why can a small 0.6B model make such a difference?

The key is the training signal, rather than model size. The paper’s argument is that training around utility, using 156,000 query–skill pairs mined from execution trajectories where skills were actually used and advanced the task, better matches agents’ intermediate needs than existing data labeled only for relevance to the overall task. The reported figures are for the 0.6B configuration.

What is publicly available for reproduction?

The top of the paper explicitly links to a GitHub repository for code and benchmarks (inclusionAI/Skill-Venus) and a HuggingFace collection for models and data (inclusionAI/skill-venus). Both benchmarks—SkillBench-Venus-S with 1,000 queries and SkillBench-Venus-E with 250 tasks—are also listed among the release materials.

Why treat multi-skill tasks separately?

Real tasks often require 2–5 skills working together rather than a single skill. During synthesis, multi-skill bundles must pass a reviewer’s check that they serve one objective and that each skill makes a distinct contribution. Utility is measured for the entire bundle rather than individual skills. Validation also requires evidence that every source skill was actually applied.

References