# Synopsis: Extracts headers from active skill scripts.
# Description: Inspects files in the Skills folder and reads comment blocks for verification.

$SkillsDir = Join-Path $BaseDir "Skills"
$SkillFiles = Get-ChildItem -Path $SkillsDir -Filter "*.ps1"

Write-Output "=== SKILLS DIRECTORY HEADERS ==="
foreach ($File in $SkillFiles) {
    if ($File.Name -ne "Get-SkillHeaders.ps1") {
        Write-Output "`n--- $($File.Name) ---"
        try {
            # Grab the first 15 lines to get comments and params
            $Content = Get-Content $File.FullName -TotalCount 15
            $Content | ForEach-Object { Write-Output $_ }
        } catch {
            Write-Output "[Error reading file]"
        }
    }
}

