slack-search
Original:🇺🇸 English
Translated
Guidance for effectively searching Slack to find messages, files, channels, and people
7installs
Added on
NPX Install
npx skill4agent add anthropics/knowledge-work-plugins slack-searchTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →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 channel
in:channel-name - — Search in channel by ID
in:<#C123456> - — Exclude a channel
-in:channel-name - — Search in DMs with a user
in:<@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 you
to:me
Content Filters
- — Only threaded messages
is:thread - — Pinned messages
has:pin - — Messages containing links
has:link - — Messages with file attachments
has:file - — Messages with a specific reaction
has::emoji:
Date Filters
- — Messages before a date
before:YYYY-MM-DD - — Messages after a date
after:YYYY-MM-DD - — Messages on a specific date
on: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 before
wild*)*
File Search
To search for files, use the parameter with type filters:
content_types="files"- — Image files
type:images - — Document files
type:documents - — PDF files
type:pdfs - — Spreadsheet files
type:spreadsheets - — Slack Canvases
type:canvases
Example:
content_types="files" type:pdfs budget after:2025-01-01Following Up on Results
After finding relevant messages:
- Use to get the full thread context for any threaded message.
slack_read_thread - Use with
slack_read_channel/oldesttimestamps 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,ORare not supported. Use spaces (implicit AND) andNOTfor 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