Method Get
Get(string)
Gets a skill by name.
public AgentSkill Get(string name)
Parameters
namestringThe skill name (case-insensitive).
Returns
- AgentSkill
The skill if found.
Examples
Getting a skill by name (throws if not found):
var registry = new SkillRegistry();
registry.LoadFromDirectory("./skills");
var skill = registry.Get("code-review");
Console.WriteLine(skill.Description);
Exceptions
- KeyNotFoundException
Thrown when no skill with the specified name is registered.