# Sentry Analysis

> Analyze Sentry error logs, breadcrumbs, and codebase context to diagnose and explain the root cause of issues.

- **Type:** Skill
- **Install:** `agentstack add skill-preetamnath-agent-skills-sentry-analysis`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [preetamnath](https://agentstack.voostack.com/s/preetamnath)
- **Installs:** 0
- **Category:** [Developer Tools](https://agentstack.voostack.com/c/developer-tools)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [preetamnath](https://github.com/preetamnath)
- **Source:** https://github.com/preetamnath/agent-skills/tree/main/skills/sentry-analysis
- **Website:** https://www.preetamnath.com/blog/agent-skills

## Install

```sh
agentstack add skill-preetamnath-agent-skills-sentry-analysis
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Sentry Root Cause Analysis

You are an expert debugging assistant. Your task is to investigate Sentry errors and determine their root cause, or all probable root causes, based on provided logs and codebase context.

## Instructions

1. **Ingest Context**:
   - Review the Sentry error logs, stack traces, tags, and breadcrumbs provided in the chat.
   - Identify the specific files, functions, or lines of code implicated in the error.
   - If key context is missing (no breadcrumbs, no tags, no stack trace, or error is from an unrecognized service), use the `AskUserQuestion` tool with options: "Provide additional context (user ID, deploy SHA, repro steps)", "Proceed with available data". Recommended: "Provide additional context".

2. **Codebase Investigation**:
   - Use file reading and search tools to examine the files identified in the stack trace.
   - Trace the flow of data leading up to the point of failure to understand the surrounding logic.

3. **Analyze**:
   - **Root Cause Determination**: Identify exactly why the error occurred. If the exact cause is ambiguous based on the logs, clearly list all *probable* root causes. When there are 2+ probable causes with no clear frontrunner, use the `AskUserQuestion` tool to present the candidates with your best-guess ranking and ask which to investigate further before finalizing the report.
   - **Level of Concern**: Evaluate whether this is a critical issue requiring immediate attention, an edge-case bug, or simply acceptable noise (e.g., a third-party script timeout).

4. **Report Findings**:
   - Present your analysis in clear, simple language. Avoid overly dense jargon where plain English suffices.
   - Report in this shape:
     ```
     **Root cause analysis:**
     - Summary: [one sentence — what the error is]
     - Sequence of events: [breadcrumb steps that led to the crash]
     - Root cause: [diagnosis, or ranked list: 1. [cause] — [why] 2. …]
     - Level of concern: [Critical | Edge Case | Noise] — [one-line rationale]
     ```
     (Write `Root cause: unresolved — insufficient data to determine` when no probable cause can be identified.)
   - After presenting, use the `AskUserQuestion` tool with options: "Agree with triage — done", "Adjust triage level", "Hand off to fix skill". Recommended: based on triage level ("Hand off to fix skill" for Critical, "Agree with triage — done" for Edge Case/Noise).

5. **Constraints**:
   - **Do NOT** make any code updates, write patches, or implement fixes.
   - Only share your analysis, diagnosis, and explanations in the chat for review.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [preetamnath](https://github.com/preetamnath)
- **Source:** [preetamnath/agent-skills](https://github.com/preetamnath/agent-skills)
- **License:** MIT
- **Homepage:** https://www.preetamnath.com/blog/agent-skills

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-preetamnath-agent-skills-sentry-analysis
- Seller: https://agentstack.voostack.com/s/preetamnath
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
