antrophiclove
← Kütüphaneye dön
Kurulum
curl -sL https://www.antrophiclove.com/api/kaynak/slack-error-notifications/raw

Bu içerik mevcut dosyaya elle harmanlanmalı: .claude/settings.json

slack-error-notifications

Send Slack notifications when Claude Code encounters long-running operations or when tools take significant time

Event Configuration

  • Event Type: Notification
  • Tool Matcher: *
  • Category: notifications

Environment Variables

None required

Requirements

  • SLACK_WEBHOOK_URL environment variable

Script

#!/bin/bash
if [[ -z "$SLACK_WEBHOOK_URL" ]]; then
  exit 0
fi

# Forward the notification message to Slack
message=$(jq -r '.message // "Claude Code notification"')
payload=$(jq -n --arg text "$message" '{"text": $text}')

curl -s -X POST "$SLACK_WEBHOOK_URL" \
  -H "Content-Type: application/json" \
  -d "$payload" >/dev/null 2>&1