debug-production-error
Debug production errors using Sentry MCP tools. Searches issues, analyzes stack traces, identifies root causes, and suggests fixes. Use when the user mentions a Sentry error, production exception, stack trace, error monitoring, crash report, or unhandled exception.
Best use case
debug-production-error is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Debug production errors using Sentry MCP tools. Searches issues, analyzes stack traces, identifies root causes, and suggests fixes. Use when the user mentions a Sentry error, production exception, stack trace, error monitoring, crash report, or unhandled exception.
Teams using debug-production-error should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/debug-production-error/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How debug-production-error Compares
| Feature / Agent | debug-production-error | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Debug production errors using Sentry MCP tools. Searches issues, analyzes stack traces, identifies root causes, and suggests fixes. Use when the user mentions a Sentry error, production exception, stack trace, error monitoring, crash report, or unhandled exception.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Debug Production Error Investigate production errors using Sentry's error tracking, stack traces, and context. ## Prerequisites - Sentry MCP must be enabled (this plugin should be enabled) - Environment variables configured: - `SENTRY_AUTH_TOKEN` - `SENTRY_ORG` - `SENTRY_PROJECT` ## Usage ```bash /debug-production-error <error-description-or-id> Examples: /debug-production-error "TypeError in checkout flow" /debug-production-error "ISSUE-123" /debug-production-error "errors from last deployment" /debug-production-error "unhandled exceptions this week" ``` ## What This Command Does Uses Sentry MCP tools to: 1. Search for relevant errors 2. Retrieve stack traces and context 3. Analyze error patterns and frequency 4. Identify affected users and environments 5. Suggest root causes and fixes ## Available Sentry Capabilities When this plugin is enabled, you have access to ~19 Sentry tools: **Error Search & Analysis**: - Search issues by query - Filter by status, assignment, date - View error trends and patterns - Identify new vs recurring errors **Stack Trace Analysis**: - Full stack traces with source context - Source map resolution - Frame-by-frame analysis - Variable inspection **Context & Metadata**: - User context (who was affected) - Environment details - Release/deployment information - Breadcrumb trail (user actions leading to error) **Issue Management**: - Update issue status - Assign to team members - Link to tickets/PRs - Add comments and notes **Root Cause Analysis** (Seer AI): - AI-powered root cause identification - Code-level explanations - Specific fix recommendations - Related error patterns ## Example Debugging Sessions ### Investigate Specific Error ```bash /debug-production-error "Show me details for MYAPP-456 including stack trace and user context" ``` ### Search by Error Type ```bash /debug-production-error "Find all TypeError exceptions in the last 24 hours" ``` ### Deployment Issues ```bash /debug-production-error "What new errors appeared after release v2.3.0?" ``` ### High-Impact Errors ```bash /debug-production-error "Show unresolved errors affecting more than 100 users" ``` ## Output Format Analysis typically includes: **Error Overview**: - Error message and type - Frequency and trend - First seen / last seen - Number of users affected **Stack Trace**: - Full call stack - Source code context - File paths and line numbers - Variable values (if available) **User Context**: - User ID and properties - Browser/device information - URL and user actions (breadcrumbs) **Root Cause** (when Seer analysis available): - Likely cause explanation - Relevant code snippets - Specific fix recommendations - Related issues ## Advanced Queries ### Filter by Environment ```bash /debug-production-error "production errors in payment service" ``` ### Time-Based Analysis ```bash /debug-production-error "spike in errors between 2pm-3pm today" ``` ### User-Specific ```bash /debug-production-error "errors for user@example.com" ``` ### Integration with Analytics If you have both plugins enabled: ```bash # Enable both /plugin enable catalyst-debugging /plugin enable catalyst-analytics # Combined analysis > "Show me errors in checkout AND how many users abandoned checkout today" ``` ## Workflow Integration ### With Issue Tracking After identifying root cause: ```bash > "Create a GitHub issue for this error with the stack trace and fix recommendations" ``` ### With Code Changes After finding the bug: ```bash /catalyst-dev:create-plan "Fix the TypeError in checkout.ts based on Sentry analysis" ``` ## Context Cost **This plugin adds ~20,670 tokens** to your context window. Disable when debugging is complete: ```bash /plugin disable catalyst-debugging ``` --- **See also**: `/catalyst-debugging:error-impact-analysis`, `/catalyst-debugging:trace-analysis`
Related Skills
error-impact-analysis
Analyze the impact and scope of production errors
write-prod-strategy
Product strategy docs using 7-component framework
strategy-sprint
Create product strategy in 1 day, 1 week, or 1 month timeframes. Progressive strategy development framework.
ralph-wiggum
Devil's advocate PRD/document reviewer with humor and sharp critique
prioritize
Classify PM tasks using LNO Framework (Leverage/Neutral/Overhead) to focus on high-impact work.
prd-review-panel
Multi-agent PRD review (7 perspectives)
prd-draft
Create a PRD (product requirements document) for features and initiatives. Guides through clarifying questions, generates a structured draft with hypothesis, strategic fit, non-goals, success metrics, and rollout plan, then offers multi-agent review. Use when the user asks to create a PRD, product spec, feature spec, requirements doc, or product brief.
launch-checklist
Comprehensive product launch planning
impact-sizing
Quantify feature value with driver trees, confidence levels, and the 4-step sizing framework.
feature-results
Post-launch analysis and results documentation. Document what shipped and what we learned.
expansion-strategy
Upsell, cross-sell, and account growth tactics. Framework for revenue expansion.
define-north-star
Identify and validate your North Star Metric. Aligns product strategy with key business metric.