ablevarghese/ios-claude-toolkit/sentry-code-review
Claude Code and agent skill by ablevarghese/ios-claude-toolkit
- community
Checking that the SKILL.md file is still in the repository.
Sentry flagged something, Sentry bot commented, Sentry comments on PR, fix what Sentry found. Review and resolve Sentry bot findings on GitHub PRs — bug prediction comments covering security, performance, error handling, type safety, and concurrency. Trigger when: Sentry has commented on a PR, user shares a PR with Sentry feedback, 'address Sentry review', or 'what did Sentry find'. For production crashes from Sentry monitoring (not PR comments), use sentry-find-bugs instead.
Install
npx vskill@latest install ablevarghese/ios-claude-toolkit/sentry-code-reviewSKILL.md
The same SKILL.md was published earlier as ablevarghese/ios-claude-toolkit/sentry-code-review.
Sentry PR Code Review
Iron Law: "Verify every Sentry finding against the actual current code before acting -- findings may be stale or false positives."
Review and resolve code issues identified by Sentry's bug prediction bot in GitHub pull requests. Sentry's static analysis catches real bugs, but it also produces false positives. Your job is to distinguish the two, fix the real ones, and document your reasoning for dismissals.
Source: github.com/getsentry/agent-skills
Rationalizations (Do Not Skip)
| Rationalization | Why It's Wrong | Required Action | |
|---|---|---|---|
| "Sentry flags too many things" | Volume doesn't mean low quality. Even if 30% are false positives, the 70% that are real bugs justify the review. | Evaluate each finding individually. Never dismiss in bulk. | |
| "This is a false positive, I'm sure" | Confidence without verification is guessing. The code may have changed since you last looked at it. | Read the actual current code at the flagged location. Verify against the finding's specific claim. See references/false-positive-guide.md. | |
| "The finding is low severity, skip it" | Low severity findings compound. A "minor" missing nil check becomes a production crash when an API changes its response format. | Fix low severity findings if the fix is straightforward (<5 min). Document and track if the fix requires architecture changes. | |
| "I already know what the fix is" | Knowing the fix without reading the finding risks fixing the wrong thing. Sentry may have identified a subtlety you missed. | Read the full finding description, including the AI prompt and analysis sections. Then implement your fix. | |
| "Sentry doesn't understand Swift well" | Sentry's Swift analysis is imperfect but catches real patterns: retain cycles, actor isolation violations, optional chaining gaps. | Verify the finding against Swift semantics. Dismiss with documented reasoning if it's a language misunderstanding. | |
| "The PR is already approved, don't block it" | Sentry findings after approval indicate the reviewer may have missed something. Merging known issues creates tech debt on purpose. | Evaluate severity. Critical/High findings block merge. Medium/Low can be tracked as follow-up with owner agreement. |
Red Flags -- HARD STOP
These are not warnings. Each is a BLOCKING condition that prevents further progress until addressed.
- BLOCKED: Dismissing findings without reading the actual code -- opening the file and reading the flagged lines is non-negotiable. Sentry provides file paths and line numbers; use them. STOP. Read the code at the exact file and line number before making any judgment.
- BLOCKED: Fixing symptoms instead of root cause -- if Sentry flags a nil check issue, don't just add
guard let. STOP. Ask why the value could be nil at that point and fix the data flow. - BLOCKED: Not verifying the fix addresses the specific Sentry finding -- after implementing a fix, re-read the finding and confirm your change resolves its specific concern. If you cannot map your fix to the finding, STOP.
- BLOCKED: Bulk-dismissing findings as false positives -- each finding requires individual evaluation. If you're dismissing more than 50% as false positives, STOP, slow down and re-examine your dismissal criteria.
- BLOCKED: Ignoring concurrency findings -- actor isolation and Sendable violations are the most commonly dismissed Swift findings, but they're also the most dangerous (data races cause heisenbugs). STOP. These require analysis, not dismissal.
When NOT to Use This Skill
- Investigating production crashes from Sentry monitoring -- use
sentry-find-bugsinstead, which is designed for analyzing runtime errors with stack traces, breadcrumbs, and event data. - Performing a broad security audit -- use
cipher-securityfor application-level security posture assessment. - The PR has no Sentry bot comments -- if there are no Sentry findings, use
ios-reviewortrailofbits-differential-reviewfor general or security-focused code review. - Performance profiling -- use
prometheus-performance. However, if Sentry flags a performance-related issue (N+1 queries, main thread work), this skill handles the finding.
Behavioral Enforcement
Phase Gate: CODE VERIFICATION (For Every Finding)
Cannot act on ANY Sentry finding until:
- [ ] Read the ACTUAL current code at the flagged file and line number
- [ ] Verified the finding is still relevant (code may have changed since Sentry flagged it)
- [ ] Checked if Swift's type system already prevents the flagged issue
Hard Stop: If about to dismiss a finding as "false positive" without reading the code -- STOP. Read the code. The finding may be stale (true), but you can't know that without looking.
Hard Stop: If about to implement Sentry's suggested fix verbatim without understanding it -- STOP. Sentry suggestions are starting points, not solutions. Understand the context before applying.
Counter-Based Escalation
- Finding #1-5: Normal. Evaluate each individually.
- Finding #6-10: Pause. Are there patterns? Are multiple findings pointing to the same architectural issue?
- Finding #11+: STOP. This PR likely has systemic issues. Consider whether the PR should be split, refactored, or sent back for design review before fixing individual findings.
Decision Framework
Invoke This Skill When
- User asks to "review Sentry comments" or "fix Sentry issues" on a PR
- User shares a PR URL/number mentioning Sentry feedback
- User asks to "address Sentry review" or "resolve Sentry findings"
- User wants to find PRs with unresolved Sentry comments
Phase 1: Fetch Sentry Comments
Retrieve all comments from the Sentry bot on the target PR using GitHub's API:
If no PR specified, find recent PRs with Sentry comments:
Phase 2: Parse and Classify Findings
Extract structured data from Sentry's markdown comments:
| Field | What to Extract | Why It Matters | |
|---|---|---|---|
| Bug Description | Short summary of the identified issue | Tells you what to look for in the code | |
| Severity | Critical / High / Medium / Low | Determines fix priority and merge-blocking status | |
| Confidence | How certain Sentry is about the finding | Low confidence = higher false positive likelihood | |
| Analysis | Detailed explanation of the potential bug | Contains the specific claim to verify | |
| Suggested Fix | Sentry's recommended code change | Starting point, but verify it's correct for your codebase | |
| AI Prompt | Context for understanding the issue | Additional context about the detection methodology |
Severity Calibration
Sentry's severity ratings are a starting point, not gospel. Calibrate based on context:
When Sentry says High but actual risk is lower:
- The finding is in dead code or an unreachable path
- Swift's type system already prevents the issue (e.g., non-optional flagged as potential nil)
- The finding is about test code, not production code
- The issue requires conditions that are architecturally impossible in your app
When Sentry says Low but actual risk is higher:
- The finding is in authentication, authorization, or payment code (any severity in security-critical code is HIGH)
- The finding involves concurrency (data races are hard to detect and high impact)
- The finding is about error handling in a path that processes financial transactions
- The finding has high blast radius (many callers affected)
Phase 3: Verify and Implement Fixes
For each identified issue:
Step 1: Read the Actual Code
Do not rely on Sentry's code snippet -- it may be from an older commit. Read the current state of the file.
Step 2: Verify the Finding
Check against references/false-positive-guide.md for known false positive patterns. Then ask:
- Is the flagged code path actually reachable? Trace callers backward. If no execution path reaches this code with the problematic state, it's likely a false positive.
- Does Swift's type system already prevent the issue? If Sentry flags a nil check issue but the variable is non-optional, it's a false positive.
- Has the code been modified since Sentry analyzed it? If the PR has new commits after the Sentry comment, the finding may be stale.
Step 3: Implement the Fix
For true positives, implement considering:
- Edge cases: nil, empty collections, malformed inputs, unexpected API responses
- Error propagation: Does the caller handle errors from this function? Will your fix change the error contract?
- Type safety: Can types be narrowed or validated earlier in the pipeline?
- Concurrency: Race conditions, actor isolation, Sendable conformance
- Performance implications: Will the fix add latency, memory, or CPU usage?
Step 4: Verify Fix Addresses Finding
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/sentry-code-review/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ablevarghese/ios-claude-toolkit/sentry-code-review)