Install any skill in seconds. Free to start, no credit card required.
Get Started Free →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
.claude/skills/aden-hive-hive-slack-notifications-setup/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-06 | ✗→✓ | ▲ Improved | 173% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 57% | 0% |
| case-12 | ✗→✓ | ▲ Improved | 193% | 0% |
| case-13 | ✗→✓ | ▲ Improved | 124% | 0% |
| case-15 | ✗→✓ | ▲ Improved | 277% | 0% |
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:
xoxb-…) — stored under credential id slack, used to send alerts and call the Slack API.xapp-…) with connections:write — stored under credential id slack_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.
sentinel_setup({"action": "status"}). If it shows both slack bot andslack app already configured, the app and tokens are already in place — skip Steps 1–4 entirely and go to Step 5 (channel). Don't recreate anything.
hive-browser navigate https://api.slack.com/apps --json in 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.
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.
The manifest sets the name, bot scopes (including channel management), Socket Mode, and event subscriptions in one shot.
break YAML).
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:
json{ "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.
Next, then Create.
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_text strips newlines (breaks the manifest) and thetype path tries to parse the braces. Don't type into it.
paste/InputEvent that carries the text gets appended on top of thecurrent value — paste it after setValue and 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 '…':
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 — it never appends cm.getInputField().dispatchEvent( // notify React WITHOUT carrying any text new InputEvent('input', { bubbles: true, inputType: 'insertFromPaste' }) ); return { valueLen: cm.getValue().length }; // sanity-check: one copy, not double
If valueLen is ~2× the manifest length, it doubled — cm.setValue('') then cm.setValue(manifest) once and re-dispatch. Never solve a "Next is disabled" by pasting again.
xapp-…)Manifests can't mint app-level tokens. In the app: Basic Information → App-Level Tokens → Generate Token and Scopes, name it (e.g. socket), add the scope connections:write, Generate, then read the xapp-… value.
xoxb-…)xoxb-…). Read it from the input's value, notoff a screenshot, so you don't truncate it:
jsArray.from(document.querySelectorAll('input')).map(i => i.value).filter(v => v.startsWith('xoxb-'));
sentinel_setupsentinel_setup({"action": "store_token", "provider": "slack", "token": "xoxb-…"})
sentinel_setup({"action": "store_token", "provider": "slack_app", "token": "xapp-…"})The bot token is validated (auth.test) before storing and reports the workspace. If it's rejected, re-read the token from the input value (you likely grabbed a partial string) and retry — never invent or pad a token.
> Prefer not to handle the tokens yourself? Fall back to > credentials(action="collect", …) with credential_id slack / slack_app > (field access_token) to pop a secure form. The default flow above is hands-off > and is what the in-app "Set this up with the agent" button expects.
Don't click around the Slack web UI to make or find a channel — use the Slack API with the bot token via terminal_exec + curl. (A browser fetch() to slack.com is CORS-blocked from the app tab; curl from the terminal is the reliable path.)
Reuse an existing channel the user named — list and grab its id:
bashcurl -s -X POST 'https://slack.com/api/conversations.list' \ -H 'Authorization: Bearer xoxb-…' \ -H 'Content-Type: application/x-www-form-urlencoded' \ -d 'types=public_channel,private_channel&limit=1000'
Create a dedicated channel (recommended default, e.g. hive-sentinel). The bot joins automatically as the creator, and the response carries the new channel id:
bashcurl -s -X POST 'https://slack.com/api/conversations.create' \ -H 'Authorization: Bearer xoxb-…' \ -H 'Content-Type: application/json' \ -d '{"name":"hive-sentinel","is_private":false}'
If you reuse a channel the bot didn't create, add the bot so it can post and read replies (look up the bot user id from auth.test if needed):
bashcurl -s -X POST 'https://slack.com/api/conversations.invite' \ -H 'Authorization: Bearer xoxb-…' -H 'Content-Type: application/json' \ -d '{"channel":"C0123ABC456","users":"<BOT_USER_ID>"}'
Take the channel id (C…) from the JSON response. channels:manage is already in the manifest, so none of this needs a reinstall.
configure/test target the colony bound to your session (pass colony_id only to set up a different one):
sentinel_setup({"action": "configure", "channel": "slack",
"target": {"channel": "C0123ABC456"}, "enabled": true})
sentinel_setup({"action": "test"})test posts to the channel — ask the user to confirm it arrived. If it didn't, the usual causes are the bot isn't in the channel (re-run conversations.invite) or the channel id is wrong. sentinel_setup({"action": "status"}) shows stored tokens + the colony's current config any time.
When test succeeds you're done: tell the user Sentinel is live on #<channel> and they can reply to its messages from Slack to keep the colony moving. (They can review or change any of this under Automations → Set up Sentinel.)
hive.browser-automation and obey its lifecycle rules. Never rungoogle-chrome/chromium, --remote-debugging-port, or kill any browser/bridge process — you drive the user's existing Chrome.
sentinel_setup status shows both tokens configured), use it — never create a second app.
the input value rather than fabricating.
store_token providers are exact: slack (bot, xoxb-) and slack_app(app-level, xapp-). Swapping them breaks send vs. receive.
cm.setValue once + a value-less input event.Never type the manifest, never use the YAML tab, never re-paste to "fix" a disabled Next button (that doubles the content).
approval for apps — tell the user to request it (or use a workspace where they're admin); you can't bypass it.
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-08 | pass→pass | 6,310 | 3,965 | -37% | 1 | 1 | 0% | 1,087 | 3,287 | +202% | 0 | 0 | — |
case-01 | fail→fail | 14,195 | 19,491 | +37% | 1 | 1 | 0% | 2,859 | 3,110 | +9% | 0 | 0 | — |
case-02 | fail→fail | 13,367 | 4,788 | -64% | 1 | 1 | 0% | 2,380 | 2,980 | +25% | 0 | 0 | — |
case-03 | fail→fail | 17,741 | 5,709 | -68% | 1 | 1 | 0% | 3,601 | 3,126 | -13% | 0 | 0 | — |
case-04 | fail→fail | 7,098 | 10,797 | +52% | 1 | 1 | 0% | 1,179 | 3,310 | +181% | 0 | 0 | — |
case-05 | pass→fail | 9,797 | 3,895 | -60% | 1 | 1 | 0% | 1,547 | 3,186 | +106% | 0 | 0 | — |
case-06 | fail→pass | 9,099 | 2,709 | -70% | 1 | 1 | 0% | 1,167 | 3,185 | +173% | 0 | 0 | — |
case-07 | fail→pass | 18,312 | 6,566 | -64% | 1 | 1 | 0% | 2,503 | 3,935 | +57% | 0 | 0 | — |
case-09 | pass→pass | 8,601 | 4,184 | -51% | 1 | 1 | 0% | 1,501 | 3,557 | +137% | 0 | 0 | — |
case-10 | pass→pass | 6,100 | 2,114 | -65% | 1 | 1 | 0% | 1,003 | 3,078 | +207% | 0 | 0 | — |
case-11 | pass→pass | 10,014 | 3,441 | -66% | 1 | 1 | 0% | 1,840 | 3,353 | +82% | 0 | 0 | — |
case-12 | fail→pass | 7,054 | 2,808 | -60% | 1 | 1 | 0% | 1,113 | 3,260 | +193% | 0 | 0 | — |
case-13 | fail→pass | 8,569 | 2,621 | -69% | 1 | 1 | 0% | 1,410 | 3,157 | +124% | 0 | 0 | — |
case-14 | pass→pass | 8,947 | 3,479 | -61% | 1 | 1 | 0% | 1,341 | 3,285 | +145% | 0 | 0 | — |
case-15 | fail→pass | 6,041 | 5,069 | -16% | 1 | 1 | 0% | 961 | 3,621 | +277% | 0 | 0 | — |
case-16 | fail→pass | 11,706 | 3,260 | -72% | 1 | 1 | 0% | 1,984 | 3,292 | +66% | 0 | 0 | — |
case-17 | fail→fail | 13,298 | 11,617 | -13% | 1 | 1 | 0% | 2,008 | 4,140 | +106% | 0 | 0 | — |
case-18 | fail→pass | 11,166 | 3,332 | -70% | 1 | 1 | 0% | 1,700 | 3,249 | +91% | 0 | 0 | — |
case-19 | pass→pass | 9,804 | 8,261 | -16% | 1 | 1 | 0% | 1,896 | 4,309 | +127% | 0 | 0 | — |
case-20 | pass→pass | 12,306 | 11,039 | -10% | 1 | 1 | 0% | 2,191 | 4,592 | +110% | 0 | 0 | — |
case-21 | pass→pass | 15,270 | 13,121 | -14% | 1 | 1 | 0% | 2,506 | 4,971 | +98% | 0 | 0 | — |
case-22 | pass→pass | 13,334 | 4,253 | -68% | 1 | 1 | 0% | 1,356 | 3,348 | +147% | 0 | 0 | — |
case-23 | fail→pass | 13,683 | 7,455 | -46% | 1 | 1 | 0% | 1,953 | 4,204 | +115% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 23 cases were attempted, and 19 counted toward the lift figure. The other 4 produced results that are not comparable between the two arms, so they are excluded from the headline rather than averaged into it. The headline lift of +30 percentage points is the difference between those two pass rates over the 19 comparable cases. 1 case got worse with the skill loaded, and it is included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.