Messaging slack notify

From XSpoonAi/spoon-awesome-skill · View interactive version

Messaging slack notify is an AI agent skill from the GitHub repository XSpoonAi/spoon-awesome-skill. Send formatted Slack notifications from scripts. Supports rich message formatting, attachments, and webhook integration.

How to use this skill

Skill file

Description

Send formatted Slack notifications from scripts. Supports rich message formatting, attachments, and webhook integration.

Inputs

{
  "channel": "#notifications|@user",
  "message": "Notification message",
  "format": "text|rich"
}

Outputs

{
  "ok": true,
  "data": {
    "message_id": "Message timestamp",
    "status": "sent"
  }
}

Usage

Demo Mode

python scripts/main.py --demo

Send Notification

echo '{"channel":"#alerts","message":"Server down!"}' | python3 scripts/main.py

Examples

Example 1: Send Alert

$ echo '{"message":"Critical: Database connection failed"}' | python3 scripts/main.py --params '{"webhook_url":"https://hooks.slack.com/services/...","message":"Critical: Database connection failed"}'
{
  "ok": true,
  "message_sent": {
    "channel": "#general",
    "text": "Critical: Database connection failed",
    "timestamp": "1738940130.000001",
    "status": "sent",
    "delivery_time_ms": 142
  }
}

Error Handling

When an error occurs, the skill returns:

{
  "ok": false,
  "error": "Error description",
  "details": {
    "channel": "Channel not found"
  }
}
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.