skillvariants 0.1.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. skillvariants-0.1.1/LICENSE +202 -0
  2. skillvariants-0.1.1/PKG-INFO +219 -0
  3. skillvariants-0.1.1/README.md +188 -0
  4. skillvariants-0.1.1/pyproject.toml +47 -0
  5. skillvariants-0.1.1/setup.cfg +4 -0
  6. skillvariants-0.1.1/src/skillvariants/__init__.py +3 -0
  7. skillvariants-0.1.1/src/skillvariants/__main__.py +3 -0
  8. skillvariants-0.1.1/src/skillvariants/classify.py +185 -0
  9. skillvariants-0.1.1/src/skillvariants/cli.py +379 -0
  10. skillvariants-0.1.1/src/skillvariants/features.py +208 -0
  11. skillvariants-0.1.1/src/skillvariants/github.py +183 -0
  12. skillvariants-0.1.1/src/skillvariants/parser.py +176 -0
  13. skillvariants-0.1.1/src/skillvariants/ranking.py +804 -0
  14. skillvariants-0.1.1/src/skillvariants/render.py +255 -0
  15. skillvariants-0.1.1/src/skillvariants/similarity.py +134 -0
  16. skillvariants-0.1.1/src/skillvariants.egg-info/PKG-INFO +219 -0
  17. skillvariants-0.1.1/src/skillvariants.egg-info/SOURCES.txt +28 -0
  18. skillvariants-0.1.1/src/skillvariants.egg-info/dependency_links.txt +1 -0
  19. skillvariants-0.1.1/src/skillvariants.egg-info/entry_points.txt +2 -0
  20. skillvariants-0.1.1/src/skillvariants.egg-info/requires.txt +5 -0
  21. skillvariants-0.1.1/src/skillvariants.egg-info/top_level.txt +1 -0
  22. skillvariants-0.1.1/tests/test_archetype.py +200 -0
  23. skillvariants-0.1.1/tests/test_classify.py +113 -0
  24. skillvariants-0.1.1/tests/test_features.py +77 -0
  25. skillvariants-0.1.1/tests/test_parser.py +112 -0
  26. skillvariants-0.1.1/tests/test_production.py +141 -0
  27. skillvariants-0.1.1/tests/test_ranking.py +248 -0
  28. skillvariants-0.1.1/tests/test_regression.py +48 -0
  29. skillvariants-0.1.1/tests/test_similarity.py +80 -0
  30. skillvariants-0.1.1/tests/tests_helpers.py +73 -0
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,219 @@
1
+ Metadata-Version: 2.4
2
+ Name: skillvariants
3
+ Version: 0.1.1
4
+ Summary: Explore copies and mutation patterns of AI Agent Skills across GitHub.
5
+ Author: SkillVariants contributors
6
+ License: Apache-2.0
7
+ Project-URL: Repository, https://github.com/ppplkmvvb/skillvariants
8
+ Project-URL: Issues, https://github.com/ppplkmvvb/skillvariants/issues
9
+ Project-URL: Changelog, https://github.com/ppplkmvvb/skillvariants/blob/main/CHANGELOG.md
10
+ Keywords: agent-skills,ai-agents,claude-code,codex,skill-md,developer-tools,github
11
+ Classifier: Development Status :: 4 - Beta
12
+ Classifier: Environment :: Console
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: License :: OSI Approved :: Apache Software License
15
+ Classifier: Operating System :: OS Independent
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Programming Language :: Python :: 3.13
20
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
21
+ Classifier: Topic :: Utilities
22
+ Requires-Python: >=3.11
23
+ Description-Content-Type: text/markdown
24
+ License-File: LICENSE
25
+ Requires-Dist: typer>=0.12
26
+ Requires-Dist: rich>=13.0
27
+ Requires-Dist: httpx>=0.27
28
+ Requires-Dist: pyyaml>=6.0
29
+ Requires-Dist: rapidfuzz>=3.0
30
+ Dynamic: license-file
31
+
32
+ # SkillVariants
33
+
34
+ **See how Agent Skills change across GitHub.**
35
+
36
+ Paste any public `SKILL.md` URL. SkillVariants finds related copies and
37
+ adaptations, groups them by mutation pattern, and shows representative
38
+ changes — deterministically, without an LLM.
39
+
40
+ ```bash
41
+ uvx skillvariants related \
42
+ https://github.com/obra/superpowers/blob/main/skills/systematic-debugging/SKILL.md
43
+ ```
44
+
45
+ Real output (abridged; full version in [`examples/systematic-debugging.txt`](examples/systematic-debugging.txt)):
46
+
47
+ ```text
48
+ SYSTEMATIC-DEBUGGING
49
+ Candidate matches found: 272
50
+
51
+ Exact copies 0
52
+ Unique related variants 175
53
+ Detected mutation archetypes 4
54
+
55
+ COMPACT REWRITES
56
+ 34 groups · 38 unique variants · 54 occurrences
57
+ ─────────────────────────────────────────────
58
+ GuicedEE/ai-rules
59
+ relatedness: 0.58
60
+ length changed by -91%
61
+ 18 headings added/removed
62
+ shell commands +0/-3
63
+
64
+ Archive228/loopkit
65
+ relatedness: 0.54
66
+ length changed by -85%
67
+ ...
68
+
69
+ ROUTING SPECIALIZATIONS
70
+ 8 groups · 18 unique variants · 22 occurrences
71
+ ─────────────────────────────────────────────
72
+ bg-szy/TOP-SKILLS
73
+ relatedness: 0.82
74
+ new routing-boundary language
75
+ +6 cross-skill references
76
+
77
+ WORKFLOW SPECIALIZATIONS
78
+ 30 groups · 40 unique variants · 49 occurrences
79
+ ─────────────────────────────────────────────
80
+ arn0ld87/skills-public-archive
81
+ workflow structure reworked (+13/-15 sections)
82
+ ```
83
+
84
+ ## Why this exists
85
+
86
+ Agent Skills get copied between repositories constantly — and the copies are
87
+ rarely identical. They get **compressed into checklists**, wrapped in thin
88
+ redirects, rerouted to sibling skills, or specialized for one project. None of
89
+ that is visible from GitHub search, and `git diff` can't help because you'd
90
+ need to already know which two files to compare.
91
+
92
+ SkillVariants does the part diff tools can't:
93
+
94
+ ```text
95
+ one target Skill
96
+ ↓ discover related variants across repositories
97
+ ↓ collapse exact and near copies
98
+ ↓ classify adaptation patterns (mutation archetypes)
99
+ ↓ select representative variants per archetype
100
+ ↓ show deterministic evidence for each
101
+ ```
102
+
103
+ It is **not a registry** ("what Skills can I install?") — it answers a
104
+ different question: *what happened to this Skill as different repositories
105
+ adapted it?*
106
+
107
+ ## Quick start
108
+
109
+ Requires Python 3.11+.
110
+
111
+ ```bash
112
+ # zero-install (if published on PyPI)
113
+ uvx skillvariants related <SKILL.md-url>
114
+
115
+ # or
116
+ pipx install skillvariants
117
+ skillvariants related <SKILL.md-url>
118
+
119
+ # from source
120
+ pipx install git+https://github.com/ppplkmvvb/skillvariants.git
121
+ ```
122
+
123
+ GitHub Code Search needs authentication, either:
124
+
125
+ ```text
126
+ export GITHUB_TOKEN=...
127
+ ```
128
+
129
+ or an existing `gh` CLI login (`gh auth login`). If neither is present you get
130
+ a short, actionable error. Fetched files are cached under `.cache/skillvariants/`
131
+ (gitignored, no tokens stored, no telemetry).
132
+
133
+ ## Mutation archetypes
134
+
135
+ | Archetype | What it looks like |
136
+ |---|---|
137
+ | Compact rewrite | Same intent, drastically shorter; methodology reduced to a checklist |
138
+ | Expanded guidance | Original plus added sections/examples/environment rules |
139
+ | Routing specialization | Adds routing boundaries: "do not use X here", "owns Y", cross-skill references |
140
+ | Workflow specialization | Phases restructured; project-specific process steps inserted |
141
+ | Project specialization | Repo-specific paths, migration notes, product names |
142
+ | Compatibility wrapper | Tiny body redirecting to a canonical path |
143
+
144
+ Archetypes are heuristic descriptive categories, not a formal taxonomy and not
145
+ provenance claims. Details: [`docs/archetypes.md`](docs/archetypes.md).
146
+
147
+ ## Commands
148
+
149
+ ```bash
150
+ skillvariants inspect <url> # frontmatter, body stats, signals
151
+ skillvariants related <url> [--mode mutations|closest] [--json]
152
+ skillvariants compare <url-a> <url-b> # similarity + structural changes + diff
153
+ ```
154
+
155
+ - `related --mode mutations` (default) shows the archetype map above.
156
+ - `related --mode closest` is pure textual-nearest order after exact-copy
157
+ collapsing — deliberately no story logic.
158
+ - `--json` on every command emits machine-readable output with per-result
159
+ evidence strings.
160
+
161
+ ## How it works
162
+
163
+ Deterministic pipeline, fully inspectable:
164
+
165
+ 1. same-name code search on GitHub (`"name: x" filename:SKILL.md`)
166
+ 2. normalized SHA-256 collapse of exact copies (body-only variants kept separate)
167
+ 3. conservative relatedness gate (name match requires content corroboration;
168
+ canonical pointers are accepted direct evidence)
169
+ 4. mutation feature vectors (length/heading/command/reference deltas via plain regex + RapidFuzz)
170
+ 5. near-copy grouping (union-find ≥ 0.90 body ratio plus a hub partition for star-shaped clone fields)
171
+ 6. archetype classification by fixed signal rules
172
+ 7. per-archetype representative scoring with penalty terms for absorber files, deletion-only rewrites, and placeholder templates
173
+
174
+ No LLM, no embeddings, no vector database. Every score emits its own evidence.
175
+
176
+ ## What it does not claim
177
+
178
+ SkillVariants detects relationships and differences. It does **not** prove
179
+ ancestry — never "original", "copied from", or "forked from". Search results
180
+ are not a complete census of GitHub. It is not a security scanner and makes no
181
+ safety statement about any Skill. See [`docs/limitations.md`](docs/limitations.md).
182
+
183
+ ## Validation
184
+
185
+ We validated the deterministic pipeline on three high-copy Skill families,
186
+ five known adaptation anchors, and 34 displayed representatives. In that
187
+ validation set, all five anchors were found and assigned the expected
188
+ archetype; human review marked 34/34 displayed representatives as correct or
189
+ arguable rather than clearly wrong; reruns produced byte-identical JSON.
190
+ Methodology and numbers: [`research/validation-summary.md`](research/validation-summary.md).
191
+ Three families are a validation set, not a census of the ecosystem.
192
+
193
+ ## Limitations
194
+
195
+ Known and documented up front: taxonomy overlap (workflow vs project),
196
+ GitHub search coverage gaps, placeholder/template edge cases as
197
+ representatives, heuristic relatedness, and changing upstream repos. Full
198
+ list: [`docs/limitations.md`](docs/limitations.md). Production backlog items
199
+ live there too — please don't expect v0.1 to have solved them.
200
+
201
+ ## Contributing
202
+
203
+ False-positive reports and misclassification cases are the most valuable
204
+ contributions — see [`CONTRIBUTING.md`](CONTRIBUTING.md) and the
205
+ *Classification / false-positive* issue template.
206
+
207
+ ## Credits / research inspiration
208
+
209
+ Inspired by public Agent Skills ecosystems including
210
+ [obra/superpowers](https://github.com/obra/superpowers) and
211
+ [anthropics/skills](https://github.com/anthropics/skills).
212
+
213
+ Third-party test fixture redistribution was reviewed separately.
214
+ No `anthropics/skills` Skill text is bundled because no repository
215
+ license was found at audit time. See [`research/fixture-audit.md`](research/fixture-audit.md).
216
+
217
+ ## License
218
+
219
+ [Apache-2.0](LICENSE)
@@ -0,0 +1,188 @@
1
+ # SkillVariants
2
+
3
+ **See how Agent Skills change across GitHub.**
4
+
5
+ Paste any public `SKILL.md` URL. SkillVariants finds related copies and
6
+ adaptations, groups them by mutation pattern, and shows representative
7
+ changes — deterministically, without an LLM.
8
+
9
+ ```bash
10
+ uvx skillvariants related \
11
+ https://github.com/obra/superpowers/blob/main/skills/systematic-debugging/SKILL.md
12
+ ```
13
+
14
+ Real output (abridged; full version in [`examples/systematic-debugging.txt`](examples/systematic-debugging.txt)):
15
+
16
+ ```text
17
+ SYSTEMATIC-DEBUGGING
18
+ Candidate matches found: 272
19
+
20
+ Exact copies 0
21
+ Unique related variants 175
22
+ Detected mutation archetypes 4
23
+
24
+ COMPACT REWRITES
25
+ 34 groups · 38 unique variants · 54 occurrences
26
+ ─────────────────────────────────────────────
27
+ GuicedEE/ai-rules
28
+ relatedness: 0.58
29
+ length changed by -91%
30
+ 18 headings added/removed
31
+ shell commands +0/-3
32
+
33
+ Archive228/loopkit
34
+ relatedness: 0.54
35
+ length changed by -85%
36
+ ...
37
+
38
+ ROUTING SPECIALIZATIONS
39
+ 8 groups · 18 unique variants · 22 occurrences
40
+ ─────────────────────────────────────────────
41
+ bg-szy/TOP-SKILLS
42
+ relatedness: 0.82
43
+ new routing-boundary language
44
+ +6 cross-skill references
45
+
46
+ WORKFLOW SPECIALIZATIONS
47
+ 30 groups · 40 unique variants · 49 occurrences
48
+ ─────────────────────────────────────────────
49
+ arn0ld87/skills-public-archive
50
+ workflow structure reworked (+13/-15 sections)
51
+ ```
52
+
53
+ ## Why this exists
54
+
55
+ Agent Skills get copied between repositories constantly — and the copies are
56
+ rarely identical. They get **compressed into checklists**, wrapped in thin
57
+ redirects, rerouted to sibling skills, or specialized for one project. None of
58
+ that is visible from GitHub search, and `git diff` can't help because you'd
59
+ need to already know which two files to compare.
60
+
61
+ SkillVariants does the part diff tools can't:
62
+
63
+ ```text
64
+ one target Skill
65
+ ↓ discover related variants across repositories
66
+ ↓ collapse exact and near copies
67
+ ↓ classify adaptation patterns (mutation archetypes)
68
+ ↓ select representative variants per archetype
69
+ ↓ show deterministic evidence for each
70
+ ```
71
+
72
+ It is **not a registry** ("what Skills can I install?") — it answers a
73
+ different question: *what happened to this Skill as different repositories
74
+ adapted it?*
75
+
76
+ ## Quick start
77
+
78
+ Requires Python 3.11+.
79
+
80
+ ```bash
81
+ # zero-install (if published on PyPI)
82
+ uvx skillvariants related <SKILL.md-url>
83
+
84
+ # or
85
+ pipx install skillvariants
86
+ skillvariants related <SKILL.md-url>
87
+
88
+ # from source
89
+ pipx install git+https://github.com/ppplkmvvb/skillvariants.git
90
+ ```
91
+
92
+ GitHub Code Search needs authentication, either:
93
+
94
+ ```text
95
+ export GITHUB_TOKEN=...
96
+ ```
97
+
98
+ or an existing `gh` CLI login (`gh auth login`). If neither is present you get
99
+ a short, actionable error. Fetched files are cached under `.cache/skillvariants/`
100
+ (gitignored, no tokens stored, no telemetry).
101
+
102
+ ## Mutation archetypes
103
+
104
+ | Archetype | What it looks like |
105
+ |---|---|
106
+ | Compact rewrite | Same intent, drastically shorter; methodology reduced to a checklist |
107
+ | Expanded guidance | Original plus added sections/examples/environment rules |
108
+ | Routing specialization | Adds routing boundaries: "do not use X here", "owns Y", cross-skill references |
109
+ | Workflow specialization | Phases restructured; project-specific process steps inserted |
110
+ | Project specialization | Repo-specific paths, migration notes, product names |
111
+ | Compatibility wrapper | Tiny body redirecting to a canonical path |
112
+
113
+ Archetypes are heuristic descriptive categories, not a formal taxonomy and not
114
+ provenance claims. Details: [`docs/archetypes.md`](docs/archetypes.md).
115
+
116
+ ## Commands
117
+
118
+ ```bash
119
+ skillvariants inspect <url> # frontmatter, body stats, signals
120
+ skillvariants related <url> [--mode mutations|closest] [--json]
121
+ skillvariants compare <url-a> <url-b> # similarity + structural changes + diff
122
+ ```
123
+
124
+ - `related --mode mutations` (default) shows the archetype map above.
125
+ - `related --mode closest` is pure textual-nearest order after exact-copy
126
+ collapsing — deliberately no story logic.
127
+ - `--json` on every command emits machine-readable output with per-result
128
+ evidence strings.
129
+
130
+ ## How it works
131
+
132
+ Deterministic pipeline, fully inspectable:
133
+
134
+ 1. same-name code search on GitHub (`"name: x" filename:SKILL.md`)
135
+ 2. normalized SHA-256 collapse of exact copies (body-only variants kept separate)
136
+ 3. conservative relatedness gate (name match requires content corroboration;
137
+ canonical pointers are accepted direct evidence)
138
+ 4. mutation feature vectors (length/heading/command/reference deltas via plain regex + RapidFuzz)
139
+ 5. near-copy grouping (union-find ≥ 0.90 body ratio plus a hub partition for star-shaped clone fields)
140
+ 6. archetype classification by fixed signal rules
141
+ 7. per-archetype representative scoring with penalty terms for absorber files, deletion-only rewrites, and placeholder templates
142
+
143
+ No LLM, no embeddings, no vector database. Every score emits its own evidence.
144
+
145
+ ## What it does not claim
146
+
147
+ SkillVariants detects relationships and differences. It does **not** prove
148
+ ancestry — never "original", "copied from", or "forked from". Search results
149
+ are not a complete census of GitHub. It is not a security scanner and makes no
150
+ safety statement about any Skill. See [`docs/limitations.md`](docs/limitations.md).
151
+
152
+ ## Validation
153
+
154
+ We validated the deterministic pipeline on three high-copy Skill families,
155
+ five known adaptation anchors, and 34 displayed representatives. In that
156
+ validation set, all five anchors were found and assigned the expected
157
+ archetype; human review marked 34/34 displayed representatives as correct or
158
+ arguable rather than clearly wrong; reruns produced byte-identical JSON.
159
+ Methodology and numbers: [`research/validation-summary.md`](research/validation-summary.md).
160
+ Three families are a validation set, not a census of the ecosystem.
161
+
162
+ ## Limitations
163
+
164
+ Known and documented up front: taxonomy overlap (workflow vs project),
165
+ GitHub search coverage gaps, placeholder/template edge cases as
166
+ representatives, heuristic relatedness, and changing upstream repos. Full
167
+ list: [`docs/limitations.md`](docs/limitations.md). Production backlog items
168
+ live there too — please don't expect v0.1 to have solved them.
169
+
170
+ ## Contributing
171
+
172
+ False-positive reports and misclassification cases are the most valuable
173
+ contributions — see [`CONTRIBUTING.md`](CONTRIBUTING.md) and the
174
+ *Classification / false-positive* issue template.
175
+
176
+ ## Credits / research inspiration
177
+
178
+ Inspired by public Agent Skills ecosystems including
179
+ [obra/superpowers](https://github.com/obra/superpowers) and
180
+ [anthropics/skills](https://github.com/anthropics/skills).
181
+
182
+ Third-party test fixture redistribution was reviewed separately.
183
+ No `anthropics/skills` Skill text is bundled because no repository
184
+ license was found at audit time. See [`research/fixture-audit.md`](research/fixture-audit.md).
185
+
186
+ ## License
187
+
188
+ [Apache-2.0](LICENSE)
@@ -0,0 +1,47 @@
1
+ [build-system]
2
+ requires = ["setuptools>=68"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "skillvariants"
7
+ version = "0.1.1"
8
+ description = "Explore copies and mutation patterns of AI Agent Skills across GitHub."
9
+ readme = "README.md"
10
+ license = { text = "Apache-2.0" }
11
+ requires-python = ">=3.11"
12
+ authors = [{ name = "SkillVariants contributors" }]
13
+ keywords = [
14
+ "agent-skills", "ai-agents", "claude-code", "codex",
15
+ "skill-md", "developer-tools", "github",
16
+ ]
17
+ classifiers = [
18
+ "Development Status :: 4 - Beta",
19
+ "Environment :: Console",
20
+ "Intended Audience :: Developers",
21
+ "License :: OSI Approved :: Apache Software License",
22
+ "Operating System :: OS Independent",
23
+ "Programming Language :: Python :: 3",
24
+ "Programming Language :: Python :: 3.11",
25
+ "Programming Language :: Python :: 3.12",
26
+ "Programming Language :: Python :: 3.13",
27
+ "Topic :: Software Development :: Libraries :: Python Modules",
28
+ "Topic :: Utilities",
29
+ ]
30
+ dependencies = [
31
+ "typer>=0.12",
32
+ "rich>=13.0",
33
+ "httpx>=0.27",
34
+ "pyyaml>=6.0",
35
+ "rapidfuzz>=3.0",
36
+ ]
37
+
38
+ [project.urls]
39
+ Repository = "https://github.com/ppplkmvvb/skillvariants"
40
+ Issues = "https://github.com/ppplkmvvb/skillvariants/issues"
41
+ Changelog = "https://github.com/ppplkmvvb/skillvariants/blob/main/CHANGELOG.md"
42
+
43
+ [project.scripts]
44
+ skillvariants = "skillvariants.cli:app"
45
+
46
+ [tool.setuptools.packages.find]
47
+ where = ["src"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,3 @@
1
+ """skillvariants spike package."""
2
+
3
+ __version__ = "0.1.0"
@@ -0,0 +1,3 @@
1
+ from .cli import app
2
+
3
+ app()