@ladamczyk/skillslint 4.2.6 → 4.3.0

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 (3) hide show
  1. package/AGENTS.md +7 -4
  2. package/README.md +13 -3
  3. package/package.json +31 -20
package/AGENTS.md CHANGED
@@ -20,7 +20,7 @@ skillslint [options]
20
20
  | `-f, --fix` | — | Attempt auto-fix via textlint |
21
21
  | `-i, --ignored [names]` | — | Skill directory names to skip |
22
22
 
23
- Exits with code `1` if any skill fails to meet its threshold or if textlint finds unfixable issues.
23
+ Exits with code `1` if any skill fails to meet its threshold or if textlint reports an error that is still there after the run (with `--fix`, after fixing).
24
24
 
25
25
  ## Programmatic API
26
26
 
@@ -65,7 +65,7 @@ So the only thing a send carries is that a run happened. Never sent: skills, fil
65
65
  | `{ "stats": false }` | denied | nothing sent, never asked again |
66
66
  | no key / no file | never asked | nothing sent, asked again on the next TTY run |
67
67
 
68
- Edit or delete the file to change the answer; deleting it returns to "never asked". Non-interactive runs — `CI=true`, a pipe, a subprocess — are never prompted, never counted, and write nothing, so they leave the question open rather than answering it for the user.
68
+ Edit or delete the file to change the answer; deleting it returns to "never asked". Non-interactive runs — `CI=true`, a pipe, a subprocess — are never prompted and write nothing, so they leave the question open rather than answering it for the user. While no answer is stored they are never counted; once `{ "stats": true }` is stored, they are counted too.
69
69
 
70
70
  - **API** — never prompts, never reads that file, and has no default. `stats: boolean` is a **required** option on `lint()`: the caller holds its own user's consent, so it must pass `true` or `false` outright. `false` sends nothing.
71
71
 
@@ -76,9 +76,12 @@ Each subdirectory under `--path` is treated as one skill:
76
76
  ```
77
77
  skills/
78
78
  my-skill/
79
- SKILL.md # the skill document linted by textlint and scored
79
+ SKILL.md # the skill document
80
+ *.md # every .md file under --path is checked by textlint
80
81
  ```
81
82
 
83
+ The whole skill folder is passed to the scorer.
84
+
82
85
  ## Scoring categories
83
86
 
84
87
  | Category | What it measures |
@@ -92,4 +95,4 @@ skills/
92
95
  ## Textlint rules (bundled `.textlintrc.json`)
93
96
 
94
97
  - `common-misspellings` — catches common spelling errors
95
- - `write-good` — passive voice and wordiness checks (weasel words, adverbs, and "too wordy" disabled)
98
+ - `write-good` — prose readability checks, with `weasel`, `passive`, `adverb` and `tooWordy` disabled
package/README.md CHANGED
@@ -7,7 +7,9 @@
7
7
   Skillslint
8
8
  </h1>
9
9
 
