Manuscript Offprint
arXiv:2610.36188Skill Dreaming: Evolving Repository Skills through Pull Request Streams
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Xinyuan Song
Causal Dynamics Lab
USA
Ryan Turner
Causal Dynamics Lab
USA
Hasibul Haque
Causal Dynamics Lab
USA
Bowen Zhu
Causal Dynamics Lab
USA
Jay Somasundaram
Causal Dynamics Lab
USA
Liang Zhao
Causal Dynamics Lab
USA
Abstract
Large language model (LLM) agents increasingly rely on reusable skills for complex software engineering tasks, making skill libraries essential for repository development and maintenance. However, repository-specific skills must evolve with changing code structures, implementation conventions, and maintenance requirements. Pull requests (PRs) provide a natural source of such knowledge by recording how repositories evolve through implementation and review. Meanwhile, new PRs must follow repository-specific implementation patterns, modify related components consistently, and ensure that existing tests continue to pass while adding coverage for new functionality. This creates a mutually reinforcing cycle: PRs provide knowledge for updating skills, while these skills improve future PRs, maintain repositories, and support further skill evolution. To enable this co-evolution of PRs, repositories, and skills, we propose SKILL DREAMING, a framework that learns from PR streams to guide continuous repository development and maintenance. Given a repository and its PR history, SKILL DREAMING builds a repository-specific skill library by extracting executable knowledge from validated PRs and continuously refines the skills as new PR information becomes available. These skills guide coding agents not only in implementing requested features but also in maintaining associated tests, documentation, compatibility, and repository conventions. By integrating PR analysis, skill management, code execution, and continuous integration, SKILL DREAMING provides an end-to-end workflow for applying learned skills to repository changes and incorporating subsequent PR outcomes into future skill updates. On the SWE-bench Pro benchmark, SKILL DREAMING increases the official resolved rate from 79% for the base agent to 88%. Additional experiments demonstrate the effectiveness of SKILL DREAMING across different repositories, highlighting the potential of PR-driven skill evolution for reliable software development.
CCS Concepts
• Information systems → Information retrieval; Collaborative and social computing systems and tools; • Computing methodologies → Knowledge representation and reasoning; Intelligent agents.
1 Introduction
Large language model (LLM) agents increasingly rely on reusable skills to perform complex software engineering tasks [3, 8, 15, 24]. By capturing knowledge from previous tasks, skills allow agents to reuse successful strategies, reduce repeated exploration, and improve performance on future tasks. Existing approaches have explored different mechanisms for skill learning and reuse [20, 31]. Trace2Skill extracts transferable lessons from execution trajectories [16], while ReasoningBank organizes successful and unsuccessful experiences into reusable reasoning memory [19]. CODESKILL studies self-evolving skill libraries for coding agents [14], and Socratic-SWE uses trace-derived skills to support iterative agent improvement [27]. SkillLens investigates adaptive skill reuse at different levels of granularity [29], while Learning to Commit explores repository-specific knowledge from chronological development histories [11]. However, existing approaches primarily focus on learning and reusing skills from past experiences, with limited support for continuously aligning these skills with evolving repositories. As repository structures, APIs, and implementation conventions change, previously learned skills may become incomplete, outdated, or inconsistent with current development requirements [13]. This highlights the need for agents to continuously learn and reuse repository-specific skills from new development records. These skills must also be updated as repositories evolve to remain relevant for future tasks.
Pull requests (PRs) provide a valuable source of repository-specific knowledge. They document how development requests are addressed through code changes [4, 9] and how these changes are reviewed and validated [28]. This history reveals implementation patterns and conventions that can guide future repository development and maintenance. More importantly, successive PRs provide a history of repository evolution [11, 12]. For example, an initial PR may introduce a provider and its factory integration, a later PR may reuse this convention for an exporter, and a subsequent PR may migrate the registry to a new API. Learning from this history allows agents to capture implementation conventions, maintain documentation, and evolve repository-specific skills [13] as the codebase changes. Retrieval-augmented generation (RAG) [10] offers a natural approach to extracting relevant knowledge from historical PRs, allowing agents to retrieve implementation examples and repository context [2, 30]. However, RAG primarily retrieves existing PR information for individual tasks, without learning persistent repository-specific knowledge from development history. As new PRs introduce changes, previously retrieved patterns may become outdated, while new conventions and maintenance

