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

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

slack-notifications

Send Slack notifications when Claude Code finishes working

Event Configuration

  • Event Type: Stop
  • Tool Matcher: *
  • Category: automation

Environment Variables

  • SLACK_WEBHOOK_URL

Requirements

  • curl
  • Slack webhook URL configured

Script

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

message="Claude Code has finished working on your request."
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