Class SkillLifecycleManager
Discovers SKILL.md files, resolves precedence, evaluates eligibility gates, and provides per-run scoped environment injection.
public sealed class SkillLifecycleManager : IDisposable
- Inheritance
-
SkillLifecycleManager
- Implements
- Inherited Members
Constructors
SkillLifecycleManager(IEnumerable<SkillSourceDirectory>, string?, string?, Func<string, bool>?, Func<bool>?, Func<string, string?>?, Func<IDictionary>?, Func<string>?)
public SkillLifecycleManager(IEnumerable<SkillSourceDirectory> sources, string? userConfigPath = null, string? workspaceConfigPath = null, Func<string, bool>? binaryExists = null, Func<bool>? isWindows = null, Func<string, string?>? getEnvironmentVariable = null, Func<IDictionary>? getEnvironmentVariables = null, Func<string>? platformProvider = null)
Parameters
sourcesIEnumerable<SkillSourceDirectory>userConfigPathstringworkspaceConfigPathstringbinaryExistsFunc<string, bool>isWindowsFunc<bool>getEnvironmentVariableFunc<string, string>getEnvironmentVariablesFunc<IDictionary>platformProviderFunc<string>
Methods
BeginRunScope()
Creates a run-scoped environment injection context for eligible skills.
public IDisposable BeginRunScope()
Returns
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
FormatStatusReport()
Renders a deterministic, explainable skills status report.
public string FormatStatusReport()
Returns
GetSnapshot()
Returns the current snapshot, refreshing if needed.
public SkillSnapshot GetSnapshot()
Returns
TryRefresh(out SkillSnapshot)
Refreshes skill state when underlying files/config/environment changed.
public bool TryRefresh(out SkillSnapshot snapshot)
Parameters
snapshotSkillSnapshot
Returns
- bool
truewhen the active snapshot changed.