slack-search

GitHub

指导如何高效在 Slack 中搜索消息、文件、频道和用户,涵盖工具选择、搜索策略及各类过滤器用法。

partner-built/slack/skills/slack-search/SKILL.md anthropics/knowledge-work-plugins

触发场景

查找 Slack 中的历史消息或文件 根据关键词或自然语言查询特定信息 定位特定用户或频道

安装

npx skills add anthropics/knowledge-work-plugins --skill slack-search -g -y
更多选项

非标准路径

npx skills add https://github.com/anthropics/knowledge-work-plugins/tree/main/partner-built/slack/skills/slack-search -g -y

不安装直接使用

npx skills use anthropics/knowledge-work-plugins@slack-search

指定 Agent (Claude Code)

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

安装 repo 全部 skill

npx skills add anthropics/knowledge-work-plugins --all -g -y

预览 repo 内 skill

npx skills add anthropics/knowledge-work-plugins --list

SKILL.md

Frontmatter
{
    "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.

版本历史

  • 6f13415 当前 2026-07-05 18:31

同 Skill 集合

bio-research/skills/nextflow-development/SKILL.md
bio-research/skills/single-cell-rna-qc/SKILL.md
bio-research/skills/start/SKILL.md
cowork-plugin-management/skills/cowork-plugin-customizer/SKILL.md
cowork-plugin-management/skills/create-cowork-plugin/SKILL.md
customer-support/skills/customer-escalation/SKILL.md
customer-support/skills/customer-research/SKILL.md
customer-support/skills/draft-response/SKILL.md
customer-support/skills/kb-article/SKILL.md
customer-support/skills/ticket-triage/SKILL.md
data/skills/analyze/SKILL.md
data/skills/build-dashboard/SKILL.md
data/skills/create-viz/SKILL.md
data/skills/data-visualization/SKILL.md
data/skills/explore-data/SKILL.md
data/skills/sql-queries/SKILL.md
data/skills/statistical-analysis/SKILL.md
data/skills/validate-data/SKILL.md
data/skills/write-query/SKILL.md
design/skills/accessibility-review/SKILL.md
design/skills/design-critique/SKILL.md
design/skills/design-handoff/SKILL.md
design/skills/design-system/SKILL.md
design/skills/research-synthesis/SKILL.md
design/skills/user-research/SKILL.md
design/skills/ux-copy/SKILL.md
engineering/skills/architecture/SKILL.md
engineering/skills/code-review/SKILL.md
engineering/skills/debug/SKILL.md
engineering/skills/deploy-checklist/SKILL.md
engineering/skills/documentation/SKILL.md
engineering/skills/incident-response/SKILL.md
engineering/skills/standup/SKILL.md
engineering/skills/system-design/SKILL.md
engineering/skills/tech-debt/SKILL.md
engineering/skills/testing-strategy/SKILL.md
enterprise-search/skills/digest/SKILL.md
enterprise-search/skills/knowledge-synthesis/SKILL.md
enterprise-search/skills/search-strategy/SKILL.md
enterprise-search/skills/search/SKILL.md
enterprise-search/skills/source-management/SKILL.md
finance/skills/audit-support/SKILL.md
finance/skills/close-management/SKILL.md
finance/skills/financial-statements/SKILL.md
finance/skills/journal-entry-prep/SKILL.md
finance/skills/journal-entry/SKILL.md
finance/skills/reconciliation/SKILL.md
finance/skills/sox-testing/SKILL.md
finance/skills/variance-analysis/SKILL.md
human-resources/skills/comp-analysis/SKILL.md

元信息

文件数
0
版本
31c2ee1
Hash
934d1c12
收录时间
2026-07-05 18:31

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-06 22:57
浙ICP备14020137号-1 $访客地图$