본문으로 건너뛰기
cccskills
무료GitHub에 공개

sentry-integration

Use when the user shares a Sentry URL, says "check Sentry", or wants to investigate production errors. Uses Sentry MCP tools for deep analysis.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

연동 도구Sentry
설치 방법 보기

포함된 파일(1)

  • SKILL.md5.4 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Sentry Skill

When to use

Use this skill when:

  • Investigating a Sentry error or issue URL
  • Analyzing error patterns, frequency, or affected users
  • Working with Sentry MCP tools for issue details
  • Adding error reporting or breadcrumbs to code
  • Configuring Sentry alerts or release tracking

Available MCP tools

Issue investigation

ToolPurpose
get_issue_detailsFull issue details: stacktrace, tags, metadata
get_issue_tag_valuesDistribution by tag (browser, URL, environment, user)
search_issuesFind issues by criteria (unresolved, critical, etc.)
search_eventsCount/aggregate events, find individual error logs
search_issue_eventsFilter events within a specific issue
analyze_issue_with_seerAI root cause analysis with code fix suggestions

Context tools

ToolPurpose
get_trace_detailsTrace overview for performance issues
get_event_attachmentDownload screenshots, logs attached to events
find_organizationsFind org slug (needed for most queries)
find_projectsFind project slug
find_releasesCheck recent releases and deploy timing

Procedure: Investigate a Sentry error

1. Get issue details

From a Sentry URL:

get_issue_details(issueUrl='https://sentry.io/issues/PROJECT-123/')

From an issue ID:

get_issue_details(organizationSlug='my-org', issueId='PROJECT-123')

2. Analyze the stacktrace

  • Top frame = where it crashed
  • Bottom frame = entry point (HTTP request, job, command)
  • Read each file in the call chain using codebase-retrieval
  • Identify where data becomes invalid or assumptions break

3. Check distribution

get_issue_tag_values(issueId='PROJECT-123', tagKey='environment')
get_issue_tag_values(issueId='PROJECT-123', tagKey='url')
get_issue_tag_values(issueId='PROJECT-123', tagKey='browser')

Useful tags: environment, url, browser, os, release, user, device

4. Check frequency and timing

search_events(organizationSlug='my-org', naturalLanguageQuery='count of errors for PROJECT-123 in last 7 days')

5. AI analysis (if needed)

analyze_issue_with_seer(issueUrl='https://sentry.io/issues/PROJECT-123/')

Only use when you cannot determine the root cause from the stacktrace alone.

Error reporting in code

MonitoringHelper (project convention)

Always use the project's MonitoringHelper — never the Sentry SDK directly:

// ✅ Correct
MonitoringHelper::captureException($exception);

// ❌ Wrong
\Sentry\captureException($exception);

Breadcrumbs

Use project enums for structured breadcrumbs:

use App\Enums\Sentry\BreadcrumbType;
use App\Enums\Sentry\BreadcrumbLevel;

Context

Check the project for Sentry context enums and the tenant switching service that sets context automatically.

Common error patterns

PatternRoot causeFix approach
TypeError: null passed to non-nullableMissing null check on optional DB columnAdd null guard or make parameter nullable
ModelNotFoundExceptionDeleted or missing related recordAdd optional() or existence check
ConnectionExceptionMulti-tenant DB switch failedCheck tenant switching service flow
ValidationException in jobsJob data changed between dispatch and executionRe-validate in handle()
Undefined array keyExternal API/import data missing expected fieldAdd array_key_exists() or null coalescing

Search patterns

Find issues by criteria

search_issues(organizationSlug='my-org', naturalLanguageQuery='unresolved errors in production last 24h')
search_issues(organizationSlug='my-org', naturalLanguageQuery='errors affecting more than 100 users')
search_issues(organizationSlug='my-org', naturalLanguageQuery='issues assigned to me')

Count events

search_events(organizationSlug='my-org', naturalLanguageQuery='how many errors today')
search_events(organizationSlug='my-org', naturalLanguageQuery='count of database failures this week')

Related

  • Skill: logging-monitoring — full monitoring stack (Sentry + Grafana + Loki)
  • Skill: bug-analyzer — uses Sentry as input for bug investigation
  • Command: /bug-investigate — fetches Sentry details automatically
  • Config: the SDK's config surface (config/sentry.php in Laravel, sentry.client.config.ts in Next.js) — Sentry DSN and configuration

Output format

  1. Sentry integration code with proper context and breadcrumbs
  2. Error grouping configuration if needed

Gotcha

  • Sentry groups errors by stacktrace — different root causes may appear as the same issue. Check multiple events.
  • The model tends to analyze only the latest event — check the "Events" tab for patterns across time.
  • Don't use Sentry MCP tools for simple lookups — use the Sentry web UI link instead (saves tokens).

Do NOT

  • Do NOT use Sentry SDK directly — use MonitoringHelper.
  • Do NOT ignore Sentry errors without investigating root cause.
  • Do NOT expose sensitive data in Sentry error context.

Auto-trigger keywords

  • Sentry
  • error tracking
  • issue investigation
  • error reporting

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Use when reviewing UI for accessibility — WCAG 2.2 AA, keyboard nav, focus, ARIA, contrast, screen-reader semantics — even on 'is this a11y-OK?' or 'mach das barrierefrei'.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

event4u-app/agent-config122026년 10월 21일 업데이트

Use when defining or auditing the activation event — aha-moment selection, retention correlation, falsifiable definition. Triggers on 'what is our aha moment', 'redefine activation'.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

event4u-app/agent-config122026년 10월 21일 업데이트

Use when capturing an architectural decision — file naming, next ADR number, Status / Context / Decision / Consequences, index regen; fires even without saying 'ADR'.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

event4u-app/agent-config122026년 10월 21일 업데이트

Adversarial critique — devil's advocate, stress-test, honest teardown ('poke holes', 'be brutal', 'was hältst du davon'); explicit request only. Routine code or design review → code-review.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

event4u-app/agent-config122026년 10월 21일 업데이트

Use when reading, creating, or updating agent documentation, module docs, roadmaps, or AGENTS.md. Understands the full .augment/, agents/, and copilot-instructions structure.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

event4u-app/agent-config122026년 10월 21일 업데이트

Use for an adversarial red-team / blue-team / auditor review of an AI agent's CONFIG + behaviour (rules, skills, MCP, hooks, permissions) — attack-chain → defensive-gap list, not a code audit.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

event4u-app/agent-config122026년 10월 21일 업데이트

event4u-app의 스킬 모두 보기

이 스킬의 문제 신고