LEVEL 1 · STARTER

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.

4 stages~8 hoursRustcore
Parse an explicit frontmatter subsetValidate names and descriptionsContain resource pathsLoad context within a character budget
YOU END UP WITH

A compatibility linter explaining why a skill works in one agent but fails in another.

USEFUL FOR
  • 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.
PROJECT OUTLINE

SKILL.md Validator and Loader in 4 stages

Validate skill metadata and load only the context the task needs.

  1. Parse an explicit frontmatter subset

    Split only a leading --- block.

    starter · ~2 hours · Rust

    Header boundaryKey splitDuplicate gateBody retained
  2. Validate 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 skill
  3. Contain resource paths

    Resolve resource names relative to a skill root.

    core · ~2 hours · Rust

    Relative inputComponent gateCanonicalizeContainment
  4. Load context within a character budget

    Discovery returns name and description.

    core · ~2 hours · Rust

    Discover metadataChoose activationCount charactersComplete or reject

Lessons this project uses

All projects · Course catalog · Source on GitHub