技能星座:追踪GitHub上智能体技能的供应链

·

研究论文 · 2026/10/10

Agent skills 是 SKILL.md 指令和脚本,AI 编码代理(如 Claude Code 和 Codex)以用户权限运行。开发者通过在仓库间复制来分享技能,这形成了一条没有注册表、版本或来源的软件供应链。因此,被复制技能的来源、安全修复的覆盖范围以及需要审查的仓库都未知。记录某一时间点哪些仓库拥有技能的 studies 无法揭示谁从谁那里复制。我们贡献了首个 agent skills 的带日期复制网络,基于 GitSkills 中每个 SKILL.md 的 git 历史构建,覆盖 GitHub 上 2,193,119 次技能采用,并附带交互式查看器。少数仓库是几乎所有副本的来源,而 GitHub stars 并不能识别它们。技能副本几乎从不随其来源改变,因此来源处的修复很少到达它们。我们拟合了一个模型,描述哪些仓库被其他仓库复制,并用它对仓库进行审计排名。审查其排名最高的 100 个仓库可防止 14.9% 的后续高风险技能采用,而 100 个最多星标仓库仅为 0.5%,这为安全工程师提供了一个在技能传播前检查的短名单。因此,平台应分发版本化引用而非副本。项目网站:https://fahdseddik.github.io/Skill-Constellations/

该研究首次揭示了 agent skills 的复制供应链,提供了可操作的审计排名方法,能显著提高高风险技能传播的拦截效率,对 AI 编码代理的安全治理具有直接指导意义。

Agent skills are SKILL.md instructions and scripts that AI coding agents such as Claude Code and Codex run with the permissions of their user. Developers share skills by copying them between repositories, which makes them a software supply chain without a registry, versions or provenance. The origin of a copied skill, the reach of a security fix and the repositories that warrant review are therefore unknown. Studies that record which repositories hold a skill at a single point in time cannot reveal who copied it from whom. We contribute the first dated copy network of agent skills, built from the git history of every SKILL.md in GitSkills and covering 2,193,119 skill adoptions across GitHub, together with an interactive viewer. A few repositories are the source of almost all copies, and GitHub stars do not identify them. Skill copies almost never change with their source, and a fix at the source therefore rarely reaches them. We fit a model of which repositories others copy from and use it to rank repositories for audit. Reviewing the 100 repositories it ranks highest prevents 14.9% of later adoptions of high-risk skills, against 0.5% for the 100 most starred, which gives security engineers a short list to check before a skill spreads. Platforms should therefore distribute versioned references rather than copies. Project Website: https://fahdseddik.github.io/Skill-Constellations/

阅读原文

参与讨论