Figure 1: Overview of SKILL DREAMING: PR-driven skill evolution. Top: PR streams provide development records. Middle: Skills evolve through generation, reuse, revision, and replacement. Bottom: Evolving skills guide repository development and maintenance, generating feedback for further evolution.
requirements remain scattered across the history. This motivates learning reusable skills from PR streams and continuously updating them to guide repository development and maintenance.
To address these challenges, we propose SKILL DREAMING, a framework that learns to extend and maintain repositories from PR streams. As shown in Figure 1, SKILL DREAMING establishes a cycle among PR information, repository-specific skills, and repository development. Given a repository and its PR history, the framework extracts reusable knowledge from validated PRs [24] into a dynamic skill library [22]. These skills capture implementation procedures, architectural conventions, and maintenance requirements [6], enabling coding agents to apply historical knowledge to new tasks. As agents extend and maintain repositories, resulting PRs provide information for updating the skill library [25]. Thus, PRs drive skill learning, while learned skills guide repository evolution.
The core of SKILL DREAMING is a three-stage framework connecting skill learning, repository development, and skill evolution. First, given an existing repository and its historical PRs, the framework extracts reusable implementation and maintenance knowledge to construct an initial repository-specific skill library. Second, coding agents retrieve relevant skills to guide new development tasks, including feature implementation, testing, documentation, and configuration updates. Third, new PR information from code changes, reviews, and validation drives skill evolution through reuse, extension, revision, and replacement. This closed-loop process is formulated as a sequential optimization problem that jointly maximizes task quality and the future utility of learned skills while minimizing development costs under correctness and safety constraints. Through this process, SKILL DREAMING continuously improves repository-specific knowledge and adapts to evolving development.
We evaluate SKILL DREAMING on repository-level software engineering tasks across three aspects. First, on SWE-bench Pro [4], SKILL DREAMING improves the official resolved rate from 79% with the base agent to 88%, demonstrating strong performance in issue resolution. Second, cross-repository experiments show consistent improvements over baselines, highlighting its effectiveness across diverse repositories. Third, additional experiments demonstrate the benefits of skill reuse, continuous evolution, and repository maintenance. Together, these results validate the effectiveness of PR-driven skill evolution for repository-level software engineering.
Our main contributions are summarized as follows:
-
We formulate PR-driven repository skill learning as a continuous process where historical PRs provide reusable knowledge, learned skills guide repository development, and new PRs drive further skill evolution.
-
We propose SKILL DREAMING, an end-to-end framework that builds repository-specific skill libraries from PR histories, applies learned skills to repository development and maintenance, and continuously evolves them without updating LLM parameters.
-
We conduct comprehensive experiments demonstrating improved issue resolution on SWE-bench Pro, strong cross-repository performance, and the effectiveness of skill reuse, evolution, and repository maintenance.
2 Related Work
Learning repository conventions from history. Learning to Commit [11] extracts repository-specific development knowledge from historical commits through contrastive reflection, transforming successful implementation patterns and past mistakes into reusable skills. It also supports skill revision and depreciation as repository
Table 1: Comparison with existing skill-learning and repository-editing methods. √ indicates an explicitly supported mechanism, while × indicates otherwise.
| Method | PR Learning | Skill Library | Skill Reuse | Skill Evolution | Version Awareness | Repo Maintenance | Training-Free |
|---|---|---|---|---|---|---|---|
| ReasoningBank [19] | × | ✓ | ✓ | ✓ | × | × | ✓ |
| Trace2Skill [16] | × | ✓ | ✓ | ✓ | × | × | ✓ |
| Learning to Commit [11] | ✓ | ✓ | ✓ | ✓ | × | ✓ | ✓ |
| CODESKILL [14] | × | ✓ | ✓ | ✓ | × | ✓ | × |
| Socratic-SWE [27] | × | ✓ | ✓ | × | × | ✓ | × |
| SkillLens [29] | × | ✓ | ✓ | ✓ | × | × | ✓ |
| FeatX [12] | × | × | × | × | × | ✓ | ✓ |
| SKILL DREAMING (ours) | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
practices change. Similarly, SKILL DREAMING learns from historical development activities, but uses PR records that incorporate implementation changes, review feedback, and validation outcomes. Rather than treating extracted knowledge as independent instructions, SKILL DREAMING aligns new information with existing skills, resolves conflicting conventions, and preserves version-specific implementation and maintenance requirements. This enables skills to remain applicable as repository structures and development practices evolve.
Experience distillation and skill management. Trace2Skill [16] extracts reusable skills from successful and failed agent execution trajectories, allowing agents to transfer learned strategies to future tasks. ReasoningBank [19] organizes reasoning experiences into reusable memories that support subsequent decision-making. CODESKILL [14] learns a skill manager to extract, organize, and evolve skills from coding experiences. These approaches demonstrate the value of accumulating reusable knowledge, but primarily emphasize agent experiences or learned skill management. In contrast, SKILL DREAMING uses repository development records as its primary evidence source and maintains an evolving skill library without updating LLM parameters. Its skill construction and alignment processes explicitly account for repository conventions, implementation dependencies, and maintenance obligations.
Skill-guided task generation and hierarchical reuse. Socratic-SWE [27] distills software engineering knowledge into skills and uses them to generate training tasks, connecting reusable experience with task synthesis. SkillLens [29] organizes skills hierarchically and supports selective updates, allowing agents to identify and reuse relevant knowledge at different levels of abstraction. While these methods explore how skills can support learning and reuse, SKILL DREAMING focuses on how repository-specific skills should evolve alongside successive PRs. It determines whether incoming PR information should introduce new skills, refine existing procedures, specialize reusable knowledge, or replace outdated instructions. These decisions are informed by repository changes and the relationships among existing skills, allowing the skill library to adapt without indiscriminate accumulation.
Repository editing and PR analysis. FeatX [12] studies feature-oriented repository editing, addressing the need to coordinate changes across multiple files and components. Agentless [26] decomposes automated software repair into localization, patch generation, and validation, providing a structured approach to repository-level problem solving. Agent-authored PR analysis [28] examines the characteristics and challenges of agent-generated contributions, while SWE-bench and its extensions [4, 9, 17] provide executable benchmarks for evaluating software engineering agents. These studies establish important foundations for repository editing and evaluation. SKILL DREAMING complements them by connecting historical PR information with future implementation: validated development records are transformed into reusable skills that guide feature implementation and associated maintenance, and subsequent PR outcomes provide new evidence for skill evolution.
Comparison with existing methods. Table 1 compares existing approaches across PR-driven learning, skill evolution, repository maintenance, and training-free adaptation. Prior work has explored repository-specific skill extraction and depreciation [11], experience-based skill distillation [16], hierarchical skill management [29], and skill-guided task synthesis [27]. However, these capabilities are typically studied separately. SKILL DREAMING integrates PR record construction, evidence-grounded skill distillation, skill relationship management, and skill-guided repository implementation into a continuous process. This connection between historical development evidence, evolving skills, and subsequent repository changes distinguishes SKILL DREAMING from existing approaches.
3 Problem Formulation
Repository state and skill set. At round , the system maintains a repository and a skill set . A pull request (PR) represents a proposed repository change, including its description, code modifications, and associated feedback. Let denote previously available PRs, and let denote a new development or maintenance request. The skill set captures repository-specific knowledge learned from previous PRs, including implementation patterns, coding conventions, and maintenance requirements. Given , the system aims to produce a new PR that implements the requested changes. As the repository evolves, new PR information can inform the reuse, refinement, extension, or replacement of existing skills.
PR information and skill evolution. The system first constructs PR records through three operations: detecting relevant historical PRs, repairing incomplete or unsuccessful implementations, and synthesizing new candidate changes. The resulting candidates are verified against repository requirements to identify successful changes and informative failures. Based on this information, the system updates the skill set:
The update operation extracts reusable engineering knowledge from the constructed PR records and incorporates it into existing skills. Skills can be reused, extended, revised, or replaced as repository requirements evolve, producing an updated skill set that guides subsequent development.
The updated skill set guides a fixed-weight agent to generate the new PR and update the repository:
Here, denotes the repository after incorporating the accepted PR. The generated PR and its feedback become part of the historical records , informing subsequent skill updates. In historical evaluation, each request uses its recorded base repository , while only the skill set evolves across requests without chaining generated repository changes.
PR-guided optimization objective. The objective is to continuously improve repository development by learning from previous PRs and evolving the skill set across successive requests. Given repository , previous PRs , and request , we define the utility of a generated PR as
The success term measures whether implements while preserving the existing functionality of and satisfying repository-specific requirements. The cost vector captures token consumption, execution time, verification effort, and skill maintenance overhead. The weight vector assigns nonnegative penalties to these costs, balancing implementation success and efficiency.
The PR-guided optimization objective is then defined as
Maximizing J encourages the system to improve implementation success and efficiency across successive requests through continuous skill evolution.
The cost vector in Equation (3) captures the computational and operational overhead of the entire PR-guided development process:
Here, covers historical PR retrieval, covers candidate repair and synthesis, covers testing, covers skill updates, and covers PR generation. Each cost includes computational resources, tokens, and execution time, weighted by . We report tokens and wall time separately.
The optimization objective in Equation (4) is subject to correctness, safety, and resource constraints:
Here, and specify minimum requirements for task completion and preservation of existing functionality, while B defines the resource budget. These constraints define the feasible region of the optimization problem, with probabilities representing desired reliability rather than guarantees from available tests. The staged process approximates this constrained objective without updating model weights or guaranteeing global optimality.
4 Method: From PR Records to Aligned Skills
SKILL DREAMING uses each incoming request to both improve the repository and evolve reusable skills. Figure 1 illustrates the sequential workflow. The system initializes a PR-record index and skill store from the repository, available historical PRs, and optional seed skills. Each round diagnoses the request, constructs and verifies PR records, evolves skills, implements and verifies the PR, and records feedback.
4.1 PR Record Construction
Given repository and request , the system identifies relevant functionality, code, dependencies, and maintenance needs through feature localization [12, 26]. It retrieves historical PRs based on functional similarity and code overlap, and reconstructs additional PRs by segmenting historical repository commits into coherent changes. These PRs are classified as usable, repairable, outdated, irrelevant, or unsafe based on their compatibility with , API changes, and review or CI feedback. The system then constructs candidate PRs by reusing applicable implementations, repairing outdated changes, or synthesizing new PRs with alternative implementations and supporting tests. Each candidate is evaluated through implementation checks, tests, and repository-specific requirements. Candidates satisfying the constraints in Equation (6) are retained as successful PR records for skill learning, while failed candidates provide failure records through their identified errors. If no candidate passes verification, further repair or synthesis is performed within the resource budget. Unlike Socratic-SWE [27], which synthesizes software tasks, our method synthesizes PR records for skill learning.
4.2 Distill PR Information into Skills
Following SkillLens [29], the system converts PR information into reusable repository-specific skills using a fixed-weight LLM writer and predefined skill templates. Given PR and repository , the writer extracts implementation decisions and maintenance requirements from code changes and available review or CI feedback. Each skill specifies when it applies, how to implement the change, and how to validate the result. Failed implementations and review corrections provide negative constraints and repair strategies. The skill generation process is formulated as
Here, denotes the fixed-weight LLM writer, and contains the generated candidate skills. Each skill retains its supporting PR records and repository-version information for subsequent alignment with the existing skill set. The skills span five families:
-
PR Detection. Assesses relevance, freshness, and quality to identify usable, repairable, outdated, or unsafe PRs.
-
PR Construction. Guides task decomposition, PR reuse, repair, and synthesis to generate diverse, verifiable candidates.
-
Feature Implementation. Captures implementation patterns, abstraction alignment, and cross-file dependencies.
-
Maintenance Completion. Specifies testing, documentation, configuration, logging, compatibility, and release requirements.
-
Skill Evolution. Uses successful and failed PR records to guide skill updates, specialization, conflict resolution, and supersession.
Table 2: Skill alignment operations. Actions determine how new PR information updates the existing skill set.
| Operation | Decision and state change |
|---|---|
| ADD | Create a new skill when no applicable skill exists. |
| UPDATE | Revise an existing skill using new information. |
| SPECIALIZE | Narrow a skill's trigger for a specific task or context. |
| EXTEND | Add compatible procedures or maintenance requirements. |
| CONFLICT | Identify incompatible rules requiring resolution. |
| SUPERSEDE | Replace outdated rules while preserving their history. |
| KEEP | Retain an existing skill when no changes are needed. |
4.3 Align New and Existing Skills
The system aligns candidate skills with the existing skill set to produce , following Equation (1). For each candidate, it identifies related skills based on task triggers, implementation procedures, repository components, and version compatibility. The system then determines whether to reuse, modify, or replace existing knowledge using seven alignment operations, as summarized in Table 2. These operations preserve valid knowledge while incorporating new patterns and maintenance requirements from .
Alignment maintains the relationships between skills and their supporting PR records. Each skill records its dependencies, applicable repository versions, and related skills, allowing the system to identify reusable knowledge and resolve conflicting rules. For example, a provider PR introduces a registry-integration skill, which a subsequent exporter PR can reuse and extend with additional validation requirements. When a later PR migrates the registry, outdated registration procedures are superseded, while valid testing and documentation practices are preserved. In this way, the skill set evolves with repository while retaining useful historical knowledge. This process builds on skill revision [11], skill bank management [14], and hierarchical skill rewriting [29].
4.4 Skill-Guided Implementation and Pool Maintenance
Given the aligned skill set , the system retrieves relevant skills based on task similarity, repository compatibility, and historical effectiveness. The selected skills are injected into the fixed-weight actor as repository-specific instructions, guiding code modifications and required maintenance changes. The actor generates PR following Equation (2), including applicable tests, documentation, and compatibility updates. The generated PR is verified against the correctness and safety constraints in Equation (6). Failed implementations undergo bounded repair and re-verification, while accepted changes produce . This process aims to improve the success probability in Equation (3) while controlling execution costs, contributing to the overall objective max in Equation (4).
Skill injection is modeled as
Here, contains the skills injected into the actor, and bounds the number of retrieved skills. The system maintains the active skill pool through the alignment operations in Table 2. New skills are added, existing skills are revised, and superseded versions are archived with their supporting PR records. Only active skills are eligible for retrieval, preventing outdated versions from accumulating while preserving historical knowledge. The final PR, verification results, and skill usage are recorded for subsequent skill evolution.
Algorithm 1 summarizes the workflow of SKILL DREAMING. For each request , the method constructs and verifies PR records, distills reusable skills, and aligns them with to obtain . The updated skills guide feature implementation and maintenance, producing a PR that is verified before updating . Its outcomes inform subsequent skill evolution.
Algorithm 1 SKILL DREAMING Algorithm
Require: Repository , historical PRs , initial skills , requests Ensure: Evolved repository and skill set 1: for do 2: PR Record Construction 3: Localize features; assess PR relevance, freshness, and quality 4: Construct diverse candidates via reuse, repair, and synthesis 5: Verify candidates using tests, review, and failure records 6: Skill Generation and Alignment 7: Generate using Eq. (7) 8: Update using Eq. (1) 9: Apply Add, Update, Specialize, Extend, Conflict, Supersede, or Keep; maintain skill provenance 10: Skill-Guided Repository Implementation 11: Retrieve using Eq. (8) 12: Implement features with abstraction and cross-file alignment 13: Complete tests, docs, config, logging, examples, compatibility, and release obligations 14: Verify changes and record outcomes for subsequent rounds 15: Generate and update using Eq. (2) 16: end for 17: return
5 Experimental Design
5.1 Benchmarks and Baselines
We evaluate SKILL DREAMING on SWE-bench Pro [4] and SWE-bench Verified [9, 17]. The Pro subset includes tasks from Ansible, quitebrowser, and Open Library. The evaluated Verified instances cover 12 repositories. Each task uses its historical base commit. Only previously available PR information and skills are used to prevent future information leakage.
We compare SKILL DREAMING with traditional retrieval methods, including BM25 [21], dense retrieval [18], and hybrid retrieval. We also compare with recent skill-learning methods, including Trace2Skill [16], Learning to Commit [11], SkillLens [29], CODESKILL [14], and Socratic-SWE [27]. Additional ablations examine no-skill settings, append-only updates, positive-only skills, stale skill filtering, and alternative rewriting strategies.
Experiments use Claude Opus-5 and Sonnet-4.6 through the Anthropic SDK [1]. PR metadata is collected through GitHub APIs [7]. We use mini-swe-agent [23] and official SWE-bench evaluation procedures [4, 9, 17], with Docker for execution [5]. Benchmark retrieval uses dense cosine similarity with top eight results and a threshold of 0.20. Dense embeddings are generated using text-embedding-3-small [18].
5.2 Metrics and Statistical Interpretation
We evaluate generated PRs using four metrics. Official resolved rate () measures tasks resolved by the official benchmark harness. Task Success (TS) (TS = Pr(task succeeds)) measures the probability of successful task completion under the corresponding experimental setting. Safe rate () measures PRs satisfying the safety requirements in Equation (6), with valid, nonempty test execution. It does not guarantee feature completion. Maintenance Surface F1 measures whether skill-guided implementation addresses all required repository changes, rather than only the core functionality. Let and denote the required and implemented change categories, excluding other. We compute
We report the mean across tasks. Categories include code, tests, documentation, configuration, examples, and changelogs. Percategory recall considers only tasks requiring that category. This metric evaluates whether skill-guided implementation addresses all necessary repository components, but does not verify the correctness of individual changes. Logging and compatibility are not evaluated separately.
Localization. Let denote the gold locations and the top- retrieved locations. Top- Hit Rate measures the probability of retrieving at least one correct location, while Recall@ measures the expected fraction of gold locations retrieved. We compute
Mean Reciprocal Rank (MRR) measures the average reciprocal rank of the first correct location, assigning zero when no correct location is retrieved. All metrics are evaluated on tasks with nonempty gold locations.
Efficiency. We measure efficiency using average token consumption and execution time per task. Token consumption includes both input and output tokens, while execution time measures wall-clock time in seconds. Offline skill construction costs are reported separately when excluded.
6 Results
6.1 End-to-End Evaluation
Table 3: Official resolution rates on SWE-bench Pro and SWE-bench Verified. Resolved rates are evaluated using the official benchmark harness. Base denotes the default mini-agent without skills, and represents the improvement achieved by Ours over Base.
| Benchmark | Backbone | Base | Ours | |
|---|---|---|---|---|
| SWE-bench Pro [4] | Claude Opus 5 | 0.79 | 0.88 | +9.0% |
| SWE-bench Verified [17] | Claude Opus 5 | 0.83 | 0.92 | +9.0% |
| SWE-bench Verified [17] | Claude Sonnet 4.6 | 0.77 | 0.79 | +2.0% |
Table 3 shows that SKILL DREAMING consistently improves task resolution across benchmarks and backbone models. With Claude Opus 5, it achieves 88% on SWE-bench Pro and 92% on SWE-bench Verified, improving the base agent by 9% on both benchmarks. The gains also extend to Claude Sonnet 4.6, demonstrating effectiveness across different model capabilities. We exclude Sonnet 4.6 from SWE-bench Pro due to its weak baseline performance.
To further evaluate SKILL DREAMING, we compare it with existing skill learning methods in Table 4. SKILL DREAMING achieves the highest resolved rate of 92%, outperforming all baselines, including append-only skill accumulation. It also achieves a perfect Safe Rate of 1.00 and the highest Maintenance Surface F1 of 0.74, demonstrating stronger preservation of existing functionality and more comprehensive maintenance of related repository components. These results highlight the advantages of continuously evolving repository-specific skills over static or append-only approaches.
6.2 Cross-Repository Generalization
We evaluate cross-repository generalization on six repositories spanning four software domains: CLI and development tools (Click, Black, and Rich), web and HTTP libraries (HTTPX), data and scientific computing (Arrow), and agent frameworks (Agents). For each repository, we first split historical PRs into skill-construction and evaluation sets. SKILL DREAMING then constructs repository-specific skills from an initially empty skill pool using historical PR data and applies the evolving skills to evaluation PRs. As shown in Table 5, SKILL DREAMING improves task success across all six repositories, with gains ranging from 0.07 to 0.20, while also improving Maintenance Surface F1. These results demonstrate the ability of SKILL DREAMING to adapt to diverse repository structures and development conventions.
6.3 PR Record Analysis and Implementation Evaluation
Table 6 evaluates code localization at module, file, and function levels. Localization performs best at the module level, followed by file-level retrieval, while function-level localization remains more challenging.
Building on localization, Table 7 illustrates PR quality classification across five categories using a set of 1,000 SWE-bench Pro
Table 4: Main results with Claude Opus 5 on SWE-bench Verified. Base Agent uses the built-in mini-agent without skills; Append-only adds new skills without updating existing ones. Resolved Rate is the fraction of tasks resolved by the official benchmark harness; Safe Rate () is the fraction of PRs satisfying the safety requirements in Eq. (6); Existing is the historical existing-test pass rate; Surf. F1 is the mean Maintenance Surface F1 defined in Eq. (9); Algn. measures historical alignment. Best results are shown in bold.
| Method | Resolved Rate ↑ | Safe Rate ↑ | Existing ↑ | Surf. F1 ↑ | Algn. ↑ |
|---|---|---|---|---|---|
| Base Agent | 0.83 | 0.83 | 0.83 | 0.62 | 0.38 |
| Append-only | 0.88 | 0.94 | 0.94 | 0.72 | 0.44 |
| Trace2Skill [16] | 0.76 | 0.78 | 0.78 | 0.60 | 0.37 |
| Learning to Commit [11] | 0.72 | 0.67 | 0.67 | 0.64 | |
| SkillLens [29] | 0.90 | 0.61 | 0.61 | 0.59 | 0.37 |
| CODESKILL [14] | 0.79 | 0.56 | 0.56 | 0.46 | 0.32 |
| Socratic-SWE [27] | 0.91 | 0.72 | 0.72 | 0.64 | 0.45 |
| SKILL DREAMING (Ours) | 0.92 | 1.00 | 1.00 | 0.74 | 0.44 |
Table 5: Cross-repository generalization with Claude Opus 5. Task Success (TS) measures task completion, and Surf. F1 denotes the Maintenance Surface F1 defined in Eq. (9).
| Repository | Category | Base TS | Ours TS | Base F1 | Ours F1 |
|---|---|---|---|---|---|
| Click | CLI / Dev Tools | 0.72 | 0.70 | ||
| Black | CLI / Formatter | 0.53 | 0.48 | ||
| Rich | CLI / Rendering | 0.90 | 0.78 | ||
| HTTPX | Web / HTTP | 0.80 | 0.72 | ||
| Arrow | Data / Scientific | 0.58 | 0.71 | ||
| Agents | Agent Framework | 0.50 | 0.85 |
Table 6: Code localization at different granularities. Top-k indicates whether a correct location is retrieved, R@k measures the fraction of correct locations retrieved, and MRR measures the reciprocal rank of the first correct result.
| Granularity | Top-1 | Top-3 | R@5 | R@10 | MRR |
|---|---|---|---|---|---|
| Module | 1.00 | 1.00 | 0.99 | 0.99 | 1.00 |
| File | 0.64 | 0.90 | 0.92 | 0.96 | 0.77 |
| Function | 0.25 | 0.39 | 0.33 | 0.33 | 0.33 |
Table 7: PR quality classification results. Precision, recall, and F1 for SWE-bench Pro ansible dataset of 1,000 PRs.
| PR Category | Precision | Recall | F1 | Support |
|---|---|---|---|---|
| Usable | 0.93 | 0.94 | 0.94 | 260 |
| Repairable | 0.87 | 0.90 | 0.88 | 50 |
| Outdated | 0.90 | 0.91 | 0.90 | 190 |
| Irrelevant | 0.96 | 0.93 | 0.94 | 450 |
| Unsafe | 0.85 | 0.88 | 0.86 | 50 |
Ansible PRs. All categories achieve F1 scores above 0.86, with irrelevant PRs reaching 0.945.
Finally, Table 8 compares PR implementation methods. Single Sample generates one patch, while Best-of-K selects from multiple candidates. Trace2Skill and SkillLens composition serve as skill-based baselines. SKILL DREAMING achieves a Task Success of 1.000
Table 8: Comparison of PR implementation methods. Task Success (TS) measures successful task completion, and Maintenance Surface F1 evaluates the coverage and precision of required repository changes.
| Method | TS | Surface F1 |
|---|---|---|
| Single Sample | 0.94 | 0.80 |
| Best-of-K | 1.00 | 0.87 |
| Trace2Skill [16] | 0.78 | 0.60 |
| SkillLens-inspired composition [29] | 0.61 | 0.71 |
| SKILL DREAMING | 1.00 | 0.87 |
Table 9: Impact of information sources for skill learning. Comparison of task success (TS), skill reuse precision, and recall across different information sources and methods.
| Information Source / Method | TS | Reuse Precision | Recall |
|---|---|---|---|
| Positive PRs only | 0.84 | 0.67 | 0.78 |
| Review / reply only | 0.83 | 0.48 | 0.56 |
| Trace2Skill [16] | 0.72 | 0.61 | 0.76 |
| Socratic [27] | 0.83 | 0.67 | 0.77 |
| SKILL DREAMING | 0.89 | 0.72 | 0.82 |
and a Maintenance Surface F1 of 0.871, outperforming Single Sample and both skill-based baselines while matching Best-of-K on shared candidate outputs.
Table 9 examines how different historical PR information sources affect the quality of learned repository skills and their effectiveness in implementing future PRs. We compare skills constructed from successful PRs, review discussions, and multiple information sources against existing skill-learning methods. SKILL DREAMING achieves the highest Task Success of 0.89, outperforming positive-only skills, review-only skills, Trace2Skill, and the Socratic baseline.
Table 10: Impact of skill relation management. Comparison of skill filtering strategies across two settings. TS denotes Task Success, and Surface F1 denotes Maintenance Surface F1.
| Method | Skill Filtering | Hybrid Retrieval | ||||
|---|---|---|---|---|---|---|
| TS | Surface F1 | Precision | TS | Surface F1 | Precision | |
| No Supersession | 0.67 | 0.51 | 0.92 | 0.83 | 0.74 | 0.97 |
| No Stale Filtering | 0.72 | 0.64 | 0.78 | 0.71 | 0.92 | |
| Neither Filter | 0.78 | 0.69 | 0.93 | 0.89 | 0.74 | |
| Append-only | 0.89 | 0.75 | 0.92 | 0.89 | 0.74 | 0.92 |
| SKILL DREAMING (Full) | 0.93 | 0.75 | 0.93 | 0.94 | 0.77 | 0.90 |
Table 11: Comparison of skill updating methods. TS denotes Task Success.
| Skill Update Method | TS |
|---|---|
| Append-only | 0.89 |
| Parent-only | 0.87 |
| Rewrite-all | 0.82 |
| SkillLens-style selective [29] | 0.83 |
| No conflict/supersede | 0.78 |
| Learning to Commit-style [11] | 0.78 |
| SkillLens-style [29] | 0.89 |
| SKILL DREAMING (Full) | 0.93 |
Table 12: Efficiency comparison. Comparison of task success, maintenance quality (Surface F1), token consumption (Tokens), and execution time.
| Method | TS | Surface F1 | Tokens | Time (s) |
|---|---|---|---|---|
| SkillLens [29] | 0.61 | 0.71 | 14,300 | 32.90 |
| SKILL DREAMING | 0.93 | 0.80 | 26,894 | 36.00 |
6.4 Ablation Studies
Table 10 presents an ablation study of skill relation management under two settings: Skill Filtering, which directly evaluates relation-based filtering, and Hybrid Retrieval, which applies filtering after combined retrieval. We ablate supersession filtering, stale-skill filtering, and both, with append-only as an additional baseline. The full SKILL DREAMING achieves the highest TS of 0.93 and 0.94, with Surface F1 scores of 0.75 and 0.77, respectively. These results demonstrate the importance of jointly maintaining supersession and stale-skill filtering.
Following the ablation of skill relation management, Table 11 further investigates the impact of different skill updating strategies. Append-only adds new skills without modifying existing ones. Parent-only updates the directly related parent skill, while Rewrite-all rewrites all relevant skills. SkillLens-style selection [29] selectively revises existing skills based on their relevance to new information. No conflict/supersede removes explicit conflict resolution and supersession handling. Learning to Commit-style [11] extracts reusable development knowledge from commit histories, while SkillLens-style [29] organizes and reuses learned skills. In contrast, SKILL DREAMING updates repository skills while maintaining their relationships and validity. The full SKILL DREAMING achieves a TS of 0.93, outperforming all skill updating variants, while existing PR retrieval achieves 1.00.
Finally, we examine the impact of skill filtering through an additional ablation. Disabling filtering reduces Maintenance Surface F1 from 0.867 to 0.756, a decrease of 0.111. This result further highlights the importance of filtering outdated and superseded skills during repository evolution.
6.5 Continuous Skill Evolution
We investigate whether SKILL DREAMING can continuously improve repository-specific skills as new PRs arrive. Using Claude Opus 5 under the SWE-bench Pro headline setting, we initialize the skill set with 500 historical PRs and incrementally update it with 50 additional PRs at each stage, reaching 1,000 PRs. Figure 2 illustrates the evolution of task performance and maintenance quality. All three metrics exhibit an overall upward trend despite occasional fluctuations, suggesting that accumulated PR knowledge can progressively improve skill-guided implementation. This experiment evaluates whether SKILL DREAMING can adapt to changing repository conventions through continuous skill evolution.

