Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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…

slackapiот slackapi★ 177 звёзд на GitHub

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

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 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 go to 1d. 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 go to 1d.

1c. Ask about an alias, or install

If 1b fails or returns a different value, ask the developer one question using AskUserQuestion. The options cover both the alias and the install, so the developer chooses whether a remote script runs on their machine:

  • "I couldn't find the public Slack CLI on your system. Is it installed under a different name or alias, or should it be installed?"

  • Options:

    • "It's aliased as..." (let them provide the alias)
    • "Install it for me" (runs the Slack CLI install script from downloads.slack-edge.com)
    • "Show me the command, I'll install it"
  • Aliased: verify it with <alias> _fingerprint 2>/dev/null. If it outputs d41d8cd98f00b204e9800998ecf8427e, set SLACK_CMD=<alias> and go to 1d. Otherwise it isn't the public Slack CLI: tell the developer and ask again.

  • Install it for me: run the install script, then re-run 1a. The install script writes ~/.slack/bin/slack.

    curl -fsSL https://downloads.slack-edge.com/slack-cli/install.sh | bash
    
  • Show me the command: print the install command above and don't run it. Wait for the developer to say it's installed, then re-run 1a. If 1a still finds nothing, tell them and ask this question again.

Only run the install script when the developer picks "Install it for me". Any other answer, including one typed in by the developer, is not consent to run it. A typed answer like "I'll install it myself" takes the "Show me the command" path.

1d. Continue where you left off

Once SLACK_CMD is set, go back to the skill that sent you to this step, if one did. Continue right after the instruction that sent you here, not at that skill's next numbered step, because the rest of its current step may still apply (the slack-api skill checks authentication next, in the same step). For example, the create-slack-app skill continues at "Verify the CLI version". This matters most after the developer installs the CLI themselves, because the conversation paused there. If no other skill sent you here, go on to Step 2.

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

If a command or flag in this skill is missing from the help output, the installed CLI is older than this skill. Ask the developer to run SLACK_CMD upgrade, then check the help output again.

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

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

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

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

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

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

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

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

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

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), including starting an existing app to try a code change, 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 с