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"