Skip to main content

detect_run_context

Function detect_run_context 

Source
pub fn detect_run_context(
    input: DetectInput,
) -> Result<RunContext, ContextError>
Expand description

Validate the parsed flags against the filesystem and assemble a RunContext: resolves either a seeded --skill-dir environment or a direct single skill selected from --skill <path-or-name> / the current directory, validates SKILL.md, an optional existing --bootstrap, and defaults the workspace/stage roots from the current directory.