@ladamczyk/skillslint 4.0.5 → 4.0.7

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,5 +1,7 @@
1
1
  # Skillslint
2
2
 
3
+ Browse our docs [https://adamczyk.ovh/docs/skillslint](https://adamczyk.ovh/docs/skillslint).
4
+
3
5
  ## Rationale
4
6
 
5
7
  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.
@@ -8,7 +10,7 @@ To avoid common mistakes, this CLI runs predefined [textlint](https://textlint.o
8
10
 
9
11
  ## Usage
10
12
 
11
- You can install package locally (eg for [QoQ](https://www.npmjs.com/package/@saashub/qoq-cli) usage) or run it directly:
13
+ You can install package locally (eg for [QoQ](https://www.npmjs.com/package/@ladamczyk/qoq-cli) usage) or run it directly:
12
14
 
13
15
  ```bash
14
16
  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.5",
3
+ "version": "4.0.7",
4
4
  "description": "Linter for agents skills",
5
5
  "keywords": [
6
6
  "cli",
@@ -34,7 +34,7 @@
34
34
  "postinstall": "qoq --warmup",
35
35
  "prepare": "husky",
36
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",
37
+ "publish:release": "npx --package semantic-release --package @semantic-release/changelog --package @semantic-release/git -y semantic-release",
38
38
  "qoq:check": "qoq --check",
39
39
  "qoq:fix": "qoq --fix",
40
40
  "sort:packages:json": "npx -y sort-package-json 'package.json'",
@@ -42,7 +42,7 @@
42
42
  "test:coverage": "npm run test -- --coverage"
43
43
  },
44
44
  "dependencies": {
45
- "@saashub/qoq-utils": "3.2.5",
45
+ "@ladamczyk/qoq-utils": "4.0.0",
46
46
  "@textlint/textlint-plugin-markdown": "15.7.1",
47
47
  "@textlint/textlint-plugin-text": "15.7.1",
48
48
  "agent-skills-cli": "1.1.9",
@@ -54,28 +54,28 @@
54
54
  "textlint-rule-write-good": "2.0.0"
55
55
  },
56
56
  "devDependencies": {
57
- "@commitlint/cli": "21.0.1",
58
- "@commitlint/config-conventional": "21.0.1",
59
- "@rollup/plugin-commonjs": "29.0.2",
57
+ "@commitlint/cli": "21.0.2",
58
+ "@commitlint/config-conventional": "21.0.2",
59
+ "@ladamczyk/qoq-cli": "4.0.0",
60
+ "@ladamczyk/qoq-eslint-v9-ts": "4.0.0",
61
+ "@ladamczyk/qoq-jscpd": "4.0.0",
62
+ "@ladamczyk/qoq-knip": "4.0.0",
63
+ "@ladamczyk/qoq-prettier-with-json-sort": "4.0.0",
64
+ "@rollup/plugin-commonjs": "29.0.3",
60
65
  "@rollup/plugin-json": "6.1.0",
61
66
  "@rollup/plugin-node-resolve": "16.0.3",
62
67
  "@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
68
  "@types/node": "^22",
69
- "@vitest/coverage-v8": "4.1.7",
70
- "dotenv": "17.4.0",
69
+ "@vitest/coverage-v8": "4.1.8",
70
+ "dotenv": "17.4.2",
71
71
  "esbuild": "0.28.0",
72
72
  "husky": "9.1.7",
73
73
  "npm-run-all": "4.1.5",
74
74
  "rimraf": "6.1.3",
75
- "rollup": "4.60.4",
75
+ "rollup": "4.61.0",
76
76
  "rollup-plugin-esbuild": "6.2.1",
77
77
  "typescript": "6.0.3",
78
- "vitest": "4.1.7"
78
+ "vitest": "4.1.8"
79
79
  },
80
80
  "engines": {
81
81
  "node": ">=22.13.1"