sentry-pr-code-review

📁 getsentry/sentry-agent-skills 📅 Jan 20, 2026
76
总安装量
76
周安装量
#2938
全站排名
安装命令
npx skills add https://github.com/getsentry/sentry-agent-skills --skill sentry-pr-code-review

Agent 安装分布

claude-code 62
opencode 56
codex 53
github-copilot 43
cursor 42

Skill 文档

Sentry Code Review

Review and fix issues identified by Sentry bot in GitHub PR comments.

Invoke This Skill When

  • User asks to “review Sentry comments” or “fix Sentry issues” on a PR
  • User shares a PR URL/number and mentions Sentry feedback
  • User asks to “address Sentry review” or “resolve Sentry findings”
  • User wants to find PRs with unresolved Sentry comments

Workflow

Phase 1: Fetch Sentry Comments

gh api repos/{owner}/{repo}/pulls/{PR_NUMBER}/comments \
  --jq '.[] | select(.user.login | startswith("sentry")) | {file: .path, line: .line, body: .body}'

Only process comments from sentry[bot] – ignore other bots.

Phase 2: Parse Each Comment

Extract from the markdown body:

  • Bug description: Line starting with **Bug:**
  • Severity/Confidence: In <sub>Severity: X | Confidence: X.XX</sub>
  • Analysis: Inside <summary>🔍 <b>Detailed Analysis</b></summary> block
  • Suggested Fix: Inside <summary>💡 <b>Suggested Fix</b></summary> block
  • AI Prompt: Inside <summary>🤖 <b>Prompt for AI Agent</b></summary> block

Phase 3: Verify & Fix

For each issue:

  1. Read the file at the specified line
  2. Confirm issue still exists in current code
  3. Review related code to understand if its an actual issue or not
  4. Implement fix (suggested or your own)
  5. Consider edge cases

Phase 4: Summarize and Report Results

## Sentry Review: PR #[number]

### Resolved
| File:Line | Issue | Severity | Fix Applied |
|-----------|-------|----------|-------------|
| path:123  | desc  | HIGH     | what done   |

### Manual Review Required
| File:Line | Issue | Reason |
|-----------|-------|--------|

**Summary:** X resolved, Y need manual review

Common Issue Types

Category Examples
Type Safety Missing null checks, unsafe type assertions
Error Handling Swallowed errors, missing boundaries
Validation Permissive inputs, missing sanitization
Config Missing env vars, incorrect paths