@ladamczyk/skillslint 4.2.0 → 4.2.1

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/AGENTS.md CHANGED
@@ -47,7 +47,7 @@ result.textlint; // raw textlint results for the linted markdown files
47
47
 
48
48
  ## Anonymous usage stats
49
49
 
50
- Opt-in, off until a human says yes. 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:
50
+ Opt-in, off until a human says yes. A counted run posts one constant to `https://adamczyk.ovh/stats` and nothing else — every run, every flag combination, byte for byte the same body:
51
51
 
52
52
  ```jsonc
53
53
  { "tool": "skillslint", "options": [] } // `options` is always empty
package/README.md CHANGED
@@ -28,3 +28,21 @@ to list available options
28
28
  ```bash
29
29
  npx @ladamczyk/skillslint -h
30
30
  ```
31
+
32
+ ## Anonymous usage stats
33
+
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.
35
+
36
+ A counted run posts one constant to `https://adamczyk.ovh/stats` and nothing else — every run, every flag combination, byte for byte the same body:
37
+
38
+ ```jsonc
39
+ { "tool": "skillslint", "options": [] } // `options` is always empty
40
+ ```
41
+
42
+ Never sent: your skills, file names, paths, scores, findings, thresholds, the flags you typed, project or package names, or anything identifying the user or machine. Sends are fire-and-forget with a 2s timeout; a failure is swallowed and never affects the exit code.
43
+
44
+ ## Last 12 months usage statistics (>=4.2.0)
45
+
46
+ 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).
47
+
48
+ [![Last 12 months usage statistics](https://adamczyk.ovh/img/stats/skillslint.png?date=2026-08-19)](https://adamczyk.ovh/img/stats/skillslint.png)
package/bin/cli.js CHANGED
@@ -4,7 +4,7 @@ import{EExitCode as e,getPackageInfo as t,getRelativePath as n,resolveCwdRelativ
4
4
  `)),e.skills.forEach(({name:e,scores:n})=>{t+=c.gray(`\n/${e}\n`),O.forEach(e=>{let r=`${e[0]?.toUpperCase()}${e.slice(1)}:`.padEnd(13),i=c[s(n[e])];t+=i(`${r}${o(n[e],25)}\n`)})}),e.skills.some(e=>!e.passed)&&(t+=c.red(`At least one skill doesn't meet required threshold!
5
5
  `)),e.passed&&(t+=c.green(`
6
6
  All good!
7
- `)),t},j=`https://stats.adamczyk.ovh`,M=h(process.env.XDG_CONFIG_HOME??h(x(),`.config`),`skillslint.json`),N=e=>{try{let t=JSON.parse(v(e,`utf8`));return typeof t==`object`&&t?t:{}}catch{return{}}},P=(e,t)=>{try{_(m(e),{recursive:!0}),b(e,`${JSON.stringify({...N(e),stats:t},null,2)}\n`)}catch{}},F=async()=>{process.stdout.write([c.bold(`
7
+ `)),t},j=`https://adamczyk.ovh/stats`,M=h(process.env.XDG_CONFIG_HOME??h(x(),`.config`),`skillslint.json`),N=e=>{try{let t=JSON.parse(v(e,`utf8`));return typeof t==`object`&&t?t:{}}catch{return{}}},P=(e,t)=>{try{_(m(e),{recursive:!0}),b(e,`${JSON.stringify({...N(e),stats:t},null,2)}\n`)}catch{}},F=async()=>{process.stdout.write([c.bold(`
8
8
  Skillslint usage stats
9
9
  `),`Send a count of skillslint runs to ${j}? Each run posts one thing:\n`,` • the tool name — always the literal ${c.cyan(`"skillslint"`)}\n`,c.gray(`Never sent: your skills, file names, paths, scores, findings, thresholds,
10
10
  the flags you typed, project or package names, and nothing identifying
package/lib/index.cjs CHANGED
@@ -97,7 +97,7 @@ const format = async (result) => {
97
97
  };
98
98
  //#endregion
99
99
  //#region src/helpers/stats.ts
100
- const STATS_URL = "https://stats.adamczyk.ovh";
100
+ const STATS_URL = "https://adamczyk.ovh/stats";
101
101
  const STATS_TIMEOUT_MS = 2e3;
102
102
  (0, path.join)(process.env.XDG_CONFIG_HOME ?? (0, path.join)((0, os.homedir)(), ".config"), "skillslint.json");
103
103
  const sendStats = async () => {
package/lib/index.mjs CHANGED
@@ -74,7 +74,7 @@ const format = async (result) => {
74
74
  };
75
75
  //#endregion
76
76
  //#region src/helpers/stats.ts
77
- const STATS_URL = "https://stats.adamczyk.ovh";
77
+ const STATS_URL = "https://adamczyk.ovh/stats";
78
78
  const STATS_TIMEOUT_MS = 2e3;
79
79
  join(process.env.XDG_CONFIG_HOME ?? join(homedir(), ".config"), "skillslint.json");
80
80
  const sendStats = async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ladamczyk/skillslint",
3
- "version": "4.2.0",
3
+ "version": "4.2.1",
4
4
  "description": "Linter for agents skills",
5
5
  "keywords": [
6
6
  "cli",
@@ -52,7 +52,7 @@
52
52
  "test:coverage": "npm run test -- --coverage"
53
53
  },
54
54
  "dependencies": {
55
- "@ladamczyk/qoq-utils": "6.0.0",
55
+ "@ladamczyk/qoq-utils": "6.1.1",
56
56
  "@textlint/textlint-plugin-markdown": "15.8.0",
57
57
  "@textlint/textlint-plugin-text": "15.8.0",
58
58
  "agent-skills-cli": "1.1.9",
@@ -66,20 +66,20 @@
66
66
  "devDependencies": {
67
67
  "@commitlint/cli": "21.2.2",
68
68
  "@commitlint/config-conventional": "21.2.2",
69
- "@ladamczyk/qoq-cli": "6.0.0",
70
- "@ladamczyk/qoq-eslint-v9-ts": "6.0.0",
71
- "@ladamczyk/qoq-jscpd": "6.0.0",
72
- "@ladamczyk/qoq-knip": "6.0.0",
73
- "@ladamczyk/qoq-prettier-with-json-sort": "6.0.0",
69
+ "@ladamczyk/qoq-cli": "6.1.1",
70
+ "@ladamczyk/qoq-eslint-v9-ts": "6.1.1",
71
+ "@ladamczyk/qoq-jscpd": "6.1.1",
72
+ "@ladamczyk/qoq-knip": "6.1.1",
73
+ "@ladamczyk/qoq-prettier-with-json-sort": "6.1.1",
74
74
  "@types/node": "^22",
75
- "@vitest/coverage-v8": "4.1.10",
75
+ "@vitest/coverage-v8": "4.1.11",
76
76
  "dotenv": "17.4.2",
77
77
  "husky": "9.1.7",
78
78
  "npm-run-all": "4.1.5",
79
79
  "rimraf": "6.1.3",
80
80
  "rolldown": "1.2.4",
81
81
  "typescript": "6.0.3",
82
- "vitest": "4.1.10"
82
+ "vitest": "4.1.11"
83
83
  },
84
84
  "engines": {
85
85
  "node": ">=22.13.1"