Method Parse
Parse(string)
Parses a skill from the specified directory.
public static AgentSkill Parse(string skillPath)
Parameters
skillPathstringThe path to the skill directory containing a SKILL.md file.
Returns
- AgentSkill
The parsed Agent Skill.
Examples
Parsing a skill from a directory:
var skill = SkillParser.Parse("./skills/code-review");
Console.WriteLine($"Parsed: {skill.Name}");
Exceptions
- ArgumentNullException
Thrown when
skillPathisnull.- DirectoryNotFoundException
Thrown when the specified directory does not exist.
- FileNotFoundException
Thrown when SKILL.md is not found in the specified directory.
- SkillParseException
Thrown when the SKILL.md file cannot be parsed.