hgxszhj/https-github.com-zhaoxuya520-reverse-skill / skills
reverse-skill-router
FlaggedRoutes reverse engineering, exploitation, penetration testing, malware, mobile, firmware, browser automation, documentation, and security tasks to the appropriate specialist skill. Use when a task spans modules or the correct reverse-skill entrypoint is unclear.
scripts/consolidate-evidence.ps1
View on GitHub#Requires -Version 5.1
[CmdletBinding()]
param(
[Parameter(Mandatory = $true)][string] $CaseRoot,
[Parameter(Mandatory = $true)][string] $EvidenceIds,
[Parameter(Mandatory = $true)][string] $FindingId,
[Parameter(Mandatory = $true)][string] $Title,
[Parameter(Mandatory = $true)][string] $Description,
[string] $Severity = 'medium',
[string] $Status = 'validated',
[string] $Confidence = 'medium',
[string] $Location = 'see evidence_ids'
)
$ErrorActionPreference = 'Stop'
if (-not (Test-Path -LiteralPath $CaseRoot)) { Write-Error "CaseRoot not found: $CaseRoot" }
$evidenceDir = Join-Path $CaseRoot "evidence"
$reportDir = Join-Path $CaseRoot "report"
if (-not (Test-Path -LiteralPath $reportDir)) { New-Item -ItemType Directory -Path $reportDir -Force | Out-Null }
$idList = @($EvidenceIds -split ',' | ForEach-Object { $_.Trim() } | Where-Object { $_ -ne '' })
if ($idList.Count -eq 0) { Write-Error "No Evidence IDs provided." }
foreach ($id in $idList) {
$evidenceFile = Join-Path $evidenceDir "$id.md"
if (-not (Test-Path -LiteralPath $evidenceFile)) { Write-Error "Evidence file not found: $evidenceFile" }
}
foreach ($id in $idList) {
$evidenceFile = Join-Path $evidenceDir "$id.md"
$content = Get-Content -LiteralPath $evidenceFile -Raw -Encoding UTF8
if ($content -match "(?m)^-\s*status:\s*.*$") {
$content = [regex]::Replace($content, "(?m)^-\s*status:\s*.*$", "- status: superseded by $FindingId")
} elseif ($content -match "(?m)^---\s*$") {
$content = [regex]::Replace($content, "(?m)^---\s*$", "---`r`n- status: superseded by $FindingId", 1)
} else {
$content = $content.TrimEnd() + "`r`n- status: superseded by $FindingId`r`n"
}
Set-Content -LiteralPath $evidenceFile -Value $content -Encoding UTF8 -NoNewline
}
$timestamp = (Get-Date).ToUniversalTime().ToString("yyyy-MM-ddTHH:mm:ssZ")
$joined = ($idList -join ', ')
$findingBlock = @"
### $FindingId
- title: $Title
- severity: $Severity
- status: $Status
- confidence: $Confidence
- location: $Location
- evidence_ids: $joined
- consolidated_at: $timestamp
$Description
"@
$reportFile = Join-Path $reportDir "report.md"
if (Test-Path -LiteralPath $reportFile) {
$reportContent = Get-Content -LiteralPath $reportFile -Raw -Encoding UTF8
if ($reportContent -notmatch "(?m)^## Findings") {
$reportContent = $reportContent.TrimEnd() + "`r`n`r`n## Findings`r`n"
}
Set-Content -LiteralPath $reportFile -Value ($reportContent.TrimEnd() + "`r`n`r`n" + $findingBlock + "`r`n") -Encoding UTF8 -NoNewline
} else {
$initialReport = @"
# Case Report
## Findings
$findingBlock
"@
Set-Content -LiteralPath $reportFile -Value $initialReport -Encoding UTF8
}Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |