SkillGrad: Optimizing Agent Skills Like Gradient Descent

Hanyu Wang, Yifan Lan, Bochuan Cao, Lu Lin, Jinghui Chen
5/26/2026
34 citations
cs.AI

No official code found. Best implementation: wwwhy725/SkillGrad (28 stars, Python, MIT, last commit 2026-05-28).

Abstract

Agent skills provide a lightweight way to adapt LLM agents to specialized domains by storing reusable procedural knowledge in structured files. However, whether downloaded from third parties or self-generated, these skills are often unreliable, incomplete, or outdated.

Show full abstract

Existing skill-evolution methods often address these deficiencies through heuristic reflections without an explicit optimization formulation. In this paper, we propose SkillGrad, a gradient-descent-inspired framework for optimizing agent skills. SkillGrad treats the skill package as a structured parameter to optimize in a gradient descent fashion: task executions provide trajectory-level loss evidence, automatic diagnoses then provide text-based gradients that indicate the correction directions. To stabilize optimization across iterations, a momentum agent accumulates recurring diagnostic patterns into a persistent memory overlay. Finally, an LLM-based patcher executes the parameter update by applying layer-aware edits to the skill package. Evaluated on SpreadsheetBench Verified and WikiTableQuestions, SkillGrad consistently outperforms training-based skill evolution baselines across two backbone LLMs, improving over the strongest training-based baseline by $6.7$ percentage points on average. Ablations further show that momentum and contrastive diagnosis both contribute to the final skill quality.

View on arXivView PDF

Code Implementations(1)

wwwhy725/SkillGradCommunity25%
MIT

SkillGrad: Optimizing Agent Skills Like Gradient Descent

287Python, ShellMay 26, 20266 months agoMIT

Similar Papers

Cite this paper

@article{wang2026skillgrad,
  title  = {SkillGrad: Optimizing Agent Skills Like Gradient Descent},
  author = {Hanyu Wang and Yifan Lan and Bochuan Cao and Lu Lin and Jinghui Chen},
  year   = {2026},
  eprint = {2605.27760},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.27760v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2605.27760.svg)](https://codeofpaper.com/paper/2605.27760)

Discussion