Table of Contents

Class SkillImportService

Namespace
Oscova.Agents.Skills
Assembly
Oscova.Agents.dll

Stages, validates, and installs skills into the on-disk skills directory.

public sealed class SkillImportService : ISkillImportService

Inheritance

Implements

Inherited Members

Constructors

SkillImportService(Func<string, string>, ILogger<SkillImportService>)

Creates a skill importer beneath a caller-selected skills root.

Methods

ExportPackageAsync(string, string, CancellationToken)

Exports one installed skill and its support files using the importer's path and size limits.

ImportAgentAuthoredMarkdownAsync(string, string, AgentAuthoredSkillContext, CancellationToken)

Imports a complete agent-authored SKILL.md document after stamping trusted provenance.

ImportAsync(string, string, Stream, CancellationToken)

Imports a single markdown or zip skill package for the specified user.

ImportTrustedPackageAsync(string, string, Stream, bool, CancellationToken)

Installs an authorized package while preserving trusted provenance and validating its exact skill name.

RemoveTrustedPackage(string, string)

Removes one installed package after its owner has authorized removal.

ReplaceAgentAuthoredMarkdownAsync(string, string, string, AgentAuthoredSkillContext, CancellationToken)

Replaces an existing agent-authored SKILL.md document after validating ownership provenance.