Manuscript Offprint
arXiv:2609.38024Retrieval-Augmented Skill Optimization via Cross-Harness Adaptation
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 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.
Skill Optimization from Execution Experience. A major line of work improves agent skill from its own experience, treating the skill as a textual decision variable optimized with execution feedback on the target task. Methods that optimize prompts or contexts using LLM-generated feedback (Pryzant et al., 2023; Yang et al., 2024a; Chu et al., 2026; Zhang et al., 2026) are directly applicable to skill optimization, most notably TextGrad (Yuksekgonul et al., 2025), which backpropagates textual feedback, and GEPA (Agrawal et al., 2026), which evolves prompts by reflecting on execution traces. Skill-specific optimizers follow the same recipe: SkillOpt (Yang et al., 2026) edits a skill from rollout trajectories and accepts only edits that improve validation performance, WikiSkill (Tang et al., 2026) compiles agent experience into persistent knowledge, and others distill or refine skills from trajectories (Ni et al., 2026; Chen et al., 2026; Moll et al., 2026; Wang et al., 2026; Alzubi et al., 2026; Ding et al., 2026). However, these methods primarily optimize skills from observed execution experience, limiting their exploration of procedural knowledge beyond what can be inferred from the agent's own rollouts. In contrast, our framework supplements execution feedback with procedural knowledge retrieved from an external skill corpus throughout optimization.
Skill Construction from External Knowledge. Procedural knowledge that an agent cannot infer from its own experience often already exists: in shared skills, documentation, and the web, motivating a growing line of work that draws on such external knowledge. Retrieval-based methods, such as SkillRouter (Zheng et al., 2026), select relevant skills from large libraries through improved retrievers (Li et al., 2026a; Miao et al., 2026) or by organizing libraries into graphs and execution structures (Meng et al., 2026; Liu et al., 2026; Fu et al., 2026; Li et al., 2026b; Xia et al., 2026), with dedicated benchmarks for skill retrieval (Kang et al., 2026; Su et al., 2026). Since retrieved skills may refer to different tasks, tools, or actions, other methods adapt external experience to the target interface (Tang et al., 2025) or compile external resources into reusable skills (Pan et al., 2026; Yan et al., 2026). However, these approaches either require repeated retrieval and adaptation for each task instance during test time or use external knowledge only during skill initialization, without further leveraging it as target-task experience accumulates. In contrast, we leverage external knowledge throughout the skill optimization process, using it both to construct the initial skill and to further improve the skill during iterative updates.
3 PROBLEM FORMULATION
We consider a frozen language model acting as an agent through an execution harness , which defines the available tools, file access, and observation interface. A skill is a natural-language artifact provided as the agent's context to guide task completion under a given harness. Executing the agent on a task instance with skill yields a trajectory , which is associated with a reward by a benchmark-specific evaluator. When a reference answer is available, the evaluator compares the agent's final output against it, and otherwise uses the environment's native success criterion. We refer to each agent execution and its corresponding evaluation as a rollout. Given disjoint task splits , , and , candidate skills are constructed from rollouts on and selected based on performance on as:
The selected skill is then evaluated on the held-out .

