slack-integration
SKILL.md
Slack Integration
Overview
Integrate Slack notifications into your Claude Code workflow using the Slack MCP server. Receive team notifications for PR lifecycle events, review completions, and CI status.
Configuration
Slack MCP Server Setup
Add to your MCP configuration:
{
"mcpServers": {
"slack": {
"command": "npx",
"args": ["-y", "@anthropic/mcp-slack"],
"env": {
"SLACK_BOT_TOKEN": "xoxb-your-bot-token",
"SLACK_CHANNEL": "#dev-notifications"
}
}
}
}
Required Bot Permissions
chat:write- Post messageschannels:read- List channelsreactions:write- Add reactions
PR Lifecycle Notifications
| Event | Message | When |
|---|---|---|
| PR Created | "PR #123 opened: Title" | After create-pr |
| Review Complete | "PR #123 reviewed: APPROVED" | After review-pr |
| PR Merged | "PR #123 merged to main" | After merge |
| CI Failed | "CI failed on PR #123" | On check failure |
Integration with CC 2.1.20
CC 2.1.20's /commit-push-pr flow can auto-post to Slack:
- Commit changes
- Push branch
- Create PR
- Post Slack notification with PR link
Usage Patterns
Post-Review Notification
After completing a PR review:
mcp__slack__post_message({
channel: "#dev-reviews",
text: "PR #123 reviewed: APPROVED - 0 blockers, 2 suggestions"
})
Post-Create Notification
After creating a PR:
mcp__slack__post_message({
channel: "#dev-prs",
text: "New PR: #123 - feat: Add user auth | 5 files, +200/-50"
})
Related Skills
review-pr- PR review with optional Slack notificationcreate-pr- PR creation with optional Slack notificationrelease-management- Release announcements