Skip to content

feat: add skill frontmatter schema validation#2680

Open
kamalsrini wants to merge 1 commit into
mainfrom
kamalsrini/uni-6-p12-create-machine-readable-skill-schema
Open

feat: add skill frontmatter schema validation#2680
kamalsrini wants to merge 1 commit into
mainfrom
kamalsrini/uni-6-p12-create-machine-readable-skill-schema

Conversation

@kamalsrini

Copy link
Copy Markdown
Contributor

Summary

  • Adds a machine-readable JSON schema for SKILL.md frontmatter
  • Adds a Ruby stdlib validator for all skills and role bundles
  • Replaces grep-based frontmatter linting with schema validation in CI
  • Fixes one invalid ISO 27001 framework value so current skills parse as YAML
  • Documents the local validation command in README and CONTRIBUTING

Linear

  • UNI-6

Verification

  • ruby scripts/validate_skill_schema.rb
  • ruby -c scripts/validate_skill_schema.rb
  • ruby -rjson -e 'JSON.parse(File.read("schemas/skill.schema.json")); puts "schema json ok"'
  • git diff --check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant