Slack Usage
Apps & Automationslack-usageSlack Usage is an Agent Skill for apps & automation published in the majiayu000/claude-skill-registry repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
This skill should be used when user asks to "search Slack for messages", "find Slack messages about X", "get channel history", "look up conversation in Slack", or "find what someone said in Slack".
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/majiayu000/claude-skill-registry/blob/HEAD/skills/data/slack-usage/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/slack-usage, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
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:
- Search with relevant keywords
- Filter by channel, user, or date if needed
- Get thread replies for full context
Monitoring channels:
- Get channel history for recent activity
- Note message timestamps for threading
- 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