arXiv(opens in a new tab)cs.AISep 2026Cited by 2 papers on PaperVantage

Manuscript Offprint

arXiv:2609.02749

Repo-To-Skill: Distilling GitHub Repositories Into AI4AI Skills

Jianlyu Chen, Yuyang Hu, Hongjin Qian, Jiawei Liu, Wenqing Wei, Xiaolong Chen, Defu Lian, Zhicheng Dou, Chaozhuo Li, Qiwei Ye, Zheng Liu

Jianlyu Chen1,2†^{1,2}\dagger, Yuyang Hu1,3†^{1,3}\dagger, Hongjin Qian1†^{1}\dagger, Jiawei Liu2†^{2}\dagger, Wenqing Wei1,2†^{1,2}\dagger, Xiaolong Chen2^{2}, Defu Lian2∗^{2*}, Zhicheng Dou3∗^{3*}, Chaozhuo Li1^{1}, Qiwei Ye1^{1}, Zheng Liu1,4∗^{1,4*}

1^{1}Beijing Academy of Artificial Intelligence, 2^{2}University of Science and Technology of China, 3^{3}Renmin University of China, 4^{4}Hong Kong Polytechnic University

†^{\dagger}Equal Contribution, ‡^{\ddagger}Work done during an internship at BAAI, *Corresponding authors

Autonomous agents are beginning to carry out machine-learning (ML) research end to end. These agents combine a model backbone with a harness for planning, execution, memory, and verification, but this architecture still leaves domain-specific know-how outside the agent. We call this missing layer operational knowledge, the know-how that separates knowing a method from making it work. That knowledge is not absent from the field. It appears in repositories and papers, but in forms written for human readers and too large to load during a task. Once distilled into compact, verified skills, this knowledge can be reused across tasks rather than rediscovered during each run.

We present DisCo, a skill-powered research agent that creates skills and uses them during research. Its distillation runs in two complementary forms: task-agnostic, condensing the field's widely used repositories into reusable skills, and task-oriented, producing the skills a concrete task calls for. The former, applied across the open ecosystem, yields the AREX-Skill Library, with 5,000+ verified skills distilled from 1,000 widely used ML repositories and organized into 20 areas and 178 capability families. With the GPT-5.5 backbone, research harness, and downstream execution budget held fixed, the skill-equipped research agent scores 134.3% higher on MLE-bench, 34.4% higher on PaperBench, 9.2% higher on FrontierCS, and 14.0% higher on PassNet than the same agent without skills. These gains come from adding distilled operating context under that fixed setup.

Correspondence: liandefu@ustc.edu.cn, dou@ruc.edu.cn, zhengliu1026@gmail.com

Code: https://github.com/VectorSpaceLab/AREX-Skill

Figure

Figure 1 The impact of reusable skills on autonomous research agents. (a) AREX-Skill adds the missing operational layer beyond the model and harness, replacing trial-and-error exploration with reusable procedures that support the task's operational steps. (b) The skill library and DisCo agent form the resulting stack, and skill augmentation improves performance across four benchmarks.

1 Introduction

Autonomous agents are beginning to execute larger parts of the machine-learning (ML) research pipeline, from implementing methods to running experiments and comparing results (Lu et al., 2024; Yamada et al., 2025; Schmidgall et al., 2025). ML research is a natural testbed because much of its practice unfolds in software, where coding agents have proved most capable (Jin et al., 2026; Dong et al., 2026).

Like any agentic system, these research agents rest on two modules: a model that supplies understanding, reasoning, planning, and execution, and a harness that supplies orchestration, memory, verification, and iterative refinement. The model improves with frontier generations, and the harness improves through engineering practice (Karpathy, 2026). ML research, however, is expertise-intensive, which means success depends on knowing which methods and tools to use, when to use them, and how to use them correctly. Neither component carries this expertise. The model's prior is broad but fixed, while the harness controls procedure but does not supply domain content. We call the missing layer operational knowledge. Operational knowledge is what separates knowing a method from making it work: the expertise that binds the field's methods and tools to the task at hand. In ML research, it ranges from choosing appropriate methods and experimental settings to using package APIs correctly, configuring training pipelines, and handling common implementation and evaluation pitfalls. This knowledge exists in abundance, scattered through repositories and papers yet organized for no task in particular.

Without operational knowledge, an agent loses budget within a task and fails to reuse what it infers across tasks. Within a task, it must infer package behavior through trial and error, and mistakes surface only after budgets have been spent on misconfigured runs. Across tasks, those discoveries are not retained as reusable context. The knowledge must reach the agent in a form it can command: discoverable, loadable, and ready to use. Skills offer this form (Anthropic, 2025a). A skill packages one piece of know-how. A SKILL.md file states what the skill is for, when it applies, and how to proceed. Reference documents carry evidence, and scripts automate routine actions. Because a skill opens with a summary and unfolds only on demand, an agent can hold thousands of skills yet read just the few a task needs, allowing the knowledge layer to scale without crowding the context. The harness still governs how the agent researches, while skills determine what it knows when research begins. Figure 1(a) illustrates this missing layer: beyond the model and harness, skills turn unguided trial and error into guided execution.

The skill representation addresses how operational knowledge is consumed, but not how the skills are obtained. The relevant source material already exists in repositories and papers, but it is written for human readers and is too large to load during a task. We distill this material into compact, operational, and verified skills that fit the agent's context budget. The difficulty lies in the sources, which drift with every release, omit many practical pitfalls, and state methods without the know-how needed to make them work. The methodological problem is to produce operational knowledge automatically and at scale from declarative sources.

We meet this challenge with DisCo, a skill-powered research agent that both creates skills and researches with them. DisCo leaves the model and the harness unchanged and builds the operational-knowledge layer through skill distillation in two complementary forms. Task-agnostic distillation works ahead of time, condensing the field's widely used repositories and everyday tools into reusable skills that any research task can draw on. Task-oriented distillation works on demand. Given a concrete task, DisCo explores the knowledge the task touches and produces the skills it calls for. Under either form, no skill enters the layer without verification. Each candidate is checked, repaired where possible, and recorded with any remaining gaps.

Task-agnostic distillation, run across the open ecosystem, yields the AREX-SKILL Library, whose current repository snapshot contains 5,000+ skills distilled from 1,000 widely used ML repositories and organized by a router over 20 areas and 178 capability families. Each repository is distilled into a skill graph, and the library-level router narrows a request to the relevant graphs. The paper also studies paper-derived and task-oriented skills constructed for the evaluations.

To isolate the effect of distilled skills, we compare the same research agent with and without them on MLE-bench (Chan et al., 2025), PaperBench (Starace et al., 2025), FrontierCS (Mang et al., 2025), and PassNet (Liu et al., 2026), holding the GPT-5.5 backbone, research harness, and downstream execution budget fixed. Skill construction is completed before downstream execution begins, so skills are the only variable at run time.

Under these matched settings, the skill-equipped agent scores 134.3% higher on MLE-bench, 34.4% higher on PaperBench, 9.2% higher on FrontierCS, and 14.0% higher on PassNet. Figure 1(b) summarizes the resulting stack and benchmark gains.

References (54)