CLI для Slack: сообщения, поиск по каналам и DM, аналитика каналов, локальная синхронизация.

Звёзды2 133
Авторmvanhorn

Установка

SKILL.md

<!-- GENERATED FILE — DO NOT EDIT. This file is a verbatim mirror of library/productivity/slack/SKILL.md, regenerated post-merge by tools/generate-skills/. Hand-edits here are silently overwritten on the next regen. Edit the library/ source instead. See the repository agent guide, section "Generated artifacts: registry.json, cli-skills/". --><!-- -->

Slack - Printing Press CLI

Prerequisites: Install the CLI

This skill drives the slack-pp-cli binary. You must verify the CLI is installed before invoking any command from this skill. If it is missing, install it first:

  1. Install via the Printing Press installer. It defaults binaries to $HOME/.local/bin on macOS/Linux and %LOCALAPPDATA%\Programs\PrintingPress\bin on Windows:<!-- -->
    npx -y @mvanhorn/printing-press-library install slack --cli-only
    
  2. Verify: slack-pp-cli --version
  3. Ensure the reported install directory is on $PATH for the agent/runtime that will invoke this skill.

If the npx install fails (no Node, offline, etc.), fall back to a direct Go install (requires Go 1.26.5 or newer):

go install github.com/mvanhorn/printing-press-library/library/productivity/slack/cmd/slack-pp-cli@latest

If --version reports "command not found" after install, the runtime cannot see the binary directory on $PATH. Do not proceed with skill commands until verification succeeds.

When to Use This CLI

Reach for this when the user wants:

  • send a Slack message to a channel or DM
  • search Slack across channels, DMs, and threads (live or synced)
  • list users, channels, usergroups, custom emoji, pinned items, or reminders
  • understand channel health (quiet channels, activity trends, response times, digest)
  • find stale or unanswered threads across the workspace
  • pull an activity summary for a user or channel
  • export channel history to JSONL for archival or migration
  • discover the funniest messages in public channels (local-sync-powered novelty query)

Skip it when the user wants to create Slack apps, workflows, or manage admin-only team settings beyond team access logs. Those surfaces are better served by the Slack web admin.

Two Auth Surfaces

Slack has two parallel token types and this CLI supports both:

TokenScopesWhen to use
SLACK_BOT_TOKEN (xoxb-)workspace-scoped bot permissionsDefault for post-message, read-channel, list-users, etc.
SLACK_USER_TOKEN (xoxp-)user-scopedDM history, search on behalf of a user, stars, reminders

Set whichever the workspace permits. If both are set, user-token wins for user-scoped endpoints and bot-token otherwise. Get a token at https://api.slack.com/apps -> your app -> OAuth & Permissions.

Argument Parsing

Parse $ARGUMENTS:

  1. Empty, help, or --help -> show slack-pp-cli --help
  2. Starts with install -> ends with mcp -> MCP installation; otherwise -> CLI installation
  3. Anything else -> Direct Use (map to the best command and run it)

MCP Server Installation

The CLI also ships an MCP server at slack-pp-mcp. Install and register:

go install github.com/mvanhorn/printing-press-library/library/productivity/slack/cmd/slack-pp-mcp@latest
claude mcp add -e SLACK_BOT_TOKEN=xoxb-... slack-pp-mcp -- slack-pp-mcp

Ask the user for the actual token value before running.

Direct Use

  1. Check installed: which slack-pp-cli. If missing, offer CLI installation.
  2. Discover commands: slack-pp-cli --help; drill into slack-pp-cli <cmd> --help.
  3. Match the user query to the best command (see Notable Commands below).
  4. Execute with --agent for structured output:<!-- -->
    slack-pp-cli <command> [args] --agent
    
  5. The --agent flag sets --json --compact --no-input --no-color --yes.

Source routing (local vs live) is controlled by --data-source: auto (default) prefers local-synced data with live fallback; live always hits the API; local runs fully offline against the SQLite snapshot. Run slack-pp-cli sync first to populate the local store for analytics queries.

