从解剖到气味:Agent技能中SKILL.md的实证研究
From Anatomy to Smells: An Empirical Study of SKILL.md in Agent Skills
AI总结:
对238个真实Agent技能的SKILL.md文件进行定性分析,构建语义组件分类法,通过多源文献综述识别最佳实践并定义技能气味,开发自动检测器发现超过99%的文件存在气味且难以消除。
摘要:
Agent技能为LLM代理提供按需领域知识,无需重新训练模型。每个Agent技能由一个强制性的this http URL文件定义,该文件包含元数据和一个非结构化的Markdown正文,其内容完全由技能作者决定。尽管Agent技能被迅速采用,但关于这些文件如何编写或现有编写指南在实践中是否被遵循,我们知之甚少。在本文中,我们首次对this http URL文件作为软件制品进行了系统研究。我们定性分析了238个真实技能,推导出包含13个高层级和44个低层级语义组件的分类法。然后,我们对29个来源进行了多源文献综述,以确定编写this http URL文件的最佳实践,并引入技能气味作为对这些实践的违反。最后,我们开发了一个自动检测器并将其应用于真实技能,发现超过99%的this http URL文件包含至少一个技能气味,并且一旦引入,技能气味很少随着技能演化而消失。这些发现揭示了推荐实践与实际编写实践之间的巨大差距,激励开发自动技术来修复技能气味,同时提高开发人员对这一新兴质量问题的认识。
英文摘要:
Agent Skills provide on-demand domain knowledge to LLM agents without requiring model retraining. Each Agent Skill is defined by a mandatory SKILL$.$md file containing metadata and an unstructured Markdown body whose contents are left entirely to the skill author. Despite the rapid adoption of Agent Skills, little is known about how these files are authored or whether existing authoring guidelines are followed in practice. In this paper, we present the first systematic study of SKILL$.$md files as a software artifact. We qualitatively analyze 238 real-world skills and derive a taxonomy of 13 higher-level and 44 lower-level semantic components. We then conduct a multivocal literature review of 29 sources to identify best practices for authoring SKILL$.$md files and introduce skill smells as violations of these practices. Finally, we develop an automated detector and apply it to real-world skills, finding that over 99% of SKILL$.$md files contain at least one skill smell, and once introduced, skill smells rarely disappear as skills evolve. These findings reveal a substantial gap between recommended and actual authoring practices, motivating the development of automated techniques to remediate skill smells while increasing developer awareness of this emerging quality issue.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。