@ladamczyk/skillslint 4.0.3
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.
- package/.textlintrc.json +19 -0
- package/AGENTS.md +48 -0
- package/LICENSE +21 -0
- package/README.md +21 -0
- package/bin/skillslint.js +2 -0
- package/package.json +86 -0
package/.textlintrc.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"plugins": {
|
|
3
|
+
"@textlint/markdown": {
|
|
4
|
+
"extensions": [".md"]
|
|
5
|
+
},
|
|
6
|
+
"@textlint/text": {
|
|
7
|
+
"extensions": [".md"]
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
"rules": {
|
|
11
|
+
"common-misspellings": true,
|
|
12
|
+
"write-good": {
|
|
13
|
+
"weasel": false,
|
|
14
|
+
"passive": false,
|
|
15
|
+
"adverb": false,
|
|
16
|
+
"tooWordy": false
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
package/AGENTS.md
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# @ladamczyk/skillslint — Agent Context
|
|
2
|
+
|
|
3
|
+
CLI linter for Claude Code agent skill documentation. Runs two checks: markdown prose quality via textlint, and structured quality scoring via `agent-skills-cli`.
|
|
4
|
+
|
|
5
|
+
## Command
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
skillslint [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
| Option | Default | Description |
|
|
12
|
+
| ----------------------- | ---------- | -------------------------------------------------------------------------------- |
|
|
13
|
+
| `-p, --path <path>` | `./skills` | Directory containing skill subdirectories |
|
|
14
|
+
| `-t, --threshold <n>` | `70` | Overall quality threshold (0–100); used when no specific threshold flags are set |
|
|
15
|
+
| `--overall <n>` | — | Required overall score |
|
|
16
|
+
| `--structure <n>` | — | Required structure score |
|
|
17
|
+
| `--clarity <n>` | — | Required clarity score |
|
|
18
|
+
| `--specificity <n>` | — | Required specificity score |
|
|
19
|
+
| `--advanced <n>` | — | Required advanced score |
|
|
20
|
+
| `-f, --fix` | — | Attempt auto-fix via textlint |
|
|
21
|
+
| `-i, --ignored [names]` | — | Skill directory names to skip |
|
|
22
|
+
|
|
23
|
+
Exits with code `1` if any skill fails to meet its threshold or if textlint finds unfixable issues.
|
|
24
|
+
|
|
25
|
+
## Skills directory structure
|
|
26
|
+
|
|
27
|
+
Each subdirectory under `--path` is treated as one skill:
|
|
28
|
+
|
|
29
|
+
```
|
|
30
|
+
skills/
|
|
31
|
+
my-skill/
|
|
32
|
+
SKILL.md # the skill document linted by textlint and scored
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Scoring categories
|
|
36
|
+
|
|
37
|
+
| Category | What it measures |
|
|
38
|
+
| ----------- | ------------------------------------------ |
|
|
39
|
+
| Overall | Weighted average of all categories |
|
|
40
|
+
| Structure | Document organization and completeness |
|
|
41
|
+
| Clarity | Writing clarity and readability |
|
|
42
|
+
| Specificity | Concrete examples and precise instructions |
|
|
43
|
+
| Advanced | Use of advanced skill features |
|
|
44
|
+
|
|
45
|
+
## Textlint rules (bundled `.textlintrc.json`)
|
|
46
|
+
|
|
47
|
+
- `common-misspellings` — catches common spelling errors
|
|
48
|
+
- `write-good` — passive voice and wordiness checks (weasel words, adverbs, and "too wordy" disabled)
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Łukasz Adamczyk
|
|
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.
|
package/README.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Skillslint
|
|
2
|
+
|
|
3
|
+
## Rationale
|
|
4
|
+
|
|
5
|
+
Agents skills created via Anthropics [skill-creator](https://github.com/anthropics/skills/tree/main/skills/skill-creator) are generally good and reliable. Nevertheless You can also create or edit them manually since they are just `SKILL.md` files.
|
|
6
|
+
|
|
7
|
+
To avoid common mistakes, this CLI runs predefined [textlint](https://textlint.org/docs/getting-started) and [agent-skills-cli](https://github.com/Karanjot786/agent-skills-cli) to provide both semantic and quality checks on all Your skills.
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
You can install package locally (eg for [QoQ](https://www.npmjs.com/package/@saashub/qoq-cli) usage) or run it directly:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npx @ladamczyk/skillslint
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
to list available options
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
npx @ladamczyk/skillslint -h
|
|
21
|
+
```
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import{readdirSync as t}from"fs";import{getRelativePath as e,getPackageInfo as r,executeCommand as o,resolveCwdRelativePath as i,EExitCode as s}from"@saashub/qoq-utils";import{assessQuality as l,getScoreColor as c,formatScoreBar as a}from"agent-skills-cli";import n from"cac";import d from"picocolors";import{resolve as p}from"path";var h="@ladamczyk/skillslint";const u=t=>p(`${(()=>{try{const{rootPath:t}=r(h)??{};return t}catch{return process.cwd()}})()}${t}`),f=t=>e(u(t)),y="./skills",m=n("skillslint");m.command("","Linter for agents skills").option("-p,--path <path>","Lint path",{default:y}).option("-t, --threshold <threshold>","Same as --overall 70, will take effect only if no other threshold options are configured",{default:70}).option("-f,--fix","Try to fix findings").option("-i,--ignored [ignored]","Ignored skills").option("--overall <threshold>","Overall required threshold").option("--structure <threshold>","Structure required threshold").option("--clarity <threshold>","Clarity required threshold").option("--specificity <threshold>","Specificity required threshold").option("--advanced <threshold>","Advanced required threshold").action(async e=>{const{fix:r,path:n,ignored:p}=e,h=`/${n??y}`,u=(t=>{const{threshold:e,overall:r,structure:o,clarity:i,specificity:s,advanced:l}=t,c={};return r&&(c.overall=r),o&&(c.structure=o),i&&(c.clarity=i),s&&(c.specificity=s),l&&(c.advanced=l),0===Object.keys(c).length&&(c.overall=e??70),c})(e);let m=await o("textlint",[r?"--fix":"","--config",f("/.textlintrc.json"),i(`${h}/**/*.md`)]);r&&m===s.ERROR&&process.stdout.write(d.red("Can't perform automatic fix!\n\n"));const v=t(i(h),{withFileTypes:!0}).filter(t=>t.isDirectory()&&!(p??[]).includes(t.name)).map(({name:t})=>t),w=await Promise.all(v.map(t=>l(`${i(h)}/${t}`)));w.forEach((t,e)=>{let r=d.gray;process.stdout.write(r(`\n/${v[e]}\n`)),r=d[c(t.overall)],process.stdout.write(r(`Overall: ${a(t.overall,25)}\n`)),r=d[c(t.structure)],process.stdout.write(r(`Structure: ${a(t.structure,25)}\n`)),r=d[c(t.clarity)],process.stdout.write(r(`Clarity: ${a(t.clarity,25)}\n`)),r=d[c(t.specificity)],process.stdout.write(r(`Specificity: ${a(t.specificity,25)}\n`)),r=d[c(t.advanced)],process.stdout.write(r(`Advanced: ${a(t.advanced,25)}\n`))}),w.some(t=>((t,e)=>t.overall<(e.overall??0)||t.structure<(e.structure??0)||t.clarity<(e.clarity??0)||t.specificity<(e.specificity??0)||t.advanced<(e.advanced??0))(t,u))&&(process.stdout.write(d.red("At least one skill doesn't meet required threshold!\n")),m=s.ERROR),m===s.ERROR?process.exit(m):(process.stdout.write(d.green("\nAll good!\n")),process.exit(s.OK))}),m.help(),m.parse();
|
package/package.json
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ladamczyk/skillslint",
|
|
3
|
+
"version": "4.0.3",
|
|
4
|
+
"description": "Linter for agents skills",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"cli",
|
|
7
|
+
"skillslint",
|
|
8
|
+
"agents",
|
|
9
|
+
"skills"
|
|
10
|
+
],
|
|
11
|
+
"homepage": "https://github.com/ladamczyk-it/skillslint",
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/ladamczyk-it/skillslint/issues"
|
|
14
|
+
},
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "git+ssh://git@github.com/ladamczyk-it/skillslint.git"
|
|
18
|
+
},
|
|
19
|
+
"license": "MIT",
|
|
20
|
+
"type": "module",
|
|
21
|
+
"main": "./bin/skillslint.js",
|
|
22
|
+
"bin": {
|
|
23
|
+
"skillslint": "bin/skillslint.js"
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
"bin",
|
|
27
|
+
".textlintrc.json",
|
|
28
|
+
"AGENTS.md"
|
|
29
|
+
],
|
|
30
|
+
"scripts": {
|
|
31
|
+
"build": "rimraf ./bin && rollup -c --silent && chmod +x ./bin/skillslint.js",
|
|
32
|
+
"dev": "npm run build && node ./bin/skillslint.js",
|
|
33
|
+
"husky:pre-push": "run-s qoq:check test build",
|
|
34
|
+
"postinstall": "qoq --warmup",
|
|
35
|
+
"prepare": "husky",
|
|
36
|
+
"publish:full": "run-s husky:pre-push publish:release",
|
|
37
|
+
"publish:release": "npx --package semantic-release --package @semantic-release/changelog --package @semantic-release/git --package @semantic-release/npm -y semantic-release",
|
|
38
|
+
"qoq:check": "qoq --check",
|
|
39
|
+
"qoq:fix": "qoq --fix",
|
|
40
|
+
"sort:packages:json": "npx -y sort-package-json 'package.json'",
|
|
41
|
+
"test": "vitest run",
|
|
42
|
+
"test:coverage": "npm run test -- --coverage"
|
|
43
|
+
},
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"@saashub/qoq-utils": "3.2.5",
|
|
46
|
+
"@textlint/textlint-plugin-markdown": "15.7.1",
|
|
47
|
+
"@textlint/textlint-plugin-text": "15.7.1",
|
|
48
|
+
"agent-skills-cli": "1.1.9",
|
|
49
|
+
"cac": "7.0.0",
|
|
50
|
+
"picocolors": "1.1.1",
|
|
51
|
+
"textlint": "15.7.1",
|
|
52
|
+
"textlint-rule-common-misspellings": "1.0.1",
|
|
53
|
+
"textlint-rule-terminology": "5.2.16",
|
|
54
|
+
"textlint-rule-write-good": "2.0.0"
|
|
55
|
+
},
|
|
56
|
+
"devDependencies": {
|
|
57
|
+
"@commitlint/cli": "21.0.1",
|
|
58
|
+
"@commitlint/config-conventional": "21.0.1",
|
|
59
|
+
"@rollup/plugin-commonjs": "29.0.2",
|
|
60
|
+
"@rollup/plugin-json": "6.1.0",
|
|
61
|
+
"@rollup/plugin-node-resolve": "16.0.3",
|
|
62
|
+
"@rollup/plugin-terser": "1.0.0",
|
|
63
|
+
"@saashub/qoq-cli": "3.2.5",
|
|
64
|
+
"@saashub/qoq-eslint-v9-ts": "3.2.5",
|
|
65
|
+
"@saashub/qoq-jscpd": "3.2.5",
|
|
66
|
+
"@saashub/qoq-knip": "3.2.5",
|
|
67
|
+
"@saashub/qoq-prettier-with-json-sort": "3.2.5",
|
|
68
|
+
"@types/node": "^22",
|
|
69
|
+
"@vitest/coverage-v8": "4.1.7",
|
|
70
|
+
"dotenv": "17.4.0",
|
|
71
|
+
"esbuild": "0.28.0",
|
|
72
|
+
"husky": "9.1.7",
|
|
73
|
+
"npm-run-all": "4.1.5",
|
|
74
|
+
"rimraf": "6.1.3",
|
|
75
|
+
"rollup": "4.60.4",
|
|
76
|
+
"rollup-plugin-esbuild": "6.2.1",
|
|
77
|
+
"typescript": "6.0.3",
|
|
78
|
+
"vitest": "4.1.7"
|
|
79
|
+
},
|
|
80
|
+
"engines": {
|
|
81
|
+
"node": ">=22.13.1"
|
|
82
|
+
},
|
|
83
|
+
"publishConfig": {
|
|
84
|
+
"access": "public"
|
|
85
|
+
}
|
|
86
|
+
}
|