Slack Webhook
Send automated messages and notifications to Slack channels via customizable webhooks.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add slack-webhook npx -- -y @trustedskills/slack-webhook
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"slack-webhook": {
"command": "npx",
"args": [
"-y",
"@trustedskills/slack-webhook"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill enables an AI agent to send automated messages and notifications to Slack channels using customizable webhooks. It allows for sending simple text messages, formatted text (bold, italic, strike-through, code), links, and more complex structured messages utilizing "Blocks" for rich layouts and fields. The agent constructs a JSON payload containing the message content and then uses curl to send it to a configured Slack webhook URL.
When to use it
- Automating deployment notifications (e.g., success or failure).
- Sending alerts based on system events or monitoring data.
- Posting updates to team channels regarding project progress or new reviews.
- Broadcasting simple announcements or reminders to a Slack workspace.
- Sharing automated reports or summaries with relevant teams.
Key capabilities
- Sends messages to Slack channels via webhook URL.
- Supports basic text formatting (bold, italic, strike-through, code).
- Allows for including hyperlinks in messages.
- Enables the creation of structured messages using "Blocks" for rich layouts.
- Supports adding fields to messages for displaying key information.
Example prompts
- "Send a message to Slack saying 'Deployment successful!'"
- "Post an alert to Slack: Production server down!"
- "Create a Slack notification with the following details: Environment: Production, Status: Success."
Tips & gotchas
- The skill requires a valid Slack webhook URL (
$SLACK_WEBHOOK_URL) to be configured. - Messages containing special characters like
!may fail due to shell history expansion; use heredoc syntax for such messages. - This skill is limited to sending messages only and cannot read existing messages or delete previously sent ones.
- The webhook can only send to one channel. You cannot override the username or icon, which are configured within the Slack app itself.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.