hive.slack-notifications-setup
できること
このスキルは、AIが、タスクが止まったときにあなたにメッセージを送れるようにSlackアプリを接続する手順を案内します。アラートをSlackで受け取り、そこで返信したい人向けです。
使う場面
- ✓タスクが止まったとき、Slackで通知を受け取りたいとき。
- ✓Slackの中から、動いているタスクに返信したいとき。
- ✓アラートのためのSlackアプリとチャンネルを設定する必要があるとき。
スキルのリンク
https://github.com/aden-hive/hive/blob/main/core/framework/skills/_default_skills/slack-notifications-setup/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“タスクが止まったらSlackにメッセージを受け取り、そこで返信できるようにしてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
AIは、ブラウザを使ってSlackアプリを作成するか再利用し、アクセストークンを保存して、チャンネルを選び、アラートをオンにします。目標は、あなたがトークンを貼り付けずに完了させることです。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Slack Notifications Setup (Sentinel)
Sentinel pings the user on Slack when a colony stalls and lets them reply from Slack to keep it going. It needs a Slack app with two tokens:
- a Bot User OAuth Token (
xoxb-…) — stored under credential idslack, used to send alerts and call the Slack API. - an App-Level Token (
xapp-…) withconnections:write— stored under credential idslack_app, used by Socket Mode to receive the user's reply.
You do the whole thing end to end: reuse-or-create the app, read the tokens, store
them with the sentinel_setup tool (the same API the desktop connector uses),
create/select the channel via the Slack API, and turn Sentinel on — without
making the user paste anything.
Activate hive.browser-automation first — this skill assumes you know the
lifecycle rules (the bridge attaches to the user's own Chrome; never launch or kill
a browser), the screenshot + viewport-fraction coordinate workflow, and
hive-browser interact.
Before you start — check what already exists
- Run
sentinel_setup({"action": "status"}). If it shows bothslack botandslack appalready configured, the app and tokens are already in place — skip Steps 1–4 entirely and go to Step 5 (channel). Don't recreate anything. - Confirm the user is signed into the right Slack workspace: run
hive-browser navigate https://api.slack.com/apps --jsonin the terminal. If it shows a sign-in screen, ask them to log into the workspace they want alerts in. If they have several workspaces, ask which one. - Reuse before create. Scan the apps list for an app named Hive Sentinel. If it exists, open it and skip to Step 2 (app-level token) / Step 3 (install) — do not create a second app. Only create one if none exists.
Step 1 — Create the app from a JSON manifest
The manifest sets the name, bot scopes (including channel management), Socket Mode, and event subscriptions in one shot.
- Click Create New App → From a manifest, pick the workspace, click Next.
- Switch to the JSON tab (not YAML — the browser type tools strip newlines and break YAML).
- Inject the manifest with
hive-browser evaluate(run in the terminal) using CodeMirror's API — see "Filling the manifest editor" below for the exact, non-doubling method. Use this manifest verbatim:
{
"display_information": { "name": "Hive Sentinel" },
"features": { "bot_user": { "display_name": "Hive Sentinel", "always_online": true } },
"oauth_config": {
"scopes": {
"bot": [
"chat:write",
"chat:write.public",
"channels:read",
"channels:history",
"channels:manage",
"groups:read",
"groups:history",
"users:read"
]
}
},
"settings": {
"event_subscriptions": { "bot_events": ["message.channels", "message.groups"] },
"socket_mode_enabled": true,
"org_deploy_enabled": false,
"token_rotation_enabled": false
}
}
channels:manage is included up front so you can create the channel by API in
Step 5 without ever reinstalling. Valid manifest keys only: socket_mode_enabled
(not socket_mode), and there is no org_domains field.
- With the editor showing a single copy and no "can't translate" error, click Next, then Create.
Filling the manifest editor (JSON tab — do this, nothing else)
Slack's manifest editor is CodeMirror 5, and it validates from React state, not the DOM. Two traps, both avoided by the method below:
hive-browser interact/insert_textstrips newlines (breaks the manifest) and the type path tries to parse the braces. Don't type into it.- A
paste/InputEventthat carries the text gets appended on top of the current value — paste it aftersetValueand you get the manifest twice.
Set the value once, then fire a value-less input event so React re-reads it.
Run this with hive-browser evaluate in the terminal — because the script is
multi-line and quote-heavy, pass it via --js - (stdin) or --js @file rather than
inline --js '…':
// JSON tab must be active first (click the tab labelled "JSON").
const cm = document.querySelector('.CodeMirror').CodeMirror;
// Embed the manifest as a single-quoted JS string (it contains only double quotes).
const manifest = '{"display_information":{"name":"Hive Sentinel"}, ... }';
cm.setValue(manifest); // setValue REPLACES — i
よくある質問
トークンは自分で貼り付けるのですか?
いいえ。このスキルは、あなたが貼り付けなくてもトークンを保存し、アラートをオンにするように作られています。
使っているSlackのワークスペースは確認されますか?
はい。まず、正しいSlackのワークスペースにサインインしているかを確認します。
Slackから返信できますか?
はい。アラートの設定により、Slackで返信してタスクを続けられます。
詳細
作者による元の説明
Set up a Slack notification channel (Sentinel) for a colony by driving the browser — reuse or create the "Hive Sentinel" Slack app from a JSON manifest, install it, capture the bot + app tokens, create/select the channel via the Slack API, and turn Sentinel on so the colony can ping the user on Slack and accept replies. Use when the user asks to "set up Slack notifications", "get pinged on Slack", "connect Slack for alerts", "set up Sentinel on Slack", or clicks the in-app "Set this up with the agent" button on the Slack channel step. Requires hive.browser-automation.
repo: aden-hive/hive
人気
- GitHubのスター
- 11k
- ランキング
- #11806
- ライセンス
- Apache-2.0
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
browser-edge-cases
11kエージェントが、LinkedIn、X、スクリプトの多いページなど、扱いの難しいサイトでブラウザ自動化が失敗する原因を直せるよう支援します。
hive.browser-automation
11kエージェントが、hive-browserツールを使い、スクリーンショットとクリックで、自分のChromeブラウザを操作できるよう支援します。
hive.colony-progress-tracker
11kエージェントが、タスクを確保し、その手順と確認を共有データベースに記録できるよう支援します。作業が進むにつれて追跡されます。
hive.context-preservation
11kエージェントが、長いツールの結果から重要な事実を、メモとして保存し、古い詳細がメモリから消される前に残せるよう支援します。
似ているスキル
discord-user-post
394kエージェントが、承認済みのお知らせをDiscordのデスクトップアプリからあなたとして投稿できるよう支援します。投稿前に正確なチャンネルを確認します。
configure-channel
394kTelegramなどのチャットアプリをOpenClawに接続し、ボットトークンを安全に保存して、メッセージが流れることを確認するようエージェントに教えます。
discord
394kOpenClawを通じてDiscordのメッセージを読み、送信し、編集し、リアクションするようエージェントを支援します。変更の前に正確なメッセージを確認します。