Skip to content

Commit c63be2d

Browse files
Added check to check skills size (#338)
* Added check to check skills size * Change glob -> readdirSync * Shorten description length * Added check for name, compatibility and body * Added back some parts that were removed to avoid regressions * More cleanup * Feedback: Used grey-matter for frontmatter parsing * Added pnpm setup and install deps in Skills Quality job * Refine triggers
1 parent b199f20 commit c63be2d

File tree

5 files changed

+254
-46
lines changed

5 files changed

+254
-46
lines changed

.github/workflows/quality.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,27 @@ jobs:
5656
- name: Run `@arethetypeswrong/cli` check
5757
run: pnpm run attw
5858

59+
skills:
60+
name: "Skills"
61+
runs-on: ubuntu-latest
62+
steps:
63+
- name: Checkout
64+
uses: actions/checkout@v4
65+
66+
- name: Setup pnpm
67+
uses: pnpm/action-setup@v2
68+
69+
- uses: actions/setup-node@v3
70+
with:
71+
node-version-file: ".node-version"
72+
cache: "pnpm"
73+
74+
- name: Install dependencies
75+
run: pnpm install
76+
77+
- name: Validate SKILL.md files
78+
run: node scripts/validate-skills.mjs
79+
5980
publint:
6081
name: "publint"
6182
runs-on: ubuntu-latest

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"test:e2e": "turbo test:e2e",
3333
"test:integration": "turbo test:integration",
3434
"type-check": "turbo type-check",
35+
"validate-skills": "node scripts/validate-skills.mjs",
3536
"version-packages": "changeset version && pnpm i --no-frozen-lockfile && git add ."
3637
},
3738
"lint-staged": {
@@ -43,6 +44,7 @@
4344
"@biomejs/biome": "^2.4.6",
4445
"@changesets/cli": "2.29.8",
4546
"@types/node": "22.9.0",
47+
"gray-matter": "4.0.3",
4648
"husky": "9.0.10",
4749
"lint-staged": "15.2.2",
4850
"next": "^16.1.6",

0 commit comments

Comments
 (0)