skillclinic 0.4.6__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.
- skillclinic-0.4.6/LICENSE +21 -0
- skillclinic-0.4.6/PKG-INFO +211 -0
- skillclinic-0.4.6/README.md +201 -0
- skillclinic-0.4.6/pyproject.toml +19 -0
- skillclinic-0.4.6/setup.cfg +4 -0
- skillclinic-0.4.6/skillclinic.egg-info/PKG-INFO +211 -0
- skillclinic-0.4.6/skillclinic.egg-info/SOURCES.txt +11 -0
- skillclinic-0.4.6/skillclinic.egg-info/dependency_links.txt +1 -0
- skillclinic-0.4.6/skillclinic.egg-info/entry_points.txt +3 -0
- skillclinic-0.4.6/skillclinic.egg-info/top_level.txt +1 -0
- skillclinic-0.4.6/skillclinic.py +1211 -0
- skillclinic-0.4.6/tests/test_registry_build.py +492 -0
- skillclinic-0.4.6/tests/test_skilldoctor.py +655 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Bui Van Dong
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: skillclinic
|
|
3
|
+
Version: 0.4.6
|
|
4
|
+
Summary: Audit the AI skill files installed on your machine for validity, security risks, conflicts, and token cost.
|
|
5
|
+
License: MIT
|
|
6
|
+
Requires-Python: >=3.10
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
Dynamic: license-file
|
|
10
|
+
|
|
11
|
+
<p align="center">
|
|
12
|
+
<img src="https://raw.githubusercontent.com/Dongdarealest/skillclinic/main/assets/masthead.png" alt="SkillClinic: a checkup for the skills your AI runs" width="880">
|
|
13
|
+
</p>
|
|
14
|
+
|
|
15
|
+
<p align="center">
|
|
16
|
+
One command audits every AI skill on your machine and gives each one a verdict:<br>
|
|
17
|
+
valid or broken, safe or risky, and what it costs you in tokens.
|
|
18
|
+
</p>
|
|
19
|
+
|
|
20
|
+
<p align="center">
|
|
21
|
+
<a href="https://github.com/Dongdarealest/skillclinic/releases"><img src="https://img.shields.io/github/v/release/Dongdarealest/skillclinic?style=flat-square&color=141414&label=release" alt="Latest release"></a>
|
|
22
|
+
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-141414?style=flat-square" alt="MIT license"></a>
|
|
23
|
+
<img src="https://img.shields.io/badge/python-3.10%2B-141414?style=flat-square" alt="Python 3.10 or newer">
|
|
24
|
+
<img src="https://img.shields.io/badge/dependencies-zero-141414?style=flat-square" alt="Zero dependencies">
|
|
25
|
+
<img src="https://visitor-badge.laobi.icu/badge?page_id=Dongdarealest.skillclinic" alt="Visitors">
|
|
26
|
+
<a href="https://dongdarealest.github.io/skillclinic/"><img src="https://skilldoctor-badges.vercel.app/badges/Dongdarealest--skillclinic.svg" alt="Audited by SkillClinic"></a>
|
|
27
|
+
</p>
|
|
28
|
+
|
|
29
|
+
<p align="center">
|
|
30
|
+
<a href="https://github.com/Dongdarealest/skillclinic/blob/main/REGISTRY.md"><img src="https://raw.githubusercontent.com/Dongdarealest/skillclinic/main/assets/audited-plaque.svg" alt="The SkillClinic audited plaque: the mark of a checked skill" width="560"></a>
|
|
31
|
+
</p>
|
|
32
|
+
|
|
33
|
+
Projects that pass the audit earn this plaque. The picture alone proves nothing, and anyone can paste one: the proof is the entry in the registry, kept live at [dongdarealest.github.io/skillclinic](https://dongdarealest.github.io/skillclinic/).
|
|
34
|
+
|
|
35
|
+
Skills are instruction files your AI loads and follows, often at the start of every conversation. Most people install them from repositories, gists, and chat messages without ever reading them. SkillClinic reads them for you. This is what an audit looks like:
|
|
36
|
+
|
|
37
|
+
<p align="center">
|
|
38
|
+
<img src="https://raw.githubusercontent.com/Dongdarealest/skillclinic/main/assets/demo.png" alt="SkillClinic demo output: one clean skill passes, an invalid skill and a risky skill fail with reasons" width="880">
|
|
39
|
+
</p>
|
|
40
|
+
|
|
41
|
+
<p align="center"><em>One clean skill passes. Two fail, every failure with its reason and its fix.</em></p>
|
|
42
|
+
|
|
43
|
+
```text
|
|
44
|
+
$ skillclinic --demo
|
|
45
|
+
|
|
46
|
+
FAIL Invalid_Skill Name
|
|
47
|
+
folder: examples/invalid-skill
|
|
48
|
+
score: 25 (F)
|
|
49
|
+
- [error] name is not kebab-case: Invalid_Skill Name
|
|
50
|
+
fix: Rename the skill with lowercase words joined by hyphens.
|
|
51
|
+
|
|
52
|
+
FAIL risky-skill
|
|
53
|
+
folder: examples/risky-skill
|
|
54
|
+
score: 0 (F)
|
|
55
|
+
- [high] security: skill pipes a network download straight into a shell
|
|
56
|
+
fix: Never pipe a download into a shell. Download the file, read it,
|
|
57
|
+
then decide whether to run it.
|
|
58
|
+
- [high] security: skill instructs reading or sending credential material
|
|
59
|
+
fix: Remove the credential access. A skill should ask the user,
|
|
60
|
+
never read secret stores.
|
|
61
|
+
|
|
62
|
+
OK clean-skill
|
|
63
|
+
score: 100 (A)
|
|
64
|
+
|
|
65
|
+
Summary: 3 skills, 1 OK, 0 WARN, 2 FAIL
|
|
66
|
+
Health score: 42/100 (D)
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
## Quick start
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
pip install skillclinic # the skillclinic package installs the skillclinic command
|
|
73
|
+
skillclinic # audit the skill folders on this machine
|
|
74
|
+
skillclinic --demo # see it work in ten seconds on the bundled examples
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
Point it at any folder to audit just that folder, and add `--json` for machine readable output in scripts and CI. No installer fan? The whole tool is one file: download `skillclinic.py` from this repo and run it the same way. It needs Python 3.10 or newer and nothing else.
|
|
78
|
+
|
|
79
|
+
<details>
|
|
80
|
+
<summary>One line installers, pinned and checksum verified</summary>
|
|
81
|
+
|
|
82
|
+
<br>
|
|
83
|
+
|
|
84
|
+
```bash
|
|
85
|
+
curl -fsSL https://raw.githubusercontent.com/Dongdarealest/skillclinic/v0.4.6/install.sh | bash
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
```powershell
|
|
89
|
+
irm https://raw.githubusercontent.com/Dongdarealest/skillclinic/v0.4.6/install.ps1 | iex
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
Both installers are pinned to the v0.4.6 release: they download `skillclinic.py` and its published SHA-256 as assets of that release and check the two match before installing, refusing on any mismatch. The tool audits installers it would not trust, so its own had to pass.
|
|
93
|
+
|
|
94
|
+
</details>
|
|
95
|
+
|
|
96
|
+
## What it checks
|
|
97
|
+
|
|
98
|
+
| Check | What it catches |
|
|
99
|
+
| --- | --- |
|
|
100
|
+
| Validity | Frontmatter that does not parse, missing name or description, names that are not kebab-case or do not match their folder, names and descriptions over the spec length limits |
|
|
101
|
+
| Security | Downloads piped into a shell, instructions touching credential stores, language that sends user data out, prompt override phrases, uninspectable base64 blobs, destructive commands, invisible Unicode characters, and the same patterns in the text files bundled with a skill |
|
|
102
|
+
| Conflicts | The same skill name installed in several host folders, near-duplicate descriptions that make hosts load the wrong skill. Skills namespaced inside a plugin, and the distribution copies inside one collection, are not conflicts |
|
|
103
|
+
| Token cost | Always-on tokens (the name and description a host loads into every conversation) counted apart from body tokens, which load only when a skill runs |
|
|
104
|
+
| Sample data | Skills found under `examples/`, `fixtures/` or `testdata/` folders are exhibits, not installations: they are listed in the report as not audited and are never scored, given a verdict, or entered into the conflict checks |
|
|
105
|
+
|
|
106
|
+
## Reading the report
|
|
107
|
+
|
|
108
|
+
- **OK**: the skill parses, identifies itself properly, and shows no risky patterns.
|
|
109
|
+
- **WARN**: worth a human look, for example a reference to a credential store or a very long file.
|
|
110
|
+
- **FAIL**: broken or dangerous. The report exits with code 1 when any skill fails, so it drops straight into CI.
|
|
111
|
+
|
|
112
|
+
Every skill also gets a score out of 100 and a letter grade, and so does the whole installation. Most findings carry a fix line that says exactly what to change, so the report reads as a work list, not just a verdict.
|
|
113
|
+
|
|
114
|
+
## Removing what fails
|
|
115
|
+
|
|
116
|
+
Finding a bad skill is only half the job, so SkillClinic can clear it out too. Removal is deliberately boring and reversible:
|
|
117
|
+
|
|
118
|
+
```bash
|
|
119
|
+
skillclinic --quarantine-failed # move every FAIL skill out of its host folder
|
|
120
|
+
skillclinic --restore # put the last batch back
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
Nothing is deleted outright. Failed skills move to `~/.skillclinic/quarantine` in a dated batch with a manifest of where each one came from, and `--restore` puts the most recent batch back exactly where it was. Only FAIL verdicts are moved; a WARN is a judgment call, and judgment calls stay yours. Add `--yes` to skip the confirmation prompt in scripts.
|
|
124
|
+
|
|
125
|
+
---
|
|
126
|
+
|
|
127
|
+
## The State of Public Skills
|
|
128
|
+
|
|
129
|
+
We pointed SkillClinic at the six biggest public skill collections. One in three skills failed.
|
|
130
|
+
|
|
131
|
+
<table align="center">
|
|
132
|
+
<tr>
|
|
133
|
+
<td align="center"><h2>777</h2>skills audited</td>
|
|
134
|
+
<td align="center"><h2>267</h2>failed the audit</td>
|
|
135
|
+
<td align="center"><h2>8</h2>carried the highest severity pattern</td>
|
|
136
|
+
</tr>
|
|
137
|
+
</table>
|
|
138
|
+
|
|
139
|
+
The curated collections are nearly clean. The failures concentrate in the largest one, where duplicated skills and credential references pile up.
|
|
140
|
+
|
|
141
|
+
| Collection | Health |
|
|
142
|
+
| --- | --- |
|
|
143
|
+
| obra/superpowers | 100/100 |
|
|
144
|
+
| mattpocock/skills | 99/100 |
|
|
145
|
+
| anthropics/skills | 97/100 |
|
|
146
|
+
| K-Dense-AI/scientific-agent-skills | 96/100 |
|
|
147
|
+
| addyosmani/agent-skills | 92/100 |
|
|
148
|
+
| affaan-m/ECC | 76/100 |
|
|
149
|
+
|
|
150
|
+
Full method, findings, and limits: [The State of Public Skills](AUDIT.md).
|
|
151
|
+
|
|
152
|
+
---
|
|
153
|
+
|
|
154
|
+
## Show your audit
|
|
155
|
+
|
|
156
|
+
Publish skills of your own? A collection that passes the audit earns the plaque shown at the top of this page. Listings carry only the score their own repo's audit produced, a listing by hand is added only after the maintainers re-run the audit and the results match, and a daily re-audit keeps every listed badge honest after that.
|
|
157
|
+
|
|
158
|
+
Yours is served live, plaque and badge alike, from an address that carries your own GitHub identity:
|
|
159
|
+
|
|
160
|
+
```
|
|
161
|
+
https://skilldoctor-badges.vercel.app/badges/<owner>--<repo>.svg
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
Paste it into your README:
|
|
165
|
+
|
|
166
|
+
```markdown
|
|
167
|
+
[](https://dongdarealest.github.io/skillclinic/)
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
That paste is the whole enrollment. A daily job searches GitHub for the badge address, reads the owner and repo out of the address itself, audits that repo, and lists it in the registry with its real score. A brand new badge can take some hours to be discovered, while GitHub indexes it. Until the first verification the address serves a pending design, so it never renders as a broken image; from then on it serves the current result, and if the project stops passing it flips to a grey recheck design until it passes again. Take the badge out of your README and the listing is dropped on the next run. The generator on the [registry page](https://dongdarealest.github.io/skillclinic/) builds the ready to paste snippet for you, and the same address with `-plaque` before `.svg` gives the large format, for a place of honor.
|
|
171
|
+
|
|
172
|
+
This is a real one, SkillPort's badge, served live:
|
|
173
|
+
|
|
174
|
+
[](https://dongdarealest.github.io/skillclinic/)
|
|
175
|
+
|
|
176
|
+
[REGISTRY.md](REGISTRY.md) describes how verification works in full. For announcements and offline use, `skillclinic <folder> --write-badge` writes a dated static snapshot of the badge, the plaque, and the machine report instead; a failing audit writes nothing. The plain mark at [badges/audited.svg](https://skilldoctor-badges.vercel.app/badges/audited.svg) carries no score and enrolls nothing; only the personal address is an enrollment.
|
|
177
|
+
|
|
178
|
+
SkillClinic wears the small badge in the row at the top of this page, and it does not flatter itself: this repo carries no skills of its own, only the demo fixtures under `examples/`, so its badge shows the no skills state, and those fixtures are listed as not audited in every report rather than scored.
|
|
179
|
+
|
|
180
|
+
## In CI, and as a GitHub Action
|
|
181
|
+
|
|
182
|
+
This repo doubles as a GitHub Action, so a collection can audit itself on every push:
|
|
183
|
+
|
|
184
|
+
```yaml
|
|
185
|
+
- uses: Dongdarealest/skillclinic@v0.4.6
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
It audits the repository (or the folder given in the `path` input) and fails the build when any skill fails. Anywhere else, the plain command does the same job in CI: `skillclinic --json` for machines, exit code 1 on any FAIL.
|
|
189
|
+
|
|
190
|
+
## Why this exists
|
|
191
|
+
|
|
192
|
+
Public skill collections are growing faster than anyone can review them, and audits of popular collections keep finding files that are invalid, duplicated, or carry instructions no user would accept if they read them. Installing a skill is trusting a stranger's instructions inside your own AI. A checkup should take ten seconds, so here it is.
|
|
193
|
+
|
|
194
|
+
---
|
|
195
|
+
|
|
196
|
+
## Support
|
|
197
|
+
|
|
198
|
+
SkillClinic is free and MIT licensed. If it saved you from one bad install, a coffee keeps the next check coming.
|
|
199
|
+
|
|
200
|
+
<p>
|
|
201
|
+
<a href="https://github.com/sponsors/Dongdarealest"><img src="https://img.shields.io/badge/GitHub%20Sponsors-141414?style=for-the-badge&logo=githubsponsors&logoColor=EA4AAA" alt="Sponsor on GitHub"></a>
|
|
202
|
+
<a href="https://ko-fi.com/dongdarealest"><img src="https://img.shields.io/badge/Ko--fi-141414?style=for-the-badge&logo=kofi&logoColor=FF5E5B" alt="Buy me a coffee on Ko-fi"></a>
|
|
203
|
+
</p>
|
|
204
|
+
|
|
205
|
+
## Contributing
|
|
206
|
+
|
|
207
|
+
New checks are the most welcome contributions, especially patterns for risks this version does not catch yet. Open an issue with the skill that slipped through, or send a pull request with a test that proves the new check works. Questions and ideas are welcome in [Discussions](https://github.com/Dongdarealest/skillclinic/discussions).
|
|
208
|
+
|
|
209
|
+
## License
|
|
210
|
+
|
|
211
|
+
MIT. See [LICENSE](LICENSE).
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="https://raw.githubusercontent.com/Dongdarealest/skillclinic/main/assets/masthead.png" alt="SkillClinic: a checkup for the skills your AI runs" width="880">
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
<p align="center">
|
|
6
|
+
One command audits every AI skill on your machine and gives each one a verdict:<br>
|
|
7
|
+
valid or broken, safe or risky, and what it costs you in tokens.
|
|
8
|
+
</p>
|
|
9
|
+
|
|
10
|
+
<p align="center">
|
|
11
|
+
<a href="https://github.com/Dongdarealest/skillclinic/releases"><img src="https://img.shields.io/github/v/release/Dongdarealest/skillclinic?style=flat-square&color=141414&label=release" alt="Latest release"></a>
|
|
12
|
+
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-141414?style=flat-square" alt="MIT license"></a>
|
|
13
|
+
<img src="https://img.shields.io/badge/python-3.10%2B-141414?style=flat-square" alt="Python 3.10 or newer">
|
|
14
|
+
<img src="https://img.shields.io/badge/dependencies-zero-141414?style=flat-square" alt="Zero dependencies">
|
|
15
|
+
<img src="https://visitor-badge.laobi.icu/badge?page_id=Dongdarealest.skillclinic" alt="Visitors">
|
|
16
|
+
<a href="https://dongdarealest.github.io/skillclinic/"><img src="https://skilldoctor-badges.vercel.app/badges/Dongdarealest--skillclinic.svg" alt="Audited by SkillClinic"></a>
|
|
17
|
+
</p>
|
|
18
|
+
|
|
19
|
+
<p align="center">
|
|
20
|
+
<a href="https://github.com/Dongdarealest/skillclinic/blob/main/REGISTRY.md"><img src="https://raw.githubusercontent.com/Dongdarealest/skillclinic/main/assets/audited-plaque.svg" alt="The SkillClinic audited plaque: the mark of a checked skill" width="560"></a>
|
|
21
|
+
</p>
|
|
22
|
+
|
|
23
|
+
Projects that pass the audit earn this plaque. The picture alone proves nothing, and anyone can paste one: the proof is the entry in the registry, kept live at [dongdarealest.github.io/skillclinic](https://dongdarealest.github.io/skillclinic/).
|
|
24
|
+
|
|
25
|
+
Skills are instruction files your AI loads and follows, often at the start of every conversation. Most people install them from repositories, gists, and chat messages without ever reading them. SkillClinic reads them for you. This is what an audit looks like:
|
|
26
|
+
|
|
27
|
+
<p align="center">
|
|
28
|
+
<img src="https://raw.githubusercontent.com/Dongdarealest/skillclinic/main/assets/demo.png" alt="SkillClinic demo output: one clean skill passes, an invalid skill and a risky skill fail with reasons" width="880">
|
|
29
|
+
</p>
|
|
30
|
+
|
|
31
|
+
<p align="center"><em>One clean skill passes. Two fail, every failure with its reason and its fix.</em></p>
|
|
32
|
+
|
|
33
|
+
```text
|
|
34
|
+
$ skillclinic --demo
|
|
35
|
+
|
|
36
|
+
FAIL Invalid_Skill Name
|
|
37
|
+
folder: examples/invalid-skill
|
|
38
|
+
score: 25 (F)
|
|
39
|
+
- [error] name is not kebab-case: Invalid_Skill Name
|
|
40
|
+
fix: Rename the skill with lowercase words joined by hyphens.
|
|
41
|
+
|
|
42
|
+
FAIL risky-skill
|
|
43
|
+
folder: examples/risky-skill
|
|
44
|
+
score: 0 (F)
|
|
45
|
+
- [high] security: skill pipes a network download straight into a shell
|
|
46
|
+
fix: Never pipe a download into a shell. Download the file, read it,
|
|
47
|
+
then decide whether to run it.
|
|
48
|
+
- [high] security: skill instructs reading or sending credential material
|
|
49
|
+
fix: Remove the credential access. A skill should ask the user,
|
|
50
|
+
never read secret stores.
|
|
51
|
+
|
|
52
|
+
OK clean-skill
|
|
53
|
+
score: 100 (A)
|
|
54
|
+
|
|
55
|
+
Summary: 3 skills, 1 OK, 0 WARN, 2 FAIL
|
|
56
|
+
Health score: 42/100 (D)
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
## Quick start
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
pip install skillclinic # the skillclinic package installs the skillclinic command
|
|
63
|
+
skillclinic # audit the skill folders on this machine
|
|
64
|
+
skillclinic --demo # see it work in ten seconds on the bundled examples
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Point it at any folder to audit just that folder, and add `--json` for machine readable output in scripts and CI. No installer fan? The whole tool is one file: download `skillclinic.py` from this repo and run it the same way. It needs Python 3.10 or newer and nothing else.
|
|
68
|
+
|
|
69
|
+
<details>
|
|
70
|
+
<summary>One line installers, pinned and checksum verified</summary>
|
|
71
|
+
|
|
72
|
+
<br>
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
curl -fsSL https://raw.githubusercontent.com/Dongdarealest/skillclinic/v0.4.6/install.sh | bash
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
```powershell
|
|
79
|
+
irm https://raw.githubusercontent.com/Dongdarealest/skillclinic/v0.4.6/install.ps1 | iex
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
Both installers are pinned to the v0.4.6 release: they download `skillclinic.py` and its published SHA-256 as assets of that release and check the two match before installing, refusing on any mismatch. The tool audits installers it would not trust, so its own had to pass.
|
|
83
|
+
|
|
84
|
+
</details>
|
|
85
|
+
|
|
86
|
+
## What it checks
|
|
87
|
+
|
|
88
|
+
| Check | What it catches |
|
|
89
|
+
| --- | --- |
|
|
90
|
+
| Validity | Frontmatter that does not parse, missing name or description, names that are not kebab-case or do not match their folder, names and descriptions over the spec length limits |
|
|
91
|
+
| Security | Downloads piped into a shell, instructions touching credential stores, language that sends user data out, prompt override phrases, uninspectable base64 blobs, destructive commands, invisible Unicode characters, and the same patterns in the text files bundled with a skill |
|
|
92
|
+
| Conflicts | The same skill name installed in several host folders, near-duplicate descriptions that make hosts load the wrong skill. Skills namespaced inside a plugin, and the distribution copies inside one collection, are not conflicts |
|
|
93
|
+
| Token cost | Always-on tokens (the name and description a host loads into every conversation) counted apart from body tokens, which load only when a skill runs |
|
|
94
|
+
| Sample data | Skills found under `examples/`, `fixtures/` or `testdata/` folders are exhibits, not installations: they are listed in the report as not audited and are never scored, given a verdict, or entered into the conflict checks |
|
|
95
|
+
|
|
96
|
+
## Reading the report
|
|
97
|
+
|
|
98
|
+
- **OK**: the skill parses, identifies itself properly, and shows no risky patterns.
|
|
99
|
+
- **WARN**: worth a human look, for example a reference to a credential store or a very long file.
|
|
100
|
+
- **FAIL**: broken or dangerous. The report exits with code 1 when any skill fails, so it drops straight into CI.
|
|
101
|
+
|
|
102
|
+
Every skill also gets a score out of 100 and a letter grade, and so does the whole installation. Most findings carry a fix line that says exactly what to change, so the report reads as a work list, not just a verdict.
|
|
103
|
+
|
|
104
|
+
## Removing what fails
|
|
105
|
+
|
|
106
|
+
Finding a bad skill is only half the job, so SkillClinic can clear it out too. Removal is deliberately boring and reversible:
|
|
107
|
+
|
|
108
|
+
```bash
|
|
109
|
+
skillclinic --quarantine-failed # move every FAIL skill out of its host folder
|
|
110
|
+
skillclinic --restore # put the last batch back
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
Nothing is deleted outright. Failed skills move to `~/.skillclinic/quarantine` in a dated batch with a manifest of where each one came from, and `--restore` puts the most recent batch back exactly where it was. Only FAIL verdicts are moved; a WARN is a judgment call, and judgment calls stay yours. Add `--yes` to skip the confirmation prompt in scripts.
|
|
114
|
+
|
|
115
|
+
---
|
|
116
|
+
|
|
117
|
+
## The State of Public Skills
|
|
118
|
+
|
|
119
|
+
We pointed SkillClinic at the six biggest public skill collections. One in three skills failed.
|
|
120
|
+
|
|
121
|
+
<table align="center">
|
|
122
|
+
<tr>
|
|
123
|
+
<td align="center"><h2>777</h2>skills audited</td>
|
|
124
|
+
<td align="center"><h2>267</h2>failed the audit</td>
|
|
125
|
+
<td align="center"><h2>8</h2>carried the highest severity pattern</td>
|
|
126
|
+
</tr>
|
|
127
|
+
</table>
|
|
128
|
+
|
|
129
|
+
The curated collections are nearly clean. The failures concentrate in the largest one, where duplicated skills and credential references pile up.
|
|
130
|
+
|
|
131
|
+
| Collection | Health |
|
|
132
|
+
| --- | --- |
|
|
133
|
+
| obra/superpowers | 100/100 |
|
|
134
|
+
| mattpocock/skills | 99/100 |
|
|
135
|
+
| anthropics/skills | 97/100 |
|
|
136
|
+
| K-Dense-AI/scientific-agent-skills | 96/100 |
|
|
137
|
+
| addyosmani/agent-skills | 92/100 |
|
|
138
|
+
| affaan-m/ECC | 76/100 |
|
|
139
|
+
|
|
140
|
+
Full method, findings, and limits: [The State of Public Skills](AUDIT.md).
|
|
141
|
+
|
|
142
|
+
---
|
|
143
|
+
|
|
144
|
+
## Show your audit
|
|
145
|
+
|
|
146
|
+
Publish skills of your own? A collection that passes the audit earns the plaque shown at the top of this page. Listings carry only the score their own repo's audit produced, a listing by hand is added only after the maintainers re-run the audit and the results match, and a daily re-audit keeps every listed badge honest after that.
|
|
147
|
+
|
|
148
|
+
Yours is served live, plaque and badge alike, from an address that carries your own GitHub identity:
|
|
149
|
+
|
|
150
|
+
```
|
|
151
|
+
https://skilldoctor-badges.vercel.app/badges/<owner>--<repo>.svg
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
Paste it into your README:
|
|
155
|
+
|
|
156
|
+
```markdown
|
|
157
|
+
[](https://dongdarealest.github.io/skillclinic/)
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
That paste is the whole enrollment. A daily job searches GitHub for the badge address, reads the owner and repo out of the address itself, audits that repo, and lists it in the registry with its real score. A brand new badge can take some hours to be discovered, while GitHub indexes it. Until the first verification the address serves a pending design, so it never renders as a broken image; from then on it serves the current result, and if the project stops passing it flips to a grey recheck design until it passes again. Take the badge out of your README and the listing is dropped on the next run. The generator on the [registry page](https://dongdarealest.github.io/skillclinic/) builds the ready to paste snippet for you, and the same address with `-plaque` before `.svg` gives the large format, for a place of honor.
|
|
161
|
+
|
|
162
|
+
This is a real one, SkillPort's badge, served live:
|
|
163
|
+
|
|
164
|
+
[](https://dongdarealest.github.io/skillclinic/)
|
|
165
|
+
|
|
166
|
+
[REGISTRY.md](REGISTRY.md) describes how verification works in full. For announcements and offline use, `skillclinic <folder> --write-badge` writes a dated static snapshot of the badge, the plaque, and the machine report instead; a failing audit writes nothing. The plain mark at [badges/audited.svg](https://skilldoctor-badges.vercel.app/badges/audited.svg) carries no score and enrolls nothing; only the personal address is an enrollment.
|
|
167
|
+
|
|
168
|
+
SkillClinic wears the small badge in the row at the top of this page, and it does not flatter itself: this repo carries no skills of its own, only the demo fixtures under `examples/`, so its badge shows the no skills state, and those fixtures are listed as not audited in every report rather than scored.
|
|
169
|
+
|
|
170
|
+
## In CI, and as a GitHub Action
|
|
171
|
+
|
|
172
|
+
This repo doubles as a GitHub Action, so a collection can audit itself on every push:
|
|
173
|
+
|
|
174
|
+
```yaml
|
|
175
|
+
- uses: Dongdarealest/skillclinic@v0.4.6
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
It audits the repository (or the folder given in the `path` input) and fails the build when any skill fails. Anywhere else, the plain command does the same job in CI: `skillclinic --json` for machines, exit code 1 on any FAIL.
|
|
179
|
+
|
|
180
|
+
## Why this exists
|
|
181
|
+
|
|
182
|
+
Public skill collections are growing faster than anyone can review them, and audits of popular collections keep finding files that are invalid, duplicated, or carry instructions no user would accept if they read them. Installing a skill is trusting a stranger's instructions inside your own AI. A checkup should take ten seconds, so here it is.
|
|
183
|
+
|
|
184
|
+
---
|
|
185
|
+
|
|
186
|
+
## Support
|
|
187
|
+
|
|
188
|
+
SkillClinic is free and MIT licensed. If it saved you from one bad install, a coffee keeps the next check coming.
|
|
189
|
+
|
|
190
|
+
<p>
|
|
191
|
+
<a href="https://github.com/sponsors/Dongdarealest"><img src="https://img.shields.io/badge/GitHub%20Sponsors-141414?style=for-the-badge&logo=githubsponsors&logoColor=EA4AAA" alt="Sponsor on GitHub"></a>
|
|
192
|
+
<a href="https://ko-fi.com/dongdarealest"><img src="https://img.shields.io/badge/Ko--fi-141414?style=for-the-badge&logo=kofi&logoColor=FF5E5B" alt="Buy me a coffee on Ko-fi"></a>
|
|
193
|
+
</p>
|
|
194
|
+
|
|
195
|
+
## Contributing
|
|
196
|
+
|
|
197
|
+
New checks are the most welcome contributions, especially patterns for risks this version does not catch yet. Open an issue with the skill that slipped through, or send a pull request with a test that proves the new check works. Questions and ideas are welcome in [Discussions](https://github.com/Dongdarealest/skillclinic/discussions).
|
|
198
|
+
|
|
199
|
+
## License
|
|
200
|
+
|
|
201
|
+
MIT. See [LICENSE](LICENSE).
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=61"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "skillclinic"
|
|
7
|
+
version = "0.4.6"
|
|
8
|
+
description = "Audit the AI skill files installed on your machine for validity, security risks, conflicts, and token cost."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
license = { text = "MIT" }
|
|
11
|
+
requires-python = ">=3.10"
|
|
12
|
+
|
|
13
|
+
[project.scripts]
|
|
14
|
+
skillclinic = "skillclinic:main"
|
|
15
|
+
# Deprecated alias, kept so existing installs keep working.
|
|
16
|
+
skilldoctor = "skillclinic:main"
|
|
17
|
+
|
|
18
|
+
[tool.setuptools]
|
|
19
|
+
py-modules = ["skillclinic"]
|