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
Set-StrictMode -Version Latest
function Resolve-ReverseProjectRoot {
[CmdletBinding()]
param(
[AllowEmptyString()]
[string]$RequestedRoot = ''
)
$root = if ([string]::IsNullOrWhiteSpace($RequestedRoot)) {
(Get-Location).ProviderPath
} else {
$RequestedRoot
}
if ([string]::IsNullOrWhiteSpace($root)) {
throw 'Unable to resolve the analysis project root.'
}
if (-not (Test-Path -LiteralPath $root)) {
New-Item -ItemType Directory -Force -Path $root | Out-Null
}
if (-not (Test-Path -LiteralPath $root -PathType Container)) {
throw "Project root is not a directory: $root"
}
$item = Get-Item -LiteralPath $root
if ($item.PSProvider.Name -ne 'FileSystem') {
throw "Project root must use the FileSystem provider: $root"
}
return $item.FullName
}