betaFeedback

WorksComputer Science

Skill Constellations: Tracing the Supply Chain of Agent Skills on GitHub

Abstract

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/

Repository network and copy cascade of agent skills

Introduction

Coding agents such as Claude Code, Codex and Cursor extend their capabilities through skills [1], which are folders containing a SKILL.md file of instructions and often scripts. An agent follows a skill with the permissions of its user, and a skill can therefore run shell commands, access the network and modify files. Within ten months, the format appeared in 259,596 repositories with 1,612,846 distinct skills, and half of all SKILL.md files on GitHub are verbatim copies of another file [2]. Skills therefore form a software supply chain built from copies, lacking a registry that records provenance, a version that can be pinned and a channel that delivers fixes.

Securing this supply chain requires knowing which repositories to review first, whether a fix at a source reaches its copies, and how long a new skill takes to spread. Package managers answer these questions from a dependency graph, which skills do not have. Prior work cannot answer them either, because it studies skills in a snapshot, one skill or one pair of skills at a time [3], [4], [5], [6], [7], [8]. A snapshot records which repositories hold a skill, but not which held it first, which copied from which, or when. Studies of copied code share this limitation, and find that copied files are seldom updated or attributed [9], [10].

We reconstruct the missing graph from the git history of every SKILL.md in GitSkills, which yields the first dated and directed network of how agent skills spread. We refer to the network formed by the copies of a single skill as its constellation (Figure 1b). A snapshot captures the nodes of a constellation, while only the history reveals the edges between them. We address four research questions. RQ1. What structure does skill copying produce, and which growth mechanisms explain it? RQ2. Which repositories originate the spread of skills, and do GitHub stars identify them? RQ3. Where are high-risk capabilities located in the copy network, and do fixes propagate to existing copies? RQ4. Where should audits be targeted to prevent future adoptions of high-risk skills, and does network position identify these targets better than popularity or size?

Repository network at the dataset snapshotCopy cascade of the skill web-design-guidelines

Figure 1. Skill constellations. (a) The repository network at the dataset snapshot, labelled with the topics of the largest communities. The outer ring holds the 64.2% of repositories that share no skill. (b) The copy cascade of the skill web-design-guidelines, which reached 972 adopters over 12 generations of copies.

Our contributions are as follows.

  • We reconstruct a dated copy network of agent skills that links each copy to its source, and validate it against the records of skill installers.

  • We show that skill copies do not change with their source, and that modified copies gain capabilities by adopting other versions rather than through the edits of their owners [11].

  • We fit a model of how repositories choose the sources they copy from, and evaluate the audits it recommends on a held-out period after a temporal split. Prior security work detects dangerous skills [4], [5], [7], whereas this work ranks repositories for review.

Data and Method

Population and dating. We use GitSkills, released in July 2026 and archived on Zenodo (DOI 10.5281/zenodo.21875637) [2]. We retain files named exactly SKILL.md with valid front matter, first committed on or after 1 October 2025, in repositories that are not forks, and treat each distinct content as one skill. We collected the git history of every SKILL.md path from a clone of each default branch. An adoption is a repository acquiring a skill, dated by its first commit and bounded below by the creation date of the repository, since forks and mirrors carry older history.

Lineages, copies and constellations. A lineage joins the versions of one skill that are linked by edits, and its first adoption is its origin. A commit that adds ten or more SKILL.md files forms a copy event when a single earlier adopter held at least half of its existing lineages, and this adopter is its source. A copy event is a bundle below 100 files. and a bulk copy above. A transmission is a lineage in a copy event whose source held it first, and the remaining adoptions are individual. The constellation of a skill is its diffusion cascade, with its adopters as nodes and its transmissions as dated and directed edges.

Spread model and audits. A conditional logit models which earlier adopter a copy event chooses as its source, from the logarithms of skills held, past copies, stars and age. A weekly simulation adds individual adoption in proportion to a power of current adopters and is calibrated on the weeks before 1 April 2026. Audits are evaluated on a temporal split, where each strategy ranks repositories using only the training period, by the source-choice score fitted on that period or by baselines such as stars and copy out-degree. Auditing a repository removes its flagged skills, which prevents its high-risk adoptions in the held-out period and every copy that descends from them.

