Table of Contents

Method LoadAndRegister

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

LoadAndRegister(string, bool)

Loads and registers a skill from a directory.

public AgentSkill LoadAndRegister(string skillPath, bool overwrite = false)

Parameters

skillPath string

The path to the skill directory.

overwrite bool

Whether to overwrite existing skills with the same name.

Returns

AgentSkill

The loaded and registered skill.

Examples

Loading and registering a skill in one step:

var registry = new SkillRegistry();
var skill = registry.LoadAndRegister("./skills/code-review");
Console.WriteLine($"Loaded and registered: {skill.Name}");

Exceptions

SkillParseException

Thrown when the skill cannot be parsed.