Skip to main content
skill Claude Code CX Codex Cursor GitHub Copilot official · Anthropic

slack-search — Claude Code skill: Slack search and setup

This skill guides an agent through finding Slack messages, files, channels, and people. Use it to gather context or track down a specific conversation.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add anthropics/knowledge-work-plugins --skill slack-search -a claude-code
Open on GitHub

What slack-search does

The skill explains when to search public channels and when to include private channels or direct messages. Searches across private spaces require user consent. Start with a natural-language question or keywords, then narrow results with channel, author, or date filters.

File searches can target types such as documents and PDFs. For more context, use slack_read_thread on a threaded result or slack_read_channel to inspect nearby messages. Search is not real-time, so very recent posts may be missing; check the channel directly when timing matters. Boolean operators such as AND, OR, and NOT are unsupported, as are parentheses.

What it helps with

  • find a message by topic or exact phrase
  • narrow Slack results by channel, author, or date
  • locate PDFs and other shared files
  • read a thread and its surrounding channel context
  • find a channel or person by name

Example prompts for the agent

  • Find Slack messages about the project deadline, then narrow the results by channel and date.
  • Search Slack for budget PDFs and find the messages that contain them.
  • Find messages from this person and read the full thread context.

How to install slack-search

1Skills CLI (Vercel)

npx skills add anthropics/knowledge-work-plugins --skill slack-search -a claude-code

2Manually: put the files in place

~/.claude/skills/slack-search/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/slack-search/

From the same set89

The whole set →
data-visualization official anthropics Selects chart types based on data structure and produces Python visualization code in matplotlib, seaborn, and plotly. Useful for reports and research figures. Claude Code CX Codex Cursor +1 13,700installs documentation official anthropics A skill for technical writing that drafts READMEs, API references, runbooks, architecture docs and onboarding guides. Useful when the code exists but the description does not. Claude Code CX Codex Cursor +1 10,300installs build-dashboard official anthropics Builds a self-contained HTML dashboard with Chart.js charts, KPI cards, and filterable tables. Useful for turning raw data or queries into a standalone browser report. Claude Code CX Codex Cursor +1 9,100installs memory-management official anthropics This skill organizes workplace shorthand, names, and project details into files an agent can consult. It fits projects where requests rely on an internal vocabulary and shared context. Claude Code CX Codex Cursor +1 7,400installs task-management official anthropics Tracks commitments, active work, and follow-ups in a local TASKS.md file. Useful when managing project to-dos directly from the AI coding chat. Claude Code CX Codex Cursor +1 7,200installs architecture official anthropics Writes an Architecture Decision Record or reviews a system design: options, trade-offs, consequences. Useful when you have to pick between technologies. Claude Code CX Codex Cursor +1 6,700installs knowledge-synthesis official anthropics Merges search results across chats, emails, and documents into deduplicated answers with source attribution. Flags conflicting facts and scores source reliability. Claude Code CX Codex Cursor +1 6,400installs testing-strategy official anthropics This skill designs testing strategies and test plans for a project. Use it when you need test types, coverage goals, or gaps in existing checks. Claude Code CX Codex Cursor +1 6,400installs

Similar

earnings-preview-single official anthropics Generates a 4-5 page HTML equity research earnings preview for a single company: analyzes the latest earnings transcript, competitors, valuation multiples, and recent news. Claude Code CX Codex Cursor +1 1,800installs bond-futures-basis official anthropics Evaluates bond futures basis, identifies the cheapest-to-deliver bond, and calculates implied repo rates to spot basis trading opportunities. Claude Code CX Codex Cursor +1 1,800installs fixed-income-portfolio official anthropics Skill for bond portfolio analysis: pricing, duration, DV01, rate scenarios and cashflow projections. Aggregates MCP tool outputs into risk metric reports. Claude Code CX Codex Cursor +1 1,800installs directives vercel-labs Pre-built directives for json-render: formatting, math, string handling, i18n. Wire them into your catalog and renderer with one import. Claude Code CX Codex Cursor +1 8,000installs deepeval Confident AI DeepEval skill sets up evaluation loops for AI agents and RAG systems. It creates pytest suites, generates golden datasets, and catches regressions. Claude Code CX Codex Cursor +1 2,800installs ralph-plan mastra-ai An interactive planning skill for Claude Code and coding agents. It helps build structured ralph-loop commands through guided dialog and codebase exploration. Claude Code CX Codex Cursor +1 2,600installs setup-matt-pocock-skills Matt Pocock This skill configures a repository for Matt Pocock's engineering skills by setting its issue tracker, triage labels, and domain docs layout. Run it before using the other skills. Claude Code 1,052,851installs to-tickets Matt Pocock Turns a plan, spec, or conversation into small end-to-end tickets with explicit blockers. Use it to agree on the work breakdown before tickets go to a tracker. Claude Code 711,230installs