Figure 2: Overview of RASO. RASI (top, without rollouts) generates retrieval queries from the task and harness descriptions, retrieves the top-K skill sections per query from an external corpus, and adapts them into grounded lessons via Cross-Harness Adaptation to synthesize the initial skill . RASU (bottom, with rollouts) starts from , executes the current skill, and generates retrieval queries from rollout results. The retrieved knowledge is adapted into grounded lessons via Cross-Harness Adaptation and incorporated into skill.md to iteratively refine the skill. Each subsequent iteration performs new rollouts using the committed skill.
Since both M and h remain fixed throughout optimization, the only decision variable is the natural-language skill s. We include the construction of the initial skill itself in the skill optimization problem, rather than assuming that an initial skill is externally supplied. We therefore define skill optimization to encompass both skill initialization, which constructs an initial skill from task and harness descriptions without requiring any rollouts, and skill update, which refines the skill using results from training rollouts.
4 RASO: RETRIEVAL-AUGMENTED SKILL OPTIMIZATION
In this section, we introduce Retrieval-Augmented Skill Optimization (RASO), a framework that evolves agent skills through two complementary stages: skill initialization and skill update, illustrated in Figure 2. Both stages share a common knowledge retrieval and adaptation mechanism but differ in the rollout evidence available to guide skill optimization. Section 4.1 describes the shared mechanism, which retrieves procedural knowledge from a large-scale skill corpus (Destefanis et al., 2026) and adapts it to the target task and harness through cross-harness adaptation. Section 4.2 introduces Retrieval-Augmented Skill Initialization (RASI), which constructs an initial skill using only the target task, harness description, and retrieved knowledge, without requiring agent rollouts. Section 4.3 introduces Retrieval-Augmented Skill Update (RASU), which leverages execution feedback and retrieved knowledge to iteratively refine the skill.
4.1 SKILL RETRIEVAL AND CROSS-HARNESS ADAPTATION
We first perform fine-grained, section-level skill retrieval from an external skill corpus to acquire relevant prior knowledge. We then introduce Cross-Harness Adaptation, a mechanism that bridges the gap between source and target domains and harnesses by transforming retrieved knowledge into actionable guidance tailored to the target task and harness. Skill retrieval and adaptation constitute a shared pipeline used by both RASI (Section 4.2) and RASU (Section 4.3).
Section-level skill retrieval. We first divide skill documents into heading-delimited sections to enable fine-grained retrieval. Since external skill documents are developed for diverse tasks and workflows, retrieving entire documents may introduce irrelevant content and favor documents with similar overall objectives over those containing relevant procedural sections. Section-level retrieval instead enables us to identify relevant procedural knowledge while improving the signal-to-noise ratio of retrieved content. Given the resulting section-level corpus C, a query-generation agent formulates a query q and retrieves the top-K most relevant sections using BM25 (Robertson & Zaragoza, 2009), i.e., .
Cross-Harness Adaptation. We employ an adaptation agent, denoted by , to adapt retrieved knowledge to the target task and harness. Let denote a requirement needing external knowledge to be resolved, such as a specific task procedure in RASI or a textual gradient in RASU. Given , the task description , the harness description , and the corresponding top-K retrieved sections , the agent produces a concise, actionable lesson :
Here, the lesson serves as a refined knowledge snippet that directly guides the agent to handle the requirement within the target task and harness.
To ensure that each lesson addresses the given requirement and remains valid within the target harness, the adaptation process follows three principles: (1) remove domain-specific nouns and omit procedures without counterparts in the target harness, (2) focus exclusively on requirement , excluding unrelated issues, and (3) preserve specific claims about tool or parameter behavior only when corroborated by , prioritizing correctness within the target harness over potentially inaccurate specificity. Consequently, each lesson is expressed using the objects, commands, and units of the target task and harness.
4.2 RETRIEVAL-AUGMENTED SKILL INITIALIZATION (RASI)
We introduce Retrieval-Augmented Skill Initialization (RASI), which constructs an initial skill for a target task under a given harness without requiring agent rollouts. Performed once at the beginning of skill optimization, RASI comprises four sequential steps: (1) procedure and query generation, (2) section-level skill retrieval, (3) Cross-Harness Adaptation, and (4) skill initialization.
Procedure and query generation. Given the task description T and harness description H, the query-generation agent generates a set of requirement-query pairs :
where M denotes the number of generated pairs. Here, each represents a specific task procedure or harness constraint (e.g., multi-turn budget management), and is the retrieval query created to search for external skills that address .
Section-level skill retrieval and Cross-Harness Adaptation. Given the generated requirement-query pairs, RASI applies the shared retrieval and adaptation pipeline described in Section 4.1. For each query , BM25 retrieves the top-K relevant sections from the corpus . The adaptation agent then transforms these sections into a grounded lesson . The resulting lessons form , which are used for subsequent skill initialization.
Skill initialization. Finally, a skill-initializer agent synthesizes the initial skill from the task description , harness description , identified procedures and requirements , and grounded lessons . The agent integrates each lesson into the execution step corresponding to , yielding:
By incorporating retrieved and adapted knowledge before environment interaction, RASI provides a knowledge-grounded initial skill for subsequent optimization without consuming search rollouts.
4.3 RETRIEVAL-AUGMENTED SKILL UPDATE (RASU)
Here, we introduce Retrieval-Augmented Skill Update (RASU) that iteratively refines the current skill using execution feedback from agent rollouts. Complementing the rollout-free initialization of RASI, RASU identifies specific failure modes observed in agent trajectories and retrieves relevant external knowledge to address them. Given trajectories generated by the execution agent using , each RASU iteration comprises four sequential steps: (1) textual gradient and query generation, (2) section-level skill retrieval, (3) Cross-Harness Adaptation, and (4) skill update.
Textual gradient and query generation. We first sample a minibatch of tasks from and execute agent rollouts using the current skill . A gradient-and-query generator agent then analyzes the failed trajectories to identify failure mode. For each failure modes, the agent generates a textual gradient based on its parametric knowledge and a targeted retrieval query to acquire relevant external knowledge:
where N denotes the number of generated query and gradient pairs, and denotes the rollout trajectories.
Section-level skill retrieval and Cross-Harness Adaptation. Given the failure-driven retrieval queries, RASU applies the shared retrieval and adaptation pipeline described in Section 4.1. This process yields a set of grounded lessons for subsequent skill update.
Skill update. Finally, a skill-updater agent generates a candidate skill by integrating the current skill , textual gradients , and trajectory-grounded lessons :
The updater refines the current skill to candidate skill based on the textual gradients and grounded lessons. The candidate skill is accepted only if it outperforms on the validation set , with retained otherwise. This pipeline is repeated for a fixed number of iterations, progressively refining the skill through execution feedback and retrieved prior knowledge.
5 EXPERIMENT
We evaluate RASO using two target LLMs: GPT-5.6-Luna (OpenAI, 2026) and Qwen-3.5-9B (Qwen Team, 2026). We refer to the model that executes tasks as the target model and the model that generates or updates skill text as the optimizer model. Unless otherwise specified, we use the same model for both roles across all skill optimization methods. For skill retrieval, we use GitSkills (Destefanis et al., 2026), an external skill corpus spanning diverse domains and harnesses. Our evaluation covers four benchmarks with diverse interaction settings: OfficeQA (Opsahl-Ong et al., 2026), SpreadsheetBench (Ma et al., 2024), ALFWorld (Shridhar et al., 2021), and WebShop (Yao et al., 2022). For skill initialization, we compare RASI against three strategies: (1) No Skill, where the agent operates without an initialized skill, (2) SkillRouter (Zheng et al., 2026), which retrieves a relevant skill from the external corpus, and (3) Retrieval-Free Skill Initialization (RFSI), where the target LLM generates an initial skill directly from the task and harness descriptions without access to the external skill corpus. For iterative skill optimization, we compare RASO against TextGrad (Yuksekgonul et al., 2025), GEPA (Agrawal et al., 2026), SkillOpt (Yang et al., 2026), and WikiSkill (Tang et al., 2026). All experiments are conducted with three random seeds, and we report the mean performance over seeds.
5.1 MAIN RESULTS
Skill initialization. We first evaluate the quality of skills produced by different initialization methods, i.e., before any subsequent agent rollout or skill optimization, for both GPT-5.6-Luna and Qwen-3.5-9B in Table 1. Across both models and all four benchmarks, RASI consistently achieves the highest performance. With GPT-5.6-Luna, RASI improves over Retrieval-Free Skill Initialization (RFSI) by +5.63 on OfficeQA (45.74 vs. 40.11), +4.77 on Spreadsheet (49.17 vs. 44.40), +3.24 on ALFWorld (72.64 vs. 69.40), and +1.17 on WebShop (45.06 vs. 43.89). The margin is substantially larger over the No Skill and SkillRouter baselines, particularly on OfficeQA, where both achieve only 11.44. This advantage also holds for the smaller Qwen-3.5-9B backbone, where RASI outperforms RFSI by +5.61 on OfficeQA, +2.74 on Spreadsheet, +5.72 on ALFWorld, and +10.73 on WebShop. SkillRouter, which retrieves external skills without Cross-Harness Adaptation, underperforms even the No Skill baseline on several benchmarks, which suggests direct reuse can introduce irrelevant or mismatched procedural knowledge when the retrieved content is not adapted to the target task and harness. Overall, these results show that combining external knowledge retrieval with LLM-based adaptation, as in RASI, yields a more effective initialization than either retrieval alone or retrieval-free LLM-based skill generation, providing a stronger skill initialization for subsequent optimization.
Table 1: Agent performance with GPT-5.6-Luna (OpenAI, 2026) and Qwen-3.5-9B (Qwen Team, 2026). We separate skill initialization from skill update; initialization-only rows report performance at 0 rollouts. RFSI denotes retrieval-free skill initialization. Results are mean ± standard error over three random seeds.
| Model | Method | Benchmark | |||
|---|---|---|---|---|---|
| OfficeQA | Spreadsheet | ALFWorld | WebShop | ||
| GPT-5.6-Luna | Skill initialization (without rollout) | ||||
| No skill | 11.44 ± 0.70 | 32.98 ± 0.12 | 64.43 ± 1.38 | 43.56 ± 1.01 | |
| SkillRouter | 11.44 ± 0.97 | 33.21 ± 0.94 | 55.97 ± 1.14 | 42.20 ± 0.37 | |
| RFSI | 40.11 ± 0.58 | 44.40 ± 2.74 | 69.40 ± 1.55 | 43.89 ± 1.17 | |
| RASI | 45.74 ± 1.40 | 49.17 ± 1.52 | 72.64 ± 1.63 | 45.06 ± 0.40 | |
| Skill update (with rollout) | |||||
| TextGrad | 43.80 ± 1.27 | 49.64 ± 3.09 | 70.65 ± 0.66 | 42.32 ± 3.13 | |
| GEPA | 43.99 ± 1.40 | 54.53 ± 1.46 | 71.14 ± 1.08 | 45.54 ± 0.35 | |
| SkillOpt | 45.54 ± 2.05 | 57.02 ± 3.60 | 72.64 ± 0.90 | 45.17 ± 0.23 | |
| WikiSkill | 41.47 ± 1.18 | 47.14 ± 3.98 | 71.14 ± 0.66 | 44.40 ± 0.64 | |
| RASO | 49.03 ± 1.85 | 63.33 ± 2.69 | 74.13 ± 1.00 | 46.61 ± 0.11 | |
| Qwen-3.5-9B | Skill initialization (without rollout) | ||||
| No skill | 33.14 ± 1.21 | 28.81 ± 0.60 | 33.09 ± 0.66 | 16.27 ± 0.25 | |
| SkillRouter | 34.11 ± 0.51 | 23.45 ± 0.48 | 31.34 ± 1.29 | 9.42 ± 0.47 | |
| RFSI | 34.89 ± 2.93 | 27.74 ± 2.56 | 42.04 ± 2.87 | 12.54 ± 2.56 | |
| RASI | 40.50 ± 0.97 | 30.48 ± 0.78 | 47.76 ± 3.53 | 23.27 ± 0.98 | |
| Skill update (with rollout) | |||||
| TextGrad | 36.82 ± 1.59 | 25.95 ± 0.63 | 41.04 ± 2.28 | 10.96 ± 4.44 | |
| GEPA | 36.43 ± 1.97 | 24.05 ± 1.56 | 43.53 ± 1.99 | 12.80 ± 2.20 | |
| SkillOpt | 37.21 ± 1.21 | 29.52 ± 2.21 | 43.03 ± 3.17 | 13.36 ± 1.70 | |
| WikiSkill | 37.40 ± 3.03 | 29.76 ± 1.80 | 42.79 ± 2.93 | 13.43 ± 2.01 | |
| RASO | 42.25 ± 1.52 | 31.55 ± 0.31 | 51.00 ± 2.45 | 24.73 ± 0.41 | |
Skill Update We compare RASO with existing skill optimization methods in Table 1. Following the conventional skill optimization setup, existing methods start from RFSI, where an initial skill is LLM-generated without rollouts or access to an external corpus, and subsequently refine it using their respective rollout-based optimization procedures. RASO overall outperforms existing skill optimization methods across both backbones. For GPT-5.6-Luna, RASO improves over the strongest competing method by +3.49 on OfficeQA (49.03 vs. 45.54), +6.31 on SpreadsheetBench (63.33 vs. 57.02), +1.49 on ALFWorld (74.13 vs. 72.64), and +1.07 on WebShop (46.61 vs. 45.54). Similarly, with Qwen-3.5-9B, RASO improves over the strongest competing method by +4.85 on OfficeQA (42.25 vs. 37.40), +1.79 on SpreadsheetBench (31.55 vs. 29.76), +7.47 on ALFWorld (51.00 vs. 43.53), and +11.30 on WebShop (24.73 vs. 13.43). These results show that RASO benefits from both retrieval-augmented initialization and subsequent retrieval-augmented skill refinement.
5.2 ANALYSIS
Ablation studies. We conduct an ablation study of the RASO components in Table 2. Relative to the RFSI + RFSU baseline (retrieval-free settings), RASU improves performance from 40.70 to 47.56 (+6.86 points) on OfficeQA and from 51.67 to 61.07 (+9.40 points) on SpreadsheetBench. These gains demonstrate the benefit of incorporating retrieved and adapted external knowledge during iterative skill refinement. Similarly, replacing only the initialization component with RASI improves performance from 40.70 to 45.93 (+5.23 points) on OfficeQA and from 51.67 to 58.45 (+6.78 points) on SpreadsheetBench, demonstrating the benefit of retrieval-augmented initialization under the same subsequent update procedure. Combining both components leads to the strongest performance, reaching 49.03 on OfficeQA and 63.33 on SpreadsheetBench, corresponding to improvements of +8.33 and +11.66 points over the baseline. These results indicate that retrieval-augmented initialization and updating provide complementary gains within RASO.
Table 2: Ablation on the initialization (Init.) and update components with GPT-5.6-Luna.
| Method | Benchmark | ||
|---|---|---|---|
| Init. | Update | OfficeQA | Spreadsheet |
| RFSI | RFSU | 40.70 ± 1.67 | 51.67 ± 2.03 |
| RFSI | RASU | 47.56 ± 1.85 | 61.07 ± 2.15 |
| RASI | RFSU | 45.93 ± 1.58 | 58.45 ± 1.78 |
| RASI | RASU | 49.03 ± 1.85 | 63.33 ± 2.69 |
Table 4: Update methods under a fixed RASI initialization with GPT-5.6-Luna. The highlighted row is RASO.
| Method | Benchmark | ||
|---|---|---|---|
| Init. | Update | OfficeQA | Spreadsheet |
| RASI | - | 45.74 ± 1.40 | 49.17 ± 1.52 |
| TextGrad | 43.41 ± 1.97 | 57.97 ± 3.21 | |
| GEPA | 45.74 ± 1.72 | 58.69 ± 0.83 | |
| SkillOpt | 46.51 ± 2.10 | 60.24 ± 1.52 | |
| WikiSkill | 47.09 ± 2.42 | 55.00 ± 4.76 | |
| RASU | 49.03 ± 1.85 | 63.33 ± 2.69 | |
Table 3: Effect of adaptation with GPT-5.6-Luna. RASU used RASI with adaptation as an initial.
| Method | Benchmark | ||
|---|---|---|---|
| Method | Adaptation | OfficeQA | Spreadsheet |
| RASI | × | 41.86 ± 1.53 | 41.43 ± 2.83 |
| RASI | ✓ | 45.74 ± 1.40 | 49.17 ± 1.52 |
| RASU | × | 46.70 ± 2.05 | 57.86 ± 2.92 |
| RASU | ✓ | 49.03 ± 1.85 | 63.33 ± 2.69 |

