cs.SEOct 8, 2026

Trajectory-Guided Fault Localization for Agent Skill Evolution

Authors: Yu Ge, Linna Xie, Zhong Li, Yu Pei, Tian Zhang

Organizations: Nanjing University · The Hong Kong Polytechnic University

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.

Figures & tables

Explore similar work

CardsList
  1. SkillAudit: Ground-Truth-Free Skill Evolution via Paired Trajectory Auditing

    Jun 12, 2026Haowen Gao, Haoran Chen, Can Wang +5Algorithmic AuditingLLM Agent Self-Improvement

  2. SkillRevise: Improving LLM-Authored Agent Skills via Trace-Conditioned Skill Revision

    May 31, 2026Yuxuan Liu, Zhaochen Su, Lingyun Xie +11LLM Agent Self-ImprovementLLM Agent Skill Learning

  3. A Wrong Turn Does Not Ruin the Journey: Deviation-Guided Skill Self-Evolution for LLM Agents

    Sep 24, 2026Yichun Feng, Jiawei Wang, Haozhe SunLLM Agent Self-ImprovementLLM Agent Skill Learning