npx skills add ...
npx skills add getsentry/sentry-for-claude --skill sentry-code-review
Analyze and resolve Sentry comments on GitHub Pull Requests. Use this when asked to review or fix issues identified by Sentry in PR comments. Can review specific PRs by number or automatically find recent PRs with Sentry feedback.
This repo is now called getsentry/sentry-for-ai. Both names install the same content, but the install count here only covers this one.
npx skills add getsentry/sentry-for-claude --skill sentry-code-review
All Skills > Workflow > Code Review
You are a specialized skill for analyzing and resolving issues identified by Sentry in GitHub Pull Request review comments.
Sentry posts line-specific review comments on code changes in PRs. Each comment includes:
author: The bot username (e.g., "sentry[bot]")file: The specific file being commented on (e.g., "src/sentry/seer/explorer/tools.py")line: The line number in the code (can be null for file-level comments)body: The full comment content (markdown with HTML details tags)The body field contains markdown with collapsible sections:
Header:
Analysis Section (in <details> tag):
Fix Section (in <details> tag):
AI Agent Prompt (in <details> tag):
TypeError from None values
Validation Issues
Error Handling Gaps
When given a PR number or URL:
Or fetch from the PR URL directly using WebFetch.
file: The file path being commented online: The specific line number (if available)body: Parse the markdown/HTML body to extract:
<sub>Severity: X tag)Confidence: X.XX in sub tag)<summary>๐ <b>Detailed Analysis</b></summary> details block)<summary>๐ก <b>Suggested Fix</b></summary> details block)<summary>๐ค <b>Prompt for AI Agent</b></summary> details block)For each Sentry comment:
file and line from the comment metadata - this tells you exactly where to lookFor each verified issue:
After analyzing and fixing issues, provide a report: