Method LoadFromZipUrlAsync
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
zipUrlstringThe URL to the ZIP archive.
cancellationTokenCancellationTokenA 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
zipUrlisnull.- HttpRequestException
Thrown when the HTTP request fails.