pb-security-sweep

Installation
SKILL.md

Security sweep with ranked findings

What you get: one ranked findings report for the repo (blocking, should, note), an issue per blocking finding filed after your GO on a private repo, and a before-and-after delta from the re-run.

Inputs

  • repo — the current directory, or the one the user names; <owner/repo> comes from git -C <repo> remote get-url origin
  • scope — diff (changes against the default branch) or full (the whole tree), asked if missing

Steps

  1. bdb-security-audit — repo, scope → secrets, dependency and diff findings in production_artifacts/pb-security-sweep-<date>/findings.md (optional scanners the skill cannot find are logged as skipped by the skill itself) — file written; secret values are never copied into the report, only file and line
  2. security-reviewer (agent) — same scope → findings appended to findings.md — each finding cites file and line
  3. silent-failure-hunter (agent) — same scope → findings appended to findings.md — each finding cites file and line
  4. Dedupe and rank — findings.md → one table, each finding blocking, should or note, with id, file, line, source step — stops for approval (the human confirms the ranking and which blocking findings get an issue)
  5. github — gh repo view <owner/repo> --json visibility -q .visibility → run log line — equals PRIVATE; PUBLIC or unknown → no issue is filed, the blocking findings stay in the report only (a secret in a public issue leaks it), logged, steps 6 and 7 skipped
  6. [GO] gh issue create — per approved blocking finding: gh issue create -R <owner/repo> --title "<title>" --body-file <body> with file, line and impact but no secret value — the WAITING FOR GO line names the finding id and the title. The run stops here until the human types GO. One GO = one issue. (gh issue create is not hooked; this GO is its only guard.)
  7. pb-bug-fix — per filed issue → one pb-bug-fix run with its own GO for the push and the PR (nothing is pushed from this playbook) — each issue number is logged next to its PR URL or "deferred"
  8. bdb-security-audit — re-run as in step 1 → delta (fixed, still open, new) in the run log — every remaining blocking finding names its pb-bug-fix PR
  9. verification-before-completion — delta → run log line — zero open blocking findings, or each remaining one named with its PR; output pasted, not claimed

Run log: production_artifacts/pb-security-sweep-<date>.md in the start directory, never committed; the findings file stays in production_artifacts/ and is not staged

Installs
1
GitHub Stars
9
First Seen
Oct 28, 2026
Security Audits