Slack Botのロゴ

Slack Bot

コミュニティ
whatnickcodes
slack-bot

Slack bot integration for receiving messages and reactions. Use when setting up Slack webhooks or managing Slack bot configuration.

概要

公開者whatnickcodes
リポジトリclappie
スキル名slack-bot
スター
27
フォーク
6
同梱ファイル
7
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 7個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    whatnickcodesがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルSlack BotをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/whatnickcodes/clappie/tree/main/.claude/skills/slack-bot
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/whatnickcodes/clappie.git /tmp/clappie
mkdir -p .claude/skills
cp -r /tmp/clappie/.claude/skills/slack-bot .claude/skills/slack-bot
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでSlack Botを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にSlack Botを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Slack Botは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Slack Bot Skill

Slack bot integration for receiving messages/reactions and spawning sidekicks. Threads become separate sidekicks.

Setup

1. Create Slack App

  1. Go to https://api.slack.com/apps → Create New App → From scratch
  2. Name it (e.g., "Clappie") and select your workspace

2. Configure Bot Scopes

Go to OAuth & Permissions → Bot Token Scopes and add:

ScopePurpose
chat:writeSend messages
files:readRead uploaded files
files:writeUpload files
users:readGet user info
reactions:writeAdd reactions to messages
reactions:readSee reactions on messages

3. Subscribe to Events

Go to Event Subscriptions → Enable Events → Subscribe to bot events:

EventPurpose
message.channelsMessages in public channels
message.groupsMessages in private channels
message.imDirect messages
message.mpimGroup DMs
reaction_addedUser adds reaction
reaction_removedUser removes reaction

Don't set the Request URL yet - you need Tailscale Funnel first.

4. Install to Workspace

Go to Install App → Install to Workspace → Authorize

Copy the Bot User OAuth Token (starts with xoxb-)

5. Get Signing Secret

Go to Basic Information → App Credentials → Copy Signing Secret

6. Add to .env

bash
SLACK_BOT_TOKEN=xoxb-your-bot-token
SLACK_SIGNING_SECRET=your-signing-secret

7. Configure Settings

bash
# Enable the bot
echo "true" > recall/settings/slack-bot/enabled.txt

# Allow your Slack user ID (find via Slack profile → ⋮ → Copy member ID)
echo "U01ABCDEF" > recall/settings/slack-bot/users.txt

# Enable incoming messages
mkdir -p recall/settings/slack-bot/webhooks
echo "true" > recall/settings/slack-bot/webhooks/incoming-message.txt

8. Start Sidekick Server

bash
clappie background start sidekicks

9. Expose via Tailscale Funnel

Slack requires ports 80, 443, or 8443. Use Tailscale Funnel to proxy:

bash
# Expose port 7777 on HTTPS (Tailscale handles certs)
tailscale funnel 7777

This gives you a URL like https://your-machine.tail1234.ts.net

10. Set Webhook URL in Slack

  1. Get your webhook path:

    bash
    cat recall/settings/slack-bot/webhook-path.txt
  2. Go back to Event Subscriptions in Slack app settings

  3. Set Request URL to:

    https://your-machine.tail1234.ts.net/webhooks/slack-bot/{webhook-path}

    Replace {webhook-path} with the value from step 1

  4. Slack will send a verification challenge - it should show ✓ Verified

11. Invite Bot to Channel

In Slack, invite the bot to channels where you want it:

/invite @YourBotName

Settings

All settings in recall/settings/slack-bot/:

FileDescriptionRequired
enabled.txtSet to true to enableYes
webhook-path.txtSecret URL segment (auto-generated)Auto
users.txtAllowed Slack user IDs (one per line)Yes
channels.txtAllowed channel IDs (optional)No
webhooks/incoming-message.txtEnable incoming messagesYes
sidekick-prompt.txtCustom prompt/personality for sidekicks (overrides skill defaults)No

CLI Commands

bash
clappie slack-bot send <channel> <message>        # Send message
clappie slack-bot thread <channel:ts> <message>   # Reply in thread
clappie slack-bot photo <channel> <path>          # Send image
clappie slack-bot document <channel> <path>       # Send file
clappie slack-bot react <channel> <ts> <emoji>    # Add reaction

Sidekick Extension Commands

When a Slack sidekick is running, these extra commands are available (registered via sidekickCommands in webhooks/send.js). The sidekick ID is auto-detected from the CLAPPIE_SIDEKICK_ID env var -- no need to type it. Explicit ID still works as an override.

bash
clappie sidekick react <ts> :emoji:                  # React to a message
clappie sidekick send-file photo "/path" "caption"    # Upload image
clappie sidekick send-file document "/path" "caption" # Upload file

These are only available to sidekicks with source: slack-bot. Telegram-specific commands like combo and sticker are not available.

Threading

  • Main channel messages → one sidekick per channel (until complete)
  • Threaded replies → separate sidekick per thread
  • conversationId = channel or channel:thread_ts
  • Bot replies stay in thread automatically

Reactions

When a user reacts to a message, the sidekick receives:

[Reacted with :thumbsup:]

Direct CLI (not sidekick):

bash
clappie slack-bot react C01234 1234567890.123456 :eyes:

Troubleshooting

"Not found" when visiting webhook URL in browser Normal - webhooks only accept POST requests. The GET response confirms the endpoint is active.

Verification fails in Slack

  • Check Tailscale Funnel is running (tailscale funnel 7777)
  • Check sidekick server is running (clappie background start sidekicks)
  • Check signing secret matches

Messages not received

  • Is bot invited to the channel?
  • Is user ID in users.txt?
  • Is enabled.txt set to true?
  • Check webhooks/incoming-message.txt is true

Environment Variables

VariableDescription
SLACK_BOT_TOKENBot token (xoxb-...)
SLACK_SIGNING_SECRETSigning secret for verification

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Slack Bot」では何ができますか?

Slack bot integration for receiving messages and reactions. Use when setting up Slack webhooks or managing Slack bot configuration.

TypingMindでSlack Botを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Slack Botはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにSlack Botをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/whatnickcodes/clappie/tree/main/.claude/skills/slack-botを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Slack Botを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Slack Botは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもSlack Botを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Slack Bot」は無料ですか?

whatnickcodesがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