# SkillFlow: Scalable and Efficient Agent Skill Retrieval System

Source: [SkillFlow: Scalable and Efficient Agent Skill Retrieval System](<https://www.sota2.com/research/paper/68fa77dc1e209131cea759e1>)

Collection index: [llms.txt](<https://www.sota2.com/research/llms.txt>)

Data updated: 2026-04-01T05:00:04.436Z

Authors: Fangzhou Li, Pagkratios Tagkopoulos, Ilias Tagkopoulos

Published: 2025-04-08T16:33:24.000Z

## Abstract

AI agents can extend their capabilities at inference time by loading reusable skills into context, yet equipping an agent with too many skills, particularly irrelevant ones, degrades performance. As community-driven skill repositories grow, agents need a way to selectively retrieve only the most relevant skills from a large library. We present SkillFlow, the first multi-stage retrieval pipeline designed for agent skill discovery, framing skill acquisition as an information retrieval problem over a corpus of ~36K community-contributed SKILL.md definitions indexed from GitHub. The pipeline progressively narrows a large candidate set through four stages: dense retrieval, two rounds of cross-encoder reranking, and LLM-based selection, balancing recall and precision at each stage. We evaluate SkillFlow on two coding benchmarks: SkillsBench, a benchmark of 87 tasks and 229 matched skills; and Terminal-Bench, a benchmark that provides only 89 tasks, and no matched skills. On SkillsBench, SkillFlow-retrieved skills raise Pass@1 from 9.2% to 16.4% (+78.3%, $p\_{\\text{adj}} = 3.64 \\times 10^{-2}$), reaching 84.1% of the oracle ceiling, while on Terminal-Bench, agents readily use the retrieved skills (70.1% use rate) yet show no performance gain, revealing that retrieval alone is insufficient when the corpus lacks high-quality, executable skills for the target domain. SkillFlow demonstrates that framing skill acquisition as an information retrieval task is an effective strategy, and that the practical impact of skill-augmented agents hinges on corpus coverage and skill quality, particularly the density of runnable code and bundled artifacts.

## Recorded benchmark results

A research result applies to its stated dataset, split, metric and evaluation configuration. Compare like-for-like settings, preserve the metric's unit and direction, and distinguish paper-reported results from independent reproduction. The best result recorded here is not a claim of exhaustive, current global coverage.

- [Terminal Task Execution on Terminal-Bench 1.0 (test)](<https://www.sota2.com/research/sota/terminal-task-execution-on-terminal-bench-1-0-test.md>): Terminal Task Execution; Terminal-Bench 1.0 (test); Avg Pass Rate: 48.

- [Skill Retrieval on SkillsBench](<https://www.sota2.com/research/sota/skill-retrieval-on-skillsbench.md>): Skill retrieval; SkillsBench; Mean Skills Retrieved per Task: 2.8.

- [Skill Retrieval on Terminal-Bench](<https://www.sota2.com/research/sota/skill-retrieval-on-terminal-bench.md>): Skill retrieval; Terminal-Bench; Mean Skills Retrieved per Task: 1.5.

- [Skill-assisted task execution on SkillsBench 1.0 (test)](<https://www.sota2.com/research/sota/skill-assisted-task-execution-on-skillsbench-1-0-test.md>): Skill-assisted task execution; SkillsBench 1.0 (test); Pass@1: 16.4.

## Original sources and implementation

[Original paper](<https://arxiv.org/abs/2504.06188>)

[PDF](<https://arxiv.org/pdf/2504.06188.pdf>)