Notable Commands

CommandWhat it does
conversationsList channels and DMs in the workspace
usersList all users in the workspace
search <query>Full-text search across synced messages (or live API with --data-source live)
digestDaily/weekly activity digest from locally synced data
healthChannel health report (activity, engagement, stagnation)
quietFind dead or low-activity channels
response-timesAverage first-response time in threads
threads-staleUnanswered or stale threads
activity <user-or-channel>Activity summary across channels from local sync
trendsWeek-over-week channel activity trends
syncPopulate the local SQLite store for offline analytics
emoji / reminders / pins / starsWorkspace directory queries
teamAccess logs (requires admin token)

Run any command with --help for full flag documentation.

Agent Mode

Add --agent to any command. Expands to: --json --compact --no-input --no-color --yes.

  • Pipeable — JSON on stdout, errors on stderr
  • Filterable — --select keeps a subset of fields, with dotted-path support (see below)
  • Previewable — --dry-run shows the request without sending
  • Cacheable — GET responses cached for 5 minutes, bypass with --no-cache
  • Non-interactive — never prompts, every input is a flag

Filtering output

--select accepts dotted paths to descend into nested responses; arrays traverse element-wise:

slack-pp-cli <command> --agent --select id,name
slack-pp-cli <command> --agent --select items.id,items.owner.name

Use this to narrow huge payloads to the fields you actually need — critical for deeply nested API responses.

Response envelope

Data-layer commands wrap output in {"meta": {...}, "results": <data>}. Parse .results for data and .meta.source to know whether it's live or local. The N results (live) summary is printed to stderr only when stdout is a TTY; piped/agent consumers see pure JSON on stdout.

Exit Codes

CodeMeaning
0Success
2Usage error (wrong arguments)
3Resource not found (channel, user, message)
4Authentication required (token missing or invalid)
5API error (Slack upstream, including not_in_channel, channel_not_found)
7Rate limited (Slack 429; CLI honors Retry-After)

Вставить в README

Ссылка на карточку для вашего README — без картинок и счётчиков.

