Alerts issues

From TheBushidoCollective/han · View interactive version

Alerts issues is an AI agent skill from the GitHub repository TheBushidoCollective/han. Use when configuring Sentry alerts, managing issues, or setting up notifications. Covers alert rules, issue triage, and integrations.

How to use this skill

Skill file

Sentry - Alerts & Issue Management

Configure alerts, manage issues, and set up notifications.

Alert Types

Issue Alerts

Trigger when an issue matches specific conditions:

Metric Alerts

Trigger based on aggregate metrics:

Uptime Monitoring

Monitor endpoint availability:

Alert Conditions

Frequency-Based

When an issue is seen more than 100 times in 1 hour

User Impact

When an issue affects more than 50 unique users in 1 hour

First Seen

When a new issue is created

Regression

When an issue changes state from resolved to unresolved

Alert Actions

Notification Channels

Issue Actions

Issue States

Lifecycle

  1. Unresolved: Active issue needing attention
  2. Resolved: Fixed in a release
  3. Ignored: Intentionally dismissed
  4. Archived: Historical, no longer tracked

Substates

Issue Management

Merge Issues

Combine duplicate issues with different stack traces:

  1. Select issues to merge
  2. Choose primary issue
  3. All events appear under primary

Ignore Rules

Ignore this issue:
- Forever
- Until it happens again
- For the next 24 hours
- Until it affects 100 users

Ownership Rules

# Define in project settings
path:src/payments/* #payments-team
path:src/auth/* user@example.com
tags.component:checkout #checkout-team

API Integration

List Issues

curl "https://sentry.io/api/0/projects/{org}/{project}/issues/" \
  -H "Authorization: Bearer $SENTRY_AUTH_TOKEN"

Update Issue

curl -X PUT "https://sentry.io/api/0/issues/{issue_id}/" \
  -H "Authorization: Bearer $SENTRY_AUTH_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"status": "resolved"}'

Create Alert Rule

curl -X POST "https://sentry.io/api/0/projects/{org}/{project}/rules/" \
  -H "Authorization: Bearer $SENTRY_AUTH_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "High Error Rate",
    "conditions": [...],
    "actions": [...],
    "frequency": 30
  }'

Integration Examples

Slack Alert

{
  "action": "notify_slack",
  "workspace": "your-workspace",
  "channel": "#alerts",
  "tags": ["level", "environment"]
}

PagerDuty Escalation

{
  "action": "notify_pagerduty",
  "service": "your-service-key",
  "severity": "critical"
}

Jira Ticket Creation

{
  "action": "create_jira_ticket",
  "integration": "jira-integration-id",
  "project": "PROJ",
  "issueType": "Bug"
}

Best Practices

  1. Start with conservative thresholds, tune over time
  2. Use different channels for different severities
  3. Set up on-call rotation for critical alerts
  4. Review and archive stale issues regularly
  5. Define ownership rules for automatic assignment
  6. Create runbooks for common alert types
  7. Use metric alerts for SLO monitoring
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.