Figure 3: Effect of the number of retrieved sections with GPT-5.6-Luna. The dashed line marks our choice of , and shading denotes standard error.
Effect of Cross-Harness Adaptation. In Table 3, we examine the effect of Cross-Harness Adaptation in both RASI and RASU. For RASI, applying the adaptation improves performance from 41.86 to 45.74 (+3.88 points) on OfficeQA and from 41.43 to 49.17 (+7.74 points) on SpreadsheetBench. A similar benefit is observed during skill updating. Under the same RASI initialization, incorporating the adaptation into RASU improves performance from 46.70 to 49.03 (+2.33 points) on OfficeQA and from 57.86 to 63.33 (+5.47 points) on SpreadsheetBench. These consistent gains across both stages demonstrate the importance of adapting retrieved knowledge from diverse domains and harnesses to the target task and execution harness for effective skill initialization and iterative refinement.
Comparison with baselines under RASI initialization. Table 4 compares different skill update methods under the same RASI initialization, thereby isolating the effect of the update procedure. RASU achieves the highest performance on both benchmarks, reaching 49.03 on OfficeQA and 63.33 on SpreadsheetBench. Compared with the strongest alternative update method on each benchmark, RASU improves performance by +1.94 points over WikiSkill on OfficeQA (47.09 to 49.03) and by +3.09 points over SkillOpt on SpreadsheetBench (60.24 to 63.33). Relative to RASI initialization without subsequent updates, RASU yields gains of +3.29 and +14.16 points on OfficeQA and SpreadsheetBench, respectively. These results show that, under the same retrieval-augmented initialization, RASU provides more effective iterative skill refinement than existing update methods.
Effect of retrieval size. Figure 3 analyzes the effect of the number of retrieved sections for both RASI and RASU. Performance generally improves as increases from 1 to 5, with the highest performance achieved at on both OfficeQA and SpreadsheetBench. The gains are particularly pronounced for RASU, indicating that access to multiple relevant sections is useful when refining skills based on rollout feedback. Further increasing to 10 slightly degrades performance for both RASI

