# Messaging Slack Notify

> Description

- Skill: `xspoonai/messaging-slack-notify` (Agent Skill, multi-file: 3 files)
- Install (CLI): `npx skillmds@latest add xspoonai/messaging-slack-notify`
- Raw SKILL.md: https://api.skillmd.com/api/skills/xspoonai/messaging-slack-notify/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- Author: XSpoonAi (https://skillmd.com/u/xspoonai)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/xspoonai/messaging-slack-notify

---


## Description

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

## Inputs

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

## Outputs

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

## Usage

### Demo Mode
```bash
python scripts/main.py --demo
```

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

## Examples

### Example 1: Send Alert
```bash
$ 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:

```json
{
  "ok": false,
  "error": "Error description",
  "details": {
    "channel": "Channel not found"
  }
}
```

