mirror of
https://github.com/getsentry/sentry-for-ai.git
synced 2026-09-14 14:28:22 +08:00
676a96d692
Add sentry-android-sdk to all discovery surfaces so the new skill is reachable through every entry point: - skills/sentry-sdk-setup/SKILL.md: add Android row to the routing table (alphabetically between the implicit position before Cocoa) and a dedicated routing instruction — 'If Android (build.gradle with android plugin) is detected, use sentry-android-sdk' - README.md: add sentry-android-sdk to the SDK Setup Wizards table - AGENTS.md: add sentry-android-sdk to the SDK Skills table - SKILL_TREE.md: regenerated via scripts/build-skill-tree.sh — 20 skills scanned, 3 routers, 0 errors Co-Authored-By: Claude claude.ai/code
4.8 KiB
4.8 KiB
Agent Instructions
Project Overview
Sentry plugin for AI coding assistants (Claude Code, Cursor). Provides MCP server integration, slash commands, and skills.
Commit Attribution
AI commits MUST include:
Co-Authored-By: (the agent model's name and attribution byline)
Plugin Structure
commands/ # Slash commands (/seer)
skills/ # Setup and review skills
.agents/ # Symlinks to commands/ and skills/
.claude-plugin/ # Claude Code plugin metadata
.cursor-plugin/ # Cursor plugin metadata
Skills use YAML frontmatter with allowed-tools — this is required by Cursor and harmless in Claude Code. Keep it in all skill files.
Skills
SDK Skills (Full Platform Bundles)
| Skill | Description |
|---|---|
sentry-android-sdk |
Full setup wizard for Android (Jetpack Compose, Views, OkHttp, Room, Fragment, Timber) |
sentry-cocoa-sdk |
Full setup wizard for Apple platforms (iOS, macOS, tvOS, watchOS, visionOS) |
sentry-dotnet-sdk |
Full setup wizard for .NET (ASP.NET Core, MAUI, WPF, WinForms, Azure Functions) |
sentry-go-sdk |
Full setup wizard for Go (net/http, Gin, Echo, Fiber) |
sentry-nextjs-sdk |
Full setup wizard for Next.js (App Router + Pages Router) |
sentry-python-sdk |
Full setup wizard for Python (Django, Flask, FastAPI, Celery) |
sentry-react-native-sdk |
Full setup wizard for React Native and Expo |
sentry-react-sdk |
Full setup wizard for React (Router v5-v7, TanStack, Redux) |
sentry-ruby-sdk |
Full setup wizard for Ruby (Rails, Sinatra, Sidekiq) |
sentry-svelte-sdk |
Full setup wizard for Svelte/SvelteKit |
Setup Skills
| Skill | Description |
|---|---|
sentry-setup-ai-monitoring |
Instrument OpenAI/Anthropic/Vercel AI/LangChain/Google GenAI |
sentry-otel-exporter-setup |
Setup OTel Collector with Sentry Exporter |
Workflow Skills
| Skill | Description |
|---|---|
sentry-code-review |
Analyze and resolve Sentry bot comments on GitHub PRs |
sentry-pr-code-review |
Review PRs for issues detected by Seer Bug Prediction |
sentry-fix-issues |
Find and fix Sentry issues using MCP |
sentry-create-alert |
Create Sentry alerts using the workflow engine API |
Authoring Skills
| Skill | Description |
|---|---|
sentry-sdk-skill-creator |
Create a complete SDK skill bundle for any new platform |
Commands
| Command | Description |
|---|---|
/seer <query> |
Natural language Sentry environment queries |
MCP Server
Sentry MCP server configured at https://mcp.sentry.dev/mcp. Two config files exist:
.mcp.json— Claude Code formatmcp.json— Cursor format
Key Conventions
- All setup skills must detect platform/SDK before suggesting configuration — never assume
- Sentry code review skill only processes comments from
sentry[bot], ignores other bots - GitHub CLI (
gh) required for PR-related skills - Avoid emojis in skill/command content — keep output platform-neutral
Skill Tree Navigation
How it works:
- 3 router skills (always visible in agent metadata):
sentry-sdk-setup,sentry-workflow,sentry-feature-setup - All other skills are hidden with
disable-model-invocation: true— loaded on-demand when a router points to them SKILL_TREE.mdat repo root is the flat sitemap listing every skill- This keeps startup metadata at ~300 tokens instead of ~1,600+ as the library grows
- Tools that don't support
disable-model-invocationsimply see all skills (same as before)
Categories:
sdk-setup— platform/language SDK setup wizards (router:sentry-sdk-setup)workflow— debugging, code review, issue management (router:sentry-workflow)feature-setup— specific feature configuration (router:sentry-feature-setup)internal— contributor tools, no router
Adding a new skill:
- Create
skills/<skill-name>/SKILL.mdwith standard frontmatter - Add
category,parent,disable-model-invocation: trueto frontmatter - Add breadcrumb as first body line:
> [All Skills](../../SKILL_TREE.md) > [Category](../router/SKILL.md) > Skill Name - Add the skill to the parent router's routing table
- Run
scripts/build-skill-tree.shto regenerateSKILL_TREE.mdand validate - CI validates automatically on every PR
Adding a new category:
- When a category exceeds ~10 skills, consider splitting
- Create a new router skill with
role: routerin frontmatter - Update existing skills'
categoryandparentfields - Update this file to document the new category
Validation:
scripts/build-skill-tree.sh— regeneratesSKILL_TREE.md, validates all frontmatter, breadcrumbs, and router tablesscripts/build-skill-tree.sh --check— CI mode, fails ifSKILL_TREE.mdis stale or validation errors exist