SKILL.md Validator and Loader
Build a bounded Agent Skills loader with a deliberately small frontmatter grammar, strict metadata validation, safe reference paths, and progressive disclosure. The supported YAML subset is explicit; unsupported forms fail instead of being guessed.
A compatibility linter explaining why a skill works in one agent but fails in another.
- A compatibility linter explaining why a skill works in one agent but fails in another.
- The parser accepts plain single-line values and JSON-compatible quoted strings.
SKILL.md Validator and Loader in 4 stages
Validate skill metadata and load only the context the task needs.
Parse an explicit frontmatter subset
Split only a leading --- block.
starter · ~2 hours · Rust
Header boundaryKey splitDuplicate gateBody retainedValidate names and descriptions
The loader accepts only lowercase names of 1 to 64 bytes with single interior hyphens, no leading digit restriction, and a nonblank description up to 1024 characters.
core · ~2 hours · Rust
Read fieldsName grammarFolder identityTyped skillContain resource paths
Resolve resource names relative to a skill root.
core · ~2 hours · Rust
Relative inputComponent gateCanonicalizeContainmentLoad context within a character budget
Discovery returns name and description.
core · ~2 hours · Rust
Discover metadataChoose activationCount charactersComplete or reject