Sentry

From BuilderIO/agent-native · View interactive version

Sentry is an AI agent skill from the GitHub repository BuilderIO/agent-native. Track external Sentry errors and issues, and route first-party captured errors to Agent-Native Analytics. Use this skill when the user asks about errors, exceptions, error trends, or application health.

How to use this skill

Skill file

Sentry Integration

Connection

Server Lib & API Routes

Exported Functions

| Function | Description |

| ------------------------------------------------ | ---------------------------------------- |

| listProjects() | List all projects in the org |

| listIssues(projectSlug?, query?, statsPeriod?) | List issues (project-scoped or org-wide) |

| getIssueEvents(issueId) | Events for a specific issue |

| getOrganizationStats(statsPeriod?, category?) | Org-level error stats over time |

Agent Action

Use sentry for all agent-facing Sentry work. Do not call /api/sentry/*

directly from the agent.

| Mode | Args | Description |

| --------------- | -------------------------------------------- | --------------------------------------- |

| organizations | | List organizations visible to the token |

| issues | statsPeriod, project, query, orgSlug | Frequent issues, sorted by frequency |

| projects | orgSlug | List projects |

| issue-events | issueId, orgSlug | Events for a specific issue |

| stats | statsPeriod, category, orgSlug | Org-level stats |

API Routes

| Route | Description |

| ------------------------------ | ------------------- |

| GET /api/sentry/projects | List projects |

| GET /api/sentry/issues | List issues |

| GET /api/sentry/issue-events | Events for an issue |

| GET /api/sentry/stats | Org error stats |

Dashboard

First-party Agent-Native Analytics errors

Agent-Native Analytics has its own Sentry-style error store, separate from the

external Sentry connection. Browser configureTracking() and server

captureError() can both emit $exception events when their Analytics keys are

configured; Analytics groups them under Monitoring -> Errors without an

external Sentry credential.

Use these authenticated actions for first-party issues:

| Action | Purpose |

| --- | --- |

| list-error-issues | Find grouped captured issues, filtered by status or search. |

| get-error-issue | Read occurrences, stacks, tags, breadcrumbs, and replay links. |

| resolve-error-issue | Resolve, ignore, or reopen an issue after triage. |

Use query-agent-native-analytics only for bounded analytics_events or

$ai_generation correlation; it does not expose the error_issues or

error_events tables.

Key Patterns & Gotchas

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.