Skills

Hive.slack Notifications Setup

Set up a Slack notification channel (Sentinel) for a colony by driving the browser, ...

Install

npx skills add aden-hive/hive --skill hive.slack-notifications-setup -g -a claude-code -y
Repository
aden-hive/hive11.1k
Category
AI and agents
Updated
9d ago
License
Apache-2.0
Context cost
Mediumabout 2,441 tokens
Runs scripts
No, instructions only

What it does

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.

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 id slack, used to send alerts and call the Slack API.
  • an App-Level Token (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.

Before you start, check what already exists

  1. Run sentinel_setup({"action": "status"}). If it shows both slack bot and slack 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.
  2. Confirm the user is signed into the right Slack workspace: run 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.
  3. 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.

Read the whole SKILL.md on GitHub

More in AI and agents