← ClaudeAtlas

slack-webhook-alerterlisted

Post run results to a Slack incoming webhook from Python - webhook URL from env, Block Kit sections plus a colored attachment, no Slack SDK. Use when the user asks to send a slack alert, notify slack, post to a slack channel, mirror telegram alerts to slack, or wire a script to push a status message to Slack.
baronguyen001/ai-automation-skills · ★ 0 · Web & Frontend · score 75
Install: claude install-skill baronguyen001/ai-automation-skills
# Slack Webhook Alerter Use this skill when a Python script needs to post a status or result to Slack and you do not want the full Slack SDK or a bot token - an incoming webhook is enough. It builds a Block Kit message with a colored attachment (green/red by status) and posts it with a stdlib request, retrying on transient failures. It mirrors `telegram-alerter` so the same run can fan out to both channels. ## When to invoke - User says: "send a slack alert", "notify slack", "post to a slack channel", "mirror my telegram alerts to slack". - Code in the conversation already pushes a run summary somewhere and should also reach a Slack channel. ## When NOT to invoke - The user wants Telegram, Discord, or email instead - use the matching alerter. - The user needs interactive Slack features (slash commands, modals, threads, reactions); a one-way incoming webhook cannot do those - reach for a bot token and the Slack API. ## Concrete example User input: ```text After my nightly job finishes, post a green or red Slack message with the item count and a dashboard link. ``` Output: ```python # Copy assets/slack_alert.py into your project, then: from slack_alert import send_slack ok = send_slack( title="Nightly scrape finished", text="Processed 42 items in 18 minutes.", status="ok", # ok -> green, error -> red, warn -> yellow fields={"Items": "42", "Duration": "18m"}, link=("Open dashboard", "https://example.com/dash"), ) if