Skip to content

SkillParser

Category: Skills

Source: skill_parser.dart

Enums

SkillSource

Where a skill was discovered.

ValueDescription
project
global
custom

Classes

SkillParseError

An error thrown when a SKILL.md file cannot be parsed.

Constructor

dart
SkillParseError(this.message)

Properties

PropertyTypeDescription
messageString

Methods

String toString()

SkillMeta

Parsed metadata from a skill's YAML frontmatter.

Constructor

dart
SkillMeta({
    required this.name,
    required this.description,
    this.license,
    this.compatibility,
    this.metadata = const {},
    required this.skillDir,
    required this.skillMdPath,
    required this.source,
  })

Properties

PropertyTypeDescription
nameString
descriptionString
licenseString?
compatibilityString?
metadataMap<String, String>
skillDirString
skillMdPathString
sourceSkillSource

Functions

`SkillMeta parseSkillFrontmatter(

String content, String skillDir, String skillMdPath, SkillSource source, )`

Parses YAML frontmatter from a SKILL.md file into a [SkillMeta].

String loadSkillBody(String skillMdPath)

Loads the body content of a SKILL.md file (everything after the frontmatter).

Released under the MIT License.