Command Palette

Search for a command to run...

Назад к скиллам
скилл № 70155

slack-cli

Use when a developer works with the Slack CLI (slack command) to create, run, or manage a Slack app from the terminal: logging in or authenticating (slack…

БесплатноБез исполняемых скриптов
CognitionAIот CognitionAI★ 42 звезды на GitHub

Установить slack-cli в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Slack CLI

Use the Slack CLI to create, run, and manage Slack apps — including calling Web API methods directly and searching Slack developer documentation from the terminal.

For initial setup (sandbox creation, project scaffolding from templates), use the slack:create-slack-app skill instead.


Step 1: Detect the Slack CLI

Resolve the path to the public Slack CLI before running any other command. We refer to the resolved value as SLACK_CMD — substitute it everywhere below. Try 1a → 1b → 1c in order; do not skip ahead.

1a. Standard install path (preferred — no verification needed)

The official install scripts place the binary at a fixed per-user path. If the file exists, use it directly: only the install script writes to that path.

  • macOS / Linux: ~/.slack/bin/slack
  • Windows: %USERPROFILE%\AppData\Local\slack-cli\bin\slack.exe (or %USERPROFILE%\.slack-cli\bin\slack.exe as a fallback)

POSIX shell:

[ -x "$HOME/.slack/bin/slack" ] && echo "$HOME/.slack/bin/slack"

PowerShell:

$p = "$env:USERPROFILE\AppData\Local\slack-cli\bin\slack.exe"
if (Test-Path $p) { $p } elseif (Test-Path "$env:USERPROFILE\.slack-cli\bin\slack.exe") { "$env:USERPROFILE\.slack-cli\bin\slack.exe" }

If a path is returned, set SLACK_CMD to that absolute path and proceed to Step 2. Do not also run _fingerprint.

1b. slack on PATH (verify with fingerprint)

If 1a found nothing, try slack on PATH:

slack _fingerprint 2>/dev/null

If it outputs d41d8cd98f00b204e9800998ecf8427e, set SLACK_CMD=slack and proceed.

1c. Ask about an alias, or install

If 1b fails or returns a different value, ask the developer using AskUserQuestion:

  • "The slack command on your system doesn't appear to be the public Slack CLI. Do you have it installed under a different name or alias?"

  • Options: "Yes, it's aliased as..." (let them provide the alias), "No, I need to install it"

  • If they provide an alias, verify it with <alias> _fingerprint 2>/dev/null and set SLACK_CMD=<alias>.

  • If they need to install it, run:

    curl -fsSL https://downloads.slack-edge.com/slack-cli/install.sh | bash
    

    Then re-run 1a — the install script will have written ~/.slack/bin/slack.

Common mistakes: Don't use which slack to discover the binary — which resolves any shell alias and defeats the point of 1a. In Git Bash on Windows, use the POSIX probe form, not PowerShell.


Step 2: Command Discovery via Help

Always run SLACK_CMD <command> --help before constructing a command you have not used in the current session. Do not guess at flags — the help output is the source of truth.

  • SLACK_CMD help — lists all available command groups
  • SLACK_CMD <command> --help — shows subcommands, flags, and usage examples

Resolving --app and --team values

When a command requires --app or --team:

  • App ID: Run SLACK_CMD app list from the project directory to see installed apps and their IDs.
  • Team ID: Run SLACK_CMD auth list to see authenticated workspaces and their team IDs.

Step 3: Searching Documentation (slack docs search)

Search Slack's developer documentation directly from the terminal.

SLACK_CMD docs search "<query>" --output=text --limit=5

Use --output=text for concise terminal-readable results. Use this when you are already running CLI commands and want to:

  • Check a Slack feature before implementing it
  • Verify API behavior or required scopes
  • Look up Block Kit elements, event types, or method parameters

Step 4: Calling Web API Methods (slack api)

Call any Slack Web API method directly. Run SLACK_CMD api --help for full details and examples.

Parameters are passed as positional key=value pairs (NOT --key=value flags):

SLACK_CMD api chat.postMessage channel=C0123456789 text="Hello from the CLI"

Important distinction: --team, --token, --json, and --data are meta-flags (prefixed with --). API method parameters use positional key=value syntax without dashes.

Reference: Full method list at https://docs.slack.dev/reference/methods.md.


Step 5: Authentication (slack auth)

When to run this flow

Slack auth is per-team, not a single boolean. Run the seamless login flow below whenever any of these is true:

  • The developer is not authenticated to any team yet.
  • The developer wants to add a new team / workspace / sandbox, even if SLACK_CMD auth list already shows other teams.
  • The developer asks to log in, switch teams, or re-authenticate.

SLACK_CMD auth list showing other teams is not a reason to skip login — those are different teams. Ask the developer which team they want, then run the flow.

Inspect existing auth (optional)

SLACK_CMD auth list

Use this to show the developer which teams are already authenticated, or to confirm a successful login. Do not treat a non-empty list as "a

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

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

Use when a developer works with the Slack CLI (slack command) to create, run, or manage a Slack app from the terminal: logging in or authenticating (slack login), adding a team or switching workspaces, running locally (slack run), deploying, editing the app manifest, calling Web API methods (slack api), or searching Slack docs (slack docs search).

Как установить скилл slack-cli?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл slack-cli запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить slack-cli с