Validation and risk flags. In 1,534 folders whose skill installer recorded where and when the skill was copied from, the reconstructed date lies within seven days of the record in 94.6% of cases. The recorded source held the skill earlier in 99.1% of cases, whereas our rule names it in only 26.7%, because the rule credits the earlier adopter of the most lineages, usually a catalog. Source-level measures therefore describe distribution rather than authorship. We flag skills that bundle executables, pre-approve tools or instruct risky actions.

Labelling. Claude Opus 5.5 and Claude Sonnet 5.5 label the type of a random sample of 150 source repositories and the three risks of a sample of 200 skills stratified by flag. Each model labels independently through the Claude Code command line (Claude -p), follows a written codebook and quotes the line that decides each answer. A repository is labelled from its README excerpt and file tree as an aggregator catalog, a starter template, a self-copying owner, a bot-generated or coordinated repository, or an ordinary project. The two models agree with an unweighted Cohen’s κ\kappa of 0.77 on repository types and between 0.66 and 1.00 on the skill questions. Every disagreement and every item a model declined was resolved manually (18 repositories and 28 skills), and the shared and resolved answers form the reference. Against it, Opus reaches κ=0.91\kappa= 0.91 on repository types and 0.92 on its weakest skill question, and the lower bound of each 95% bootstrap interval exceeds the floor of 0.6 required before Opus labelled the remaining source repositories (1,507 in total). These values favour Opus, because the reference keeps every answer the two models share. Earlier manual repository labels, made from the repository name, description and skill names alone, agreed with Opus at κ=0.41\kappa= 0.41, which led to adding the README and file tree. Opus also names each community in Figure 1a from its most distinctive terms, and these names are not compared with human labels. Against these 200 skills, the strict flag has a precision of 98.3% and a recall of 80.9%.

Results

RQ1: Structure and Growth

Most repositories share no skill with any other, and the rest form 50 communities of at least 100 repositories, each organised around a topic (Figure 1a). Skills do not spread individually, because repositories copy entire catalogs in bulk or in bundles far more often than they adopt a single skill (Figure 2a), and preferential attachment therefore operates on catalogs. In the source-choice model, a bundle copy prefers a source that has already been copied, with a coefficient of 1.64 on the logarithm of past copies, whereas attachment to individual skills is sublinear, under all nine threshold settings of the copy-event rule. Transmission is highly overdispersed, with a negative binomial dispersion of k=0.086k = 0.086. Most adoptions transmit the skill to no other repository (Figure 2b), and a small number of repositories account for almost all transmissions (Figure 2c).

Figure 2. Concentrated sources. Catalog copying, not individual adoption, drives spread (a). Transmission is highly overdispersed (b) and concentrated in few repositories (c). GitHub stars neither track out-degree (d) nor find future sources (e), most of which are ordinary projects (f).

RQ2: Sources

GitHub stars are nearly uninformative about out-degree in the dated copy network (Figure 2d), and fake-star campaigns make them a manipulable signal [12]. Dating also corrects attribution, because only 7 of the 20 repositories with the highest static out-degree stay in the top 20 once credited only for skills they held first, and the rest are late adopters. Ranked before 1 April 2026, current copy out-degree identifies 4.0 times as many later transmissions as stars, and PageRank and the number of skills held perform comparably (Figure 2e). Most unstarred top sources are ordinary projects rather than catalogs (Figure 2f).

RQ3: Risk