Figure 4: Effect of skill corpus size with GPT-5.6-Luna. Dashed lines mark (no corpus), and shading denotes standard error.

Figure 5: Qualitative example of Cross-Harness Adaptation. RASI retrieves a skill from a mismatched domain and harness (satellite imagery with numpy/raster arrays) and adapts its procedure into the target spreadsheet harness. We compare the resulting lessons, initial skills, and generated code with (top) and without (bottom) the top-1 of the five retrieved sections given as input. Highlights mark the differences between the two runs, which are reflected in the generated code and its output. Without the top-1 skill, the model overlooks the missing group, causing an index shift.
and RASU, suggesting that retrieving additional sections may introduce redundant or less relevant information. Accordingly, we set K = 5 for all experiments to balance knowledge coverage against retrieval noise.
Effect of skill corpus size. Figure 4 studies the effect of external skill corpus size for RASI and RASU. Enabling retrieval from only 1% of the corpus already yields a clear performance improvement over no-retrieval counterparts (0%; dashed line), revealing that even a small amount of retrieved external knowledge is beneficial. As the available corpus grows, performance generally continues to improve, with the largest gains observed on SpreadsheetBench. Overall, these results suggest that retrieval itself provides an immediate benefit, while increasing corpus size further improves the opportunity to retrieve useful knowledge.
Qualitative results. Figure 5 presents a SpreadsheetBench task that requires computing the average of qualifying rows for each department. For the given data, department B has no qualifying rows; hence, the expected output for its cell is blank. The top-1 retrieved section comes from an urban remote-sensing skill whose domain and harness differ from the target. Through Cross-Harness Adaptation, RASI rewrites the source's rule of skipping empty groups as “treat the output as missing,” and the generated code accordingly leaves B’s cell blank. When this section is removed, the generated code groups only the filtered rows, causing C’s mean to shift into B’s cell. This example suggests that cross-harness adaptation transfers the procedural structure and intent of retrieved sections while adapting them to the target harness format.
6 CONCLUSION
We propose Retrieval-Augmented Skill Optimization (RASO), which leverages an external skill corpus as prior knowledge to support both skill initialization and updating. Rather than directly reusing retrieved skills, RASO applies Cross-Harness Adaptation to transfer relevant procedural knowledge to the target task and execution harness. RASO combines Retrieval-Augmented Skill Initialization (RASI), which constructs a strong initial skill without agent rollouts, with Retrieval-Augmented Skill Update (RASU), which further refines the skill by retrieving knowledge guided by execution feedback. Across four agent benchmarks and two model backbones, RASO consistently outperforms retrieval-free skill optimization baselines, demonstrating the value of incorporating external skill knowledge at both initialization and update.
REFERENCES
Lakshya A Agrawal, Shangyin Tan, Dilara Soylu, Noah Ziems, Rishi Khare, Krista Opsahl-Ong, Arnav Singhvi, Herumb Shandilya, Michael J Ryan, Meng Jiang, Christopher Potts, Koushik Sen, Alex Dimakis, Ion Stoica, Dan Klein, Matei Zaharia, and Omar Khattab. GEPA: Reflective prompt evolution can outperform reinforcement learning. In ICLR, 2026.
Salaheddin Alzubi, Noah Provenzano, Jaydon Bingham, Christian Alexander Calvo, Weiyuan Chen, and Tu Vu. EvoSkill: Automated skill discovery for multi-agent systems. In COLM, 2026.
Anthropic. Equipping agents for the real world with Agent Skills, October 2025. URL https://www.anthropic.com/engineering/equipping-agents-for-the-real-world-with-agent-skills.
Kunfeng Chen, Qihuang Zhong, Juhua Liu, and Bo Du. SkillCAT: Contrastive, assessment-augmented and topology-aware skill self-evolution for LLM agents. arXiv:2606.13317, 2026.
Jaewon Chu, Jinwoo Seo, Jaewon Cho, Jeehye Na, Yunyang Xiong, Youngdae Kim, and Hyunwoo J. Kim. AgentGrad: Intervention-guided prompt optimization for multi agent systems. In NeurIPS, 2026.
Giuseppe Destefanis, Daniel Graziotin, Matteo Vaccargiu, and Marco Ortu. GitSkills: A dataset of agent skills on GitHub. arXiv:2608.10906, 2026.
Ruomeng Ding, Wei Cheng, Minglai Shao, and Chen Zhao. SkillGen: Learning domain skills for in-context sequential decision making. In AAAI, 2026.
Runnan Fang, Yuan Liang, Xiaobin Wang, Jialong Wu, Shuofei Qiao, Pengjun Xie, Fei Huang, Huajun Chen, and Ningyu Zhang. Memp: Exploring agent procedural memory. In ACL-Findings, 2026.
Dawei Fu, Cheng Jiang, Sitian Qian, Huainan Wang, and Zhongkai Hao. SE-GoS: Self-evolving graph-of-skills for skill library at scale. arXiv:2609.08228, 2026.
Ryangkyung Kang, Hongcheol Cho, and Youngeun Kim. SkillRet: A large-scale benchmark for skill retrieval in LLM agents. arXiv:2605.05726, 2026.
Fangzhou Li, Pagkratios Tagkopoulos, and Ilias Tagkopoulos. SkillFlow: Scalable and efficient agent skill retrieval system. In COLM, 2026a.
Hao Li, Chunjiang Mu, Jianhao Chen, Siyue Ren, Zhiyao Cui, Yiqun Zhang, Lei Bai, and Shuyue Hu. Organizing, orchestrating, and benchmarking agent skills at ecosystem scale. arXiv:2603.02176, 2026b.
Xiangyi Li, Yimin Liu, Wenbo Chen, Bingran You, Zonglin Di, Yifeng He, Shenghan Zheng, Kyoung Whan Choe, Jiankai Sun, Shuyi Wang, et al. SkillsBench: Benchmarking how well agent skills work across diverse tasks. arXiv:2602.12670, 2026c.
Dawei Liu, Zongxia Li, Hongyang Du, Xiyang Wu, Shihang Gui, Yongbei Kuang, and Lichao Sun. Graph-of-Skills: Dependency-aware structural retrieval for massive agent skills. In EMNLP, 2026.
Zeyao Ma, Bohan Zhang, Jing Zhang, Jifan Yu, Xiaokang Zhang, Xiaohan Zhang, Sijia Luo, Xi Wang, and Jie Tang. SpreadsheetBench: Towards challenging real world spreadsheet manipulation. In NeurIPS, 2024.
Xiangcheng Meng, Shu Wang, and Yixiang Fang. SkillRAE: Agent skill-based context compilation for retrieval-augmented execution. arXiv:2605.10114, 2026.
Yongliang Miao, Ziyang Yu, Liang Zhao, Bowen Zhu, and Hasibul Haque. SkillLens: Adaptive multi-granularity skill reuse for cost-efficient LLM agents. arXiv:2605.08386, 2026.
Johannes Moll, Jean-Philippe Corbeil, Jiazhen Pan, Martin Hadamitzky, Daniel Rueckert, Lisa Adams, and Keno Bressem. GRASP: Gated regression-aware skill proposer for self-improving LLM agents. In EMNLP, 2026.
Jingwei Ni, Yihao Liu, Xinpeng Liu, Yutao Sun, Mengyu Zhou, Pengyu Cheng, Dexin Wang, Erchao Zhao, Xiaoxi Jiang, and Guanjun Jiang. Trace2Skill: Distill trajectory-local lessons into transferable agent skills. arXiv:2603.25158, 2026.
OpenAI. GPT-5.6: Frontier intelligence that scales with your ambition, July 2026. URL https://openai.com/index/gpt-5-6/.
Krista Opsahl-Ong, Arnav Singhvi, Jasmine Collins, Ivan Zhou, Cindy Wang, Ashutosh Baheti, Owen Oertell, Jacob Portes, Sam Havens, Erich Elsen, Michael Bendersky, Matei Zaharia, and Xing Chen. OfficeQA Pro: An enterprise benchmark for end-to-end grounded reasoning. arXiv:2603.08655, 2026.
Siru Ouyang, Jun Yan, I Hsu, Yanfei Chen, Ke Jiang, Zifeng Wang, Rujun Han, Long Le, Samira Daruki, Xiangru Tang, et al. Reasoningbank: Scaling agent self-evolving with reasoning memory. In ICLR, 2026.
Qianjun Pan, Yutao Yang, Junsong Li, Jie Zhou, Kai Chen, Xin Li, Qin Chen, and Liang He. Anything2Skill: Compiling external knowledge into reusable skills for agents. arXiv:2606.09316, 2026.
Reid Pryzant, Dan Iter, Jerry Li, Yin Lee, Chenguang Zhu, and Michael Zeng. Automatic prompt optimization with “gradient descent” and beam search. In EMNLP, 2023.
Qwen Team. Qwen3.5: Towards native multimodal agents, February 2026. URL https://qwen.ai/blog?id=qwen3.5.
Stephen Robertson and Hugo Zaragoza. The probabilistic relevance framework: BM25 and beyond. Foundations and Trends in Information Retrieval, 2009.
Noah Shinn, Federico Cassano, Ashwin Gopinath, Karthik R Narasimhan, and Shunyu Yao. Reflexion: language agents with verbal reinforcement learning. In NeurIPS, 2023.
Mohit Shridhar, Xingdi Yuan, Marc-Alexandre Côté, Yonatan Bisk, Adam Trischler, and Matthew Hausknecht. ALFWorld: Aligning text and embodied environments for interactive learning. In ICLR, 2021.
Weihang Su, Jianming Long, Qingyao Ai, Qiaozhi He, Yichen Tang, Changyue Wang, Yiteng Tu, Yingbo Wang, and Yiqun Liu. Skill retrieval augmentation for agentic AI. arXiv:2604.24594, 2026.
Liyan Tang, Cyrus Rashtchian, Chun-Sung Ferng, Andrew Tomkins, Da-Cheng Juan, and Tu Vu. WikiSkill: Compiling agent experience into persistent knowledge for skill evolution. arXiv:2608.27454, 2026.
Xiangru Tang, Tianrui Qin, Tianhao Peng, Ziyang Zhou, Daniel Shao, Tingting Du, Xinming Wei, Peng Xia, Fang Wu, He Zhu, et al. Agent KB: Leveraging cross-domain experience for agentic problem solving. arXiv:2507.06229, 2025.
Guanzhi Wang, Yuqi Xie, Yunfan Jiang, Ajay Mandlekar, Chaowei Xiao, Yuke Zhu, Linxi Fan, and Anima Anandkumar. Voyager: An open-ended embodied agent with large language models. TMLR, 2024.
Hanyu Wang, Yifan Lan, Bochuan Cao, Lu Lin, and Jinghui Chen. SkillGrad: Optimizing agent skills like gradient descent. arXiv:2605.27760, 2026.
Zora Zhiruo Wang, Jiayuan Mao, Daniel Fried, and Graham Neubig. Agent workflow memory. In ICML, 2025.
Tianle Xia, Lingxiang Hu, Yiding Sun, Ming Xu, Lan Xu, Siying Wang, Wei Xu, and Jie Jiang. GraSP: Graph-structured skill compositions for LLM agents. arXiv:2604.17870, 2026.
Zhiling Yan, Dingjie Song, Hanrong Zhang, Wei Liang, Yuxuan Zhang, Yutong Dai, Lifang He, Philip S Yu, Ran Xu, Xiang Li, et al. OpenSkill: Open-world self-evolution for llm agents. In EMNLP, 2026.
Chengrun Yang, Xuezhi Wang, Yifeng Lu, Hanxiao Liu, Quoc V Le, Denny Zhou, and Xinyun Chen. Large language models as optimizers. In ICLR, 2024a.
John Yang, Carlos Jimenez, Alexander Wettig, Kilian Lieret, Shunyu Yao, Karthik Narasimhan, and Ofir Press. SWE-agent: Agent-computer interfaces enable automated software engineering. In NeurIPS, 2024b.
Yifan Yang, Ziyang Gong, Weiquan Huang, Qihao Yang, Ziwei Zhou, Zisu Huang, Yan Li, Xuemei Gao, Qi Dai, Bei Liu, Kai Qiu, Yuqing Yang, Dongdong Chen, Xue Yang, and Chong Luo. SkillOpt: Executive strategy for self-evolving agent skills. arXiv:2605.23904, 2026.
Shunyu Yao, Howard Chen, John Yang, and Karthik Narasimhan. WebShop: Towards scalable real-world web interaction with grounded language agents. In NeurIPS, 2022.
Shunyu Yao, Jeffrey Zhao, Dian Yu, Nan Du, Izhak Shafran, Karthik Narasimhan, and Yuan Cao. ReAct: Synergizing reasoning and acting in language models. In ICLR, 2023.
Mert Yuksekgonul, Federico Bianchi, Joseph Boen, Sheng Liu, Pan Lu, Zhi Huang, Carlos Guestrin, and James Zou. Optimizing generative AI by backpropagating language model feedback. Nature, 2025.
Qizheng Zhang, Changran Hu, Shubhangi Upasani, Boyuan Ma, Fenglu Hong, Vamsidhar Kamanuru, Jay Rainton, Chen Wu, Mengmeng Ji, Hanchen Li, et al. Agentic context engineering: Evolving contexts for self-improving language models. In ICLR, 2026.
Andrew Zhao, Daniel Huang, Quentin Xu, Matthieu Lin, Yong-Jin Liu, and Gao Huang. ExpeL: LLM agents are experiential learners. In AAAI, 2024.
Yanzhao Zheng, Zhentao Zhang, Chao Ma, Yuanqiang Yu, Jihuai Zhu, Yong Wu, Tianze Xu, Baohua Dong, Hangcheng Zhu, Ruohui Huang, and Gang Yu. SkillRouter: Skill routing for LLM agents at scale. In COLM, 2026.
A APPENDIX
A.1 IMPLEMENTATION DETAILS
For all update methods, we run skill optimization for 2 epochs over with a minibatch size of 40 tasks per iteration. For Qwen-3.5-9B, we use a sampling temperature of 0.0 for agent rollouts and 0.7 for the optimizer model, and serve the model with vLLM on a single NVIDIA RTX A6000 GPU. For GPT-5.6-Luna, we set the reasoning effort to low for both the target and optimizer models. Following SkillOpt (Yang et al., 2026), we process the rollout minibatch in chunks when generating textual gradients and retrieval queries (Eq. 5). The trajectories in each minibatch are split into chunks of size 8, and produces gradient–query pairs for each chunk independently. A single LLM call then merges the chunk-level outputs into the final set , consolidating pairs that describe the same failure mode and removing redundant queries. This design keeps each call within the context limit while allowing the gradients to reflect failure patterns across the entire minibatch. Unless otherwise specified, we retrieve the top- sections per query.
Since the external skill corpus is collected from public repositories, it may contain skills written specifically for our evaluation benchmarks. We therefore construct a per-benchmark blocklist and remove it from the corpus before building the retrieval index. For each benchmark, we search the corpus for keywords that identify it. The benchmark name and the names of the datasets it is built on. Whenever any skill matches, we exclude the entire repository containing it rather than the matched skill alone. We choose repository-level exclusion to be conservative. A repository that targets a benchmark often contains companion skills that encode benchmark-specific procedures without naming the benchmark, and such skills would evade keyword matching.
For each benchmark, we generate a task description T and a harness description H once, before any optimization run, and keep both fixed across all methods, models, and seeds. Both descriptions are produced by a coding agent (codex) that reads the benchmark's harness code and states the task objective and output format (T) and the tools, file access, observation format, interaction budget, and scoring rule exposed by the harness (H). The coding agent was not given access to test instances, and neither description was revised after observing test performance.
To isolate the contribution of retrieval, Retrieval-Free Skill Initialization (RFSI) follows exactly the same pipeline as RASI except for retrieval and adaptation. Specifically, RFSI receives the identical T and H, uses the same procedure and requirement decomposition , and synthesizes the skill with the same skill-initialization system prompt; the only difference is that the grounded lessons are omitted. Hence, the gap between RASI and RFSI reflects the retrieved and adapted knowledge rather than the procedure decomposition or the prompt. All skill update baselines start from this RFSI skill, so every update method is compared under the same T, H, and initial skill.
A.2 BASELINE DETAILS
Skill initialization. We compare RASI against three initialization strategies, all evaluated at zero rollouts. No skill runs the agent without an initialized skill. SkillRouter (Zheng et al., 2026) selects skills from a large library with a two-stage retrieve-and-rerank pipeline, in which a bi-encoder retrieves candidate skills and a cross-encoder reranks them using the full skill body. We use it to retrieve a relevant skill from the external skill corpus. Retrieval-Free Skill Initialization (RFSI) generates an initial skill with the target LLM directly from the task and harness descriptions, without access to the external skill corpus.
Skill update. We compare RASU against four update methods. TextGrad (Yuksekgonul et al., 2025) treats the skill as a text variable and optimizes it by backpropagating natural-language feedback, in which an LLM critiques execution results to produce textual gradients that are then used to revise the skill. GEPA (Agrawal et al., 2026) evolves the skill through reflective mutation, in which an LLM reflects on execution traces to propose revisions, and maintains a Pareto front of candidates to preserve diverse strategies during selection. SkillOpt (Yang et al., 2026) converts scored rollouts into bounded add, delete, and replace edits on a skill document and accepts an edit only when it improves a held-out validation score. WikiSkill (Tang et al., 2026) co-evolves skills with a persistent wiki, in which agent trajectories are consolidated into pages documenting failure modes and successful strategies, and skill updates are proposed by consulting this wiki. Unless otherwise
Table 5: Number of tasks in each split.
| Benchmark | Train | Validation | Test |
|---|---|---|---|
| OfficeQA | 50 | 24 | 172 |
| SpreadsheetBench | 80 | 40 | 280 |
| ALFWorld | 39 | 18 | 134 |
| WebShop | 80 | 40 | 500 |
specified, we use the same model as both the target and optimizer model for all methods, and none of the baselines accesses the external skill corpus during optimization.
A.3 BENCHMARK DETAILS
We evaluate on four benchmarks that cover diverse interaction settings, ranging from document-grounded question answering to spreadsheet manipulation, embodied household tasks, and web navigation. For each benchmark, we use disjoint training, validation, and test splits ( , , ), whose sizes are summarized in Table 5. Following SkillOpt (Yang et al., 2026), we use the same train/validation/test splits for all methods, so update acceptance and skill selection are performed on an identical validation set.
OfficeQA. OfficeQA (Opsahl-Ong et al., 2026) is a benchmark for end-to-end grounded reasoning over enterprise documents. Questions are posed over a corpus of U.S. Treasury Bulletins spanning nearly 100 years and about 89,000 pages, and require the agent to parse documents, retrieve relevant information across both unstructured text and tables, and perform numerical reasoning. Answers are numerical and are scored as correct when they fall within an allowed relative error tolerance. We use all 246 questions and split them into 50, 24, and 172 questions for training, validation, and testing, respectively.
SpreadsheetBench. SpreadsheetBench (Ma et al., 2024) is a benchmark for real-world spreadsheet manipulation, built from questions collected from online Excel forums. Each instruction requires the agent to read and modify spreadsheet files, and is evaluated in an online-judge style, where a solution is considered correct only if it produces the expected result on multiple spreadsheet files serving as test cases. We use 400 tasks, split into 80, 40, and 280 tasks for training, validation, and testing, respectively.
ALFWorld. ALFWorld (Shridhar et al., 2021) is a text-based embodied environment that aligns the ALFRED household tasks with the TextWorld engine. The agent navigates a simulated household and interacts with objects through textual actions to complete goals from six task types: pick and place, examine in light, clean and place, heat and place, cool and place, and pick two and place. We use 39 and 18 games for training and validation, and evaluate on the 134 out-of-distribution evaluation games.
WebShop. WebShop (Yao et al., 2022) is a simulated e-commerce environment containing about 1.18 million real-world products and 12,087 crowd-sourced instructions. Given a natural-language instruction describing a desired product, the agent searches, navigates product pages, and selects options to make a purchase, and is rewarded according to how well the purchased product matches the requested attributes, options, and price. We use 80 and 40 instructions for training and validation, and evaluate on the 500 test instructions.
A.4 SKILL UPDATE METHODS UNDER FIXED INITIALIZATION
To isolate the contribution of the skill update procedure, we compare skill update methods while fixing the initial skill. Table 4 in the main paper reports skill update results of GPT-5.6-Luna initialized with RASI. Tables 6, 7, 8 report the remaining three combinations of initialization and LLM(Qwen-3.5-9B and GPT-5.6-Luna) on OfficeQA and SpreadsheetBench. In all four combinations, RASU
Table 6: Update methods under a fixed RASI initialization with Qwen-3.5-9B. The highlighted row is RASO.
| Method | Benchmark | ||
|---|---|---|---|
| Init. | Update | OfficeQA | Spreadsheet |
| RASI | — | ||
| TextGrad | |||
| GEPA | |||
| SkillOpt | |||
| WikiSkill | |||
| RASU | |||
Table 7: Update methods under a fixed RFSI initialization with Qwen-3.5-9B. The highlighted row is RASU.
| Method | Benchmark | ||
|---|---|---|---|
| Init. | Update | OfficeQA | Spreadsheet |
| RFSI | — | ||
| TextGrad | |||
| GEPA | |||
| SkillOpt | |||
| WikiSkill | |||
| RASU | |||
Table 8: Update methods under a fixed RFSI initialization with GPT-5.6-Luna. The highlighted row is RASU.
| Method | Benchmark | ||
|---|---|---|---|
| Initialization | Update | OfficeQA | Spreadsheet |
| RFSI | — | ||
| TextGrad | |||
| GEPA | |||
| SkillOpt | |||
| WikiSkill | |||
| RASU | |||
achieves the highest performance, showing that retrieval-augmented update improves over retrieval-free updates regardless of the initial skill and the target model.
Under LLM-init (RFSI). With GPT-5.6-Luna (Table 8), RASU improves the initial skill by +7.45 and +16.67 points on OfficeQA and SpreadsheetBench, respectively, and outperforms the strongest competing baseline, SkillOpt, by +2.02 (47.56 vs. 45.54) and +4.05 (61.07 vs. 57.02). With Qwen-3.5-9B (Table 7), RASU improves the initial skill by +3.59 and +2.86 points and outperforms the strongest competing baseline, WikiSkill, by +1.08 (38.48 vs. 37.40) and +0.84 (30.60 vs. 29.76). In contrast, TextGrad and GEPA degrade the initial skill on SpreadsheetBench (25.95 and 24.05 vs. 27.74).
Under RASI. Table 6 shows retrieval-free baselines struggle to improve upon the retrieval-augmented initial skill with Qwen-3.5-9B under RASI. On OfficeQA, TextGrad, GEPA, and WikiSkill fall below the initial skill (38.76, 38.18, and 40.12 vs. 40.50), and SkillOpt improves it by only +0.20. On SpreadsheetBench, the largest gain among them is +0.59 (GEPA). RASU, in contrast, improves the initial skill by +1.75 and +1.07 points, reaching 42.25 and 31.55. TextGrad and WikiSkill return the initial skill unchanged on SpreadsheetBench, since no candidate update was improved over the validation set.
Complementarity of the two stages. The two stages contribute gains that neither achieves alone. With Qwen-3.5-9B on OfficeQA, RASI without any update (40.50) already outperforms LLM-init (RFSI) followed by RASU (38.48), and combining both stages yields the best performance (42.25).
A.5 OPTIMIZATION COST
Tables 9 and 10 report the API cost and rollout count of skill optimization with GPT-5.6-Luna. All methods are optimized for the same 2 epochs. The rollout counts differ only because of how each method schedules evaluation. TextGrad, WikiSkill, SkillOpt and RASO update the skill from training rollouts and evaluate the updated skill on the validation set directly. On the other hand, GEPA first re-evaluates each updated skill on a support subset of the training set and proceeds
Table 9: API cost (USD) of skill optimization with GPT-5.6-Luna. The lowest cost in each column is in bold.
| Method | OfficeQA | Spreadsheet | ALFWorld | WebShop |
|---|---|---|---|---|
| TextGrad | 1.45 | 0.97 | 2.04 | 41.03 |
| GEPA | 1.69 | 0.58 | 1.79 | 18.05 |
| SkillOpt | 2.23 | 2.24 | 2.75 | 17.86 |
| WikiSkill | 1.06 | 0.43 | 1.30 | 11.15 |
| RASO | 0.84 | 0.49 | 0.79 | 10.28 |
Table 10: Number of rollouts used for skill optimization, excluding test-set evaluation.
| Method | OfficeQA | Spreadsheet | ALFWorld | WebShop |
|---|---|---|---|---|
| TextGrad | 196 | 320 | 114 | 360 |
| GEPA | 272 | 360 | 174 | 370 |
| SkillOpt | 236 | 360 | 154 | 400 |
| WikiSkill | 196 | 320 | 114 | 360 |
| RASO | 196 | 320 | 114 | 360 |
to validation only when this yields an improvement, which incurs additional rollouts. SkillOpt performs an additional slow, meta update at the end of every epoch, which likewise adds rollouts. RASO therefore uses exactly as many rollouts as TextGrad and WikiSkill, and fewer than GEPA and SkillOpt.
Under this budget, RASO achieves the lowest cost on three of the four benchmarks and remains within 41.03 vs. $10.28).