sentry-code-review

Analyzes and fixes Sentry bot review comments on GitHub pull requests.

Updated Apr 22, 2026
One-click install
npx skills add https://github.com/imrishuroy/algopatterns --skill sentry-code-review-imrishuroy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sentry-code-review
Source: https://github.com/imrishuroy/algopatterns/tree/main/.agents/skills/sentry-code-review
Command: npx skills add https://github.com/imrishuroy/algopatterns --skill sentry-code-review-imrishuroy

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Sentry posts automated bug reports as line-level review comments on GitHub pull requests, and manually triaging, verifying, and fixing each one is repetitive and error-prone. This Skill automates the full loop of fetching Sentry comments, parsing their structured content, verifying the reported issues in the code, and applying targeted fixes. ## Core Features & Use Cases - Sentry Comment Retrieval: Fetches PR review comments via the GitHub API and filters only those authored by Sentry bots, ignoring other bots like cursor[bot]. - Structured Comment Parsing: Extracts bug description, severity, confidence score, detailed analysis, suggested fix, and the AI agent prompt from Sentry's markdown/HTML comment format. - Verified Fix Implementation: Reads the affected file and line, confirms the issue still exists, applies a root-cause fix with the Edit tool, and produces a summary report of resolved and manually-reviewed issues. - Use Case: A teammate asks you to address Sentry feedback on PR #142. The Skill pulls all Sentry comments on that PR, fixes a missing null check flagged as CRITICAL, and reports one remaining issue that needs human judgment. ## Quick Start Review and fix the Sentry comments on pull request number 142 in this repository.

Frequently Asked Questions about sentry-code-review

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix Sentry bot comments on a GitHub pull request?

Fetch the PR review comments with the GitHub API, filter for authors starting with sentry, then read each flagged file and line to verify the issue. Apply the suggested fix from the comment's details section and summarize what was resolved.

How to fetch pull request review comments using the GitHub API?

Use gh api repos/{owner}/{repo}/pulls/<PR_NUMBER>/comments with a jq filter to select comments by author. This returns each comment's file path, line number, and body for further processing.

What information does a Sentry PR review comment contain?

Each comment includes the file path, line number, a bug description header, severity and confidence scores, plus collapsible sections for detailed analysis, a suggested fix, and a prompt for AI agents.

Does this handle comments from other bots like cursor?

No, only comments whose author username starts with sentry are processed. Comments from cursor[bot] and other automation bots are explicitly ignored during parsing.

What happens when a Sentry issue cannot be fixed automatically?

Issues that are ambiguous or risky are flagged in the summary report under manual review, with a reason and recommended approach. The Skill can also ask the user for guidance before applying uncertain fixes.