ablevarghese/ios-claude-toolkit/sentry-find-bugs
Claude Code and agent skill by ablevarghese/ios-claude-toolkit
- community
- ext:[{"type":"context","description":"Custom context provider definitions"}]
Checking that the SKILL.md file is still in the repository.
App is crashing, production error, users are reporting issues, investigate this error. Production issue analysis using Sentry — stack traces, breadcrumbs, root cause hypothesis, and fix verification. Trigger on: 'why is this crashing', 'Sentry issue', 'debug production bug', crash reports, issue IDs (like 'PROJECT-123'), 'users can't log in', 'something broke in production', 'exception in the logs', or triaging Sentry backlog. Requires Sentry MCP server. For Sentry bot PR comments, use sentry-code-review instead.
Install
npx vskill@latest install ablevarghese/ios-claude-toolkit/sentry-find-bugsSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as ablevarghese/ios-claude-toolkit/sentry-find-bugs.
Fix Sentry Issues
Iron Law: "Never propose a fix without first verifying the root cause against actual Sentry event data. Guessing wastes everyone's time."
Discover, analyze, and fix production issues using Sentry's full debugging capabilities. Every fix must trace back to concrete evidence in the Sentry event -- stack frames, breadcrumbs, tags, or trace spans.
Source: github.com/getsentry/agent-skills
Rationalizations (Do Not Skip)
| Rationalization | Why It's Wrong | Required Action | |
|---|---|---|---|
| "The crash only happened once" | One crash = one user who lost trust. Rare crashes often indicate race conditions that are hard to reproduce but affect many users silently. | Investigate fully. Check if the crash signature matches known patterns in references/crash-patterns.md. | |
| "I can tell from the error message what's wrong" | Error messages describe symptoms, not causes. unexpectedly found nil tells you nothing about WHY it was nil. | Read the full stack trace, breadcrumbs, and context before hypothesizing. | |
| "Let me just add a try-catch" | Catching an error without understanding the cause hides the bug. The crash moves downstream or manifests as data corruption instead. | Fix the root cause. Add error handling only after understanding what went wrong and why. | |
| "This is a third-party crash, not our problem" | Your app called the third-party code. Your input, your timing, your configuration triggered it. | Trace backward from the crash to YOUR code that invoked the third-party library. Fix the invocation. | |
| "I'll just add a nil check" | A nil check prevents the crash but doesn't fix why the value was nil. You're papering over a logic error. | Find where the value should have been set. Fix the logic that failed to set it. Then add the nil check as defense-in-depth. | |
| "The user probably did something weird" | Users do what users do. If your app crashes from user behavior, the bug is in your app, not the user. | Reproduce the user's journey from breadcrumbs. Handle the input gracefully. | |
| "We should wait for more data" | More crashes = more users affected. The data you have now is sufficient for investigation. | Investigate immediately. You can refine the fix if new data emerges. |
Red Flags -- HARD STOP
These are not warnings. Each is a BLOCKING condition that prevents further progress until addressed.
- BLOCKED: Proposing a fix without reading the full stack trace -- every frame matters. The crash may originate 5 frames deep from where the exception was thrown. STOP. Read ALL frames in YOUR code before proposing anything.
- BLOCKED: Treating symptoms instead of root cause -- if you're adding nil checks or try-catch without understanding WHY the value was nil or WHY the operation threw, STOP and investigate deeper. Write down your hypothesis before writing code.
- BLOCKED: Ignoring breadcrumb context -- breadcrumbs reveal the user journey that led to the crash. STOP. Read breadcrumbs chronologically. Reconstruct the user journey.
- BLOCKED: Not checking for related issues -- the crash you're looking at may be a symptom of a broader problem. STOP. Search for related Sentry issues with similar stack traces or error types before fixing in isolation.
- BLOCKED: Fixing code without verifying the fix addresses the Sentry event data -- after implementing a fix, walk through the Sentry event step by step and confirm your fix would have prevented it. If you cannot trace the fix back to the event, STOP.
- BLOCKED: Skipping regression check -- verify your fix doesn't break other code paths. Check callers, check tests, check related functionality. Shipping a fix that breaks something else is not a fix.
When NOT to Use This Skill
- Sentry bot commented on a PR with static analysis findings -- use
sentry-code-reviewinstead, which is designed for PR-level Sentry feedback. - Broad security audit not tied to a specific crash -- use
cipher-securityfor security posture assessment. - Performance issues without crashes -- use
prometheus-performancefor profiling. However, if performance issues cause watchdog kills or OOM crashes that appear in Sentry, this skill applies. - No Sentry MCP server configured -- this skill requires the Sentry MCP integration. Without it, use traditional debugging approaches.
- The issue is a build error or compile-time problem -- Sentry tracks runtime issues. Build problems need
forge-development.
Behavioral Enforcement
Phase Gate: EVIDENCE (Before ANY Fix)
Cannot propose ANY fix until:
- [ ] Full stack trace read (not just the top frame -- ALL frames in YOUR code)
- [ ] Error message quoted verbatim
- [ ] Breadcrumbs reviewed (what happened BEFORE the crash)
- [ ] Related issues checked (is this a known pattern?)
Proof: Quote the exact error message and the top 3 stack frames from your code.
Hard Stop: If you're about to propose a fix and you haven't quoted the error message -- STOP. You're guessing. Read the stack trace first.
Phase Gate: HYPOTHESIS (Before Coding)
Cannot start coding a fix until:
- [ ] Written hypothesis: "I believe [X] caused this because [Y], as evidenced by [Z]"
- [ ] Alternative hypothesis considered: "It could also be [A] because [B]"
- [ ] Hypothesis explains ALL the evidence (not just part of it)
Why write it down: A written hypothesis forces clarity. "Something is wrong with the auth" is not a hypothesis. "The refresh token expires during background fetch because the token rotation doesn't account for time zones, as shown by the breadcrumb 'tokenRefresh: UTC-5 mismatch'" IS a hypothesis.
Fix Attempt Tracking (Counter-Based Escalation)
- Fix #1: Normal. Implement and test.
- Fix #2: Pause. Why didn't #1 work? Write down what you learned.
- Fix #3: STOP. You likely have the wrong root cause. Return to EVIDENCE phase. Re-read the stack trace. Consider: is this a symptom of a deeper architectural issue?
- Still stuck after #3: ESCALATE to human partner with: evidence collected, hypotheses tried, fixes attempted, what you learned.
Decision Framework
Invoke This Skill When
- User asks to "fix Sentry issues" or "resolve Sentry errors"
- User wants to "debug production bugs" or "investigate exceptions"
- User mentions issue IDs, error messages, or asks about recent failures
- User wants to triage or work through their Sentry backlog
Prerequisites
- Sentry MCP server configured and connected
- Access to the Sentry project/organization
Phase 1: Issue Discovery
Use Sentry MCP to find issues. Confirm with user which issue(s) to fix before proceeding.
| Search Type | MCP Call | |
|---|---|---|
| Recent unresolved | sentry_search_issues query: "is:unresolved" sort: "date" | |
| Specific error type | sentry_search_issues query: "is:unresolved error.type:TypeError" | |
| By ID | sentry_get_issue issue_id: "PROJECT-123" | |
| High frequency | sentry_search_issues query: "is:unresolved times_seen:>100" sort: "freq" | |
| Recent regression | sentry_search_issues query: "is:unresolved is:regression" sort: "date" |
Phase 2: Deep Issue Analysis
Gather ALL available context for each issue:
| Data Source | MCP Call | Extract | |
|---|---|---|---|
| Core Error | sentry_get_issue | Exception type/message, full stack trace, file paths, line numbers, function names | |
| Event Details | sentry_get_event | Breadcrumbs, tags, custom context, request data | |
| Trace (if available) | sentry_get_trace | Parent transaction, spans, DB queries, API calls, error location | |
| Replay (if available) | sentry_get_replay | User actions, UI state, network requests |
Reading the Stack Trace
See references/stack-trace-guide.md for the complete guide. Key principles:
- Read top-down: The top frame is where the crash occurred. Walk DOWN to find YOUR code.
- Identify your frames: Filter out system frameworks (
UIKitCore,SwiftUI,libdispatch). Your code is where the bug is. - Note the crash address:
EXC_BAD_ACCESSat address0x0means nil dereference. Non-zero invalid addresses suggest use-after-free or buffer overflow. - Check async continuations: In Swift concurrency, look for
swift_task_frames and continuation frames. The actual call site may be in a different continuation. - Demangle Swift names: Sentry usually demangles automatically. If you see
$s...prefixes, useswift demangleto decode them.
Analyzing Breadcrumbs
Breadcrumbs reconstruct the user's journey before the crash. Read them chronologically:
Phase 3: Root Cause Hypothesis
Before touching code, document:
- Error Summary: One sentence describing what went wrong
- Immediate Cause: The direct code path that threw
- Root Cause Hypothesis: Why the code reached this state
- Supporting Evidence: Breadcrumbs, traces, or context supporting this
- Alternative Hypotheses: What else could explain this? Why is yours more likely?
Pre-Mortem Pattern Matching
Before deep investigation, check if the crash signature matches a known pattern. See references/crash-patterns.md for the full catalog. Common matches:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/sentry-find-bugs/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Extension points
contextCustom context provider definitions
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-find-bugs)