home / skills / yonatangross / orchestkit / slack-integration
/plugins/ork/skills/slack-integration
This skill integrates Slack notifications for PR lifecycle, reviews, and CI status, delivering timely alerts to channels via a bot token.
npx playbooks add skill yonatangross/orchestkit --skill slack-integrationReview the files below or copy the command above to add this skill to your agents.
---
name: slack-integration
description: Slack MCP server integration patterns for team notifications. Covers PR lifecycle notifications, review alerts, and CI status updates via bot token.
context: fork
version: 1.0.0
author: OrchestKit
tags: [slack, notification, team, mcp, integration]
user-invocable: false
---
# 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:
```json
{
"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 messages
- `channels:read` - List channels
- `reactions: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:
1. Commit changes
2. Push branch
3. Create PR
4. 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 notification
- `create-pr` - PR creation with optional Slack notification
- `release-management` - Release announcements
This skill adds Slack MCP server integration patterns to send team notifications for PR lifecycle events, review alerts, and CI status updates. It uses a Slack bot token and channel configuration to post messages from MCP workflows, enabling immediate visibility into code and CI activity. The patterns are production-ready and designed for TypeScript-based Claude Code workflows.
The skill configures an MCP Slack server that runs the official MCP Slack command and reads SLACK_BOT_TOKEN and SLACK_CHANNEL from environment variables. It exposes lightweight actions to post messages (e.g., mcp__slack__post_message) which are invoked after lifecycle hooks like create-pr, review-pr, merge, and CI checks. Messages can include PR links, status, review outcomes, and CI failure alerts.
What permissions does the Slack bot need?
Grant chat:write to post messages, channels:read to resolve channels, and reactions:write if you add reactions.
How do I configure the MCP Slack server?
Provide SLACK_BOT_TOKEN and SLACK_CHANNEL in the MCP server env and register an MCP server entry that runs the MCP Slack command.