К основному содержанию
скилл CX Codex

slack · acedatacloud — скилл для Claude Code: что делает и как установить

Ищет сообщения в открытых каналах Slack и отправляет ответы бота после подтверждения пользователя.

Apache-2.0 215 установок ★ 17 обновлён 2026-10-25

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add AceDataCloud/Skills --skill slack -a claude-code
Открыть на GitHub

Что делает slack

Скилл обращается к Slack Web API через системные вызовы curl и утилиту jq. Для выполнения запросов требуются две переменные окружения: $SLACK_TOKEN с правами бота для чтения доступных бесед и отправки текста, а также пользовательский $SLACK_USER_TOKEN для поиска по открытым каналам через assistant.search.context.

Бот не умеет вступать в каналы сам. Если бота ещё нет в закрытом канале или треде, API вернёт ошибку, поэтому приглашать приложение в нужный чат придётся вручную. Отправка сообщений защищена: агент запрашивает подтверждение текста и получателя перед публикацией, а без подтверждения оставляет черновик.

Какие задачи решает

  • найти сообщения об инцидентах в открытых каналах рабочей области
  • прочитать историю ветки или треда по временной метке
  • отправить проверенный ответ в канал от лица бота
  • найти профиль коллеги в Slack по адресу электронной почты

Примеры запросов агенту

  • Найди в открытых каналах Slack сообщения с фразой deployment issue
  • Покажи последние 15 сообщений из треда в канале C0123456789
  • Подготовь и отправь сообщение о релизе в канал C0123456789

Как установить slack

1Через Skills CLI (Vercel)

npx skills add AceDataCloud/Skills --skill slack -a claude-code

2Вручную: положить файлы

~/.claude/skills/slack/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/slack/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о slack

Как установить slack в Claude Code?

Выполните команду npx skills add AceDataCloud/Skills --skill slack -a claude-code. Скилл запишется в файл ~/.claude/skills/slack/SKILL.md.

Что делает скилл slack?

Он позволяет агенту искать сообщения по публичным каналам рабочей области, читать историю переписок, куда добавлен бот, и публиковать ответы после одобрения пользователя.

Почему бот не может прочитать закрытый канал?

Скилл не имеет права вызывать автоматическое вступление через API. Бот сможет прочитать переписку только после того, как участники добавят его в закрытый канал вручную.

Исходный текст

SKILL.md · Apache-2.0
---
name: slack
description: Search Slack public channels, read joined conversations, and send user-confirmed bot messages.
when_to_use: |
  Use when the user wants to search public Slack channels, read or summarize
  conversations the app has joined, or send a message as the connected bot.
connections: [slack]
allowed_tools: [Bash]
license: Apache-2.0
metadata:
  author: acedatacloud
  version: "1.4"
---

