본문으로 건너뛰기
Skillpedia
이메일 및 메시지11k · #11806

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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/aden-hive/hive/blob/main/core/framework/skills/_default_skills/slack-notifications-setup/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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 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.

  1. Click Create New App → From a manifest, pick the workspace, click Next.
  2. Switch to the JSON tab (not YAML — the browser type tools strip newlines and break YAML).
  3. 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.

  1. 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_text strips newlines (breaks the manifest) and the type path tries to parse the braces. Don't type into it.
  • A paste/InputEvent that carries the text gets appended on top of the current 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 '…':

// 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.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