mirror of
https://github.com/chrisbanes/skills.git
synced 2026-09-19 08:37:48 +08:00
2f687c9be1
Adds automated validation for all SKILL.md files on every PR. ## What this does - **Frontmatter schema validation** via `remark-lint-frontmatter-schema` — validates YAML syntax, required fields (`name`, `description`), and kebab-case naming against `skills.schema.json` - **Markdown linting** via `remark-preset-lint-recommended` — catches broken links, invalid headings, etc. ## Files - `skills.schema.json` — JSON Schema for skill frontmatter - `.github/workflows/lint.yml` — GitHub Actions workflow - `package.json` — remark config and lint script - `README.md` — updated contributing section - `.gitignore` — added `node_modules/`
30 lines
626 B
JSON
30 lines
626 B
JSON
{
|
|
"name": "skills-lint",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"lint": "remark --frail skills/"
|
|
},
|
|
"devDependencies": {
|
|
"remark": "^15.0.1",
|
|
"remark-cli": "^12.0.1",
|
|
"remark-frontmatter": "^5.0.0",
|
|
"remark-lint-frontmatter-schema": "^3.15.4",
|
|
"remark-preset-lint-recommended": "^7.0.1"
|
|
},
|
|
"remarkConfig": {
|
|
"plugins": [
|
|
"remark-frontmatter",
|
|
[
|
|
"remark-lint-frontmatter-schema",
|
|
{
|
|
"schemas": {
|
|
"./skills.schema.json": ["skills/**/SKILL.md"]
|
|
}
|
|
}
|
|
],
|
|
"remark-preset-lint-recommended"
|
|
]
|
|
}
|
|
}
|