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
718 B
Raw Blame
# Shared parsers for master-route route-scope.md.
# Line-anchored so a hint containing "primary: R11" cannot steal the real PRIMARY.
function Get-ReverseRouteScopeFields {
    [CmdletBinding()]
    param(
        [Parameter(Mandatory = $true)]
        [string]$Text
    )
    $id = $null
    $skill = $null
    $idHits = [regex]::Matches($Text, '(?m)^- primary:\s*(\S+)\s*$')
    if ($idHits.Count -gt 0) { $id = $idHits[$idHits.Count - 1].Groups[1].Value }
    $skillHits = [regex]::Matches($Text, '(?m)^- primary_skill:\s*skills/(\S+)\s*$')
    if ($skillHits.Count -gt 0) { $skill = $skillHits[$skillHits.Count - 1].Groups[1].Value }
    return [pscustomobject]@{
        Id    = $id
        Skill = $skill
    }
}