Table of Contents

Method LoadFromZipUrlAsync

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

LoadFromZipUrlAsync(string, CancellationToken)

Loads skills from a ZIP archive URL.

The archive should contain skill directories, each with a SKILL.md file.

public Task<IReadOnlyList<AgentSkill>> LoadFromZipUrlAsync(string zipUrl, CancellationToken cancellationToken = default)

Parameters

zipUrl string

The URL to the ZIP archive.

cancellationToken CancellationToken

A token to cancel the operation.

Returns

Task<IReadOnlyList<AgentSkill>>

A list of loaded skills.

Examples

Loading multiple skills from a ZIP archive:

using var loader = new SkillRemoteLoader();
var skills = await loader.LoadFromZipUrlAsync(
    "https://example.com/skills-bundle.zip");

foreach (var skill in skills)
{
    Console.WriteLine($"Loaded: {skill.Name}");
}

Exceptions

ArgumentNullException

Thrown when zipUrl is null.

HttpRequestException

Thrown when the HTTP request fails.