SkillParser
Category: Skills
Source: skill_parser.dart
Enums
SkillSource
Where a skill was discovered.
| Value | Description |
|---|---|
project | |
global | |
custom |
Classes
SkillParseError
An error thrown when a SKILL.md file cannot be parsed.
Constructor
dart
SkillParseError(this.message)Properties
| Property | Type | Description |
|---|---|---|
message | String |
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
| Property | Type | Description |
|---|---|---|
name | String | |
description | String | |
license | String? | |
compatibility | String? | |
metadata | Map<String, String> | |
skillDir | String | |
skillMdPath | String | |
source | SkillSource |
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).