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★ 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.exeas 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 outputsd41d8cd98f00b204e9800998ecf8427e, setSLACK_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 | bashShow 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 groupsSLACK_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 listfrom the project directory to see installed apps and their IDs. - Team ID: Run
SLACK_CMD auth listto 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
Установить 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), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic