為每個 PR 加入安全審查步驟
何時使用: 你的 PR 目前是從代碼審查直接合併——沒有安全把關。
步驟
-
確認 diff 範圍Use trailofbits/pr-review skill on the current PR. List files the skill thinks are security-relevant with reasons.✓ 已複製→ 各檔案的具體相關原因
-
深度審查For each flagged file, run the appropriate domain skill (crypto, input-validation, auth). Report findings with severity.✓ 已複製→ 依嚴重性排序的清單,附有代碼引用
-
給審查者的摘要Write a 5-bullet PR comment summarizing the findings, non-scary but precise.✓ 已複製→ 適合審查者閱讀的摘要,附有確切的行號引用
結果: 每個 PR 都有一份安全審查意見,能捕捉真實問題而不讓你被誤報淹沒。
注意事項
- Skill 將風格問題標記為安全問題 — 在 prompt 中校準:「focus on exploitable issues only」
搭配使用: github · filesystem