Slack Search logo

Slack Search

Community
minicoohei
slack-search

Slackチャンネルやメッセージをセマンティック検索するスキル。 「Slackで検索して」「チャンネルを探して」「発言を探して」等のリクエストで発動。

Overview

Publisherminicoohei
Repositoryai-agent-camp
Skill nameslack-search
Stars
346
Forks
13
Bundled files
5
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 5 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by minicoohei on GitHub. Read the source before you install it.

Installation

Install the Slack Search AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/minicoohei/ai-agent-camp/tree/main/.claude/skills/slack-search
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/minicoohei/ai-agent-camp.git /tmp/ai-agent-camp
mkdir -p .claude/skills
cp -r /tmp/ai-agent-camp/.claude/skills/slack-search .claude/skills/slack-search
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Slack Search in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Slack Search on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Slack Search is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Slack Search Skill

BookRAGに基づく階層的インデックスを活用したSlackセマンティック検索。

クイックスタート

python
import sys
from pathlib import Path
# プロジェクトルートの tools/ ディレクトリをパスに追加
sys.path.insert(0, str(Path(__file__).resolve().parents[4] / "tools"))
from slack_search import SlackSearch

search = SlackSearch()

# ワークスペース概要
overview = search.get_workspace_overview()

# チャンネル検索(セマンティック検索)
results = search.find_channels("DX展示会")

# チャンネル詳細
detail = search.get_channel_detail("my-workspace/example-channel")

# 関連チャンネル探索
related = search.find_related_channels("my-workspace/example-channel")

# 人物検索
persons = search.find_person("清水")

# イベント検索
events = search.find_events("DX")

# タイムライン検索
timeline = search.get_timeline("2025-12-01", "2025-12-31")

利用可能な検索機能

1. ワークスペース概要 (get_workspace_overview)

全体の統計情報とカテゴリ構造を取得。

python
# 全ワークスペース
overview = search.get_workspace_overview()

# 特定のワークスペース
overview = search.get_workspace_overview("my-workspace")

対応ワークスペース: 設定されたワークスペース(build_book_index.py の WORKSPACES を参照)

2. チャンネル検索 (find_channels)

チャンネル名、トピック、概要からセマンティック検索。

python
# 基本検索
results = search.find_channels("展示会")

# フィルタ付き検索
results = search.find_channels(
    query="プロジェクト",
    workspace="my-workspace",
    category="project",
    limit=20
)

チャンネルカテゴリ:

  • cafe: 個人チャンネル(cafe_*)
  • project: プロジェクト(pj_*)
  • product: プロダクト開発(product_*)
  • sales: 営業(sales_*)
  • notify: 通知(notify_*)
  • partner: 外部パートナー(*_partner)
  • event: イベント(日付パターン)
  • external: 外部連携(ex-, ext-)

3. チャンネル詳細 (get_channel_detail)

特定チャンネルの詳細情報を取得。

python
# フルID指定
detail = search.get_channel_detail("my-workspace/example-channel")

# チャンネル名のみでも可
detail = search.get_channel_detail("example-channel")

返却情報:

  • 概要(overview)
  • トピック(topics)
  • 参加者(participants)
  • 活動期間(first_activity, last_activity)
  • ファイルパス(data, summary, archive)
  • 関連チャンネル(related_channels)

4. 関連チャンネル探索 (find_related_channels)

グラフ構造に基づいて関連チャンネルを探索。

python
# 直接関連
related = search.find_related_channels("example-channel")

# 間接関連まで(depth=2)
related = search.find_related_channels("example-channel", depth=2)

5. 人物検索 (find_person)

発言者やメンションから人物を検索。

python
results = search.find_person("清水")
# 返却: 名前、エイリアス、参加チャンネル数、チャンネルリスト

6. イベント検索 (find_events)

展示会、会議などのイベントを検索。

python
# 全イベント
events = search.find_events()

# キーワード検索
events = search.find_events("DX")

7. カテゴリ別一覧 (list_channels_by_category)