Flagged skills reach fewer repositories than a uniform permutation null predicts (28.6% against 41.1%). Copies of a skill rarely change consistently. A clone group is the set of repositories holding one exact version of a skill in a week, a genealogy follows a group through the weeks, and a change is consistent when every member moves to the same next version. Only 11.1% of changes to a group are consistent, at every observation window (Figure 3a), and consistency collapses once a group spans several owners (Figure 3b). A single owner raises the odds of a consistent change 3.32-fold, controlling for group size, platform and content (Figure 3c), and only 4.0% of genealogies ever change consistently (Figure 3d). A snapshot also hides most copies that did follow a source edit, because an updated copy is indistinguishable from a fresh copy of the new version (Figure 3g). Copied code files adopt upstream security fixes in 47% to 84% of cases [9], whereas only 20.9% of skill copies follow a later edit of their source.

Figure 3. Copy evolution. Only 11.1% of changes to a clone group reach every copy, at every window (a), and almost none across owners (b). One owner raises the odds 3.32-fold (c), and few genealogies change consistently (d). Copies gain command execution (e) through adopted versions rather than own edits (f). A snapshot understates the follow rate 3.3-fold (g), and copies name tools of other agents (h). Intervals are 95% bootstrap intervals.

Modified copies gain command execution more often than they lose it (Figure 3e). The gain does not come from the edits of their owners, which add and remove capabilities about equally often, but from adopting another version of the skill (Figure 3f). Against the exact version copied, most security-sensitive lines that adaptations add [11] replace content of the same kind. Copies also cross platforms without adaptation, and skills in the folders of other agents often name tools that only Claude Code provides (Figure 3h, all 56 manually checked cases correct).

RQ4: Intervention

At the split of 1 April 2026, auditing the 100 repositories that the source-choice model scores highest prevents far more high-risk adoptions in the held-out period than auditing the 100 most starred or 100 random repositories (Figure 4a). The ordering holds when the split moves to 1 March or 1 May (Figure 4b) and under the lenient flag, and a quarter of the prevented adoptions are indirect copies. Replaying the same audits in the calibrated simulation reproduces the ordering independently. Even a ranking chosen in hindsight prevents only about a quarter of them, because roughly half arrive as new skills. Reviewers have weeks rather than hours, because a new skill reaches few of its eventual adopters in its first week (Figure 4c). A review must also cover every agent, because a third of copies between agent folders now cross platforms (Figure 4d).

Figure 4. Audit and response. Trained on the history before a split, the source-choice model prevents far more high-risk adoptions in the held-out period than stars (a), at every split (b). New skills take weeks to reach most adopters (c), and a third of copies now cross agent platforms (d).

Agent skills. GitSkills reports that half of its files are verbatim copies [2], and clone detection finds pairs of similar skills [3], but neither reveals who copied from whom or how a change propagates. Gao et al. find that 53% of reused registry skills are never modified [8], in line with our measurement. Studies of agent pull requests and of context files such as AGENTS.md and Cursor rules describe how developers work with agents [13], [14], [15], and injected instructions propagate across MCP tools and agent frameworks [16], [17], but no study measures how skills spread between repositories.

Copying and dependencies. Only 2.43% of copy-based reuse is visible to dependency analysis [10], forks send few of their commits upstream [18], clone genealogies are tracked within single projects [19], and replicated packages and poisoned repositories carry vulnerabilities and malware [20], [21]. Dependency studies trace vulnerabilities through declared dependencies [22], which skills lack.

Ethical Considerations

We store no author names, email addresses or commit messages, and report confirmed malicious skills only in aggregate, naming no repository or owner that holds one.

Conclusion

Implications. Platform vendors should distribute skills as versioned references, because copies do not follow their sources, and should check that a skill names only the tools of the agent that loads it. Reviewers and registries should rank repositories by current copy out-degree rather than stars, and act within the first weeks of a skill. Users must update the copies they rely on. Researchers should not estimate propagation from a snapshot, and the same reconstruction applies to any ecosystem that reuses software by copying.

Limitations. Reconstructed dates and order agree with installer records, and the audit evaluation depends only on which repositories are sources, not on who wrote them. The flags mark capability rather than malice, and their high precision and low recall make risk counts lower bounds. The data cover the first ten months of the format on public GitHub, the period in which distribution practices form.

Data Availability