Questions about slack-search

How do I install slack-search in Claude Code?

Run npx skills add anthropics/knowledge-work-plugins --skill slack-search -a claude-code. The skill file is at ~/.claude/skills/slack-search/SKILL.md.

What does the slack-search skill do?

It guides Slack searches for messages, files, channels, and people, including how to refine queries with filters and inspect related messages.

Can it search private channels and direct messages?

Yes. Use slack_search_public_and_private for those spaces; the search requires user consent.

Source text

SKILL.md · Apache-2.0
---
name: slack-search
description: Guidance for effectively searching Slack to find messages, files, channels, and people
---

# 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 |
|------|----------|
| `slack_search_public` | Searching public channels only. Does not require user consent. |
| `slack_search_public_and_private` | Searching all channels including private, DMs, and group DMs. Requires user consent. |
| `slack_search_channels` | Finding channels by name or description. |
| `slack_search_users` | Finding people by name, email, or role. |

## Search Strategy

### Start Broad, Then Narrow

1. Begin with a simple keyword or natural language question.
2. If too many results, add filters (`in:`, `from:`, date ranges).
3. 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., `project X deadline`) — Best for finding specific, exact content.

### 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
- `in:channel-name` — Search within a specific channel
- `in:<#C123456>` — Search in channel by ID
- `-in:channel-name` — Exclude a channel
- `in:<@U123456>` — Search in DMs with a user

### User Filters
- `from:<@U123456>` — Messages from a specific user (by ID)
- `from:username` — Messages from a user (by Slack username)
- `to:me` — Messages sent directly to you

### Content Filters
- `is:thread` — Only threaded messages
- `has:pin` — Pinned messages
- `has:link` — Messages containing links
- `has:file` — Messages with file attachments
- `has::emoji:` — Messages with a specific reaction

### Date Filters
- `before:YYYY-MM-DD` — Messages before a date
- `after:YYYY-MM-DD` — Messages after a date
- `on:YYYY-MM-DD` — Messages on a specific date
- `during:month` — Messages during a specific month (e.g., `during:january`)

### Text Matching
- `"exact phrase"` — Match an exact phrase
- `-word` — Exclude messages containing a word
- `wild*` — Wildcard matching (minimum 3 characters before `*`)

## File Search

To search for files, use the `content_types="files"` parameter with type filters:
- `type:images` — Image files
- `type:documents` — Document files
- `type:pdfs` — PDF files
- `type:spreadsheets` — Spreadsheet files
- `type:canvases` — Slack Canvases

Example: `content_types="files" type:pdfs budget after:2025-01-01`

## Following Up on Results

After finding relevant messages:
- Use `slack_read_thread` to get the full thread context for any threaded message.
- Use `slack_read_channel` with `oldest`/`latest` timestamps to read surrounding messages for context.
- Use `slack_read_user_profile` to identify who a user is when their ID appears in results.

## Common Pitfalls

- **Boolean operators don't work.** `AND`, `OR`, `NOT` are not supported. Use spaces (implicit AND) and `-` 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 `slack_read_channel` for the most recent messages.
- **Private channel access.** Use `slack_search_public_and_private` when you need to include private channels, but note this requires user consent.

© anthropics · Apache-2.0 · anthropics/knowledge-work-plugins

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor