slack
БесплатноБез исполняемых скриптовНе проверенQuery Slack channels, search messages, and fetch user information. Use when reading Slack data, checking channel history, searching messages, or looking up…
от drn★ 23 звезды на GitHubОб этом скилле
Slack (Read-Only)
Query Slack channels, search messages, and fetch user information using the slack CLI.
Instructions
You are helping query Slack data. Auth is handled via environment variables loaded from ~/.dots/sys/env:
SLACK_XOXP_TOKEN— user token for search, history, thread, dmsSLACK_XOXB_TOKEN— bot token for channels, users
Operations
# Test authentication
slack auth-test
# Channel operations
slack channels # List all channels
slack find-channel releases # Find channel by name
# Message history
slack history C04M5PG7P7T # By channel ID
slack history releases --limit 50 # By name, limit 50
slack history releases --days 7 # Last 7 days
# Thread replies
slack thread C04M5PG7P7T 1234567890.123456
# Search messages
slack search "deployment failed" # Full search
slack search "urgent" --days 1 # Last 24 hours
slack search "from:@darren" --days 7 --full # Full message text
# User operations
slack users # List all users
slack find-user darren # Find by name
# DMs
slack dms # List DM conversations
# JSON output (for programmatic use)
slack channels --json
Common Tasks
Get recent channel history
slack history releases --days 7
Search for mentions of a topic
slack search "outage" --days 7
Find who posted about something
slack search "from:@darren deployment" --days 30
Get activity from a specific person
# First find their user ID
slack find-user "john"
# Then search their messages
slack search "from:@john" --days 7
Full-Text Search
By default, search truncates messages to 200 chars. Use --full for complete message text:
slack search "from:@aaron" --days 7 --full
Token Types & Required Scopes
| Token | Env Var | Used For |
|---|---|---|
| User (xoxp) | SLACK_XOXP_TOKEN |
search, dms, history, thread |
| Bot (xoxb) | SLACK_XOXB_TOKEN |
channels, users, find-user, find-channel |
Required User Token Scopes: channels:history, channels:read, groups:history, groups:read, im:history, im:read, mpim:history, mpim:read, search:read, users:read
Required Bot Token Scopes: channels:read, groups:read, users:read, users:read.email
API Rate Limits
Slack has rate limits:
- Tier 1 methods (chat.postMessage): 1 request/second
- Tier 2 methods (conversations.history): 20 requests/minute
- Tier 3 methods (search.messages): 20 requests/minute
If rate limited, wait for the retry_after period.
Error Handling
Common errors:
channel_not_found— Channel doesn't exist or bot/user not in channelnot_in_channel— Need to join the channel firstratelimited— Too many requests, checkretry_afterinvalid_auth— Token is expired or invalidmissing_scope— Token lacks required OAuth scopes
Capabilities
- Channel listing: Public and private channels the user has access to
- Channel history: Messages from any channel (with proper permissions)
- Thread replies: Full thread contents
- Message search: Full-text search with date filters
- User lookup: Find users by name, display name, or email
- DM listing: List direct message conversations
Limitations
- Read-only — Cannot send messages. When asked to send/DM someone, draft the message as copyable text instead.
- Cannot access channels the user/bot isn't in
- Search results are truncated to 200 chars by default. Use
--fullfor complete text. - Rate limited by Slack's API tier system
Установить slack в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл slack?
Query Slack channels, search messages, and fetch user information. Use when reading Slack data, checking channel history, searching messages, or looking up users.
Как установить скилл slack?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл slack запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic