DevOps & Infra
sentry-observability - Claude MCP Skill
Sentry error tracking and production observability. Invoke when: - New Next.js project without error tracking → Suggest setup - Deploying to Vercel → "Add observability before deploying" - Discussing error handling, try/catch → "Track these in production" - Production bug, users reporting errors → Triage with scripts - Setting up monitoring, configuring alerts, reviewing PII handling Scripts: detect_sentry.sh, init_sentry.sh, list_issues.sh, triage_score.sh Keywords: Sentry, production errors, error tracking, triage, alerts, observability, Session Replay, PII redaction, source maps, monitoring
SEO Guide: Enhance your AI agent with the sentry-observability tool. This Model Context Protocol (MCP) server allows Claude Desktop and other LLMs to sentry error tracking and production observability. invoke when: - new next.js project without error... Download and configure this skill to unlock new capabilities for your AI workflow.
Documentation
SKILL.md# Sentry Observability
Production error tracking with two modes: **Setup** (add Sentry) and **Operations** (use Sentry).
## Quick Detection
```bash
# Check if Sentry is configured in current project
~/.claude/skills/sentry-observability/scripts/detect_sentry.sh
```
## Setup Mode
For projects **without** Sentry. Proactively suggest when:
- New Next.js project detected (no @sentry/* in package.json)
- User mentions deploying to production
- Discussing error handling patterns
```bash
# Initialize Sentry in current project
~/.claude/skills/sentry-observability/scripts/init_sentry.sh
# Verify setup after installation
~/.claude/skills/sentry-observability/scripts/verify_setup.sh
```
## Operations Mode
For projects **with** Sentry. Use for triage and monitoring.
```bash
# List unresolved issues (powers /triage)
~/.claude/skills/sentry-observability/scripts/list_issues.sh --env production
# Get priority-scored issues (triage algorithm)
~/.claude/skills/sentry-observability/scripts/triage_score.sh --json
# Get full context for an issue
~/.claude/skills/sentry-observability/scripts/issue_detail.sh PROJ-123
# Create alert rule
~/.claude/skills/sentry-observability/scripts/create_alert.sh --name "New Errors" --type issue
# Mark issue resolved
~/.claude/skills/sentry-observability/scripts/resolve_issue.sh PROJ-123
```
## Core Principles
1. **Vercel Integration First** - Use marketplace, not manual tokens
2. **Clean Environments** - "production" not "vercel-production"
3. **Security by Default** - PII redaction, hide source maps
4. **CLI Automation** - Version-controlled alerts
5. **Cost Awareness** - Free tier = 5k errors/month
6. **Env-Controlled Sampling** - Never hardcode `tracesSampleRate: 1`
## tracesSampleRate Configuration
**NEVER hardcode `tracesSampleRate: 1` (100%)** - exhausts quota in production.
```typescript
// sentry.*.config.ts
function getTracesSampleRate(): number {
const rate = parseFloat(process.env.NEXT_PUBLIC_SENTRY_TRACES_SAMPLE_RATE || "");
if (isNaN(rate)) return 0.1; // Default 10%
return Math.max(0, Math.min(1, rate)); // Clamp 0-1
}
Sentry.init({
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
tracesSampleRate: getTracesSampleRate(),
// ...
});
```
Add to `.env.example`:
```bash
# Traces sample rate (0-1, default 0.1 = 10% of requests traced)
NEXT_PUBLIC_SENTRY_TRACES_SAMPLE_RATE=0.1
```
## Environment Variables
```bash
# Required (in ~/.secrets or project .env.local)
SENTRY_AUTH_TOKEN / SENTRY_MASTER_TOKEN # API access
SENTRY_ORG # Organization slug
SENTRY_DSN # Project DSN
# Auto-detected per project
SENTRY_PROJECT # From .sentryclirc or .env.local
```
## Decision Trees
### Should I Set Up Sentry?
```
Is this a production application?
├─ YES → Is Sentry already configured?
│ ├─ NO → Run init_sentry.sh
│ └─ YES → Run verify_setup.sh to check health
└─ NO → Skip (development/prototype only)
```
### Triage Priority (from /triage)
```
Score = Events(1x) + Users(5x) + Severity(3x) + Recency(2x) + Env(4x)
Higher score = Higher priority
```
## References
- [Setup Guide](references/setup-guide.md) - Full setup walkthrough
- [Configuration](references/configuration.md) - Advanced config patterns
- [PII Redaction](references/pii-redaction.md) - Security patterns
- [Session Replay](references/session-replay.md) - Visual debugging
- [Troubleshooting](references/troubleshooting.md) - Common issues
- [Anti-Patterns](references/anti-patterns.md) - What NOT to do
## Philosophy
**Observability Is Not Optional**: Production errors without monitoring = invisible failures.
**Proactive Setup**: Suggest Sentry when starting new projects. Don't wait for the first production incident.
**Security First**: PII redaction is non-negotiable. Privacy violations >> lost debugging info.
**Cost Awareness**: Free tier (5k errors/month) is enough for most projects.Signals
Information
- Repository
- phrazzld/claude-config
- Author
- phrazzld
- Last Sync
- 3/2/2026
- Repo Updated
- 3/1/2026
- Created
- 1/13/2026
Reviews (0)
No reviews yet. Be the first to review this skill!
Related Skills
cursorrules
CrewAI Development Rules
firecrawl-build-interact
Integrate Firecrawl `/interact` into product code for dynamic pages and browser actions after scraping. Use when a feature needs clicks, form fills, pagination, authentication-aware flows, or other multi-step interactions that plain `/scrape` cannot complete.
firecrawl-build
Integrate Firecrawl into application code whenever a product, agent, or workflow needs web data inside the app — web search, live search results, page scraping, structured extraction, or browser interaction. Use when building any feature that needs data from the web in code, even if the user does not mention Firecrawl explicitly and only describes wanting web data, website content, search, scraping, or interaction in an application. Trigger for Firecrawl requests, "fire girl" shorthand, and generic app-level web-data needs that should map to `/scrape`, `/search`, or `/interact`. Do not use this skill for one-off terminal-only web tasks during the current session; use `firecrawl/cli` for those.
firecrawl-build-search
Integrate Firecrawl `/search` into product code and agent workflows. Use when an app needs discovery before extraction, when the feature starts with a query instead of a URL, or when the system should search the web and optionally hydrate result content.
Related Guides
Bear Notes Claude Skill: Your AI-Powered Note-Taking Assistant
Learn how to use the bear-notes Claude skill. Complete guide with installation instructions and examples.
Mastering tmux with Claude: A Complete Guide to the tmux Claude Skill
Learn how to use the tmux Claude skill. Complete guide with installation instructions and examples.
OpenAI Whisper API Claude Skill: Complete Guide to AI-Powered Audio Transcription
Learn how to use the openai-whisper-api Claude skill. Complete guide with installation instructions and examples.