@ladamczyk/skillslint 4.0.6 → 4.0.8

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/README.md CHANGED
@@ -1,4 +1,13 @@
1
- # Skillslint
1
+ <h1>
2
+ <picture>
3
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/ladamczyk-it/skillslint/master/logo-dark.svg">
4
+ <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/ladamczyk-it/skillslint/master/logo.svg">
5
+ <img alt="" src="https://raw.githubusercontent.com/ladamczyk-it/skillslint/master/logo.svg" height="36" align="top">
6
+ </picture>
7
+ &nbsp;Skillslint
8
+ </h1>
9
+
10
+ Browse our docs [https://adamczyk.ovh/docs/skillslint](https://adamczyk.ovh/docs/skillslint).
2
11
 
3
12
  ## Rationale
4
13
 
@@ -8,7 +17,7 @@ To avoid common mistakes, this CLI runs predefined [textlint](https://textlint.o
8
17
 
9
18
  ## Usage
10
19
 
11
- You can install package locally (eg for [QoQ](https://www.npmjs.com/package/@saashub/qoq-cli) usage) or run it directly:
20
+ You can install package locally (eg for [QoQ](https://www.npmjs.com/package/@ladamczyk/qoq-cli) usage) or run it directly:
12
21
 
13
22
  ```bash
14
23
  npx @ladamczyk/skillslint
package/bin/skillslint.js CHANGED
@@ -1,2 +1,2 @@
1
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();
2
+ import{readdirSync as t}from"fs";import{getRelativePath as e,getPackageInfo as r,executeCommand as o,resolveCwdRelativePath as i,EExitCode as s}from"@ladamczyk/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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ladamczyk/skillslint",
3
- "version": "4.0.6",
3
+ "version": "4.0.8",
4
4
  "description": "Linter for agents skills",
5
5
  "keywords": [
6
6
  "cli",
@@ -31,10 +31,9 @@
31
31
  "build": "rimraf ./bin && rollup -c --silent && chmod +x ./bin/skillslint.js",
32
32
  "dev": "npm run build && node ./bin/skillslint.js",
33
33
  "husky:pre-push": "run-s qoq:check test build",
34
- "postinstall": "qoq --warmup",
35
34
  "prepare": "husky",
36
35
  "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",
36
+ "publish:release": "npx --package semantic-release --package @semantic-release/changelog --package @semantic-release/git -y semantic-release",
38
37
  "qoq:check": "qoq --check",
39
38
  "qoq:fix": "qoq --fix",
40
39
  "sort:packages:json": "npx -y sort-package-json 'package.json'",
@@ -42,7 +41,7 @@
42
41
  "test:coverage": "npm run test -- --coverage"
43
42
  },
44
43
  "dependencies": {
45
- "@saashub/qoq-utils": "3.2.5",
44
+ "@ladamczyk/qoq-utils": "4.2.0",
46
45
  "@textlint/textlint-plugin-markdown": "15.7.1",
47
46
  "@textlint/textlint-plugin-text": "15.7.1",
48
47
  "agent-skills-cli": "1.1.9",
@@ -54,28 +53,28 @@
54
53
  "textlint-rule-write-good": "2.0.0"
55
54
  },
56
55
  "devDependencies": {
57
- "@commitlint/cli": "21.0.1",
58
- "@commitlint/config-conventional": "21.0.1",
59
- "@rollup/plugin-commonjs": "29.0.2",
56
+ "@commitlint/cli": "21.0.2",
57
+ "@commitlint/config-conventional": "21.0.2",
58
+ "@ladamczyk/qoq-cli": "4.2.0",
59
+ "@ladamczyk/qoq-eslint-v9-ts": "4.2.0",
60
+ "@ladamczyk/qoq-jscpd": "4.2.0",
61
+ "@ladamczyk/qoq-knip": "4.2.0",
62
+ "@ladamczyk/qoq-prettier-with-json-sort": "4.2.0",
63
+ "@rollup/plugin-commonjs": "29.0.3",
60
64
  "@rollup/plugin-json": "6.1.0",
61
65
  "@rollup/plugin-node-resolve": "16.0.3",
62
66
  "@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
67
  "@types/node": "^22",
69
- "@vitest/coverage-v8": "4.1.7",
70
- "dotenv": "17.4.0",
68
+ "@vitest/coverage-v8": "4.1.8",
69
+ "dotenv": "17.4.2",
71
70
  "esbuild": "0.28.0",
72
71
  "husky": "9.1.7",
73
72
  "npm-run-all": "4.1.5",
74
73
  "rimraf": "6.1.3",
75
- "rollup": "4.60.4",
74
+ "rollup": "4.61.1",
76
75
  "rollup-plugin-esbuild": "6.2.1",
77
76
  "typescript": "6.0.3",
78
- "vitest": "4.1.7"
77
+ "vitest": "4.1.8"
79
78
  },
80
79
  "engines": {
81
80
  "node": ">=22.13.1"