Add a security-review pass to every PR
Когда использовать: Your PRs currently go straight from code-review to merge — no security eyes.
Предварительные требования
- Skills installed — git clone https://github.com/trailofbits/skills ~/.claude/skills/trailofbits
Поток
-
Scope the diffUse trailofbits/pr-review skill on the current PR. List files the skill thinks are security-relevant with reasons.✓ Скопировано→ Concrete file-by-file relevance reasons
-
Deep reviewFor each flagged file, run the appropriate domain skill (crypto, input-validation, auth). Report findings with severity.✓ Скопировано→ Severity-ranked list with code refs
-
Summary for reviewerWrite a 5-bullet PR comment summarizing the findings, non-scary but precise.✓ Скопировано→ Reviewer-friendly summary with exact line citations
Итог: A security review comment on every PR that catches real issues without drowning you in false positives.
Подводные камни
- Skill flags style issues as security — Calibrate by prompting: "focus on exploitable issues only"