WikiSkill

如果无法正常显示,请先停止浏览器的去广告插件。
分享至:
1. 2026-08-28 WikiSkill: Compiling Agent Experience into Persistent Knowledge for Skill Evolution Liyan Tang1 , Cyrus Rashtchian1 , Chun-Sung Ferng1 , Andrew Tomkins1 , Da-Cheng Juan1 and Tu Vu1,2 Agent skills package specialized knowledge and workflows into reusable resources that extend AI agent capabilities. Recent work automatically discovers such skills from agent experience, which enables agents to progressively adapt through interaction. However, the insights that guide skill development typically remain scattered across optimization histories, limiting their systematic reuse across iterations. We introduce WikiSkill, a framework that co-evolves agent skills with a persistent knowledge base (wiki). At a high level, WikiSkill separates raw execution experience, accumulated knowledge, and executable skills, while continuously consolidating experience into the wiki, which subsequent skill updates can build on. Across diverse benchmarks and models, WikiSkill consistently outperforms state-of-the-art skill-evolution methods and improves over no-skill baselines in most model-benchmark settings. We find that skill evolution complements model scaling: larger models generally benefit more from evolved skills, while smaller models with skills can outperform substantially larger models without them. We also find that evolved skills transfer effectively across models and model families, and skills evolved by other models can outperform self-evolved skills. Finally, our ablation studies confirm that persistent knowledge accumulation in the wiki is critical for effective skill evolution. These results demonstrate the benefits of systematically accumulating and refining agent experience for developing reusable and transferable skills. 75% Accuracy (%) arXiv:2608.27454v1 [cs.AI] 27 Aug 2026 1 Google Research, 2 Virginia Tech 60% 45% 30% Qwen3.5-4B Qwen3.5-9B No skill EvoSkill Qwen3.6-27B SkillOpt Gemini 3.5 Flash WikiSkill Figure 1 | WikiSkill consistently improves over both the no-skill baseline and existing skill- evolution methods. Interestingly, its advantage becomes more pronounced for stronger models. We report average accuracy across the evaluated benchmarks for each model using no skills or skills evolved by EvoSkill, SkillOpt, and WikiSkill (see Table 1 for details). Corresponding author(s): lytang@google.com, ttvu@google.com © 2026 Google. All rights reserved
2. WikiSkill: Compiling Agent Experience into Persistent Knowledge for Skill Evolution 1. Introduction General-purpose AI agents are increasingly capable of performing complex tasks across domains (Jackson et al., 2025; Merrill et al., 2026; Patwardhan et al., 2026; Phan et al., 2026). However, reliably accomplishing real-world tasks often requires domain-specific expertise (e.g., procedural knowledge and workflows). Agent skills (Chen et al., 2026a; Li et al., 2026; Liu et al., 2026; Zhang et al., 2025) provide a lightweight, open format for capturing such expertise without updating model parameters. At its core, a skill packages instructions, scripts, and other resources into a reusable filesystem-based module (i.e., an organized directory) (Anthropic, 2026; Li et al., 2026; Xia et al., 2026b; Zhang et al., 2025). This design makes specialized knowledge consistent, auditable, and reusable across skill-compatible agents. It also supports progressive disclosure (Jiang et al., 2026), where agents only load relevant content at any given time, which saves context space. More broadly, skills provide a natural mechanism for accumulating knowledge independently of model parameters. Developing effective skills, however, remains challenging. Most agent skills are manually authored, which requires anticipating the procedural knowledge and workflows that an agent will need (Li et al., 2026; Liang et al., 2026; Xu and Yan, 2026). This challenge motivates recent work that iteratively develops agent skills by executing agents on training tasks, analyzing successful and failed trajectories, and refining skills based on the resulting experience (Agrawal et al., 2026; Alzubi et al., 2026; Ni et al., 2026; Ouyang et al., 2026; Yang et al., 2026; Yuksekgonul et al., 2025). A key design question is how to preserve and organize what an agent learns throughout skill evolution. Prior work addresses this question in different ways. EvoSkill (Alzubi et al., 2026) maintains a cumulative history of prior proposals and their evaluation outcomes; Trace2Skill (Ni et al., 2026) extracts and consolidates lessons across execution trajectories into skill updates; and SkillOpt (Yang et al., 2026) uses rejected-edit feedback and epoch-wise meta guidance. However, these methods do not maintain what has been learned as a separate, evolving knowledge representation. Inspired by Karpathy (2026)’s perspective on LLM Wiki, which advocates compiling experience into persistent, compounding knowledge, we ask: Can agent experience be similarly compiled into persistent knowledge to support long-term skill evolution? We introduce WikiSkill, which adds a structured knowledge layer between raw experience and executable procedures (i.e., skills). This layer allows skill development to build on increasingly well-supported and integrated knowledge across iterations, rather than on knowledge scattered across skill-evolution artifacts. WikiSkill organizes the agent workspace into three layers: a Raw Layer that stores immutable execution traces, a Wiki Layer that maintains structured knowledge, and a Skill Layer that contains evolving procedural knowledge (Figure 2). Each iteration involves four components: an Inference Agent that executes rollouts using the current skills, a Wiki Maintainer that consolidates traces into the wiki, a Skill Proposer that uses the wiki and traces to propose skill updates, and a Gating and Rollback mechanism that retains updates that improve validation performance. While skill updates can be rolled back, the wiki persists so that future updates can build on accumulated knowledge. At a high level, these components form a continual loop in which experience is consolidated into persistent knowledge that supports skill evolution. We evaluate WikiSkill across five benchmarks spanning mathematical reasoning (LiveMathemati- canBench (He et al., 2026)), web search (SealQA (Pham et al., 2026)), spreadsheet manipulation (SpreadSheetBench (Ma et al., 2024)), long-context document question answering (OfficeQA (Singhvi et al., 2025)), and interactive embodied tasks (ALFWorld (Shridhar et al., 2021)), using five mod- els from the Qwen (Qwen Team, 2026a,b), Gemma (Gemma Team, 2026), and Gemini (Google DeepMind, 2026) families. We find that WikiSkill outperforms existing skill-evolution methods and improves over no skills in most settings. Interestingly, skill evolution complements model scaling. 2
3. WikiSkill: Compiling Agent Experience into Persistent Knowledge for Skill Evolution Within the Qwen family, WikiSkill improves average performance by 12.3%, 17.5%, and 23.9% for 4B, 9B, and 27B models, respectively, with gains increasing with model scale. At the same time, evolved skills can compensate for substantial model scale: Qwen-3.5-9B with WikiSkill outperforms Qwen-3.6-27B without skills (47.4% vs. 39.4%). We further find that evolved skills transfer effectively across model families and can outperform self-evolved skills. On ALFWorld, for example, Qwen-3.5-9B reaches 70.2% with a Qwen-3.6-27B-evolved skill, compared with 63.4% using its own skill. These results suggest that skill discovery and skill execution are distinct capabilities. Finally, our analysis shows that the persistent wiki is critical to these gains, supporting our hypothesis that accumulating and refining knowledge across iterations improves skill evolution. In summary, our main contributions are: • We introduce WikiSkill, a framework that co-evolves agent skills with a persistent knowledge base that continually organizes and refines knowledge from agent experience. • We demonstrate across five benchmarks and five models that WikiSkill consistently outper- forms existing skill-evolution methods, with ablations confirming the importance of persistent knowledge accumulation. • We systematically study how evolved skills interact with model capability, showing that skill evolution complements model scaling and that evolved skills can transfer effectively across models, sometimes outperforming self-evolved skills. Taken together, we hope that our work will spur more fundamental research on how agents can accumulate, organize, and reuse knowledge from experience. 2. Problem Setup We formalize the task of iterative skill evolution for LLM agents. Let D = {( 𝑥 𝑖 , 𝑦𝑖 )} 𝑖𝑁=1 be a dataset of tasks, where 𝑥 𝑖 denotes a task instance and 𝑦𝑖 denotes its ground-truth answer. We partition D into three disjoint splits: training tasks Dtrain , validation tasks Dval , and testing tasks Dtest . An agent 𝜋 is an LLM-based system equipped with a set of tools U (e.g., a bash shell, search APIs, or file readers) and an active skill set 𝑆 = { 𝑠1 , 𝑠2 , . . . , 𝑠𝑀 }. A skill is a modular, filesystem-based directory that packages domain-specific procedural knowledge into instructions, scripts, and other resources (Chen et al., 2026a; Li et al., 2026; Liu et al., 2026; Zhang et al., 2025). Specifically, each skill contains a SKILL.md file with frontmatter metadata (a unique name and concise description) alongside full procedural instructions and applicability conditions. The skill set 𝑆 is initialized to empty (∅) and developed for each dataset through the evolution process. When executing a task 𝑥 𝑖 , the agent receives the task context 𝑥 𝑖 and access to the available skills 𝑆. The agent interacts with the environment over multiple steps using its tools and skills to generate an execution trajectory 𝜏𝑖 ∼ 𝜋 ( 𝑥 𝑖 ; 𝑆). The trajectory 𝜏𝑖 = ( 𝑜1 , 𝑎1 , 𝑜2 , 𝑎2 , . . . , 𝑜𝑇 , 𝑎𝑇 ) consists of observations 𝑜𝑡 and actions 𝑎𝑡 (which may include calls to tools in U). The final action 𝑎𝑇 emits a predicted answer ˆ𝑦𝑖 . The correctness of the prediction is evaluated by a domain-specific scoring function 𝑓 ( ˆ𝑦𝑖 , 𝑦𝑖 ) ∈ [0, 1]. For any task split Dsplit ⊂ D, rolling out the agent 𝜋 (·; 𝑆) across all task instances in Dsplit yields a corresponding set of execution trajectories Tsplit = {𝜏𝑖 ∼ 𝜋 ( 𝑥 𝑖 ; 𝑆)} ( 𝑥𝑖 ,𝑦𝑖 ) ∈ Dsplit . The performance on a task split R (Tsplit ) is the average score across all task instances ( 𝑥 𝑖 , 𝑦𝑖 ) ∈ Dsplit . In WikiSkill, the system state at iteration 𝑘 is represented by the tuple ( 𝑆𝑘 , 𝑊𝑘 ), where 𝑆𝑘 = { 𝑠1 , . . . , 𝑠𝑀 } denotes the active procedural skill set and 𝑊𝑘 denotes the persistent knowledge base (Wiki). While candidate skill updates are subject to validation gating and rollback upon score degradation, the knowledge base 𝑊𝑘 persists and compounds across iterations. Starting from ( 𝑆0 , 𝑊0 ) = 3
4. WikiSkill: Compiling Agent Experience into Persistent Knowledge for Skill Evolution Skill Layer (skills/)Evolving Procedural Knowledge Wiki Layer (wiki/)Structured Patterns & Evolution Logs Raw Layer (raw/)Immutable Execution Traces Inject Skills Write Traces Step 1: Inference Agent Execute Rollouts on the Training Set Sample Traces Consolidate Patterns Step 2: Wiki Maintainer Perform Root-Cause Analysis on Traces (Reversible, Conditional Update) (Compounding, Never Reset) (Permanent, Write Once) Read Skill, Wiki, Traces Step 3: Skill Proposer Propose Skill Updates from Wiki and Traces Update the Skill if Better Update Wiki Logs Step 4: Gating & Rollback Evaluate Skill Candidate on the Validation Set Next Iteration Figure 2 | Overview of the WikiSkill framework. The agent workspace is structured into three layers: immutable execution traces (Raw Layer), a persistent knowledge base that compounds across iterations (Wiki Layer), and active procedural instructions (Skills Layer). In each evolutionary loop, the Inference Agent runs rollouts (injecting active skills but restricting Wiki access), the Wiki Maintainer consolidates traces into the Wiki, and the Skill Proposer (with the ReAct mechanism) suggests updates while the Wiki is retained across all iterations. (∅, ∅), WikiSkill co-evolves the joint state ( 𝑆𝑘 , 𝑊𝑘 ) across iterations 𝑘 ∈ {1, . . . , 𝐾 }, leveraging training rollouts Ttrain,𝑘 , pattern consolidation, and validation gating based on Tval,𝑘 to maximize final test performance R (Ttest ) on unseen tasks Dtest . 3. Methodology We present WikiSkill, a framework that co-evolves agent skills and a persistent knowledge base (wiki). Built around a three-layer knowledge architecture (§3.1), WikiSkill executes an orchestrated evolutionary loop in which the agent runs rollouts, a Wiki Maintainer consolidates traces and updates the wiki, a Skill Proposer proposes skill updates, and a gating mechanism filters changes (§3.2). 3.1. Three-Layer Knowledge Architecture The WikiSkill workspace consists of three distinct layers, as shown in Figure 2 and described below. Raw Layer (raw/) This layer stores the raw execution traces 𝜏𝑖 ∈ Ttrain,𝑘 collected from training examples in each iteration. These traces capture the agent’s complete step-by-step interactions, including reasoning, tool calls, tool-call outputs, and final answers. In our setup, the Wiki Maintainer and Skill Proposer agents can access these raw traces to analyze agent behavior. To preserve the raw history, this layer is immutable. Wiki Layer (wiki/) This layer compiles raw traces into structured, compounding knowledge and is maintained throughout skill evolution. It contains a pattern directory (patterns/) populated 4
5. WikiSkill: Compiling Agent Experience into Persistent Knowledge for Skill Evolution with individual markdown files that document specific failure modes or successful strategies, along with actionable workarounds. Crucially, this layer provides long-term historical awareness across optimization iterations through an evolution log (logs.md, updated by the Wiki Maintainer) and a skill impact tracker (skill-impact.md, updated programmatically by the outer-loop harness after validation gating). These records allow the Wiki Maintainer and Skill Proposer to (1) observe the complete skill acceptance history so that rejected interventions are not proposed again, (2) track what was proposed in prior iterations and whether those proposals succeeded, and (3) identify which errors recur across iterations. The wiki is not reset between iterations, but rather accumulates and compiles knowledge continuously throughout the evolution process. Skills Layer (skills/) This layer contains the active set of evolved skills 𝑆, which encode the procedural knowledge that the Inference Agent can read. Each skill directory in WikiSkill contains two files: SKILL.md, which contains the full content of the skill; and PURPOSE.md, which maps the skill back to the motivating Wiki patterns that inspired its creation or modification. A detailed example of interactions between the Skill Layer and the Wiki Layer is illustrated in Figure 3 and explained in the case study in Section 5.3. 3.2. Evolutionary Agents and Wiki Orchestration The WikiSkill loop consists of four components. In each iteration, the Inference Agent (§3.2.1) executes tasks using the active skills in skills/, producing immutable execution traces in raw/. During the training rollouts, the Inference Agent is restricted from accessing the Wiki Layer, as our ablation study (§5.1) shows that allowing wiki access during training negatively affects skill development. Next, the Wiki Maintainer (§3.2.2) analyzes these raw traces alongside the existing wiki/ layer to diagnose failures and extract successful strategies, updating the persistent pattern catalog and evolution logs. The Skill Proposer (§3.2.3) then reviews the updated wiki and reads execution traces from the latest iteration to generate or modify candidate skills in skills/. Finally, a Gating and Rollback mechanism (§3.2.4) evaluates the candidate skills on a validation split, accepting successful modifications or rolling back the skill set if the changes degrade performance. The entire evolution algorithm is described in Algorithm 1 in Appendix A. 3.2.1. Skill Provisioning for the Inference Agent At iteration 𝑘, the Inference Agent 𝜋 is conditioned on the active skill set 𝑆𝑘 −1 and executes a multi-turn trajectory using environment tools U: 𝜏𝑖 ∼ 𝜋 ( 𝑥 𝑖 ; 𝑆𝑘 −1 ) (1) In WikiSkill, the full content of active skills 𝑆𝑘 −1 is injected directly into the Inference Agent’s system prompt. Following prior work (Ni et al., 2026; Yang et al., 2026), this full-injection setting ensures that procedural instructions are immediately available during task execution, thereby eliminating skill triggering or retrieval failures as confounding variables in our study. 3.2.2. Wiki Maintainer: Pattern Consolidation At iteration 𝑘, after obtaining rollout traces Ttrain,𝑘 on the training split Dtrain , we sample a subset of successful and failing execution traces Tsample,𝑘 ⊂ Ttrain,𝑘 (see Appendix C for sampling budget and stratification criteria) to avoid context window limitations. The Wiki Maintainer agent MWM consolidates these observations into the persistent wiki 𝑊𝑘 −1 , producing the intermediate wiki state 5
6. WikiSkill: Compiling Agent Experience into Persistent Knowledge for Skill Evolution 𝑊𝑘′ : 𝑊𝑘′ ← MWM (𝑊𝑘 −1 , Tsample,𝑘 ) (2) The Wiki Maintainer agent receives the full wiki context 𝑊𝑘 −1 alongside sampled traces Tsample,𝑘 . It performs root cause analysis on the failing tasks, and extracts successful strategies from the passing tasks. In each iteration, the Wiki Maintainer can create new pattern pages under wiki/patterns/ and update existing pattern pages with new evidence or refined solutions. Updates to pattern pages are applied using incremental, patch-based editing (e.g., appending, replacing, or inserting text spans). Whenever patterns are modified, the Wiki Maintainer revises the index.md catalog to reflect the current state and appends a summary of the iteration’s findings to the evolution log logs.md. There is no hard limit on the number of patterns created or updated per iteration; the Wiki Maintainer decides what updates are warranted based on the traces and the current wiki state. 3.2.3. Wiki-Informed Skill Proposer The Proposer MP is an LLM-based agent responsible for skill discovery and refinement. At iteration 𝑘, the proposer operates in a multi-turn ReAct style (Yao et al., 2023). To avoid context window exhaustion when analyzing long execution histories, the proposer is not given a fixed set of pre- sampled traces; instead, it is initially provided with the wiki index 𝐼 (𝑊𝑘′ ), the historical skill impact tracker (skill-impact.md), and a concise summary of all training task outcomes (pass/fail status, predictions and ground-truth answers). Operating as an autonomous agent, it actively reasons and uses environment tools (read_file) to select and inspect specific pattern pages and raw execution traces 𝜏𝑖 ∈ Ttrain,𝑘 on demand to diagnose root causes before synthesizing a proposal 𝑃𝑘 : 𝑃 𝑘 ← MP (𝑊𝑘′ , 𝑆𝑘 −1 , Ttrain,𝑘 ) (3) In each iteration, the Skill Proposer produces an atomic proposal 𝑃𝑘 that targets a single skill, either creating a new skill or applying an incremental, patch-based edit to the targeted existing skill. 3.2.4. Gating and Rollback Once a proposal 𝑃𝑘 is generated, it is applied to the workspace to yield a candidate skill set 𝑆𝑘′ = Apply( 𝑆𝑘 −1 , 𝑃 𝑘 ). The system evaluates 𝑆𝑘′ on the validation split Dval , obtaining validation traces Tval,𝑘 and score R (Tval,𝑘 ). The acceptance decision is governed by: ( 𝑆𝑘′ if R (Tval,𝑘 ) > R best 𝑆𝑘 ← (4) 𝑆𝑘 −1 otherwise If accepted, the candidate skills are preserved as the new active skill set 𝑆𝑘 , and the benchmark performance threshold R best is updated to R (Tval,𝑘 ). Prior to the evolution loop, R best is initialized to the baseline validation score R (Tval,0 ) obtained by evaluating the empty skill set 𝑆0 on Dval . If the validation score reaches the maximum (R best = 1.0) at any point during evolution, the evolution loop terminates early. If rejected, the system discards the candidate skill modifications and reverts the skill set to the most recent successful configuration 𝑆𝑘 −1 . Notably, the wiki 𝑊𝑘 is never rolled back regardless of the acceptance decision; accumulated patterns and logs persist across all iterations to ensure long-term knowledge retention. Following each validation evaluation, the outer-loop orchestration harness programmatically appends an entry to wiki/skill-impact.md via 𝑊𝑘 ← Update(𝑊𝑘′ , 𝑃 𝑘 , R (Tval,𝑘 ) , 𝑎𝑘 ), recording the proposal metadata, target skill name, unified diff of the modification, validation score R (Tval,𝑘 ), and final acceptance outcome 𝑎𝑘 ∈ {Accepted, Rejected}. This completes the wiki state transition 𝑊𝑘 −1 → 𝑊𝑘 for iteration 𝑘, providing an objective, ground-truth audit trail of past interventions that the Skill Proposer can consult in subsequent iterations to avoid repeating failed modifications. 6
7. WikiSkill: Compiling Agent Experience into Persistent Knowledge for Skill Evolution 4. Experiments and Results 4.1. Experimental Setup Datasets We evaluate across five benchmarks spanning diverse domains: mathematical reasoning (LiveMathematicianBench (LiveMath) (He et al., 2026)), web search (SealQA (Pham et al., 2026)), spreadsheet manipulation (SpreadsheetBench (SpreadSheet) (Ma et al., 2024)), long-context document question answering OfficeQA (Singhvi et al., 2025)), and interactive embodied tasks (ALFWorld (Shridhar et al., 2021)). Dataset details and statistics are provided in Appendix B. Baselines We compare WikiSkill against three representative skill-evolution baselines, including Trace2Skill (Ni et al., 2026), EvoSkill (Alzubi et al., 2026), and SkillOpt (Yang et al., 2026), all of which share the same general loop of rolling out an agent, analyzing execution traces, proposing skill modifications, and gating changes via validation. We also evaluate each model without skills as a no-skill baseline. A detailed description and an analysis of the complexity of optimizer API calls across these frameworks are provided in Appendix D. We focus our comparison on dedicated skill-evolution frameworks rather than general automatic prompt optimizers (e.g., GEPA (Agrawal et al., 2026)), following prior work that shows specialized skill-evolution pipelines consistently outperform general prompt optimization methods (Yang et al., 2026). Models We experiment with both closed and open-weight models to evaluate WikiSkill and the baselines. For closed models, we use Gemini-3.5-Flash (Google DeepMind, 2026). For open- weight models, we evaluate Qwen-3.5-4B/9B-Instruct (Qwen Team, 2026a), Qwen-3.6-27B (Qwen Team, 2026b), and Gemma-4-31B-It (Gemma Team, 2026), which we deploy using the vLLM framework (Kwon et al., 2023). 4.2. Main Results We evaluate WikiSkill across models and tasks and study whether evolved skills transfer across models. Table 1 presents the main skill-evolution results across models and tasks, including how the benefits of skill evolution vary with model scale, while Table 2 presents the cross-model skill transfer results. We analyze these results in detail below. To account for variability, we repeat the full evolution process across three independent runs for each method, and all reported scores represent the average test performance across the three resulting evolved skill sets. Statistical significance of performance differences is evaluated using paired bootstrap testing at 𝑝 < 0.05 (Appendix C). Note that for Gemini-3.5-Flash on ALFWorld, all evolution methods yield the same performance (85.9%) as the no-skill baseline because Gemini-3.5- Flash achieves a 100% score on the validation split (Dval ) before skill evolution. This also explains why Gemini-3.5-Flash is marked with ‘−’ as a skill source on ALFWorld in the cross-model transfer evaluation (Table 2). 4.2.1. Skill Evolution Across Models and Tasks WikiSkill yields consistent improvements across models and datasets As shown in Table 1, WikiSkill achieves the highest average performance across all five models. Compared with the strongest competing skill-evolution method for each model, WikiSkill improves average performance by 3.3, 5.1, 10.0, 5.8, and 12.0 points for Qwen-3.5-4B, Qwen-3.5-9B, Qwen-3.6-27B, Gemma-4-31B, and Gemini-3.5-Flash, respectively. These improvements are consistent across settings: WikiSkill improves over the no-skill baseline in most model-dataset pairs and matches or exceeds the strongest competing 7
8. WikiSkill: Compiling Agent Experience into Persistent Knowledge for Skill Evolution ModelMethodLiveMathSealQASpreadSheetOfficeQAALFWorldAvg. Qwen-3.5-4BNo skill Trace2Skill EvoSkill SkillOpt WikiSkill29.1 31.5 41.7 48.7 49.732.5 37.6 37.3 33.3 39.414.6 17.5 18.6 14.0 21.130.2 31.0 29.5 34.5 28.524.4 42.8 41.5 45.3 53.726.2 32.1 33.7 35.2 38.5 Qwen-3.5-9BNo skill Trace2Skill EvoSkill SkillOpt WikiSkill28.2 33.1 58.1 48.7 56.326.3 36.9 34.5 29.4 43.124.3 26.5 35.4 29.0 33.635.9 38.4 34.9 38.0 40.534.7 48.8 48.5 55.7 63.429.9 36.7 42.3 40.2 47.4 Qwen-3.6-27BNo skill Trace2Skill EvoSkill SkillOpt WikiSkill33.9 36.3 57.3 51.9 61.927.5 37.3 32.9 34.5 41.640.8 53.3 59.5 53.2 81.742.1 54.3 52.5 54.8 53.752.8 55.5 64.2 59.2 77.639.4 47.3 53.3 50.7 63.3 Gemma-4-31BNo skill Trace2Skill EvoSkill SkillOpt WikiSkill33.9 32.3 29.8 40.1 56.730.6 37.7 38.4 36.1 41.248.3 58.5 56.4 63.1 68.043.3 43.2 39.9 44.4 44.250.4 57.2 52.6 61.9 64.441.3 45.8 43.4 49.1 54.9 Gemini-3.5-FlashNo skill Trace2Skill EvoSkill SkillOpt WikiSkill33.0 41.9 44.6 49.7 72.629.4 44.3 43.6 28.2 44.750.5 56.0 55.4 66.1 76.648.6 50.0 51.2 49.8 60.785.9 85.9 85.9 85.9 85.949.5 55.6 56.1 55.9 68.1 Table 1 | Method comparison across inference models and test sets. Each horizontal block evaluates a specific inference model without skills (No skill) and with skills developed by different skill-evolution methods. To ensure a fair comparison, all skill-evolution methods start with an empty skill set, and evolved skills are injected into the Inference Agent’s prompt at inference time. All reported scores are the average test performance across three independent runs of the full evolution process. Our method (WikiSkill) is highlighted. Bold indicates the best performance for each dataset; multiple bold results indicate methods that are not significantly different from the best under a paired bootstrap test with 1,000 iterations ( 𝑝 < 0.05). method across all models in the average performance across 5 datasets. The improvements also span diverse domains and can be substantial. For example, WikiSkill improves Gemini-3.5-Flash from 33.0% to 72.6% on LiveMath and from 50.5% to 76.6% on SpreadSheet, while improving Qwen-3.6-27B from 52.8% to 77.6% on ALFWorld. In contrast, existing skill-evolution methods are less consistent. For example, EvoSkill improves Qwen-9B substantially on LiveMath (28.2% → 58.1%) but degrades Gemma-4-31B on the same benchmark (33.9 % → 29.8%), while SkillOpt degrades Gemini-3.5-Flash on SealQA (29.4 % → 28.2%). These results show that WikiSkill produces both stronger and more reliable improvements across settings. The benefits of skill evolution increase with model capability and complement model scaling Within the Qwen family, the average improvement from WikiSkill increases with model scale, from +12.3 points for Qwen-3.5-4B to +17.5 points for Qwen-3.5-9B and +23.9 points for Qwen-3.6-27B. This trend is particularly pronounced on SpreadSheet, where WikiSkill improves the three models by +6.5, +9.3, and +40.9 points, respectively, showing that the benefits of skill evolution can increase 8
9. WikiSkill: Compiling Agent Experience into Persistent Knowledge for Skill Evolution substantially with model scale. At the same time, evolved skills can compensate for substantial differences in model scale: Qwen-3.5-9B with WikiSkill reaches 47.4% average accuracy, outperform- ing Qwen-3.6-27B without skills at 39.4%, while Qwen-3.5-4B with WikiSkill reaches 38.5%. Our results suggest that model capability and evolved procedural knowledge provide complementary sources of performance: stronger models can derive greater value from skill evolution by developing and executing more effective skills, while effective skills can allow smaller models to outperform substantially larger models that do not use skills. The benefits of skill evolution also vary substantially across datasets Our results suggest that some datasets are more amenable to skill evolution than others. For Qwen-3.6-27B, WikiSkill improves performance by 11.6 points on OfficeQA and 14.1 points on SealQA, compared with 24.8 points on ALFWorld, 28.0 points on LiveMath, and 40.9 points on SpreadSheet. Similar differences appear across other models. LiveMath consistently benefits from skill evolution, with gains ranging from 20.6 to 39.6 points across all five models, while ALFWorld yields gains of 14.0 to 29.3 points across the four models for which WikiSkill evolves skills (excluding Gemini-3.5-Flash due to early stopping). In contrast, OfficeQA presents unique challenges due to its long-context document-retrieval requirements. Larger models effectively leverage evolved search workflows to navigate lengthy documents (e.g., +11.6 points for Qwen-3.6-27B and +12.1 points for Gemini-3.5-Flash), whereas Qwen-3.5-4B struggles to execute these multi-step search workflows across long contexts and reverts to its default reading behavior, resulting in slight degradation. 4.2.2. Cross-Model Skill Transfer with WikiSkill Evolved skills transfer effectively across models, and transferred skills can outperform self-e- volved skills Table 2 evaluates how skills evolved by WikiSkill transfer across inference models when developed using different source models. Transferred skills frequently outperform both the no-skill baseline and self-evolved skills. For example, Qwen-3.6-27B skills improve Qwen-3.5-9B to 50.5% on SpreadSheet, compared with 24.3% without skills and 33.6% with self-evolved skills, and improve Gemma-4-31B to 73.7% on LiveMath, compared with 33.9% and 56.7%, respectively. Notably, effective transfer also occurs from smaller to larger models: Qwen-3.5-4B skills improve Gemma-4-31B to 73.1% on LiveMath and 66.9% on ALFWorld. Our results indicate that stronger source models do not necessarily produce better skills and that procedural knowledge developed by one model’s experience can transfer across model scales and families. The transferability of evolved skills depends on whether they capture general procedures or model-specific workarounds Our results in Table 2 suggest that WikiSkill can produce both general procedural knowledge that transfers across models and model-specific strategies that can cause negative transfer. LiveMath skills transfer particularly well across models: Qwen-3.5-4B and Qwen-3.6-27B skills improve Gemini-3.5-Flash from 33.0% to 67.5% and 73.9%, respectively. In contrast, SpreadSheet exhibits strong source-target interactions. Qwen-3.5-4B skills reduce Gemini- 3.5-Flash performance from 50.5% to 18.1%, while Qwen-3.6-27B skills improve it to 63.4%. Our error analysis identifies two factors behind this negative transfer. First, Qwen-3.5-4B skills encode low-level workarounds, such as single-line Python commands and string-conversion rules, which help the smaller model avoid execution failures but constrain stronger models such as Gemini-3.5-Flash from using comprehensive end-to-end scripts. Second, fragmented diagnostic procedures introduce redundant tool calls that can exhaust Gemini-3.5-Flash’s interaction budget before task completion. The utility of transferred skills also depends on the inference model’s ability to execute them We now turn toward how different inference models use skills developed by the same source model. 9
10. WikiSkill: Compiling Agent Experience into Persistent Knowledge for Skill Evolution ModelSkill Source LiveMathSealQASpreadSheetOfficeQAALFWorld Qwen-3.5-4BNone Qwen-3.5-4B Qwen-3.6-27B Gemini-3.5-Flash29.1 49.7 59.7 62.632.5 39.4 38.8 37.314.6 21.1 33.0 23.030.2 28.5 25.4 32.224.4 53.7 57.0 - Qwen-3.5-9BNone Qwen-3.5-4B Qwen-3.5-9B Qwen-3.6-27B Gemini-3.5-Flash28.2 61.0 56.3 59.1 53.026.3 40.4 43.1 40.4 39.624.3 25.0 33.6 50.5 48.835.9 40.3 40.5 39.9 40.534.7 69.2 63.4 70.2 - Qwen-3.6-27BNone Qwen-3.5-4B Qwen-3.6-27B Gemini-3.5-Flash33.9 62.6 61.9 65.127.5 41.6 41.6 51.040.8 40.6 81.7 76.042.1 52.9 53.7 52.552.8 72.1 77.6 - Gemma-4-31BNone Qwen-3.5-4B Qwen-3.6-27B Gemma-4-31B Gemini-3.5-Flash33.9 73.1 73.7 56.7 61.830.6 38.8 37.7 41.2 37.748.3 37.1 72.0 68.0 68.843.3 42.1 44.2 44.2 43.450.4 66.9 66.9 64.4 - Gemini-3.5-FlashNone Qwen-3.5-4B Qwen-3.6-27B Gemini-3.5-Flash33.0 67.5 73.9 72.629.4 40.0 43.5 44.750.5 18.1 63.4 76.648.6 48.5 47.7 60.785.9 87.3 86.8 - Table 2 | Cross-model skill transfer results. We evaluate inference models using no skills (None) and skills evolved by WikiSkill with Qwen-3.5-4B, Qwen-3.6-27B, and Gemini-3.5-Flash as source models. Skills are injected into the Inference Agent’s system prompt at inference time. Highlighted rows indicate self-evolved skills, where the inference model and skill source are the same. The highest performance per benchmark within each model block is bolded. ‘−’ indicates that the source model reached 100% validation performance before skill evolution, so no skill was evolved. Within the Qwen family, stronger models can derive greater value from the same procedural knowledge. For example, Qwen-3.6-27B SpreadSheet skills improve Qwen-3.5-4B, Qwen-3.5-9B, and Qwen-3.6- 27B over their no-skill baselines by 18.4%, 26.2%, and 40.9%, respectively. OfficeQA provides a case where a model develops skills that are more useful to another model than to itself: Qwen-3.5-4B skills decrease its own performance from 30.2% to 28.5%, but improve Qwen-3.6-27B from 42.1% to 52.9%. Our trajectory analysis suggests that in long-context settings, smaller models can become distracted by lengthy document contexts and fail to follow detailed multi-step search instructions, instead reverting to their default document-reading behavior. Stronger models, in contrast, more reliably execute the structured navigation procedures specified by the skill across long contexts. Taken together, these results distinguish two capabilities that self-evolution normally conflates: discovering useful procedural knowledge from experience and effectively executing that knowledge at inference time. 5. Analysis and Discussion 5.1. Role of Persistent Knowledge in Skill Evolution To understand where persistent knowledge contributes to skill evolution, we ablate wiki access for the two components that can use it during evolution (Table 3). Specifically, using Gemini-3.5-Flash, we 10
11. WikiSkill: Compiling Agent Experience into Persistent Knowledge for Skill Evolution WikiSkill Components Inference Agent Wiki Access Skill Proposer Wiki Access No skill ✓ p ✓ p p p ✓ ✓ Benchmarks LiveMathSealQASpreadSheetOfficeQAAvg. 33.0 43.8 51.3 64.8 72.629.4 42.0 38.4 42.8 44.750.5 44.4 49.9 80.2 76.648.6 51.0 55.2 55.6 60.740.4 45.3 48.7 60.9 63.7 Table 3 | Ablation study on WikiSkill using Gemini-3.5-Flash. We evaluate performance across benchmarks under four configurations that vary whether the Inference Agent and Skill Proposer have wiki access during skill evolution. When the Skill Proposer has no Wiki access, we also remove the Wiki Maintainer, eliminating persistent knowledge accumulation across iterations. The bottom row represents our default WikiSkill configuration. independently vary wiki access for the Inference Agent during training rollouts and the Skill Proposer during skill development, which results in four configurations. When the Skill Proposer has no wiki access, we also remove the Wiki Maintainer, eliminating persistent knowledge accumulation across iterations. Our default WikiSkill configuration gives wiki access to the Skill Proposer but not the Inference Agent. Persistent wiki knowledge dramatically improves skill evolution As shown in Table 3, when wiki access for the Inference Agent is disabled, providing the Skill Proposer with access to the persistent wiki increases average benchmark performance from 48.7% to 63.7% (+15.0%), with substantial gains on LiveMath (51.3% to 72.6%) and SpreadsheetBench (49.9% to 76.6%). Without persistent knowledge accumulated across iterations, the Skill Proposer struggles to resolve intricate failure modes. Wiki access for the Inference Agent during evolution degrades final skill quality When the Skill Proposer has access to the persistent wiki, providing the Inference Agent with wiki access during training rollouts reduces average benchmark performance from 63.7% to 60.9%, with a substantial drop on LiveMath from 72.6% to 64.8%. We hypothesize that when the Inference Agent has access to both skills and the wiki during training rollouts, some task-solving knowledge may be obtained directly from the wiki rather than the skills, which can make the resulting trajectories less informative for skill development. 5.2. Qualitative Analysis: Skill and Wiki Dynamics To better understand how WikiSkill evolves knowledge and skills across models and datasets, we analyze the wiki patterns accumulated and skills produced during evolution (Table 4) and when successful skill updates are accepted across iterations (Appendix Table 5). WikiSkill continuously accumulates wiki patterns while producing concise skills Table 4 sum- marizes the creation and editing of skills and wiki patterns across models and benchmarks, along with their average lengths. Across models, Qwen models produce longer procedural skills (118.9-128.6 lines), whereas Gemma-4-31B and Gemini-3.5-Flash produce more compact skills (45.1 and 81.2 lines, respectively). Wiki pattern accumulation also varies across models, with 6.3-8.9 patterns created 11
12. WikiSkill: Compiling Agent Experience into Persistent Knowledge for Skill Evolution Active Skill Layer (skills/) Persistent Wiki Layer (wiki/) skill-impact.md Iteration 0: create goal-directed-action @@ -0,0 +1,128 @@ - /dev/null + goal-directed-action/SKILL.md + # Goal-Directed Action +… Iteration 1: create break-repetition-loop … Iteration 4: update break-repetition-loop … break-repetition-loop REJECTED Prior Rejection History Explains Skill Rationale PURPOSE.md Created as break-repetition-loop. Previous attempt goal-directed-action was rejected for being too abstract. This version is more concise and uses concrete action patterns. ACCEPTED ACCEPTED Accepted Proposed Skill Update logs.md Iteration 0 - Create: take-examine-move-loop.md (train: 00, 02) - Reject: skill 'goal-directed-action' (val score = 0.72) Iteration 1 - Errors Re-occurring (train: 01, 02) - Use-Examine Loop (NEW) in train: 30, 31 - Append fresh evidence to take-examine-move-loop.md - Accept skill 'break-repetition-loop' (val score = 0.78) … Evolution Log Chronologically Records Patterns and Decisions patterns take-examine-move-loop.md Agent takes an item, examines it, puts it back, and repeat. Evidence: Iter 0: train: 00, 02 | Iter 1: train: 01 | Iter 2-4: train: 02 persists; 00/01 show recovery from loops multi-operation-loop.md Cycles actions on same item without checking completion. Evidence: Iter 2: train: 22, 24 | Iter 3-4: train: 24 persists Documented Patterns Motivate the Skill Update Proposals at Iterations 1 and 4 SKILL.md Trigger: Apply the skill whenever the agent is about to repeat an action. Rule: Never Return an Item to Its Origin Location - Failing: take clock from desk -> examine -> move clock to desk - Successful: take clock -> go to shelf -> move clock to shelf Rule: Agents that DO take items and perform operations often get stuck repeating the same operation. Each Operation Type ONCE Per Item Anti-Pattern: Take -> Operate -> Move -> Take (INFINITE CYCLE) - Fix: After completing take -> operate -> move ONCE, do NOT repeat. other-skill …… Figure 3 | Case study of Wiki-guided skill evolution on ALFWorld (Qwen-3.6-27B). The persistent Wiki Layer compiles cross-iteration patterns, an audit trail of past proposal diffs and acceptance decisions, and chronological history. Informed by the rejection of the skill proposal at Iteration 0, the proposer synthesizes the accepted skill update at Iteration 1, and later refines it with new pattern evidence. File contents are simplified for clarity. and 7.0–18.4 edits on average. Across benchmarks, SpreadSheet produces the longest skills (142.5 lines) and most wiki patterns (9.8), whereas LiveMath produces the shortest skills (84.6 lines) and fewest wiki patterns (4.4). Overall, these results show that both skill structure and wiki accumulation vary across models and datasets. Skill refinement continues throughout the evolution process Appendix Table 5 groups accepted skill updates into early (Iterations 0–1), middle (Iterations 2–4), and late (Iterations 5–7) stages. Across models, the initial stage accounts for 39%-52% of accepted updates, with substantial fractions continuing into the middle and late stages. A similar pattern holds across benchmarks, where 39%-58% of accepted updates occur during the initial stage. Continued refinement is particularly pronounced on SealQA, where 33% of accepted updates occur in the middle stage and 28% in the late stage. Combined with the ablation in Section 5.1, these results suggest that persistent knowledge accumulation supports continued skill refinement across iterations. The Wiki Layer preserves recurring errors, rejected proposals, and evolution history, which provide the Skill Proposer with accumulated context for subsequent updates. Below, we present a case study that illustrates how this accumulated knowledge informs skill evolution. 12
13. WikiSkill: Compiling Agent Experience into Persistent Knowledge for Skill Evolution Skills Category Wiki Patterns Edit (Proposed / Accepted)Avg. LengthCreateEditAvg. Length By Model (All-Dataset Average) Qwen-3.5-4B 3.1 / 1.6 Qwen-3.5-9B 4.6 / 1.4 Qwen-3.6-27B 4.4 / 1.5 Gemma-4-31B 4.8 / 1.3 Gemini-3.5-Flash 2.3 / 1.24.9 / 1.3 3.4 / 0.7 3.6 / 0.8 3.2 / 0.8 5.7 / 1.1126.2 128.6 118.9 45.1 81.28.8 7.3 6.5 6.3 8.918.4 10.9 17.9 13.7 7.048.2 26.6 47.7 23.7 18.1 By Benchmark (All-Model Average) LiveMath 1.9 / 1.1 SealQA 4.9 / 0.9 SpreadSheet 4.5 / 1.4 OfficeQA 4.7 / 1.8 ALFWorld 3.9 / 1.66.1 / 1.9 3.1 / 0.4 3.5 / 1.1 3.3 / 0.3 4.1 / 0.884.6 98.5 142.5 102.9 93.54.4 9.4 9.8 8.3 5.812.1 15.9 11.3 14.9 14.331.7 26.9 38.5 31.4 40.6 Create (Proposed / Accepted) Table 4 | Statistics of evolved skills and wiki patterns across inference models (top) and bench- marks (bottom). For skills, we report the numbers of proposed/accepted creations and edits, along with average length in markdown lines. For wiki patterns, we report the numbers of creations and edits, along with average length in markdown lines. All wiki pattern creations and edits are retained. 5.3. Case Study: Anatomy of Wiki-Guided Skill Evolution To illustrate how the Wiki and Skill Layers interact during evolution, we trace a concrete example from Qwen-3.6-27B on ALFWorld, as shown in Figure 3 (simplified for presentation). At Iteration 0, the Wiki Maintainer identifies a basic looping behavior (take-examine-mov e-loop.md), while the Skill Proposer proposes goal-directed-action, which fails to improve performance on the validation set and is rejected. Crucially, skill-impact.md preserves the proposal diff and rejection outcome, allowing subsequent skill updates to account for this failed attempt. Informed by this audit trail, the Skill Proposer creates break-repetition-loop at Iteration 1 with a concrete action rule (Never Return an Item to Its Origin Location), which is accepted. As new loop variants emerge across rollouts (multi-operation-loop.md), the Wiki Maintainer accumulates new evidence in the persistent wiki. Guided by these accumulated wiki patterns and newly stored trajectories (not shown in the figure), the Skill Proposer further refines the skill at Iteration 4 with a new rule (Each Operation Type ONCE Per Item). This example illustrates how persistent knowledge from prior iterations informs subsequent skill refinement. 6. Related Work Experience-Driven Agent Skill Evolution Agent skills encode reusable procedural knowledge that allows LLM agents to leverage past experience for future tasks (Anthropic, 2026; Li et al., 2026; Wang et al., 2026; Xia et al., 2026b; Xu and Yan, 2026; Zhang et al., 2025; Zhou et al., 2026). Recent frameworks enable agents to self-improve by discovering and refining procedural knowledge from past execution traces (Agrawal et al., 2026; Lu et al., 2026; Ouyang et al., 2026; Xia et al., 2026a; Yuksekgonul et al., 2025). Methods like EvoSkill (Alzubi et al., 2026), Trace2Skill (Ni et al., 2026), and SkillOpt (Yang et al., 2026) use specialized agent pipelines to analyze task rollouts and update modular skill documents (Zhang et al., 2026a). However, these methods do not maintain what has been learned as a separate, evolving knowledge representation. WikiSkill introduces a persistent Wiki Layer that consolidates experience into structured knowledge across iterations, allowing subsequent 13
14. WikiSkill: Compiling Agent Experience into Persistent Knowledge for Skill Evolution skill updates to build systematically on accumulated knowledge. Skill-Augmented Agents and Agent Self-Improvement Beyond constructing high-quality skills, skill-augmented agents must effectively select and utilize relevant skills during execution (Chen et al., 2026a; Liu et al., 2026). As the number of reusable skills grows, recent work has explored skill retrieval to select relevant skills from a library for each task (Cho et al., 2026; Shi et al., 2026; Su et al., 2026; Ye et al., 2026; Zheng et al., 2026). WikiSkill instead focuses on skill quality itself, separately from skill retrieval. Another line of work optimizes the broader agent harness, including prompts, context, tools, memory, and workflows (Chen et al., 2026b; Lee et al., 2026; Lin et al., 2026; Lou et al., 2026; Zhang et al., 2026b). These methods improve the agent system by analyzing execution traces and environment feedback to search for better agent configurations. This direction is complementary to WikiSkill, which focuses specifically on evolving reusable procedural skills while holding the broader agent harness fixed. 7. Conclusion We presented WikiSkill, a framework that co-evolves agent skills with a persistent, compounding knowledge base (wiki). By structuring the agent workspace into three distinct layers, WikiSkill enables skill development to build on increasingly well-supported and integrated knowledge across iterations. An orchestrated loop consolidates experience into the wiki, proposes skill refinements from accumulated knowledge, and gates changes based on validation performance. Empirically, WikiSkill consistently outperforms existing skill-evolution methods across five benchmarks and five inference models and improves over no-skill baselines in most model-dataset pairs. Beyond these overall gains, skill evolution complements model scaling: larger models generally benefit more from evolved skills, while smaller models with skills can outperform substantially larger models without them. At the same time, evolved skills transfer effectively across models and model families and can outperform self-evolved skills. Finally, our ablations confirm that persistent knowledge accumulation is critical for effective skill evolution. Limitations WikiSkill has several limitations that motivate future work. First, to isolate skill quality and avoid confounding effects from skill retrieval, our study follows prior work by directly injecting active skills into the agent prompt. This setup does not evaluate skill retrieval or triggering, which becomes important as the number of available skills grows. Second, our validation gating requires each accepted proposal to improve the validation score, which excludes neutral proposals that preserve immediate performance but could enable gains in subsequent iterations. We adopt this strict criterion following prior skill-evolution frameworks (Alzubi et al., 2026; Yang et al., 2026) to ensure a fair comparison. Exploring more flexible acceptance criteria is an important direction for future work. Third, the Wiki Layer continuously accumulates pattern pages, evolution logs, and proposal diffs across iterations, but WikiSkill currently lacks an automated mechanism to prune the wiki. Such pruning may become necessary as knowledge accumulates over longer evolution runs. Finally, while our benchmark suite includes long-context document reasoning (OfficeQA) and multi-step tool interactions, it does not cover very long-horizon tasks that span hundreds of environment actions or multiple hours. Developing online skill adaptation methods that refine procedural knowledge within a single long execution rollout remains an important direction for future work. 14
15. WikiSkill: Compiling Agent Experience into Persistent Knowledge for Skill Evolution AI Disclosure Large language models and coding agents are used to aid with and polish writing and generate some tables and plots. References L. A. Agrawal, S. Tan, D. Soylu, N. Ziems, R. Khare, K. Opsahl-Ong, A. Singhvi, H. Shandilya, M. J. Ryan, M. Jiang, C. Potts, K. Sen, A. Dimakis, I. Stoica, D. Klein, M. Zaharia, and O. Khattab. GEPA: Reflective prompt evolution can outperform reinforcement learning. In The Fourteenth International Conference on Learning Representations, 2026. URL https://openreview.net/forum?id=RQm2KQTM5r. S. Alzubi, N. Provenzano, J. Bingham, W. Chen, and T. Vu. Evoskill: Automated skill discovery for multi-agent systems. arXiv preprint arXiv:2603.02766, 2026. URL https://arxiv.org/abs/26 03.02766. Anthropic. A complete guide to building skills for claude. https://claude.com/blog/comple te-guide-to-building-skills-for-claude, January 2026. S. Chen, J. Gai, R. Zhou, J. Zhang, T. Zhu, J. Li, K. Wang, Z. Wang, Z. Chen, K. Kaleb, et al. Skillcraft: Can llm agents learn to use tools skillfully? arXiv preprint arXiv:2603.00718, 2026a. URL https://arxiv.org/abs/2603.00718. T. Chen, S. Lu, K. Zhao, W. Meng, H. Teng, T. Li, C. Li, X. Liu, J. Liang, Z. Zhang, et al. Harnessx: A composable, adaptive, and evolvable agent harness foundry. arXiv preprint arXiv:2606.14249, 2026b. URL https://arxiv.org/abs/2606.14249. H. Cho, R. Kang, and Y. Kim. Skillret: A large-scale benchmark for skill retrieval in llm agents. arXiv preprint arXiv:2605.05726, 2026. URL https://arxiv.org/abs/2605.05726. Gemma Team. Gemma 4 technical report. arXiv preprint arXiv:2607.02770, 2026. URL https: //arxiv.org/abs/2607.02770. Google DeepMind. Gemini 3.5 flash. https://deepmind.google/models/model-cards/gem ini-3-5-flash/, May 2026. L. He, Q. Yu, H. Dong, B. Liao, X. Xu, M. Goldblum, J. Bian, and N. Mesgarani. Livemathematician- bench: A live benchmark for mathematician-level reasoning with proof sketches. arXiv preprint arXiv:2604.01754, 2026. URL https://arxiv.org/abs/2604.01754. D. Jackson, W. Keating, G. Cameron, and M. Hill-Smith. Aa-omniscience: Evaluating cross-domain knowledge reliability in large language models. arXiv preprint arXiv:2511.13029, 2025. URL https://arxiv.org/abs/2511.13029. Y. Jiang, D. Li, H. Deng, B. Ma, X. Wang, Q. Wang, and G. Yu. Sok: Agentic skills–beyond tool use in llm agents. arXiv preprint arXiv:2602.20867, 2026. URL https://arxiv.org/abs/2602.20867. A. Karpathy. LLM Wiki. GitHub Gist, 2026. URL https://gist.github.com/karpathy/442a6 bf555914893e9891c11519de94f. W. Kwon, Z. Li, S. Zhuang, Y. Sheng, L. Zheng, C. H. Yu, J. Gonzalez, H. Zhang, and I. Stoica. Efficient memory management for large language model serving with pagedattention. In Proceedings of the 29th Symposium on Operating Systems Principles, SOSP ’23, page 611–626, New York, NY, USA, 2023. Association for Computing Machinery. ISBN 9798400702297. doi: 10.1145/3600006.3613165. URL https://doi.org/10.1145/3600006.3613165. 15
16. WikiSkill: Compiling Agent Experience into Persistent Knowledge for Skill Evolution Y. Lee, R. Nair, Q. Zhang, K. Lee, O. Khattab, and C. Finn. Meta-harness: End-to-end optimization of model harnesses. arXiv preprint arXiv:2603.28052, 2026. URL https://arxiv.org/abs/2603 .28052. X. Li, Y. Liu, W. Chen, B. You, Z. Di, Y. He, S. Zheng, K. W. Choe, J. Sun, S. Wang, et al. Skillsbench: Benchmarking how well agent skills work across diverse tasks. arXiv preprint arXiv:2602.12670, 2026. URL https://arxiv.org/abs/2602.12670. Y. Liang, R. Zhong, H. Xu, C. Jiang, Y. Zhong, R. Fang, J.-C. Gu, S. Deng, Y. Yao, M. Wang, et al. Skillnet: Create, evaluate, and connect ai skills. arXiv preprint arXiv:2603.04448, 2026. URL https://arxiv.org/abs/2603.04448. J. Lin, S. Liu, C. Pan, L. Lin, S. Dou, Z. Xi, X. Huang, H. Yan, Z. Han, T. Gui, et al. Agentic harness engineering: Observability-driven automatic evolution of coding-agent harnesses. arXiv preprint arXiv:2604.25850, 2026. URL https://arxiv.org/abs/2604.25850. Y. Liu, J. Ji, L. An, T. Jaakkola, Y. Zhang, and S. Chang. How well do agentic skills work in the wild: Benchmarking llm skill usage in realistic settings. arXiv preprint arXiv:2604.04323, 2026. URL https://arxiv.org/abs/2604.04323. X. Lou, M. Lázaro-Gredilla, A. Dedieu, C. Wendelken, W. Lehrach, and K. P. Murphy. Autoharness: improving llm agents by automatically synthesizing a code harness. arXiv preprint arXiv:2603.03329, 2026. URL https://arxiv.org/abs/2603.03329. Z. Lu, Z. Yao, J. Wu, C. Han, Q. Gu, X. Cai, W. Lu, J. Xiao, Y. Zhuang, and Y. Shen. Skill0: In-context agentic reinforcement learning for skill internalization. arXiv preprint arXiv:2604.02268, 2026. URL https://arxiv.org/abs/2604.02268. Z. Ma, B. Zhang, J. Zhang, J. Yu, X. Zhang, X. Zhang, S. Luo, X. Wang, and J. Tang. Spreadsheetbench: Towards challenging real world spreadsheet manipulation. In The Thirty-eight Conference on Neural Information Processing Systems Datasets and Benchmarks Track, 2024. URL https://openreview .net/forum?id=KYxzmRLF6i. M. A. Merrill, A. G. Shaw, N. Carlini, B. Li, H. Raj, I. Bercovich, L. Shi, J. Y. Shin, T. Walshe, E. K. Buchanan, J. Shen, G. Ye, H. Lin, J. Poulos, M. Wang, M. Nezhurina, D. Lu, O. M. Mastromicha- lakis, Z. Xu, Z. Chen, Y. Liu, R. Zhang, L. L. Chen, A. Kashyap, J.-L. Uslu, J. Li, J. Wu, M. Yan, S. Bian, V. Sharma, K. Sun, S. Dillmann, A. Anand, A. Lanpouthakoun, B. Koopah, C. Hu, E. K. Guha, G. H. S. Dreiman, J. Zhu, K. Krauth, L. Zhong, N. Muennighoff, R. K. Amanfu, S. Tan, S. Pimpalgaonkar, T. Aggarwal, X. Lin, X. Lan, X. Zhao, Y. Liang, Y. Wang, Z. Wang, C. Zhou, D. Heineman, H. Liu, H. Trivedi, J. Yang, J. Lin, M. Shetty, M. Yang, N. Omi, N. Raoof, S. Li, T. Y. Zhuo, W. Lin, Y. Dai, Y. Wang, W. Chai, S. Zhou, D. Wahdany, Z. She, J. Hu, Z. Dong, Y. Zhu, S. Cui, A. Saiyed, A. Kolbeinsson, C. M. Rytting, R. Marten, Y. Wang, J. Jitsev, A. Dimakis, A. Konwinski, and L. Schmidt. Terminal-bench: Benchmarking agents on hard, realistic tasks in command line interfaces. In The Fourteenth International Conference on Learning Representations, 2026. URL https://openreview.net/forum?id=a7Qa4CcHak. J. Ni, Y. Liu, X. Liu, Y. Sun, M. Zhou, P. Cheng, D. Wang, E. Zhao, X. Jiang, and G. Jiang. Trace2skill: Distill trajectory-local lessons into transferable agent skills. arXiv preprint arXiv:2603.25158, 2026. URL https://arxiv.org/abs/2603.25158. S. Ouyang, J. Yan, Y. Chen, R. Han, Z. Wang, B. D. Mishra, R. Meng, C.-L. Li, Y. Jiao, K. Zha, et al. Skillos: Learning skill curation for self-evolving agents. arXiv preprint arXiv:2605.06614, 2026. URL https://arxiv.org/abs/2605.06614. 16
17. WikiSkill: Compiling Agent Experience into Persistent Knowledge for Skill Evolution T. Patwardhan, R. Dias, E. Proehl, G. Kim, M. Wang, O. Watkins, S. P. Fishman, M. Aljubeh, P. Thacker, L. Fauconnet, N. S. Kim, S. Miserendino, G. Chabot, D. Li, P. Chao, M. Sharman, A. Barr, A. Glaese, and J. Tworek. GDPval: Evaluating AI model performance on real-world economically valuable tasks. In The Fourteenth International Conference on Learning Representations, 2026. URL https: //openreview.net/forum?id=hcuEdq6eKD. T. Pham, N. P. Nguyen, P. Zunjare, W. Chen, Y.-M. Tseng, and T. Vu. SealQA: Raising the bar for reasoning in search-augmented language models. In The Fourteenth International Conference on Learning Representations, 2026. URL https://openreview.net/forum?id=zWb7ueH16c. L. Phan, A. Gatti, Z. Han, N. Li, J. Hu, H. Zhang, C. B. C. Zhang, M. Shaaban, J. Ling, S. Shi, et al. Humanity’s last exam. Nature, 649(8099):1139–1146, Jan 2026. ISSN 1476-4687. doi: 10.1038/s41586-025-09962-4. URL https://doi.org/10.1038/s41586-025-09962-4. Qwen Team. Qwen3.5: Towards native multimodal agents. https://qwen.ai/blog?id=qwen3.5, 2026a. Qwen Team. Qwen3.6-27b. https://qwen.ai/blog?id=qwen3.6-27b, 2026b. Y. Shi, Y. Chen, Z. Lu, Y. Miao, S. Liu, Q. Gu, X. Cai, X. Wang, and A. Zhang. Skill1: Unified evolution of skill-augmented agents via reinforcement learning. arXiv preprint arXiv:2605.06130, 2026. URL https://arxiv.org/abs/2605.06130. M. Shridhar, X. Yuan, M.-A. Cote, Y. Bisk, A. Trischler, and M. Hausknecht. {ALFW}orld: Aligning text and embodied environments for interactive learning. In International Conference on Learning Representations, 2021. URL https://openreview.net/forum?id=0IOX0YcCdTn. A. Singhvi, K. Opsahl-Ong, J. Collins, I. Zhou, C. Wang, A. Baheti, J. Portes, S. Havens, E. Elsen, M. Bendersky, M. Zaharia, and X. Chen. Introducing OfficeQA: A benchmark for end-to-end grounded reasoning. Databricks Blog, Dec. 2025. URL https://www.databricks.com/blog/ introducing-officeqa-benchmark-end-to-end-grounded-reasoning. W. Su, J. Long, Q. Ai, Q. He, Y. Tang, C. Wang, Y. Tu, Y. Wang, and Y. Liu. Skill retrieval augmentation for agentic ai. arXiv preprint arXiv:2604.24594, 2026. URL https://arxiv.org/abs/2604.24594. H. Wang, Y. Lan, B. Cao, L. Lin, and J. Chen. Skillgrad: Optimizing agent skills like gradient descent. arXiv preprint arXiv:2605.27760, 2026. URL https://arxiv.org/abs/2605.27760. P. Xia, J. Chen, H. Wang, J. Liu, K. Zeng, Y. Wang, S. Han, Y. Zhou, X. Zhao, H. Chen, et al. Skillrl: Evolv- ing agents via recursive skill-augmented reinforcement learning. arXiv preprint arXiv:2602.08234, 2026a. URL https://arxiv.org/abs/2602.08234. P. Xia, J. Chen, X. Yang, H. Tu, J. Liu, K. Xiong, S. Han, S. Qiu, H. Ji, Y. Zhou, et al. Metaclaw: Just talk–an agent that meta-learns and evolves in the wild. arXiv preprint arXiv:2603.17187, 2026b. URL https://arxiv.org/abs/2603.17187. R. Xu and Y. Yan. Agent skills for large language models: Architecture, acquisition, security, and the path forward. arXiv preprint arXiv:2602.12430, 2026. URL https://arxiv.org/abs/2602.1 2430. Y. Yang, Z. Gong, W. Huang, Q. Yang, Z. Zhou, Z. Huang, Y. Li, X. Gao, Q. Dai, B. Liu, et al. Skillopt: Executive strategy for self-evolving agent skills. arXiv preprint arXiv:2605.23904, 2026. URL https://arxiv.org/abs/2605.23904. 17
18. WikiSkill: Compiling Agent Experience into Persistent Knowledge for Skill Evolution S. Yao, J. Zhao, D. Yu, N. Du, I. Shafran, K. R. Narasimhan, and Y. Cao. React: Synergizing reasoning and acting in language models. In The Eleventh International Conference on Learning Representations, 2023. URL https://openreview.net/forum?id=WE_vluYUL-X. H. Ye, X. He, V. Arak, H. Dong, and G. Song. Meta context engineering via agentic skill evolution. In Forty-third International Conference on Machine Learning, 2026. URL https://openreview.net /forum?id=P1jHroBS5E. M. Yuksekgonul, F. Bianchi, J. Boen, S. Liu, P. Lu, Z. Huang, C. Guestrin, and J. Zou. Optimizing generative ai by backpropagating language model feedback. Nature, 639(8055):609–616, Mar 2025. ISSN 1476-4687. doi: 10.1038/s41586-025-08661-4. URL https://doi.org/10.1038/ s41586-025-08661-4. B. Zhang, K. Lazuka, and M. Murag. Equipping agents for the real world with agent skills. https: //www.anthropic.com/engineering/equipping-agents-for-the-real-world-wit h-agent-skills, Oct. 2025. H. Zhang, S. Fan, H. P. Zou, Y. Chen, Z. Wang, J. Zhou, C. Li, W.-C. Huang, Y. Yao, K. Zheng, et al. Co- evoskills: Self-evolving agent skills via co-evolutionary verification. arXiv preprint arXiv:2604.01687, 2026a. URL https://arxiv.org/abs/2604.01687. H. Zhang, S. Zhang, K. Li, C. Zhang, Y. Chen, Y. Zhang, L. Bai, and S. Hu. Self-harness: Harnesses that improve themselves. arXiv preprint arXiv:2606.09498, 2026b. URL https://arxiv.org/ abs/2606.09498. Y. Zheng, Z. Zhang, C. Ma, Y. Yu, J. Zhu, Y. Wu, T. Xu, B. Dong, H. Zhu, R. Huang, et al. Skillrouter: Skill routing for llm agents at scale. arXiv preprint arXiv:2603.22455, 2026. URL https://arxi v.org/abs/2603.22455. H. Zhou, S. Guo, A. Liu, Z. Yu, Z. Gong, B. Zhao, Z. Chen, M. Zhang, Y. Chen, J. Li, et al. Memento- skills: Let agents design agents. arXiv preprint arXiv:2603.18743, 2026. URL https://arxiv.or g/abs/2603.18743. 18
19. WikiSkill: Compiling Agent Experience into Persistent Knowledge for Skill Evolution A. Method Details A.1. Algorithm The full skill-evolution algorithm for WikiSkill is described in Algorithm 1. Algorithm 1 WikiSkill evolution loop. At each iteration 𝑘, the inference agent rolls out on training tasks using active skills 𝑆𝑘 −1 , the maintainer consolidates sampled traces into the intermediate wiki 𝑊𝑘′ , the proposer generates candidate skill modifications 𝑃 𝑘 , validation gating determines whether to accept 𝑆𝑘′ or roll back to 𝑆𝑘 −1 , and the system appends the proposal outcome and skill diff to produce the final wiki state 𝑊𝑘 . Require: Training tasks Dtrain , validation tasks Dval , performance metric R, iterations 𝐾 1: Initialize skill set 𝑆0 ← ∅, wiki 𝑊0 ← ∅ R best ← R (Tval,0 ) 2: Baseline Validation: Tval,0 ← { 𝜏𝑖 ∼ 𝜋 ( 𝑥 𝑖 ; 𝑆0 )} 𝑥 𝑖 ∈ Dval , 3: for 𝑘 = 1, . . . , 𝐾 do 4: if R best = 1.0 then 5: break 6: end if 7: Inference: Roll out Ttrain,𝑘 ← {𝜏𝑖 ∼ 𝜋 ( 𝑥 𝑖 ; 𝑆𝑘 −1 )} 𝑥𝑖 ∈ Dtrain 8: Sample subset Tsample,𝑘 ⊂ Ttrain,𝑘 9: Wiki Maintenance: 𝑊𝑘′ ← MWM (𝑊𝑘 −1 , Tsample,𝑘 ) 10: Skill Proposal: 𝑃𝑘 ← MP (𝑊𝑘′ , 𝑆𝑘 −1 , Ttrain,𝑘 ) 11: Apply: 𝑆𝑘′ ← Apply(𝑆𝑘 −1 , 𝑃 𝑘 ) 12: Validate: Tval,𝑘 ← {𝜏𝑖 ∼ 𝜋 ( 𝑥 𝑖 ; 𝑆𝑘′ )} 𝑥𝑖 ∈ Dval 13: if R (Tval,𝑘 ) > R best then 14: 𝑆𝑘 ← 𝑆𝑘′ , R best ← R (Tval,𝑘 ), 𝑎𝑘 ← Accepted 15: else 16: 𝑆𝑘 ← 𝑆𝑘 −1 , 𝑎𝑘 ← Rejected ⊲ Roll back skills only; wiki retained 17: end if 18: Update Wiki Log: 𝑊𝑘 ← Update(𝑊𝑘′ , 𝑃 𝑘 , R (Tval,𝑘 ) , 𝑎𝑘 ) 19: end for 20: return 𝑆 𝐾 , 𝑊𝐾 A.2. Distribution of Accepted Skill Updates We show when the updated skill proposals are accepted in Table 5. B. Dataset Details and Splits We describe the five benchmarks used in our evaluation below. LiveMathematicianBench (LiveMath) (He et al., 2026) consists of multiple-choice mathematics competition problems from recent months. It tests the model’s capacity for complex mathematical reasoning, quantifiers, and extremal conditions. SealQA (Pham et al., 2026) is a factual question- answering benchmark composed of scholarly questions across various topics. It evaluates the agent’s ability to formulate effective search queries and extract answers from web search results using a search tool. SpreadsheetBench (SpreadSheet) (Ma et al., 2024) tests the agent’s ability to write correct code under library constraints (such as formula evaluation limitations) and execute complex table transformations. OfficeQA (Singhvi et al., 2025) evaluates long-context question-answering 19
20. WikiSkill: Compiling Agent Experience into Persistent Knowledge for Skill Evolution Category Early (Iter 0–1)Mid (Iter 2–4)Late (Iter 5–7) By Model Qwen-3.5-4B Qwen-3.5-9B Qwen-3.6-27B Gemma-4-31B Gemini-3.5-Flash39% 52% 43% 52% 50%39% 30% 40% 37% 46%21% 19% 17% 11% 4% By Benchmark LiveMath SealQA SpreadSheet OfficeQA ALFWorld44% 39% 41% 58% 55%42% 33% 48% 26% 34%14% 28% 11% 16% 10% Table 5 | Distribution of accepted skill updates across evolution iterations, grouped by model (top) and benchmark (bottom). Percentages indicate the proportion of accepted updates that occur during each stage of evolution. over a large repository of historical Treasury bulletins. Tasks require synthesizing evidence across long contexts and multi-page financial tables. Following the setup in Yang et al. (2026), the agent is provided with pre-parsed oracle reference pages as initial document evidence in the prompt, while retaining access to local text-processing tools (glob, grep, read) to search, cross-reference, and inspect full Treasury bulletin files on disk. ALFWorld (Shridhar et al., 2021) is an interactive text- based embodied environment where an agent solves multi-step household tasks (e.g., picking and placing objects, heating or cooling items) by outputting text actions to a simulator. Unlike static QA benchmarks, ALFWorld tests sequential decision-making, spatial reasoning, and error recovery from simulator feedback. BenchmarkInteractionTrainValTestEnvironment Tools LiveMath SealQA SpreadSheet OfficeQA ALFWorldSingle-Step Multi-Step Multi-Step Multi-Step Multi-Step35 16 80 50 3918 10 40 24 18124 85 280 172 134web_search, read_file bash glob, grep, read None (Direct Reasoning) Admissible Actions Table 6 | Benchmark statistics, data splits, interaction modes, and available environment tools. Table 6 summarizes the sample counts across training, validation, and test splits, interaction modes, and available tools for each benchmark evaluated in our experiments. All task splits and available toolsets are strictly matched with prior work (Alzubi et al., 2026; Yang et al., 2026). For tool setup, LiveMath operates as a single-step reasoning benchmark without external tools, where the model generates final answers directly; SealQA equips the agent with web search (using Google Search API) and file reading for multi-step factual retrieval (we use the July, 2026 version of SealQA for all experiments); SpreadSheet provides a bash shell tool for Python code execution and table manipulation; OfficeQA provides local text-search utilities for multi-step Treasury bulletin navigation; and ALFWorld provides an interactive simulator action space for multi-step embodied decision making. Evaluation robustness with small validation sets Following established setups in prior work (Alzubi et al., 2026; Yang et al., 2026), benchmark validation splits are relatively small, which can introduce evaluation noise into gating decision. To account for this variability, all reported scores represent 20
21. WikiSkill: Compiling Agent Experience into Persistent Knowledge for Skill Evolution the average test performance across three independent runs of the entire evolutionary pipeline, with paired bootstrap significance testing (detailed in Appendix C). C. Implementation Details To provide diagnostic feedback for the Wiki maintainer, we apply a stratified sampling strategy (Tsample,𝑘 ⊂ Ttrain,𝑘 ) at each iteration 𝑘. Specifically, the system samples up to 8 traces per iteration, stratified into a maximum of 5 failing traces (to perform root-cause analysis of errors) and up to 3 passing traces (to identify effective strategies and prevent regressions in working behaviors). Each individual execution log is capped at 15,000 characters prior to injection into the prompt. Statistical significance testing We perform paired bootstrap significance tests with 1, 000 iterations for each benchmark. In each bootstrap iteration, task instances are sampled with replacement from the test split Dtest to construct a bootstrap evaluation set of size |Dtest |, from which candidate accuracy scores and pairwise performance margins are computed. To evaluate overall cross-benchmark performance, we conduct stratified macro-average bootstrap resampling: in each iteration, task instances are resampled independently with replacement within each benchmark, and we calculate macro-average accuracy by assigning equal weight to all benchmarks. We determine top-performing methods in our evaluation tables as follows. Methods are initially ranked by their observed performance (or macro-average performance across benchmarks). A top- ranked method 𝑀 ∗ is the sole top performer if and only if it achieves a statistically significant gain over all competing methods at 𝑝 < 0.05. If 𝑀 ∗ is not statistically distinguishable ( 𝑝 ≥ 0.05) against one or more lower-ranked methods, no single method is declared the sole top performer. Instead, all methods whose performance is not statistically distinguishable from 𝑀 ∗ ( 𝑝 ≥ 0.05) are grouped into a top-tier statistical tie (and bolded accordingly). D. Baseline Details and Optimizer API Call Analysis D.1. Baseline Methods Trace2Skill (Ni et al., 2026) Trace2Skill employs a three-stage pipeline centered on parallel trace analysis and hierarchical merging. It evaluates the current skill on training tasks and dispatches parallel success analysts and error analysts to extract effective strategies from passing tasks and diagnose root causes of failures. The resulting structured patches are recursively consolidated via a hierarchical merge operator into a single patch set. The consolidated patches are applied to the skill document and accepted based on validation performance. EvoSkill (Alzubi et al., 2026) EvoSkill frames skill evolution as a search over a frontier of candidate programs. In each iteration, it samples training tasks via a round-robin category schedule and executes rollouts. EvoSkill feeds only failure traces to the proposer alongside a flat feedback history of past proposal outcomes. The proposer generates candidate skill modifications that are materialized into SKILL.md files, scored on a validation split, and added to a bounded frontier of top-performing programs. SkillOpt (Yang et al., 2026) SkillOpt implements a six-stage ReflACT pipeline (Rollout, Reflect, Aggregate, Select, Update, Evaluate) for iterative skill optimization. In each epoch, the system rolls 21
22. WikiSkill: Compiling Agent Experience into Persistent Knowledge for Skill Evolution out the agent on training tasks and reflects on full execution traces, including both successes and failures, to generate candidate patches. These patches are hierarchically aggregated and selected to update a single monolithic skill document, which is accepted or rejected based on validation performance. D.2. Optimizer API Call Complexity In this section, we analyze optimizer API call complexity, denoted by C, across self-improving agent frameworks. We define one evolution iteration as rolling out the agent on the full training split Dtrain once ( 𝑁train = |Dtrain | training task instances), processed in minibatches of size 𝐵 ( 𝐵 ≤ 𝑁train ). Table 7 summarizes the per-iteration optimizer API call complexity for WikiSkill and prior methods. Framework Trace2Skill EvoSkill Per-Iteration Formula   𝑁train 1 𝑁train + 1 + 𝑐 −1 +1 𝐵 2 𝑁train SkillOpt𝐵 𝐾opt · 𝑁train 𝐵 WikiSkill(1 + 𝑇ReAct ) 𝑁train 𝐵 Complexity   O 𝑁train + 𝑁train 𝐵   O 𝑁train  𝐵  O 𝑁train  𝐵  O 𝑁train 𝐵 Table 7 | Comparison of optimizer API call complexity per evolution iteration across self- improving agent frameworks. 𝑁train = |Dtrain | denotes the number of training tasks, 𝐵 denotes the batch size, 𝑇ReAct denotes the number of interactive ReAct reasoning turns used by the Skill Proposer agent in WikiSkill, 𝐾opt denotes the number of reflection and merging calls per step in SkillOpt, and 𝑐 denotes the reduction-tree branching factor in Trace2Skill. WikiSkill uses 𝐵 = 𝑁train across all datasets. In full-batch mode, WikiSkill’s optimizer call count is independent of training set size 𝑁train , requiring 1 + 𝑇ReAct optimizer calls per iteration. WikiSkill For each batch of size 𝐵, the Wiki Maintainer requires one LLM call to analyze sampled traces Tsample,𝑘 and consolidate pattern pages into the intermediate wiki 𝑊𝑘′ . The Skill Proposer then runs as an autonomous multi-turn ReAct agent, executing interactive tool calls over 𝑇ReAct reasoning turns (roughly 10 ≤ 𝑇ReAct ≤ 20 across our experiment runs), where each ReAct turn requires 1 LLM call. When processing training data in batches of size 𝐵, completing one full iteration over 𝑁train tasks requires 𝑁train steps: 𝐵 CWikiSkill = (1 + 𝑇ReAct ) 𝑁train 𝐵 (5) In our experiments, we set the batch size to the full training size ( 𝐵 = 𝑁train ) across all datasets. In this full-batch setting ( 𝑁train = 1), CWikiSkill = 1 + 𝑇ReAct . Because 𝑇ReAct does not depend on 𝑁train , 𝐵 WikiSkill’s optimizer API call complexity is O (1) with respect to training set size. Specifically, each iteration requires 1 + 𝑇ReAct optimizer LLM calls, regardless of the number of training instances. While this constant call complexity may incur higher inference cost on some datasets, the additional computation is accompanied by consistent performance gains over prior skill-evolution methods across our evaluation. EvoSkill EvoSkill partitions training tasks into minibatches of size 𝐵. For each minibatch, EvoSkill uses one Proposer LLM call for error diagnosis and one Generator LLM call for skill updates. Processing 22
23. WikiSkill: Compiling Agent Experience into Persistent Knowledge for Skill Evolution minibatch steps, resulting in: the full training split of 𝑁train tasks requires 𝑁train 𝐵 CEvoSkill = 2 𝑁train (6) 𝐵 Thus, EvoSkill’s optimizer API call complexity scales linearly with training set size 𝑁train (O ( 𝑁train / 𝐵)). SkillOpt SkillOpt evaluates minibatches of size 𝐵, completing each iteration in 𝑁train optimization 𝐵 steps. During each step, SkillOpt executes its ReflACT pipeline (parallel analyst reflections, hierarchical patch synthesis, and candidate selection), requiring 𝐾opt ≈ 6–8 optimizer LLM calls per step: CSkillOpt = 𝐾opt · 𝑁train (7) 𝐵 SkillOpt similarly scales linearly with training set size 𝑁train , as O ( 𝑁train / 𝐵). Trace2Skill Trace2Skill processes training trajectories through a three-stage pipeline per iteration: 1. Trace analysis stage: Every individual execution trajectory is analyzed independently with one LLM call, incurring 𝑁train total calls. 2. Patch map stage: Analysis records are chunked into batches of size 𝐵, requiring 𝑁train calls to 𝐵 generate local skill patches. 3. Hierarchical reduce & apply stage: The 𝑁train local patches are recursively merged via a 𝑐-ary 𝐵 1 𝑁train reduction tree (where 𝑐 is the branching factor). Summing across levels yields ≈ 𝑐 −1 merge calls, 𝐵 plus one final call to format the skill document. Combining all stages:   𝑁train 1 CTrace2Skill ≈ 𝑁train + 1 + +1 𝑐−1 𝐵 (8) Because Trace2Skill performs individual LLM analysis on every training trajectory ( 𝑁train calls), its complexity is lower-bounded by O ( 𝑁train ), scaling linearly with training set size. Full-batch training vs. minibatch optimization Across all datasets, we set the batch size 𝐵 to the full training set size ( 𝐵 = 𝑁train ) for WikiSkill, processing the entire training set at once per iteration. The Skill Proposer dynamically searches, selects, and reads specific execution traces on demand to diagnose root causes before proposing skill updates. In contrast, EvoSkill and SkillOpt achieve their best performance under minibatch settings ( 𝐵 < 𝑁train ), which causes their optimizer API call complexity to scale linearly with training set size. Finally, Trace2Skill remains strictly O ( 𝑁train ) regardless of minibatch size because it requires an independent LLM call for every training trajectory. E. System and Agent Prompts We provide the exact system prompts used for (1) the Inference Agent for each task across all methods, (2) the Wiki Maintainer, and (3) the Skill Proposer in WikiSkill. 23
24. WikiSkill: Compiling Agent Experience into Persistent Knowledge for Skill Evolution E.1. Task Inference Agent System Prompts LiveMathematicianBench Inference Agent System Prompt You are an expert mathematical reasoning agent solving multiple-choice questions. {skill_section} ## Task Format You will receive one mathematics multiple-choice question and its answer choices. Reason carefully about quantifiers, hypotheses, extremal wording, and exact equality conditions. ## Answer Format Think step by step, then provide your final answer inside <answer>...</answer> tags. Inside the tags, output only the single choice label, such as A or C. Example: <answer>B</answer> SealQA Inference Agent System Prompt You are a knowledgeable question-answering assistant with access to web_search and read_file tools. {skill_section} ## Task You will receive a factual question. To answer it: 1. You can check the available skills. They contain guidance that can improve your search queries and answer accuracy. 2. You can use web_search to find relevant information. You can call it multiple times with different queries. 3. You can do web_search anytime during the process depending on your needs. 4. After gathering enough information, provide your final answer. ## Answer Format You MUST wrap your final answer in <answer> tags: <answer> ... your final answer (exact value only, no explanation) ... </answer> SpreadsheetBench Inference Agent System Prompt You are a spreadsheet expert who can manipulate spreadsheets through Python code. {skill_section} You need to solve the given spreadsheet manipulation question, which contains the following information: - working_directory: The absolute path to your working directory where files are located. - instruction: The question about spreadsheet manipulation. - spreadsheet_path: The absolute path of the spreadsheet file you need to manipulate. - spreadsheet_content: The first few rows of the content of spreadsheet file. - instruction_type: There are two values (Cell-Level Manipulation, Sheet-Level Manipulation) used to indicate whether the answer to this question applies only to specific cells or to the entire worksheet. 24
25. WikiSkill: Compiling Agent Experience into Persistent Knowledge for Skill Evolution - answer_position: The position need to be modified or filled. For Cell-Level Manipulation questions, this field is filled with the cell position; for Sheet-Level Manipulation, it is the maximum range of cells you need to modify. You only need to modify or fill in values within the cell range specified by answer_position. - output_path: The absolute path where you must save the modified spreadsheet. ## CRITICAL RESTRICTIONS You can ONLY read and write files within the **working_directory**. Any attempt to access files outside this directory will fail. - **Allowed paths**: working_directory (and its subdirectories) - **Read from**: spreadsheet_path (inside working_directory) - **Write to**: output_path (inside working_directory) Do NOT create files outside the working_directory. Use the exact absolute paths provided. You have access to a bash tool that can execute any shell command. OfficeQA Inference Agent System Prompt You are an expert OfficeQA agent working over local Treasury bulletin text files. {skill_section} ## Rules 1. Use only the provided local document tools to inspect candidate files. 2. Narrow to the most relevant file before reading long passages. 3. Prefer short targeted searches, then small reads around matching evidence. 4. Do not invent values that are not grounded in the retrieved text. 5. When the question requires arithmetic, compute only after extracting the exact operands. 6. If you have enough evidence, return the final answer inside <answer>...</answer>. ## Tool Use Use the provided function tools directly when you need them. Prefer searching and small reads before answering. Do not ask the user for permission to use tools; just call the tools. ## Final Answer Format When you are ready to answer, emit the final answer inside <answer>...</answer> and do not request another tool. ALFWorld Inference Agent System Prompt You are an expert agent operating in the ALFRED Embodied Environment. Your task is to: { task_description} {skill_section} Prior to this step, you have already taken {step_count} step(s). Below are the most recent {history_length} observations and the corresponding actions you took: { action_history} You are now at step {current_step} and your current observation is: {current_observation} 25
26. WikiSkill: Compiling Agent Experience into Persistent Knowledge for Skill Evolution Your admissible actions of the current situation are: [{admissible_actions}]. Now it’s your turn to take an action. You should first reason step-by-step about the current situation. This reasoning process MUST be enclosed within <think> </think> tags. Once you’ve finished your reasoning, you should choose an admissible action for current step and present it within <action> </action> tags. E.2. Wiki Maintainer Agent System Prompt Wiki Maintainer Agent System Prompt You are a Wiki Maintainer Agent for an LLM skill evolution system. Your job is to maintain a structured knowledge base (wiki) that documents patterns observed during agent execution -- both successes and failures. You must perform DEEP ANALYSIS of execution logs to identify root causes, not just surface-level symptoms. ## Wiki Structure The wiki is organized as: - wiki/index.md -- Concise catalog of known patterns (one line per pattern) - wiki/log.md -- Chronological evolution log (iterations, scores, accept/reject) - wiki/skill-impact.md -- Record of which skills were tried and their outcomes - wiki/patterns/ -- One page per pattern with detailed evidence and analysis ## Your Input 1. Execution traces from the latest iteration -- including full agent execution logs showing what actions the agent took, what commands it ran, and what environment feedback it observed 2. The current wiki context (index, log, pattern pages) ## Your Output (Incremental Edit Mode) Return a JSON object with these keys: - "create_patterns": list of {"name": "pattern-name.md", "content": "..."} -- new patterns (full content) - "update_patterns": list of {"name": "existing-pattern.md", "edits": [...]} -- patch existing patterns - "update_index": full updated content of index.md (always provide the complete index) - "append_log": "brief summary of this iteration’s findings and actions" "update_index" and "append_log" are REQUIRED. Always provide them, even if there are no new patterns. For "update_index", always provide the complete updated index content including all existing entries plus any new ones. ### Patch Operations (for update_patterns only) For "update_patterns", each entry uses an "edits" list of patch operations: - {"op": "append", "content": "text to add at end"} - {"op": "replace", "target": "exact text to find", "content": "replacement text"} - {"op": "insert_after", "target": "exact text to find", "content": "text to insert after"} Rules for patch operations: 1. "target" must be an EXACT substring of the existing content. 2. Use "append" to add new evidence. Use "replace" to fix or refine existing text. 3. Use "insert_after" to add entries after a specific line. 4. Keep each edit minimal -- only change what’s needed. 5. For NEW patterns (create_patterns), use full "content". ## Analysis Guidelines 26
27. WikiSkill: Compiling Agent Experience into Persistent Knowledge for Skill Evolution ### Deep Trace Analysis (CRITICAL) When execution logs are provided, you MUST: 1. Read the agent’s actual actions -- what commands did it issue? 2. Compare successful vs failed tasks -- what did successful tasks do differently? 3. Identify ACTION PATTERNS and strategies, not just error messages. 4. Check whether the agent followed any active skills, and whether the skill guidance was helpful or not ### Pattern Documentation Rules 1. Each pattern page should document: - What the pattern is (description) - Root cause analysis (WHY it happens, not just WHAT happens) - Exact command sequences from traces (what the agent did wrong / right) - Known solutions or workarounds (concrete action patterns with exact syntax) 2. Capture BOTH success and failure patterns: - **Failure patterns**: Document what went wrong and how to avoid it - **Success patterns**: Document strategies that consistently lead to task completion 3. Do NOT create duplicate patterns -- update existing ones with new evidence 4. Be concise. Pattern pages should be 10-30 lines, not essays. 5. Only create patterns for meaningful, generalizable observations. ### Index Description Quality (CRITICAL) The index.md entries are the MOST IMPORTANT part of the wiki because they determine whether inference agents will read the full pattern pages. Each index entry MUST follow this format: - [pattern-name](wiki/patterns/pattern-name.md): PROBLEM + ROOT CAUSE + FIX in one or two sentence. The description must be specific enough that an agent can judge relevance without reading the full page. Include the problem, root cause, AND solution. E.3. Skill Proposer Agent System Prompt (ReAct Mode) Skill Proposer Agent System Prompt You are a Skill Proposer Agent for an LLM agent that solves {task_desc}. Your job is to explore the wiki knowledge base and execution traces, diagnose root causes of failures, and propose a skill change (create or patch). ## Tools Available You have two tools: 1. ‘read_file(path)‘ -- Read a wiki file or execution log. Paths are relative to the workspace root. 2. ‘finish(proposal)‘ -- Submit your final skill proposal as a JSON object. ## Workflow 1. Start by reading ‘wiki/index.md‘ to understand what patterns exist 2. Read ‘wiki/skill-impact.md‘ to see what was tried before (includes full content of rejected proposals -- DO NOT repeat rejected approaches) 3. Read specific pattern pages that seem relevant to the current failures 4. Read execution traces for failed tasks via ‘traces/<task_id>‘ to understand root causes 5. Decide: create (new skill) or patch (edit existing skill), or no_action 6. If proposing a change, call ‘finish‘ with the full proposal ## finish() Proposal Format 27
28. WikiSkill: Compiling Agent Experience into Persistent Knowledge for Skill Evolution For creating a new skill: - "action": "create" - "name": skill directory name (snake_case) - "skill_md": full SKILL.md content with YAML frontmatter + When to Apply + When NOT to Apply + Instructions - "purpose_md": full PURPOSE.md content with Origin + Patterns Addressed + Evolution History For patching an existing skill: - "action": "patch" - "name": existing skill directory name - "edits": list of patch operations: - {"op": "append", "content": "text to add at end"} - {"op": "replace", "target": "exact text to find", "content": "replacement"} - {"op": "insert_after", "target": "exact text to find", "content": "text to insert after"} Each "replace" target should be a short, specific section -- not the entire file. If you need to change most of the file, use "action": "create" instead. If no action is needed, call finish with: {"action": "no_action"} ## Rules 1. Read the wiki FIRST -- don’t propose something that was already tried and rejected. skill-impact.md contains full content of rejected proposals. 2. Focus on action patterns and concrete strategies. 3. Keep skills concise and actionable. 4. You MUST read at least 4 execution traces before proposing a skill change. Target your exploration based on the trace summary. 5. Prefer patching existing skills over creating new ones when the existing skill is partially correct. Note that execution traces are physically stored in the Raw Layer (raw/traces/), while the workspace environment resolves read_file("traces/<task_id>") calls by automatically map- ping the traces/ alias to the corresponding execution log under raw/ for the Skill Proposer. 28

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-01 15:33
浙ICP备14020137号-1 $Гость$