Knowledge-work-plugins slack-search
Guidance for effectively searching Slack to find messages, files, channels, and people
install
source · Clone the upstream repo
git clone https://github.com/anthropics/knowledge-work-plugins
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/anthropics/knowledge-work-plugins "$T" && mkdir -p ~/.claude/skills && cp -r "$T/partner-built/slack/skills/slack-search" ~/.claude/skills/anthropics-knowledge-work-plugins-slack-search && rm -rf "$T"
manifest:
partner-built/slack/skills/slack-search/SKILL.mdsource content
Slack Search
This skill provides guidance for effectively searching Slack to find messages, files, and information.
When to Use
Apply this skill whenever you need to find information in Slack — including when a user asks you to locate messages, conversations, files, or people, or when you need to gather context before answering a question about what's happening in Slack.
Search Tools Overview
| Tool | Use When |
|---|---|
| Searching public channels only. Does not require user consent. |
| Searching all channels including private, DMs, and group DMs. Requires user consent. |
| Finding channels by name or description. |
| Finding people by name, email, or role. |
Search Strategy
Start Broad, Then Narrow
- Begin with a simple keyword or natural language question.
- If too many results, add filters (
,in:
, date ranges).from: - If too few results, remove filters and try synonyms or related terms.
Choose the Right Search Mode
- Natural language questions (e.g., "What is the deadline for project X?") — Best for fuzzy, conceptual searches where you don't know exact keywords.
- Keyword search (e.g.,
) — Best for finding specific, exact content.project X deadline
Use Multiple Searches
Don't rely on a single search. Break complex questions into smaller searches:
- Search for the topic first
- Then search for specific people's contributions
- Then search in specific channels
Search Modifiers Reference
Location Filters
— Search within a specific channelin:channel-name
— Search in channel by IDin:<#C123456>
— Exclude a channel-in:channel-name
— Search in DMs with a userin:<@U123456>
User Filters
— Messages from a specific user (by ID)from:<@U123456>
— Messages from a user (by Slack username)from:username
— Messages sent directly to youto:me
Content Filters
— Only threaded messagesis:thread
— Pinned messageshas:pin
— Messages containing linkshas:link
— Messages with file attachmentshas:file
— Messages with a specific reactionhas::emoji:
Date Filters
— Messages before a datebefore:YYYY-MM-DD
— Messages after a dateafter:YYYY-MM-DD
— Messages on a specific dateon:YYYY-MM-DD
— Messages during a specific month (e.g.,during:month
)during:january
Text Matching
— Match an exact phrase"exact phrase"
— Exclude messages containing a word-word
— Wildcard matching (minimum 3 characters beforewild*
)*
File Search
To search for files, use the
content_types="files" parameter with type filters:
— Image filestype:images
— Document filestype:documents
— PDF filestype:pdfs
— Spreadsheet filestype:spreadsheets
— Slack Canvasestype:canvases
Example:
content_types="files" type:pdfs budget after:2025-01-01
Following Up on Results
After finding relevant messages:
- Use
to get the full thread context for any threaded message.slack_read_thread - Use
withslack_read_channel
/oldest
timestamps to read surrounding messages for context.latest - Use
to identify who a user is when their ID appears in results.slack_read_user_profile
Common Pitfalls
- Boolean operators don't work.
,AND
,OR
are not supported. Use spaces (implicit AND) andNOT
for exclusion.- - Parentheses don't work. Don't try to group search terms with
.() - Search is not real-time. Very recent messages (last few seconds) may not appear in search results. Use
for the most recent messages.slack_read_channel - Private channel access. Use
when you need to include private channels, but note this requires user consent.slack_search_public_and_private