Commit Graph

2 Commits

Author SHA1 Message Date
duthaho c6a7817f88 fix: harden validate-plugin against review findings
- normalize CRLF and match the closing frontmatter delimiter tolerantly
  (no false CI failures on Windows-committed files; no latching onto a
  later horizontal rule)
- strip fenced code blocks before section/table scanning so embedded
  anatomy examples can't fool the checks
- strip quotes/inline comments from frontmatter values; reject empty
  required values
- guard readdir/stat so a wrong root or dangling symlink reports instead
  of crashing; fail on zero skills found
- require plugin.json version to exist (undefined===undefined no longer
  passes as in sync)
2026-07-12 14:02:14 +00:00
duthaho e293afff1f feat: add validate-plugin script linting SKILL.md anatomy + version sync
Checks every skills/*/SKILL.md for required frontmatter (name matching
directory, description, user-invocable) and the 8-section anatomy from
README (init is anatomy-exempt as the documented off-spine skill), plus
plugin.json/marketplace.json version sync. Zero deps, exits 1 on any
violation.
2026-07-12 13:09:00 +00:00