Trajectory-Guided Fault Localization for Agent Skill Evolution
Abstract
Agent skills provide reusable guidance for code agents, but incomplete or unsuitable guidance can impair task execution. To reduce the manual effort of skill refinement, recent approaches use LLMs to generate revisions from execution feedback. However, grounding these revisions in explicit behavioral evidence remains challenging. To address this gap, we propose SkillMorph, a skill-evolution approach based on trajectory-guided fault localization in agent skills. Its core idea is to link execution evidence to specific skill contents before generating revisions. Specifically, SkillMorph compares failure and success evidence in abstracted trajectories across repeated runs and tasks, incorporating changes between evolution loops to identify suspicious actions. It then uses these suspicious actions to localize edit sites in the skills and generate corresponding revisions. Experiments on SWE-Skills-Bench and CannBot show that the skills evolved by SkillMorph consistently achieve higher trial-level accuracy and execution consistency than the original skills and those from four existing skill-evolution methods. We have also applied SkillMorph to automated kernel generation with an AI operator-development team, which has accepted 6 skill-revision pull requests.
Create a lesson
Metadata
- Categories
- cs.SE, cs.AI
- Journal
- Proceedings of the ACM on Software Engineering 3, FSE (2026), 1888-1909
- Comments
- 20 pages, 3 figures
Related papers
Cortex: Measurement-Gated Evolution and Pruning of Coding-Agent Skills and Rules
Shared title terminologycs.SESamuele Giampieri
Agent Skill Evolution: How Revisions Affect Coding Agents
Shared title terminologycs.SEJiajie Wang, Yutong Zhao, Tianlin Li et al.
Residual-Guided Model Selection for Terminal-Based Coding Agents
Shared title terminologycs.SEChang Zhou, Zhaoling Chen, Qian Zhang
Locally Correct, Globally Wrong: The Defects Humans Had to Catch in an Agent-Built System
Shared title terminologycs.SEDing Lin Lee, Jiaxin Dai, Ivonne Wijaya et al.
ReleaseSynth: Scaling Data from Software Evolution for Long-Horizon Coding Agents
Shared title terminologycs.SEMan Ho Lam, Chaozheng Wang, Zongjie Li et al.
From Availability to Utility: Auditing Skill Uptake and Conversion in LLM Agents
Shared title terminologycs.SEPenghao Jiang, Jiayi Li, Jiaojiao Jiang et al.