jpskill.com
💬 コミュニケーション コミュニティ

slack-search

Guidance for effectively searching Slack to find messages, files, channels, and people

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o slack-search.zip https://jpskill.com/download/22670.zip && unzip -o slack-search.zip && rm slack-search.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/22670.zip -OutFile "$d\slack-search.zip"; Expand-Archive "$d\slack-search.zip" -DestinationPath $d -Force; ri "$d\slack-search.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して slack-search.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → slack-search フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
1

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

Slack検索

このスキルは、Slackでメッセージ、ファイル、情報を見つけるための効果的な検索方法に関するガイダンスを提供します。

使用する場面

ユーザーからメッセージ、会話、ファイル、人物の場所を特定するよう求められた場合や、Slackで何が起こっているかについての質問に答える前に状況を把握する必要がある場合など、Slackで情報を検索する必要があるときはいつでもこのスキルを適用してください。

検索ツールの概要

ツール 使用する場面
slack_search_public パブリックチャンネルのみを検索する場合。ユーザーの同意は不要です。
slack_search_public_and_private プライベートチャンネル、DM、グループDMを含むすべてのチャンネルを検索する場合。ユーザーの同意が必要です。
slack_search_channels 名前または説明でチャンネルを検索する場合。
slack_search_users 名前、メールアドレス、または役割で人物を検索する場合。

検索戦略

広く始めてから絞り込む

  1. シンプルなキーワードまたは自然言語の質問から始めます。
  2. 結果が多すぎる場合は、フィルター(in:from:、日付範囲)を追加します。
  3. 結果が少なすぎる場合は、フィルターを削除し、類義語または関連用語を試します。

適切な検索モードを選択する

  • 自然言語の質問(例:「プロジェクトXの締め切りは何ですか?」) — 正確なキーワードがわからない、あいまいな概念的な検索に最適です。
  • キーワード検索(例:project X deadline) — 特定の正確なコンテンツを見つけるのに最適です。

複数の検索を使用する

1回の検索に頼らないでください。複雑な質問をより小さな検索に分割します。

  • まずトピックを検索します
  • 次に特定の人物の貢献を検索します
  • 次に特定のチャンネルで検索します

検索修飾子のリファレンス

場所フィルター

  • in:channel-name — 特定のチャンネル内で検索します
  • in:<#C123456> — IDでチャンネルを検索します
  • -in:channel-name — チャンネルを除外します
  • in:<@U123456> — ユーザーとのDMを検索します

ユーザーフィルター

  • from:<@U123456> — 特定のユーザーからのメッセージ(ID別)
  • from:username — ユーザーからのメッセージ(Slackユーザー名別)
  • to:me — 自分に直接送信されたメッセージ

コンテンツフィルター

  • is:thread — スレッド化されたメッセージのみ
  • has:pin — ピン留めされたメッセージ
  • has:link — リンクを含むメッセージ
  • has:file — ファイル添付のあるメッセージ
  • has::emoji: — 特定のリアクションのあるメッセージ

日付フィルター

  • before:YYYY-MM-DD — 特定の日付より前のメッセージ
  • after:YYYY-MM-DD — 特定の日付より後のメッセージ
  • on:YYYY-MM-DD — 特定の日のメッセージ
  • during:month — 特定の月のメッセージ(例:during:january

テキストマッチング

  • "exact phrase" — 正確なフレーズに一致します
  • -word — 特定の単語を含むメッセージを除外します
  • wild* — ワイルドカードマッチング(*の前に最低3文字必要)

ファイル検索

ファイルを検索するには、content_types="files"パラメーターをタイプフィルターとともに使用します。

  • type:images — 画像ファイル
  • type:documents — ドキュメントファイル
  • type:pdfs — PDFファイル
  • type:spreadsheets — スプレッドシートファイル
  • type:canvases — Slack Canvases

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

結果のフォローアップ

関連するメッセージを見つけた後:

  • slack_read_threadを使用して、スレッド化されたメッセージの完全なスレッドコンテキストを取得します。
  • slack_read_channeloldest/latestタイムスタンプとともに使用して、コンテキストのために周囲のメッセージを読み取ります。
  • slack_read_user_profileを使用して、結果にIDが表示されたときにユーザーが誰であるかを特定します。

よくある落とし穴

  • ブール演算子は機能しません。 ANDORNOTはサポートされていません。スペース(暗黙のAND)と-を使用して除外します。
  • 括弧は機能しません。 ()で検索語をグループ化しようとしないでください。
  • 検索はリアルタイムではありません。 ごく最近のメッセージ(過去数秒)は検索結果に表示されない場合があります。最新のメッセージにはslack_read_channelを使用してください。
  • プライベートチャンネルへのアクセス。 プライベートチャンネルを含める必要がある場合はslack_search_public_and_privateを使用しますが、これにはユーザーの同意が必要であることに注意してください。
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

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.