Method IsSkillDirectory
IsSkillDirectory(string)
Checks if a directory contains a valid skill (has a SKILL.md file).
public static bool IsSkillDirectory(string directoryPath)
Parameters
directoryPathstringThe directory path to check.
Returns
- bool
trueif the directory contains a SKILL.md file; otherwise,false.
Examples
Checking if a directory is a skill directory:
foreach (var dir in Directory.GetDirectories("./skills"))
{
if (SkillParser.IsSkillDirectory(dir))
{
Console.WriteLine($"Found skill: {Path.GetFileName(dir)}");
}
}