sentry-issue-fixer
БесплатноБез исполняемых скриптовНе проверенFetch, analyze, fix Sentry issues, run tests, and create PRs
от genlayerlabs★ 188 звёзд на GitHubОб этом скилле
Sentry Issue Fixer
Automatically fetch the most important open Sentry issue, analyze it, implement a fix, verify with tests, and create a pull request.
Prerequisites
- Sentry MCP server connected (configured in
~/.claude/settings.json) - GitHub CLI (
gh) authenticated - Docker running (for integration tests)
- Python 3.12 with virtualenv
- Checkout
mainbranch and pull the latest changes
MCP Server Configuration
The Sentry MCP server should be configured in ~/.claude/settings.json:
{
"mcpServers": {
"Sentry": {
"url": "https://mcp.sentry.dev/mcp"
}
}
}
On first use, you'll be prompted to authenticate with Sentry via OAuth.
Workflow
Step 1: Fetch Most Important Open Issue
Use Sentry MCP tools to get the highest priority unresolved issue:
1. First, list available organizations:
mcp__Sentry__list_organizations
2. List projects in the organization:
mcp__Sentry__list_projects with organization_slug
3. Search for unresolved issues sorted by priority/frequency:
mcp__Sentry__search_issues with:
- organization_slug
- project_slug
- query: "is:unresolved"
- sort: "freq" or "priority"
4. Get detailed issue information:
mcp__Sentry__get_issue with issue_id
Step 2: Analyze the Issue
Use Sentry's analysis tools:
1. Get issue details and stack trace:
mcp__Sentry__get_issue_details
2. Find errors in specific files:
mcp__Sentry__find_errors_in_file with filename from stack trace
3. Use Seer AI for root cause analysis (if available):
mcp__Sentry__invoke_seer_agent for AI-powered fix suggestions
Gather from analysis:
- Exception type and message
- Stack trace (file, function, line number)
- Error frequency and affected users
- Environment context (tags, release, etc.)
- Pattern of occurrences
Step 3: Plan the Fix
Before implementing, create a plan:
Root Cause Analysis
- What is causing the error?
- Is it a logic error, missing validation, race condition, etc.?
Proposed Solution
- What changes are needed?
- Which files need modification?
- Are there related issues to consider?
Risk Assessment
- Could this fix break other functionality?
- Does it need backward compatibility?
Testing Strategy
- What unit tests should be added/modified?
- What integration tests are relevant?
Step 4: Implement the Fix
Create a Feature Branch
git checkout main git pull origin main git checkout -b fix/sentry-<issue-id>-<short-description>Make Code Changes
- Implement the planned fix
- Add appropriate error handling
- Add or update tests
Commit Changes
git add <files> git commit -m "fix: <description> Fixes Sentry issue <issue-id> Co-Authored-By: Claude <[email protected]>"
Step 5: Run ALL Test Suites
IMPORTANT: You MUST run ALL of the following test suites before creating a PR. Do NOT skip any.
5.1 DB/SQLAlchemy Tests (Primary Backend Tests - Dockerized)
docker compose -f tests/db-sqlalchemy/docker-compose.yml --project-directory . run --build --rm tests
5.2 Backend Unit Tests
.venv/bin/pytest tests/unit/ -v --tb=short --ignore=tests/unit/test_rpc_endpoint_manager.py
5.3 Frontend Unit Tests
cd frontend && npm run test
If any tests fail:
- Analyze the failure
- Fix the issue
- Re-run ALL test suites until they pass
Step 6: Run Integration Tests (Optional - if Docker services are running)
Follow the integration-tests skill:
# Ensure Docker is running with the studio
docker compose ps # Verify services are up
source .venv/bin/activate
export PYTHONPATH="$(pwd)"
# Run integration tests in parallel (excluding test_validators.py)
gltest --contracts-dir . tests/integration -n 4 --ignore=tests/integration/test_validators.py
# Run validator tests separately
gltest --contracts-dir . tests/integration/test_validators.py
If tests fail:
- Check Docker logs:
docker compose logs -f - Analyze test output
- Fix issues and re-run
Step 7: Create Pull Request
Follow the create-pr skill:
# Push branch
git push -u origin $(git branch --show-current)
# Create PR with Sentry context
gh pr create --title "fix: <description from Sentry issue>" --body "$(cat <<'EOF'
Fixes Sentry issue: <link-to-sentry-issue>
# What
- [Describe the error that was occurring]
- [List the changes made to fix it]
# Why
- This error was affecting [X users / occurring Y times]
- Root cause: [explanation]
# Testing done
- [x] Unit tests pass
- [x] Integration tests pass
- [x] Verified fix resolves the Sentry error pattern
# Decisions made
- [Document any non-obvious choices]
# Checks
- [x] I have tested this code
- [x] I have reviewed my own PR
- [x] I have set a descriptive PR title compliant with conventional commits
# Reviewing tips
- Focus on [specific areas]
- T
Установить sentry-issue-fixer в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл sentry-issue-fixer?
Fetch, analyze, fix Sentry issues, run tests, and create PRs
Как установить скилл sentry-issue-fixer?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл sentry-issue-fixer запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic