Skip to content

Reverse Engineering / Authorized Penetration Testing / Security Research Skill Router Pack AI-powered routing + On-demand toolchain bootstrapping + Self-evolving knowledge base Supports Claude Code, Kiro, Cursor, Cline, and other AI coding clients 逆向/渗透/安全技能路由包 - AI 自动路由 + 按需自举工具链 + 自动进化经验库 | 支持 Claude Code / Kiro / Cursor / Cline 等代码 AI 客户端

Shell

ci: add PowerShell syntax check via PSParser (P1-1)

yhc3730b3396fd3
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 41012c8..9012fca 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -127,6 +127,28 @@ jobs:
exit 1
fi
+ - name: PowerShell syntax check (PSParser, all tracked .ps1)
+ shell: pwsh
+ run: |
+ $files = git ls-files '*.ps1'
+ if (-not $files) { Write-Host 'No .ps1 files tracked'; exit 0 }
+ $failed = 0
+ foreach ($f in $files) {
+ $tokens = $null
+ $errors = $null
+ [System.Management.Automation.Language.Parser]::ParseFile((Resolve-Path $f), [ref]$tokens, [ref]$errors) | Out-Null
+ if ($errors -and $errors.Count -gt 0) {
+ $failed++
+ Write-Host "::error file=$f::$($errors.Count) parse error(s)"
+ foreach ($e in $errors) {
+ Write-Host (" L{0}:{1} {2}" -f $e.Extent.StartLineNumber, $e.Extent.StartColumnNumber, $e.Message)
+ }
+ } else {
+ Write-Host "syntax OK: $f"
+ }
+ }
+ if ($failed -gt 0) { exit 1 }
+
version-check:
name: version consistency
runs-on: ubuntu-latest