Use the [Slack Web API](https://api.slack.com/methods) with the connected
bot token in `$SLACK_TOKEN` for joined-channel reads and confirmed sends.
Use the separate user token in `$SLACK_USER_TOKEN` only for public-channel
search. Send either token only to `https://slack.com/api/` over HTTPS. Check
the JSON `ok` field and HTTP status for every response; report Slack's
error value when a call fails. Respect `Retry-After` on HTTP 429.

Messages are sent as the AceDataCloud bot, not as the user's Slack account.
The app cannot upload files or join channels. Bot channel and conversation
history is available only where the app has been added. Public search covers
public channels in the authorized user's workspace, including channels the
bot has not joined; it does not cover private channels or direct messages.
The bot token cannot use Slack's legacy `search.messages` method and cannot
use Real-time Search without a Slack event `action_token`. Never use the user
token to post a message.

## Search public-channel messages

Use Slack's Real-time Search API for a user-initiated public search. If
`$SLACK_USER_TOKEN` is absent, explain that the Slack connection needs
re-authorization for public search at
`https://studio.acedata.cloud/console/connectors`; do not silently substitute
a recent-history scan. Keep `channel_types` explicitly limited to
`public_channel` and `content_types` to `messages`. Request at most 20 results
per page, follow `next_cursor` only as needed, and give the user message
permalinks as sources. Do not persist Slack search results outside the
current task.

```sh
QUERY="deployment issue"
curl -sS -X POST https://slack.com/api/assistant.search.context \
  -H "Authorization: Bearer $SLACK_USER_TOKEN" \
  -H "Content-Type: application/json; charset=utf-8" \
  -d "$(jq -nc --arg q "$QUERY" \
    '{query:$q, channel_types:["public_channel"], content_types:["messages"], limit:20}')" \
  | jq '{ok, error, next_cursor, messages: [.results.messages[]? | {content, author_name, channel_name, message_ts, permalink}]}'
```

If Slack returns an error, report that error rather than presenting an empty
result as a successful search. Search results are limited to the authorized
user's public-channel access and Slack's search ranking and retention rules.

## Verify the connected workspace

```sh
curl -sS -H "Authorization: Bearer $SLACK_TOKEN" \
  https://slack.com/api/auth.test
```

Use the returned team and bot user to check that the connection targets the
workspace the user intended.

## List channels visible to the app

```sh
curl -sS -G -H "Authorization: Bearer $SLACK_TOKEN" \
  https://slack.com/api/conversations.list \
  --data-urlencode "types=public_channel,private_channel" \
  --data-urlencode "limit=200"
```

Follow `response_metadata.next_cursor` to paginate. Resolve channel names
to IDs from this response rather than inventing IDs.

## Read channel history or a thread

```sh
curl -sS -G -H "Authorization: Bearer $SLACK_TOKEN" \
  https://slack.com/api/conversations.history \
  --data-urlencode "channel=C0123456789" \
  --data-urlencode "limit=15"

curl -sS -G -H "Authorization: Bearer $SLACK_TOKEN" \
  https://slack.com/api/conversations.replies \
  --data-urlencode "channel=C0123456789" \
  --data-urlencode "ts=1777656720.123456"
```

Read a private channel or direct message only if the app is a member. If
Slack returns `not_in_channel` or `channel_not_found`, ask the user to add
the app to that conversation. Do not try to join it automatically.

## Find a keyword in one joined private channel or direct message

For a private channel or direct message that the bot has joined, fetch only
that conversation's recent history and filter locally. This is a bounded
recent-history scan, not Slack's public search. State the time window and
whether older messages remain unread. On new installs of
commercial apps outside the Slack Marketplace, Slack may limit
`conversations.history` to one call per minute with at most 15 messages;
respect `Retry-After` and do not fan out across channels.

```sh
KEYWORD="deploy"
curl -sS -G -H "Authorization: Bearer $SLACK_TOKEN" \
  https://slack.com/api/conversations.history \
  --data-urlencode "channel=C0123456789" \
  --data-urlencode "limit=15" \
  | jq --arg q "$KEYWORD" '{ok, error, has_more, matches: [.messages[]? | select((.text // "") | contains($q)) | {ts, user, text}]}'
```

If Slack returns an error, report it rather than claiming the search
succeeded. An empty match list is only a result for the messages fetched,
not proof that the keyword is absent from the channel's full history.

## Resolve a member

```sh
curl -sS -G -H "Authorization: Bearer $SLACK_TOKEN" \
  https://slack.com/api/users.lookupByEmail \
  --data-urlencode "[email protected]"
```

Use member details only to identify people in retrieved content. Do not send
unsolicited direct messages or enumerate members for outreach.

## Send a message or thread reply

Before each send, resolve the exact workspace, channel or existing
conversation, and final message text. Call `request_action_confirmation`
with `kind: "generic"` and show those three values. Send only if the user
confirms. If the confirmation tool is unavailable, return a draft. If this
is an unattended run, send only when the saved task already authorizes that
exact destination and content; otherwise return a draft.

The bot must already be a member of the target channel or conversation.
If Slack returns `not_in_channel` or `channel_not_found`, ask the user
to add the app there. Do not call `conversations.join`. Do not retry a
`chat.postMessage` request whose outcome is unknown; first check the
channel history to avoid duplicates.

```sh
curl -sS -X POST https://slack.com/api/chat.postMessage \
  -H "Authorization: Bearer $SLACK_TOKEN" \
  -H "Content-Type: application/json; charset=utf-8" \
  -d "$(jq -nc --arg ch "C0123456789" --arg text "Confirmed message" \
    '{channel:$ch, text:$text}')"
```

For a reply in an existing thread, include its exact `thread_ts` in the
payload. Check `ok`, `channel`, and `ts` in the response and report the
sent message link or channel and timestamp.

If `auth.test` returns `not_authed` or `invalid_auth`, ask the user to
reconnect Slack at `https://studio.acedata.cloud/console/connectors`.

© acedatacloud · Apache-2.0 · AceDataCloud/Skills

Похожие скиллы

Все скиллы по теме «Заметки, задачи и проекты» →

Сначала — slack от других авторов.

slack openclaw Скилл подключает Slack к рабочим процессам OpenClaw через message tool. Он нужен, когда агенту требуется читать и отправлять сообщения. CX Codex +1 3 100установок slack vercel-labs Локально эмулирует Slack Web API для разработки и тестирования интеграций без обращения к реальному Slack. CX Codex +1 212установок slack membrane Через Membrane CLI открывает агенту доступ к Slack: каналы, сообщения, файлы, напоминания. CX Codex +1 569установок slack-search официальный anthropics Скилл slack-search для Claude Code, Cursor и других платформ, который помогает искать сообщения, файлы, каналы и людей в Slack. CX Codex +1 3 300установок slack-automation davepoon Скилл slack-automation автоматизирует отправку сообщений, поиск по переписке, треды и реакции в Slack через Rube MCP от Composio. CX Codex +1 128установок c-slack daxaur Скилл c-slack даёт агенту доступ к Slack через CLI: сообщения в каналы и личку, загрузка файлов, ответы в тредах. CX Codex +1 ★ 179звёзд репо slack-messaging официальный anthropics Скилл slack-messaging для Claude Code помогает агенту писать сообщения для Slack с разметкой mrkdwn, выбирать структуру и учитывать контекст канала. Создаёт черновики и публикации. CX Codex +1 4 100установок connector-slack caffeinelabs Скилл connector-slack учит агента отправлять сообщения в канал Slack из Caffeine-канистры через пакет slack-client. Рецепт помечен как экспериментальный. CX Codex +1 18 400установок slack-workflows claude-office-skills Скилл slack-workflows для Claude Code описывает автоматизацию Slack: стендапы, согласование расходов, онбординг и алерты об инцидентах через slack-mcp. CX Codex +1 5 100установок

Из того же набора67

Весь набор →
google-tasks Управляет списками и задачами в Google Tasks через REST API с помощью curl и jq. Находит просроченные дела, группирует задачи по спискам и формирует сводки. CX Codex +1 216установок tencentcloud-cls-alarm Скилл tencentcloud-cls-alarm для Claude Code управляет тревогами Tencent Cloud CLS: политиками, группами уведомлений, временными глушителями и журналом срабатываний. Настраивает и проверяет оповещения. CX Codex +1 216установок linkedin Публикует текстовые и ссылочные посты в личной ленте LinkedIn через Posts API. Перед отправкой просит подтвердить текст. CX Codex +1 215установок gitlab Скилл учит агента работать с GitLab через glab: заводить issue, смотреть merge request, гонять пайплайны и искать по коду. CX Codex +1 215установок notion Скилл подключает Claude Code к Notion через REST API: он ищет, читает и изменяет страницы, а также работает с базами данных. CX Codex +1 215установок onepage-pdf Скилл onepage-pdf рендерит HTML-документ в один непрерывный высокий PDF-лист без разрывов страниц через headless Chrome и обрезает пустоту с помощью PyMuPDF. CX Codex +1 214установок devto Публикует статьи на dev.to, обновляет посты и собирает статистику просмотров и реакций через Forem API v1 прямо из терминала. CX Codex +1 213установок reddit Ищет обсуждения на Reddit, читает правила сабреддитов, отвечает и публикует посты. Работает с тредами и профилем через OAuth или cookies. CX Codex +1 212установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой