Manuscript Offprint

arXiv:2610.23186

Code Skill Server: A Large-Scale Search Engine for Code Generation Skills

Xiaoyong Li, Haolong Li, Dongliang Xu, Haoyu Li, Yifan Wang, Jingyuan Shi, Yanghua Wang, Yanbin Sun, Shidong Pan, Yue Yao

ABSTRACT

Agent skills have proven to be an effective technique for improving agent ability on specific tasks, including software engineering, natural science, and mathematics. During such a process, using agent skills often involves manually discovering and organizing skills from heterogeneous sources, while existing skill retrieval methods mainly focus on selecting relevant skills from established skill libraries. However, with the rapidly increasing number and variety of reusable agent skills, manually searching for relevant skills across heterogeneous sources is becoming impractical at scale. In this paper, we introduce the Code Skill Server (CSS), a large-scale search engine for finding the most useful code generation skills for a target task. CSS consists of a skill server that incrementally collects and indexes publicly available code generation skills from multiple sources, with 993 skills included in the corpus used in this work. Extensive experiments across different retrieval methods and code generation benchmarks show that the best CSS configuration improves Pass@1 by up to 13.91% and consistently improves all evaluated models by at least 4.21% in the cross-model evaluation. These results demonstrate that CSS can effectively search for and serve relevant skills, improving code generation quality and enhancing models' code generation capabilities. Code and the CSS-993 corpus are available at https://github.com/haoyuli-sdu/CodeSkillServer.

1 INTRODUCTION

Large language models have advanced code generation by translating natural language specifications into programs, while code generation agents have further extended its application to tasks within existing software projects (Liang et al., 2025; Jimenez et al., 2024). Despite these advances, code generation for practical applications remains challenging: models need to understand complex task requirements, use external libraries appropriately, and account for dependencies in the surrounding project (Zhuo et al., 2025; Du et al., 2024). These challenges have motivated researchers to explore methods that provide code generation agents with additional domain knowledge and procedural guidance to complement the knowledge already encoded in the models.

Agent skills provide a reusable form of task guidance. Voyager demonstrates how an agent can accumulate and retrieve executable skills, while SkillsBench studies structured skill packages consisting of instructions and supporting resources and evaluates their effects on task performance (Wang et al., 2024; Li et al., 2026; Pan et al., 2026). For code generation, skills can describe recurring implementation procedures, testing patterns, and architectural conventions (Tan et al., 2026). However, having a collection of skills does not determine which skills are appropriate for a particular task. Manual selection requires users to search candidate skills across multiple skill sources, inspect their instructions, and assess their applicability. Differences in terminology, scope, and prerequisites across skills make this process more complex than matching a task to a broad capability label. Recent retrieval methods have focused on important parts of this process, such as selecting relevant skills from a skill library and organizing them into usable contexts (Zheng et al., 2026; Liu et al., 2026; Liao et al., 2026). However, these methods mainly focus on retrieval and contextualization within a skill library; a complete workflow also needs to connect the collection and organization of skills.

from external sources with skill retrieval and subsequent use by code generation agents. Therefore, a framework is still needed to integrate these stages into a unified service.

Figure

Figure 1: Code Skill Server: A large-scale search engine for identifying and combining relevant code generation skills. The server indexes skills from diverse sources, retrieves relevant skills according to the user query, and provides the selected skills to guide code generation.

To address this issue, we propose Code Skill Server (CSS), a large-scale search engine for code generation skills that connects skill search, organization, retrieval, and client use into a unified framework, as shown in Fig. 1. CSS consists of a SkillServer and clients: the SkillServer prepares and organizes code generation skills and retrieves relevant skills for target tasks, while clients are equipped with code generation agents that use the retrieved skills. CSS prepares publicly available skills as a shared resource, represents them in a consistent format, organizes them by capability, and builds indexes for retrieval. Using this workflow, we have collected and organized an initial set of 993 code generation skills. When a client receives a code generation task, FASTADAPT uses the client model to construct a structured skill retrieval request, and the server applies the configured retrieval method to return relevant skills to the client. The retrieved skills are provided to the client's code generation agent, which determines how to use them. The server determines which skills are served, while the agent determines which of the served skills to use. This separation enables different retrieval methods and client models to use the same prepared skill collection through a unified request and response interface, without requiring skills to be repeatedly collected and organized for individual tasks.

We evaluate CSS on two well-established code generation benchmarks, BigCodeBench (Zhuo et al., 2025) and CoderEval (Yu et al., 2024), covering function generation using external libraries and code generation within existing project contexts. We compare three retrieval configurations over a shared corpus of 993 skills. The best-performing CSS configurations improve task pass rates from 53.42% to 60.88% on BigCodeBench and from 33.04% to 46.96% on CoderEval. We further evaluate CSS across five models, and separately examine the effects of skill collection size and curated versus raw skill collections on task performance. Taken together, the evaluation demonstrates the practical utility of CSS for serving code generation skills to code generation agents across different retrieval methods and client models.

Overall, our contributions are threefold: (1) We introduce CSS, a large-scale search engine that connects code generation skill search, organization, retrieval, and agent use. (2) We construct a curated collection of 993 code generation skills with standardized records and capability labels. (3) We evaluate CSS on two code generation benchmarks and five models, comparing three retrieval methods and analyzing task-level outcomes and the effects of collection size and composition.

References (21)