Skip to main content

resolve_project_file

Function resolve_project_file 

Source
pub fn resolve_project_file(start_path: &Path) -> FileResolutionResult
Expand description

Resolve skill-project.toml file from project root

Resolution priority (FR-008):

  1. Project root: ./skill-project.toml
  2. Walk up directory tree: Search parent directories
  3. Fallback: Empty/default configuration (file not found, will be created if needed)

Context detection (T050, T051):

  • First uses file location (SKILL.md presence)
  • If ambiguous, falls back to content-based detection