特定カテゴリのチャンネルを一覧。

python
# 全ワークスペースのcafeチャンネル
cafes = search.list_channels_by_category("cafe")

# 特定ワークスペースのprojectチャンネルのみ
projects = search.list_channels_by_category("project", workspace="my-workspace")

8. タイムライン検索 (get_timeline)

期間指定でアクティビティを検索。

python
timeline = search.get_timeline(
    start_date="2025-12-01",
    end_date="2025-12-31",
    workspace="my-workspace"  # オプション
)

9. 出力ソース情報 (get_output_sources)

calendar, gmail, drive, voicememoの統計情報。

python
sources = search.get_output_sources()

データ構造

インデックスパス

  • メインインデックス: slack-sync/index/book_index.json
  • スキーマ定義: slack-sync/index/schema.md

データソース

  • 現在データ: slack-sync/data/{workspace}/
  • サマリー: slack-sync/data/summary/{workspace}/
  • アーカイブ: slack-sync/data/archive/{workspace}/
  • 出力: output/ (calendar, gmail, drive, voicememo)

CLIコマンド

bash
# ワークスペース概要
uv run python tools/slack_search.py overview [workspace]

# チャンネル検索
uv run python tools/slack_search.py find "クエリ"

# チャンネル詳細
uv run python tools/slack_search.py detail "channel_id"

# 関連チャンネル
uv run python tools/slack_search.py related "channel_id"

# 人物検索
uv run python tools/slack_search.py person "名前"

# イベント検索
uv run python tools/slack_search.py events [クエリ]

# カテゴリ別
uv run python tools/slack_search.py category "カテゴリ名"

# タイムライン
uv run python tools/slack_search.py timeline "開始日" "終了日"

インデックス更新

インデックスはGitHub Actionsで毎日自動更新されます。 手動更新:

bash
python3 data/slack-sync/scripts/build_book_index.py

ユースケース例

「清水さんが参加しているプロジェクトを教えて」

python
person = search.find_person("清水")[0]
project_channels = [
    ch for ch in person["channels"]
    if search.get_channel_detail(ch).get("category") == "project"
]

「最近のDX展示会イベントの成果を確認」

python
events = search.find_events("DX")
for event in events:
    detail = search.get_channel_detail(event["channel"])
    print(f"{event['name']}: {detail['overview']}")

「example-channelに関連する活動を調べる」

python
detail = search.get_channel_detail("example-channel")
related = search.find_related_channels("example-channel", depth=2)
print(f"関連チャンネル数: {related['total_related']}")

Overview

BookRAGに基づく階層的インデックスを活用し、Slackチャンネル・メッセージをセマンティック検索するスキルです。チャンネル検索、人物検索、イベント検索、タイムライン検索に対応。

Troubleshooting

エラー解決方法
Index file not foundpython3 data/slack-sync/scripts/build_book_index.py でインデックスを再構築
No results foundクエリのキーワードを変えるか、get_workspace_overview() で利用可能なカテゴリを確認

Success Criteria

  • 検索クエリに対して関連するチャンネルまたはメッセージが返却されている
  • 検索結果にチャンネル名・概要・関連度が含まれている
  • エラーなく完了している

Usage

上記「クイックスタート」および「CLIコマンド」セクションを参照。基本例:

bash
# チャンネル検索
uv run python tools/slack_search.py find "DX展示会"

# 人物検索
uv run python tools/slack_search.py person "清水"

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Slack Search AI skill do?

Slackチャンネルやメッセージをセマンティック検索するスキル。 「Slackで検索して」「チャンネルを探して」「発言を探して」等のリクエストで発動。

Why use Slack Search on TypingMind?

Because you install it once and use it with any model. Slack Search is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Slack Search in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/minicoohei/ai-agent-camp/tree/main/.claude/skills/slack-search. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Slack Search?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Slack Search?

As many as you like. As long as a model supports skills, you can use Slack Search with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Slack Search AI skill free?

It is published on GitHub by minicoohei. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