Table of Contents

Method IsSkillDirectory

Namespace
LMKit.Agents.Skills
Assembly
LM-Kit.NET.dll

IsSkillDirectory(string)

Checks if a directory contains a valid skill (has a SKILL.md file).

public static bool IsSkillDirectory(string directoryPath)

Parameters

directoryPath string

The directory path to check.

Returns

bool

true if 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)}");
    }
}