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 fromgit -C <repo> remote get-url origin - scope —
diff(changes against the default branch) orfull(the whole tree), asked if missing
Steps
- 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 - security-reviewer (agent) — same scope → findings appended to
findings.md— each finding cites file and line - silent-failure-hunter (agent) — same scope → findings appended to
findings.md— each finding cites file and line - Dedupe and rank —
findings.md→ one table, each findingblocking,shouldornote, with id, file, line, source step — stops for approval (the human confirms the ranking and which blocking findings get an issue) - github —
gh repo view <owner/repo> --json visibility -q .visibility→ run log line — equalsPRIVATE;PUBLICor 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 - [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 createis not hooked; this GO is its only guard.) - 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"
- 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
- 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