Figure 2: Continuous skill evolution through PR streams. TS, resolved rate, and Surface F1 of SKILL DREAMING with Claude Opus 5 on SWE-bench Pro as new PRs arrive and repository-specific skills are incrementally updated.
6.6 Efficiency Analysis
Table 12 compares the efficiency of SKILL DREAMING and SkillLens in terms of task performance, maintenance quality, and computational cost. SKILL DREAMING achieves a TS of 0.93 and a Surface F1 of 0.80, outperforming SkillLens, which obtains 0.61 and 0.71, respectively. This improvement comes with increased resource consumption, as SKILL DREAMING uses 26,894 tokens and requires 36.00 seconds per task, compared with 14,300 tokens and 32.90 seconds for SkillLens. These results indicate that SKILL DREAMING provides substantial improvements in task success and repository maintenance, with higher token consumption but only a modest increase in execution time.
7 Conclusion
We propose SKILL DREAMING, a framework that continuously evolves repository-specific skills from pull request streams. By constructing verified PR records, distilling reusable skills, and maintaining their relationships, SKILL DREAMING enables coding agents to extend and maintain evolving repositories. This process transforms historical development evidence into actionable knowledge that guides future implementation decisions. As repositories evolve, SKILL DREAMING adapts existing skills to changing code structures, implementation conventions, and maintenance requirements. Experiments show that SKILL DREAMING improves the official resolved rate from 79% to 88% on SWE-bench Pro and from 83% to 92% on SWE-bench Verified. Further evaluations demonstrate its effectiveness across repositories, the importance of skill evolution and alignment, and improved task success and maintenance quality with modest additional computational costs. These findings highlight PR-driven skill evolution as a promising approach to continuous repository development and maintenance.
References
[1] Anthropic. 2026. Anthropic Python API Library. Software documentation, accessed October 2026. https://github.com/anthropics/anthropic-sdk-python
[2] Akari Asai, Zeqiu Wu, Yizhong Wang, Avirup Sil, and Hannaneh Hajishirzi. 2024. Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflection. https://arxiv.org/abs/2310.11511
[3] Jialun Cao, Xinru Yan, Songqiang Chen, Yaojie Lu, Zhongxin Liu, and Shing-Chi Cheung. 2026. Inside the Skill Market: From Software Engineering Activities to Reusable Agent Skills. arXiv:2607.09065 https://arxiv.org/abs/2607.09065
[4] Xiang Deng, Jeff Da, Edwin Pan, Yannis Yiming He, Charles Ide, Kanak Garg, Niklas Lauffer, Andrew Park, Nitin Pasari, Chetan Rane, Karmini Sampath, Maya Krishnan, Srivatsa Kundurthy, Sean Hendryx, Zifan Wang, Vijay Bharadwaj, Jeff Holm, Raja Aluri, Chen Bo Calvin Zhang, Noah Jacobson, Bing Liu, and Brad Kenstler. 2025. SWE-Bench Pro: Can AI Agents Solve Long-Horizon Software Engineering Tasks? https://arxiv.org/abs/2509.16941
[5] Docker. 2026. Docker Documentation. https://docs.docker.com/ Documentation accessed October 19, 2026.
[6] Haoyu Gao, Jai Lal Lulla, Hong Yi Lin, Sebastian Baltes, Christoph Treude, and Mansooreh Zahedi. 2026. From Registry to Repository: How AI Agent Skills Are Written, Adapted, and Maintained. arXiv:2607.00911 https://arxiv.org/abs/2607.00911
[7] GitHub. 2026. REST API Endpoints for Pull Requests. https://docs.github.com/en/rest/pulls/pulls Documentation accessed October 19, 2026.
[8] Jingzhi Gong, Ruizhen Gu, Zhiwei Fei, Yazhuo Cao, Lukas Twist, Alina Geiger, Shuo Han, Dominik Sobania, Federica Sarro, and Jie M. Zhang. 2026. SkillMOO: Multi-Objective Optimization of Agent Skills for Software Engineering. doi:10.1145/3832783.3834550
[9] Carlos E. Jimenez, John Yang, Alexander Wettig, Shunyu Yao, Kexin Pei, Ofir Press, and Karthik Narasimhan. 2024. SWE-bench: Can Language Models Resolve Real-World GitHub Issues? arXiv:2310.06770 https://arxiv.org/abs/2310.06770
[10] Patrick Lewis, Ethan Perez, Aleksandra Piktus, Fabio Petroni, Vladimir Karpukhin, Naman Goyal, Heinrich Küttler, Mike Lewis, Wen tau Yih, Tim Rocktäschel, Sebastian Riedel, and Douwe Kiela. 2020.
Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks. 9459–9474 pages. https://proceedings.neurips.cc/paper/2020/hash/6b493230205f780e1bc26945df7481e5-Abstract.html
[11] Mo Li, L. H. Xu, Qitai Tan, Ting Cao, and Yunxin Liu. 2026. Learning to Commit: Generating Organic Pull Requests via Online Repository Memory. https://arxiv.org/abs/2603.26664
[12] Xutian Li, Yifeng Zhu, Xianlin Zhao, Yanzhen Zou, Lu Zhang, and Bing Xie. 2026. FeatX: Editing Software by Editing Features for Repository-Level Code Evolution. https://arxiv.org/abs/2606.31206
[13] Yubo Li. 2026. Dynamic Agent Skills: A Lifecycle Survey and Taxonomy of Evolving Skill Libraries. arXiv:2607.10113 [cs.AI] https://arxiv.org/abs/2607.10113
[14] Yanzhou Li, Yiran Zhang, Xiaoyu Zhang, Xiaoxia Liu, and Yang Liu. 2026. CODESKILL: Learning Self-Evolving Skills for Coding Agents. https://arxiv.org/abs/2605.25430
[15] George Ling, Shanshan Zhong, and Richard Huang. 2026. Agent Skills: A Data-Driven Analysis of Claude Skills for Extending Large Language Model Functionality. arXiv:2602.08004 https://arxiv.org/abs/2602.08004
[16] Jingwei Ni, Yihao Liu, Xinpeng Liu, Yutao Sun, Mengyu Zhou, Pengyu Cheng, Dexin Wang, Erchao Zhao, Xiaoxi Jiang, and Guanjun Jiang. 2026. Trace2Skill: Distill Trajectory-Local Lessons into Transferable Agent Skills. https://arxiv.org/abs/2603.25158
[17] OpenAI. 2024. Introducing SWE-bench Verified. https://openai.com/index/introducing-swe-bench-verified/
[18] OpenAI. 2024. New Embedding Models and API Updates. https://openai.com/index/new-embedding-models-and-api-updates/
[19] Siru Ouyang, Jun Yan, I-Hung Hsu, Yanfei Chen, Ke Jiang, Zifeng Wang, Rujun Han, Long T. Le, Samira Daruki, Xiangru Tang, Vishy Tirumalashetty, George Lee, Mahsan Rofouei, Hangfei Lin, Jiawei Han, Chen-Yu Lee, and Tomas Pfister. 2025. ReasoningBank: Scaling Agent Self-Evolving with Reasoning Memory. https://arxiv.org/abs/2509.25140
[20] Hongji Pu, Xinyuan Song, and Liang Zhao. 2026. SkillOps: Managing LLM Agent Skill Libraries as Self-Maintaining Software Ecosystems. arXiv:2605.13716 [cs.SE] https://arxiv.org/abs/2605.13716
[21] Stephen Robertson and Hugo Zaragoza. 2009. The Probabilistic Relevance Framework: BM25 and Beyond. Foundations and Trends in Information Retrieval 3, 4 (2009), 333–389. doi:10.1561/1500000019
[22] Liyan Tang, Cyrus Rashtchian, Chun-Sung Ferng, Andrew Tomkins, Da-Cheng Juan, and Tu Vu. 2026. WikiSkill: Compiling Agent Experience into Persistent Knowledge for Skill Evolution. arXiv:2608.27454 https://arxiv.org/abs/2608.27454
[23] The SWE-agent Project. 2025. mini-swe-agent. Open-source software. https://github.com/SWE-agent/mini-swe-agent
[24] Yongqi Tong, Pan Wang, Hang Wang, Jianshe Li, Xin Zhang, Jiang-Ming Yang, and Wei Wu. 2026. Grounded Skill Synthesis from Code at Scale for Agentic Intelligence. arXiv:2609.05571 https://arxiv.org/abs/2609.05571
[25] Jiajie Wang, Yutong Zhao, Tianlin Li, Huashan Chen, Jinfu Chen, Kebin Peng, and Sen He. 2026. Agent Skill Evolution: How Revisions Affect Coding Agents. arXiv:2610.04832 https://arxiv.org/abs/2610.04832
[26] Chunqiu Steven Xia, Yinlin Deng, Soren Dunn, and Lingming Zhang. 2025. Demystifying LLM-Based Software Engineering Agents. 24 pages. doi:10.1145/3715754
[27] Chuan Xiao, Zhengbo Jiao, Shaobo Wang, Wei Wang, Bing Zhao, Hu Wei, Linfeng Zhang, and Lin Qu. 2026. Socratic-SWE: Self-Evolving Coding Agents via Trace-Derived Agent Skills. https://arxiv.org/abs/2606.07412
[28] George Xu, Arjun Subramanian, and Nithilan Karthik. 2026. AI Agent Pull Requests on GitHub: Frequency, Structure, and Merge Conflict Rates. https://arxiv.org/abs/2607.04697
[29] Ziyang Yu, Yongliang Miao, Liang Zhao, Bowen Zhu, and Hasibul Haque. 2026. SkillLens: Adaptive Multi-Granularity Skill Reuse for Cost-Efficient LLM Agents. https://arxiv.org/abs/2605.08386
[30] Fengji Zhang, Bei Chen, Yue Zhang, Jacky Keung, Jin Liu, Daoguang Zan, Yi Mao, Jian-Guang Lou, and Weizhu Chen. 2023. RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generation. 2471–2484 pages. doi:10.18653/v1/2023.emnlp-main.151
[31] Yingli Zhou, Wang Shu, Yaodong Su, Wenchuan Du, Yixiang Fang, and Xuemin Lin. 2026. A Comprehensive Survey on Agent Skills: Taxonomy, Techniques, and Applications. arXiv:2605.07358 [cs.AI] https://arxiv.org/abs/2605.07358