[DarkPlay: pp-slack](https://darkplay.ru/ai/skills/mvanhorn-printing-press-library-pp-slack)

Похожие скиллы и другие разделы каталога

Популярное в разделе «Скиллы»

Самые востребованные скиллов раздела по установкам и звёздам.

find-skillsvercel-labs · Помогает находить и устанавливать навыки агентов по запросам вроде «как сделать X»…
4 400 000 устан.
grill-memattpocock · Настойчивое интервью для доработки плана или дизайна.
1 600 000 устан.
hyperframesheygen-com · Обязательная точка входа для любых задач по видео, анимации и motion-графике в…
1 600 000 устан.
hyperframes-cliheygen-com · Цикл разработки HyperFrames CLI: init, add, render, preview, publish и другие команды.
1 600 000 устан.
agent-browservercel-labs · CLI для автоматизации браузера для ИИ-агентов: навигация по страницам, заполнение форм…
1 600 000 устан.
media-useheygen-com · Agent Media OS: единый навык для медиа в HyperFrames — BGM, SFX, изображения, голос, LUT.
1 500 000 устан.
hyperframes-registryheygen-com · Установка и подключение блоков реестра в композиции HyperFrames через add и catalog.
1 400 000 устан.
grill-with-docsmattpocock · Настойчивое интервью для доработки плана или дизайна, попутно создающее документацию (ADR…
1 300 000 устан.
improve-codebase-architecturemattpocock · Поиск в кодовой базе возможностей для углубления, визуальный HTML-отчёт о них и детальный…
1 300 000 устан.
tddmattpocock · Разработка через тестирование (TDD): red-green-refactor и интеграционные тесты.
1 300 000 устан.
Похожее в других разделах каталога

Соседние разделы каталога: возможно, нужный инструмент живёт там.

Chief Of Staffaffaan-m · Личный руководитель коммуникаций, который сортирует почту, Slack, LINE и Messenger…
225 587 ★
example-skillsanthropics · Набор примеров навыков, демонстрирующих разные возможности: создание навыков, разработку…
17 комп.
slackanthropics · Интеграция с рабочим пространством Slack. Поиск сообщений, доступ к каналам, чтение…
100 комп.
slack-by-salesforceanthropics · Интеграция со Slack для поиска сообщений, отправки уведомлений, управления канвасами и…
233 комп.
ansonanthropics · Проверенная на практике настройка AI-коллеги для Claude Code, Slack, Notion, Gmail и…
38 комп.
boss-ai-agentanthropics · Промежуточный слой управления ИИ для Claude Code: 14 философий менторов, 9 культурных…
38 комп.
claude-code-el-slackanthropics · Источник событий Slack для плагина el: сообщения в реальном времени без опроса.
38 комп.
claude-opsanthropics · Центр бизнес-операций: утренний брифинг по инфраструктуре, CI, инбоксам, PR и спринтам.
38 комп.
clearskies-cowork-pluginanthropics · Объединяет Salesforce, Gong, Google, Slack и другие в граф контекста клиента, доступный…
38 комп.
composio-mcpanthropics · Composio помогает Claude находить нужные инструменты, подключаться к приложениям и…
38 комп.

Лучшие ИИ-инструменты для генерации видео

Генерация видео

Подборка нейросетей для генерации и монтажа видео. Инструменты, которые превращают текст в готовые ролики, экономят часы на съемках и постпродакшне. Подходит для SMM-специалистов,

VEED.IOVeed
По запросу
5.0
MootionMootion
По запросу
5.0
FlyviFlyvi
Есть бесплатный тариф
4.9
Google Veo 3.1Google
Платно
4.9
Sora (OpenAI)OpenAI
Платно
4.9
PikaPika
Платно
4.9
captions space
Есть бесплатный тариф
4.8
Клайп
Есть бесплатный тариф
4.8
viralpulse.appViralpulse
По запросу
4.8
Viral Maker AIViral-maker
Есть бесплатный тариф
4.8

Лучшие ИИ-инструменты для генерации текста и копирайтинга

Генерация текста и копирайтинг

Подборка нейросетей для генерации текстов и копирайтинга. Сервисы, которые помогают создавать статьи, посты и рекламные объявления с нуля или по черновику, экономя часы рутинной ра

NeuroscribeNeuroscribe
Есть бесплатный тариф
5.0
GoGPTGogpt
По запросу
5.0
ChatsonicChatsonic
По запросу
4.9
НейроТекстерNeuro-texter
По запросу
4.9
ChatGPTOpenAI
По подписке
4.9
Редактум
Есть бесплатный тариф
4.8
ChadGPTChadgpt
По запросу
4.8
Cosmo ScribeCosmoscribe
Есть бесплатный тариф
4.8
Memo HelperCopilot33
По запросу
4.8
LibraChatLibrachat
Есть бесплатный тариф
4.8

Лучшие ИИ-инструменты для генерации изображений

Генерация изображений

Подборка нейросетей для генерации изображений от фотореализма до концепт-арта. Сервисы, которые экономят часы ручной работы, создавая визуал для блогов, рекламы и дизайна за минуты

MagviMagvi
По запросу
5.0
DALL-E 3OpenAI
По подписке
5.0
SupaLabSupalab
По запросу
5.0
Freestyling.aiFreestyling
Есть бесплатный тариф
4.9
ArtGeneration.meArtgeneration
Есть бесплатный тариф
4.9
BigjpgBigjpg
По запросу
4.9
Художник от VKVK
Бесплатно
4.9
Wonderink — ИИ-книги
Есть бесплатный тариф
4.8
Avato AI12ai
По запросу
4.8
Virton AIVirton
По запросу
4.8