Method Contains
Contains(string)
Checks if a skill with the specified name is registered.
public bool Contains(string name)
Parameters
namestringThe skill name to check.
Returns
- bool
trueif the skill is registered; otherwise,false.
Examples
Checking if a skill exists before using it:
var registry = new SkillRegistry();
registry.LoadFromDirectory("./skills");
if (registry.Contains("code-review"))
{
Console.WriteLine("Code review skill is available");
}