# Synopsis: Lists registered operational skills for Mix of Agents v3.
$BaseDir = Split-Path (Split-Path $PSScriptRoot -Parent) -Parent
$RegistryPath = Join-Path $BaseDir "Config\skills_registry.txt"
$Manifest = "AVAILABLE SKILLS REGISTRY (DYNAMICALLY GENERATED):`nUse [ RUN_SKILL : Skills\PowerShell\script_name.ps1 ] or [ RUN_SKILL : Skills\Python\script_name.py ] to execute.`n`n"
if (Test-Path $RegistryPath) {
    $Manifest += (Get-Content $RegistryPath -Raw)
} else {
    Get-ChildItem -Path (Join-Path $BaseDir "Skills") -Recurse -File | ForEach-Object {
        $Rel = $_.FullName.Replace($BaseDir + "\", "")
        $Manifest += "- $Rel`n"
    }
}
Write-Output $Manifest