10
- Browse our docs [https://adamczyk.ovh/docs/skillslint](https://adamczyk.ovh/docs/skillslint).
10
+ Lint and score [Agent Skills](https://github.com/anthropics/skills) (`SKILL.md`), such as Claude Code skills, before your agents run them: textlint prose checks plus structure, clarity and specificity scores, with thresholds that fail CI. A CLI and a JavaScript API, and an optional check inside [qoq](https://qoq.adamczyk.ovh/).
11
+
12
+ Docs: [skillslint.adamczyk.ovh](https://skillslint.adamczyk.ovh/)
11
13
 
12
14
  ## Rationale
13
15
 
@@ -29,9 +31,17 @@ to list available options
29
31
  npx @ladamczyk/skillslint -h
30
32
  ```
31
33
 
34
+ ## AI agents and CI
35
+
36
+ Skills are prompts agents run unattended, so check them in CI and after an agent writes or edits one. Exit code `1` means a textlint error left after the run or a skill below its floor. `--threshold` (default `70`) is the overall floor; `--overall`, `--structure`, `--clarity`, `--specificity` and `--advanced` replace it with per-category floors. The CLI prints text only; for structured results call `lint()`, which returns `{ passed, fixed, skills, textlint }`. An `AGENTS.md` snippet is in [AI agents and CI](https://skillslint.adamczyk.ovh/docs/ai-agents-and-ci).
37
+
38
+ ## qoq
39
+
40
+ [qoq](https://qoq.adamczyk.ovh/) runs Skillslint in-process when `qoq.config.js` has a `skillslint: { path }` block; it is off without one. A failing skill fails `qoq --check`, `qoq --fix` forwards `--fix`, `--skip-skillslint` skips it, and `--json` writes `skillslint-report.json`. qoq currently forwards only `path`, so the default overall floor of `70` applies there. More in [qoq integration](https://skillslint.adamczyk.ovh/docs/qoq).
41
+
32
42
  ## Anonymous usage stats
33
43
 
34
- Opt-in, off until a human says yes. The first interactive run asks; the answer is stored as `stats: true|false` in `~/.config/skillslint.json` (or `$XDG_CONFIG_HOME/skillslint.json`) and never asked again — edit or delete the key to change it. Runs that can't ask (`CI=true`, a pipe) are never prompted and never counted. The JavaScript API never prompts: `stats` is a required boolean on `lint()`, so the calling host states its own user's consent.
44
+ Opt-in, off until a human says yes. The first interactive run asks; the answer is stored as `stats: true|false` in `~/.config/skillslint.json` (or `$XDG_CONFIG_HOME/skillslint.json`) and never asked again — edit or delete the key to change it. Runs that can't ask (`CI=true`, a pipe) are never prompted. While no answer is stored they are never counted; once `stats: true` is stored in that file, CI and piped runs on the same machine are counted too. The JavaScript API never prompts: `stats` is a required boolean on `lint()`, so the calling host states its own user's consent.
35
45
 
36
46
  A counted run posts one constant to `https://stats.adamczyk.ovh` and nothing else — every run, every flag combination, byte for byte the same body:
37
47
 
@@ -45,6 +55,6 @@ Never sent: your skills, file names, paths, scores, findings, thresholds, the fl
45
55
 
46
56
  ## Last 12 months usage statistics (>=4.2.0)
47
57
 
48
- Regenerated on each release, for daily updated numbers click on chart or visit [https://adamczyk.ovh/docs/skillslint#usage-statistics](https://adamczyk.ovh/docs/skillslint#usage-statistics).
58
+ Regenerated on each release, for daily updated numbers click on chart or visit [skillslint.adamczyk.ovh/docs/usage-statistics](https://skillslint.adamczyk.ovh/docs/usage-statistics).
49
59
 
50
60
  [![Last 12 months usage statistics](https://adamczyk.ovh/img/stats/skillslint.png?date=2026-08-19)](https://adamczyk.ovh/img/stats/skillslint.png)
package/package.json CHANGED
@@ -1,14 +1,24 @@
1
1
  {
2
2
  "name": "@ladamczyk/skillslint",
3
- "version": "4.2.6",
4
- "description": "Linter for agents skills",
3
+ "version": "4.3.0",
4
+ "description": "Lint and score Agent Skills (SKILL.md) before your agents run them: prose checks plus structure, clarity and specificity scores, with thresholds that fail CI.",
5
5
  "keywords": [
6
6
  "cli",
7
7
  "skillslint",
8
8
  "agents",
9
- "skills"
9
+ "agent-skills",
10
+ "skill.md",
11
+ "claude-code",
12
+ "claude-skills",
13
+ "linter",
14
+ "textlint",
15
+ "prompt-quality",
16
+ "ai-agents",
17
+ "ci",
18
+ "quality-gate",
19
+ "qoq"
10
20
  ],
11
- "homepage": "https://github.com/ladamczyk-it/skillslint",
21
+ "homepage": "https://skillslint.adamczyk.ovh",
12
22
  "bugs": {
13
23
  "url": "https://github.com/ladamczyk-it/skillslint/issues"
14
24
  },
@@ -50,34 +60,35 @@
50
60
  "test:coverage": "npm run test -- --coverage"
51
61
  },
52
62
  "dependencies": {
53
- "@ladamczyk/qoq-utils": "7.0.0",
54
- "@textlint/textlint-plugin-markdown": "16.1.1",
55
- "@textlint/textlint-plugin-text": "16.1.1",
63
+ "@ladamczyk/qoq-utils": "7.5.0",
64
+ "@textlint/textlint-plugin-markdown": "16.1.4",
65
+ "@textlint/textlint-plugin-text": "16.1.4",
56
66
  "agent-skills-cli": "1.2.0",
57
- "cac": "7.1.0",
67
+ "cac": "7.1.1",
58
68
  "picocolors": "1.1.1",
59
- "textlint": "16.1.1",
69
+ "textlint": "16.1.4",
60
70
  "textlint-rule-common-misspellings": "1.0.1",
61
71
  "textlint-rule-terminology": "5.2.16",
62
72
  "textlint-rule-write-good": "2.0.0"
63
73
  },
64
74
  "devDependencies": {
65
- "@commitlint/cli": "21.2.4",
66
- "@commitlint/config-conventional": "21.2.4",
67
- "@ladamczyk/qoq-cli": "7.0.0",
68
- "@ladamczyk/qoq-eslint-v9-ts": "7.0.0",
69
- "@ladamczyk/qoq-jscpd": "7.0.0",
70
- "@ladamczyk/qoq-knip": "7.0.0",
71
- "@ladamczyk/qoq-prettier-with-json-sort": "7.0.0",
75
+ "@commitlint/cli": "21.3.0",
76
+ "@commitlint/config-conventional": "21.3.0",
77
+ "@ladamczyk/qoq-cli": "7.5.0",
78
+ "@ladamczyk/qoq-eslint-v9-ts": "7.5.0",
79
+ "@ladamczyk/qoq-eslint-v9-ts-react": "7.5.0",
80
+ "@ladamczyk/qoq-jscpd": "7.5.0",
81
+ "@ladamczyk/qoq-knip": "7.5.0",
82
+ "@ladamczyk/qoq-prettier-with-json-sort": "7.5.0",
72
83
  "@types/node": "^22",
73
- "@vitest/coverage-v8": "5.1.1",
84
+ "@vitest/coverage-v8": "5.1.2",
74
85
  "dotenv": "18.0.10",
75
86
  "husky": "9.1.7",
76
- "npm-run-all2": "9.0.4",
87
+ "npm-run-all2": "9.1.0",
77
88
  "rimraf": "6.1.4",
78
- "rolldown": "1.3.3",
89
+ "rolldown": "1.4.0",
79
90
  "typescript": "6.0.3",
80
- "vitest": "5.1.1"
91
+ "vitest": "5.1.2"
81
92
  },
82
93
  "engines": {
83
94
  "node": "^22.22.2 || ^24.15.0 || >=26.0.0",