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

Manuscript Offprint

arXiv:2609.38024

Retrieval-Augmented Skill Optimization via Cross-Harness Adaptation

Jaewon Chu, Ji Soo Lee, Jihwan Park, Dohwan Ko, Jeehye Na, Seunghun Lee, Taehoon Lee, Minseo Yoon, Minseok Joo, Yunyang Xiong, Hyunwoo J. Kim

ABSTRACT

An agent skill is a reusable, actionable natural-language artifact that guides an agent to perform a task effectively under a given harness. Recent studies have explored the optimization of agent skills, contributing to a growing collection of publicly available skills spanning diverse tasks, domains, and harnesses. Despite millions of publicly shared skills, existing skill optimization methods largely overlook this accumulated knowledge, instead relying solely on expensive agent rollouts to iteratively refine skills for a target task. To address this, we propose Retrieval-Augmented Skill Optimization (RASO), a framework that leverages an external skill corpus as prior knowledge throughout skill optimization. RASO retrieves relevant knowledge from existing skills and adapts it to the target task and harness via Cross-Harness Adaptation, accounting for mismatches in both domain and harness. RASO comprises two complementary stages: Retrieval-Augmented Skill Initialization (RASI) constructs a knowledge-grounded initial skill without requiring agent rollouts, while Retrieval-Augmented Skill Update (RASU) iteratively refines the skill by retrieving external knowledge guided by execution feedback. Across four agent benchmarks and two models, extensive experiments show that RASO consistently outperforms baselines without retrieval-augmented skill initialization and updating.

1 INTRODUCTION

Large language models (LLMs) are widely deployed as agents within execution harnesses that define available tools, file access, and scoring procedures (Yao et al., 2023; Yang et al., 2024b). In these settings, performance depends not only on the parametric knowledge of the underlying model but also on the procedural policies governing task execution (Wang et al., 2024; 2025), commonly referred to as agent skills (Anthropic, 2025; Li et al., 2026c). An agent skill is a reusable, actionable natural-language artifact that specifies how an agent should accomplish tasks under a given harness. Unlike policies encoded in model weights, agent skills are expressed as text, making them readily inspectable, auditable, and transferable across models without modification.

To automatically construct effective agent skills, skill optimization has recently attracted growing attention (Wang et al., 2026; Xia et al., 2026; Ding et al., 2026; Chen et al., 2026). Existing methods iteratively refine skills based on agent experience collected through training-task rollouts under a given harness. Through such refinement, millions of skills have been publicly shared (Destefanis et al., 2026), collectively encoding procedural knowledge accumulated across diverse tasks, models, and harnesses. Despite this extensive knowledge, existing methods largely rely on the agent's own experience to optimize each skill (Yang et al., 2026; Alzubi et al., 2026; Ni et al., 2026; Tang et al., 2026), requiring costly rollouts for iterative refinement. As a result, leveraging an external skill corpus as a prior for automatic skill optimization remains largely unexplored.

To this end, we propose Retrieval-Augmented Skill Optimization (RASO), a skill optimization framework that leverages an external skill corpus as prior knowledge. As in Fig. 1, RASO comprises two complementary stages, Retrieval-Augmented Skill Initialization (RASI) and Retrieval-Augmented Skill Update (RASU). RASI leverages prior knowledge from an external skill corpus

∗^{*}Corresponding author

Figure

Figure 1: Comparison of RASO to prior skill optimization. Existing skill optimization methods (left) either generate an initial skill from the LLM alone or directly reuse retrieved skills, then refine them mainly from execution feedback. However, retrieved skills often come from mismatched harnesses; on SpreadsheetBench 92.9% originate from a different harness (right, top). RASO (middle) addresses this by retrieving relevant external skill knowledge and adapting it to the target domain and execution harness through Cross-Harness Adaptation, supporting both skill initialization (RASI) and skill update (RASU). Overall, our RASO results in substantially stronger performance than both direct retrieval and retrieval-free optimization methods.

to construct an effective initial skill directly from task and harness descriptions, without using any expensive agent rollouts. Upon observing a failure during task execution, RASU identifies the missing knowledge underlying the failure and retrieves relevant content from the corpus to address it. However, retrieved skills are originally written for specific tasks and harnesses, potentially encoding domain-specific assumptions or referencing tools unavailable in the target environment. To address this domain and harness mismatch, RASO introduces Cross-Harness Adaptation, a shared operation employed by both RASI and RASU. Rather than directly incorporating retrieved content, this operation abstracts away source-domain-specific instruction and re-expresses the underlying procedure in terms of the objects, commands, and units supported by the target harness.

We evaluate RASO through extensive experiments on four agent benchmarks, OfficeQA (Opsahl-Ong et al., 2026), SpreadsheetBench (Ma et al., 2024), ALFWorld (Shridhar et al., 2021), and WebShop (Yao et al., 2022), with two LLMs, Qwen-3.5-9B (Qwen Team, 2026) and GPT-5.6-Luna (OpenAI, 2026). Specifically, RASI synthesizes strong initial skills that outperform both retrieved skills and retrieval-free initialization without requiring agent rollouts, providing a strong initialization for subsequent optimization. Moreover, RASO with RASU consistently outperforms strong skill optimization algorithms, including TextGrad (Yuksekgonul et al., 2025), GEPA (Agrawal et al., 2026), SkillOpt (Yang et al., 2026), and WikiSkill (Tang et al., 2026).

Our contributions are as follows:

• We propose Retrieval-Augmented Skill Optimization (RASO), a framework that leverages an external skill corpus as prior knowledge for both skill initialization and update. Through its two complementary stages, RASI and RASU, RASO grounds skill construction in retrieved procedural knowledge rather than relying on the optimizer's parametric knowledge.

• We introduce Cross-Harness Adaptation, a shared operation that adapts retrieved procedural knowledge to the vocabulary of the target domain and harness. This enables knowledge transfer across diverse domains and harnesses without requiring domain- or harness-matched skills in the corpus.

• Across four benchmarks and two models, we demonstrate that RASI improves performance without requiring agent rollouts, while RASU further refines the skill by retrieving the missing knowledge guided by execution feedback. Our analysis further shows that these gains are associated with adapting diverse external knowledge rather than relying on particular source documents.

References (42)