ci: add minimal validation for SKILL.md required frontmatter#117
Open
buzuweidao wants to merge 3 commits intobinance:mainfrom
Open
ci: add minimal validation for SKILL.md required frontmatter#117buzuweidao wants to merge 3 commits intobinance:mainfrom
buzuweidao wants to merge 3 commits intobinance:mainfrom
Conversation
dimitrisn442
requested changes
Apr 17, 2026
| @@ -0,0 +1,14 @@ | |||
| name: Validate Skills | |||
|
|
|||
| on: | |||
There was a problem hiding this comment.
Can you add a path filter to the workflow to skip unnecessary runs on PRs that don't touch skills?
i.e.
on:
pull_request:
paths:
- 'skills/**'
- 'scripts/validate-skills-frontmatter.sh'
| echo "[ERROR] Missing metadata.version in $file" | ||
| fail=1 | ||
| fi | ||
|
|
There was a problem hiding this comment.
Consider also validating the directory structure. Several open PRs place skills at skills/<skill-name>/ instead of the required skills/<namespace>/<skill-name>/.
i.e.
if [[ "$(echo "$file" | tr '/' '\n' | wc -l)" -lt 4 ]]; then
echo "[ERROR] Skill must be under skills/<namespace>/<skill-name>/SKILL.md: $file"
fail=1
fi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Added a minimal CI guard for skill metadata quality:
scripts/validate-skills-frontmatter.sh.github/workflows/validate-skills.ymlThe check validates that every
skills/**/SKILL.mdincludes frontmatter and these required fields:namedescriptionmetadatametadata.versionmetadata.authorWhy
This repository has high PR volume. A lightweight automated check catches common formatting omissions before manual review.
Scope
Process/CI only. No API/runtime behavior changes.