The code is available at https://github.com/FahdSeddik/Skill-Constellations, the dated copy network as its release data-v1.0, and the interactive viewer at https://fahdseddik.github.io/Skill-Constellations/.

References

  1. [1]M. Galster, S. Mohsenimofidi, J. L. Lulla, M. A. Abubakar, C. Treude, and S. Baltes, “Configuring agentic AI coding tools: An exploratory study,” in Proc. 3rd ACM Int. Conf. AI-Powered Software (AIware). ACM, 2026, pp. 11–20. [Online]. Available: https://doi.org/10.1145/3850760.3814887
  2. [2]G. Destefanis, D. Graziotin, W. Vaccargiu, and M. Ortu, “GitSkills: A dataset of agent skills on GitHub,” in Proc. 24th Int. Conf. Mining Software Repositories (MSR). IEEE, 2027, to appear. [Online]. Available: https://arxiv.org/abs/2608.10906
  3. [3]J. Zhu, L. Zhang, W. Guo, and Y. Liu, “Latent reuse in agent skills: Multi-modal clone detection at ecosystem scale,” in Proc. 41st IEEE/ACM Int. Conf. Automated Software Engineering (ASE). ACM, 2026, to appear. [Online]. Available: https://arxiv.org/abs/2603.22447
  4. [4]F. Holzbauer, D. Schmidt, G. K. Gegenhuber, S. Schrittwieser, and J. Ullrich, “Context matters: Repository-aware security analysis of the agent skill ecosystem,” arXiv:2603.16572, 2026, presented at the Agent Skills ’26 Workshop, ACM Conf. AI and Agentic Systems (CAIS). [Online]. Available: https://arxiv.org/abs/2603.16572
  5. [5]S. Wang, J. He, Y. Zhao, Y. Wang, K. Yu, and H. Wang, “MalSkills: Detecting malicious skills in the agentic supply chain via neuro-symbolic reasoning,” in Proc. 41st IEEE/ACM Int. Conf. Automated Software Engineering (ASE). ACM, 2026, to appear. [Online]. Available: https://arxiv.org/abs/2603.22704
  6. [6]Y. Liu, W. Wang, R. Feng, Y. Zhang, G. Xu, G. Deng, Y. Li, and L. Zhang, “Agent skills in the wild: An empirical study of security vulnerabilities at scale,” arXiv:2601.10338, 2026. [Online]. Available: https://arxiv.org/abs/2601.10338
  7. [7]Y. Liu, Z. Chen, Y. Zhang, G. Deng, Y. Li, J. Ning, and L. Y. Zhang, “Do not mention this to the user”: Detecting and understanding malicious agent skills in the wild,” in Proc. 35th USENIX Security Symp. (USENIX Security). USENIX Association, 2026, pp. 1727–1746. [Online]. Available: https://www.usenix.org/conference/usenixsecurity26/presentation/liu-yiarxiv.org/abs/2602.06547
  8. [8]H. Gao, J. L. Lulla, H. Y. Lin, S. Baltes, C. Treude, and M. Zahedi, “From registry to repository: How AI agent skills are written, adapted, and maintained,” arXiv:2607.00911, 2026. [Online]. Available: https://arxiv.org/abs/2607.00911
  9. [9]R. He, A. Mockus, W. Yang, and M. Zhou, “File-level copying is an implicit dependency in open source,” arXiv:2607.02059, 2026. [Online]. Available: https://arxiv.org/abs/2607.02059
  10. [10]M. Jahanshahi, B. Vasilescu, and A. Mockus, “Ensuring open source integrity: The intersection of copy-based reuse and license compliance,” arXiv:2606.23495, 2026. [Online]. Available: https://arxiv.org/abs/2606.23495
  11. [11]X. Wu, J. Gong, G. Jahangirova, Z. Chen, and J. M. Zhang, “An empirical study of downstream adaptation for agent skills,” arXiv:2607.03238, 2026. [Online]. Available: https://arxiv.org/abs/2607.03238
  12. [12]H. He, H. Yang, P. Burckhardt, A. Kapravelos, B. Vasilescu, and C. Kästner, “Six million (suspected) fake stars on GitHub: A growing spiral of popularity contests, spams, and malware,” in Proc. IEEE/ACM 48th Int. Conf. Software Engineering (ICSE). ACM, 2026, pp. 1469–1481. [Online]. Available: https://doi.org/10.1145/3749163.3749516
  13. [13]H. Li, H. Zhang, and A. E. Hassan, “AIDev: Studying AI coding agents on GitHub,” in Proc. 23rd Int. Conf. Mining Software Repositories (MSR). ACM, 2026, pp. 1029–1033. [Online]. Available: https://doi.org/10.1145/3793302.3793249
  14. [14]S. Mohsenimofidi, M. Galster, C. Treude, and S. Baltes, “Context engineering for AI agents in open-source software,” in Proc. 23rd Int. Conf. Mining Software Repositories (MSR). ACM, 2026, pp. 194–198. [Online]. Available: https://doi.org/10.1145/3793302.3793350
  15. [15]S. Jiang and D. Nam, “Beyond the prompt: An empirical study of Cursor rules,” in Proc. 23rd Int. Conf. Mining Software Repositories (MSR). ACM, 2026, pp. 397–409. [Online]. Available: https://doi.org/10.1145/3793302.3793367
  16. [16]S. Zhao, Q. Hou, Z. Zhan, Y. Wang, Y. Xie, Y. Guo, L. Chen, S. Li, and Z. Xue, “Parasites in the toolchain: A large-scale analysis of attacks on the MCP ecosystem,” in Proc. IEEE Symp. Security and Privacy (SP). IEEE, 2026, pp. 138–155. [Online]. Available: https://doi.org/10.1109/SP2026.3200154
  17. [17]Y. Zhang, Z. Wei, X. Luan, C. Wu, Z. Zhang, J. Wu, H. Wu, H. Chen, J. Sun, and M. Sun, “AgentWorm: Self-propagating attacks across LLM agent ecosystems,” arXiv:2603.15727, 2026. [Online]. Available: https://arxiv.org/abs/2603.15727
  18. [18]J. Zhu, L. Zhang, J. W. C. Liu, and Y. Liu, “Mind the gap: An empirical study of synchronization gaps, delays, and missed opportunities in software forks,” Proc. ACM Softw. Eng., vol. 3, no. ISSTA, pp. 963–985, 2026. [Online]. Available: https://doi.org/10.1145/3832133
  19. [19]D. Sousa, I. Uchoa, M. Paixao, C. Raghvietsagul, and T. L. Matos, “An empirical study of code clone genealogies in human–AI collaborative development,” in Proc. 23rd Int. Conf. Mining Software Repositories (MSR). ACM, 2026, pp. 979–983. [Online]. Available: https://doi.org/10.1145/3793302.3793613
  20. [20]S. Park, S. Han, and S. Woo, “Uncovering similar but different packages in PyPI and potential security threats,” Proc. ACM Softw. Eng., vol. 3, no. FSE, pp. 4782–4803, 2026. [Online]. Available: https://doi.org/10.1145/3808217
  21. [21]J. Zhao, S. Wang, Q. Wu, Y. Zhao, X. Cheng, and H. Wang, “MalTool: Cost-effective and language-agnostic malicious code poisoning detection for millions of repositories,” Proc. ACM Softw. Eng., vol. 3, no. ISSTA, pp. 3131–3154, 2026. [Online]. Available: https://doi.org/10.1145/3832228
  22. [22]M. Robinson, S. Halder, M. E. Ahmed, M. Ikram, S. Camtepe, and H. Kim, “Original sin of npm: A study on vulnerability propagation in JavaScript dependency networks,” in Proc. ACM Asia Conf. Computer and Communications Security (ASIA CCS). ACM, 2026, pp. 1213–1227. [Online]. Available: https://doi.org/10.1145/3779208.3785388

Paper details

vlnc:W_xupuhjrp
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents