首页/ AI 技能 / @skilllib/skill-2117939930272410278
Skill站外收录 @skilllib/skill-2117939930272410278

slack-usage

提供在 Slack 工作区中高效检索历史消息的能力,支持跨频道关键词搜索、按用户或时间范围筛选,并能获取指定频道的近期对话记录,适用于追溯讨论、验证信息和跟进协作内容。

0.0 (0) 25 次安装 原作者 编程导航
收录于 2026-01-22
效率工具 AI 技能

Skills.MD

# Slack Usage Best Practices ## Critical Search Rule **ALWAYS use `mcp__slack__slack_search_messages` first** for message searches. Only use `mcp__slack__slack_get_channel_history` when explicitly asked for recent channel history. Search is more efficient and finds messages across all channels. Channel history only shows recent messages in one channel. ## Slack API Best Practices ### Rate Limiting Slack APIs have rate limits (typically 1 request per second for most methods). When making multiple requests: - Space out bulk operations - Handle rate limit errors gracefully - Cache results when possible ### Channel Types - **Public channels** - Visible to all workspace members - **Private channels** - Invite-only, prefix with lock icon - **DMs** - Direct messages between users - **Group DMs** - Multi-person direct conversations ### Message Formatting Format mentions and links properly: - User mention: `<@USER_ID>` - Channel link: `<#CHANNEL_ID>` - URL with text: `<https://example.com|link text>` - Bold: `*text*` - Code: backticks for inline, triple backticks for blocks ### Threading Best Practices - Use threads for discussions to keep channels clean - Reply in thread when responding to specific messages - Use "Also send to channel" sparingly (only for important updates) - Thread replies don't trigger channel notifications by default ### Bot vs User Tokens - **Bot tokens (xoxb-)**: Actions appear as the bot, limited to channels bot is in - **User tokens (xoxp-)**: Actions appear as user, access to all user's channels - Search typically requires user token for full workspace access - Posting messages works with either token type ### Common Workflows **Finding past discussions:** 1. Search with relevant keywords 2. Filter by channel, user, or date if needed 3. Get thread replies for full context **Monitoring channels:** 1. Get channel history for recent activity 2. Note message timestamps for threading 3. React or reply as appropriate ## MCP Limitations This MCP provides read and write access to Slack. Consider: - Rate limits apply to all operations - Some admin operations not available - File uploads have size limits

评论 0

还没有评论,来抢沙发。