/slack:slack-clifrom slack
Helps developers use the Slack CLI to create, run, and manage Slack apps from the terminal, including authentication, local development, deployment, manifest editing, Web API calls, and documentation search.
Ships in slack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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.
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.
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.
~/.slack/bin/slack%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.
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.
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:
downloads.slack-edge.com)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.
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.
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 examplesIf 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.
--app and --team valuesWhen a command requires --app or --team:
SLACK_CMD app list from the project directory to see installed apps and their IDs.SLACK_CMD auth list to see authenticated workspaces and their team IDs.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:
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.
slack auth)Slack auth is per-team, not a single boolean. Run the seamless login flow below whenever any of these is true:
SLACK_CMD auth list already shows other teams.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.
The flow below is the same for every kind of workspace. /slackauthticket works in any workspace the developer belongs to, whether that is a developer sandbox, a Free Team, or a production workspace, so there is no sandbox-specific login. Which target to prefer is the create-slack-app skill's call (Step 3: Choose Where to Install the App).
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 "auth complete" when the developer asked to log in to a new team.
The agent drives this end-to-end — no separate terminal window, no browser confirmation.
SLACK_CMD login --no-prompt makes the CLI emit a single-use ticket and exit immediately instead of waiting on stdin. Slack itself renders the challenge code inside a workspace modal when the developer sends the /slackauthticket slash command — there is no browser step. The agent submits the challenge back to the CLI to complete login.
1. Start login and capture the ticket
SLACK_CMD login --no-prompt
The CLI prints a /slackauthticket <ticket> slash command and exits. Capture the ticket — you will need it in step 4. Sample output:
📋 Run the following slash command from any Slack channel in the workspace
you'd like to authenticate
/slackauthticket eyJ0eXAiOiJKV1QiLCJh…
? Slack will then show you a challenge code. Submit it via:
slack login --ticket <ticket> --challenge <code>
2. Hand the slash command to the developer
Show the full /slackauthticket … line and ask the developer to paste it into the message box of the Slack workspace they want to authenticate, then send it. Slack responds with a modal containing a short challenge code (e.g. JDt1IK7X).
3. Collect the challenge code
Use AskUserQuestion to ask the developer for the challenge code shown in the Slack modal. Wait for their answer — do not guess or default.
4. Complete login
SLACK_CMD login --ticket <ticket> --challenge <code>
On success the CLI returns the team name and ID. Verify with SLACK_CMD auth list and report the team back to the developer.
Troubleshooting: tickets are single-use and time-limited. If step 4 fails with an invalid/expired ticket or wrong challenge, restart from step 1 with a fresh SLACK_CMD login --no-prompt — do not retry the same ticket.
Use --team <team_id> on individual commands to target a specific workspace without switching globally.
If you catch yourself thinking any of these, you are about to regress to the old broken flow:
| Rationalization | Reality |
|---|---|
"auth list already shows teams, so login isn't needed." | Auth is per-team. The developer asked for a new team — drive the flow. |
"slack login needs browser confirmation, so I can't drive it." | False with --no-prompt. The challenge code appears in Slack's modal, not a browser. The agent runs both slack login invocations itself. |
"I should tell the developer to run slack login in a separate terminal." | Never. Step 5 is the agent's job from start to finish. |
All of these mean: run SLACK_CMD login --no-prompt yourself and follow the four numbered steps above.
slack run)Run SLACK_CMD run --help for all available flags.
Run SLACK_CMD app list from the project directory to check for installed apps:
--app=<app_id> in the run command.--team=<team_id> instead (get the team ID from SLACK_CMD auth list).Run this command as a background process so the developer can continue working:
If an app ID was found:
cd <project-dir> && SLACK_CMD run --app=<app_id>
If no apps — use the team ID:
cd <project-dir> && SLACK_CMD run --team=<team_id>
The first time an app is installed to an Enterprise organization, the CLI asks which of the organization's workspaces the app can access. A background process cannot answer, so the CLI stops with The input device is not a TTY or does not support interactivity and prints the prompt it would have shown:
› Choose a workspace to grant access:
All of them
Acme Sales T0123456789
Acme Support T0987654321
When you see this, ask the developer the same question, with the choices in the same order: all of the organization's workspaces first, then each workspace by name. Never choose for the developer. Granting all workspaces makes the app available to everyone in the organization, so it is the developer's decision. Then run the command again with their answer:
--org-workspace-grant=all--org-workspace-grant=<workspace_team_id>, using the T team ID printed next to that workspaceIf the CLI stops without listing the workspaces, ask the developer whether to grant all workspaces or just one, and for that workspace's team ID if they pick one.
Read the background process's output before saying anything to the developer. The workspace question above only shows up there, and the process has already exited when it does. Once the output shows the app has started, tell the developer the app is running in the background. They can ask:
Run SLACK_CMD manifest --help for subcommands (validate, info) and the --source local|remote flag.
Use SLACK_CMD manifest validate before deploying or when something seems wrong with the app configuration.
For any other command group (e.g., trigger, datastore, env, collaborator, external-auth, deploy), run SLACK_CMD <command> --help to discover subcommands and flags. Run SLACK_CMD help to see all available command groups.
SLACK_CMD is a placeholder — always substitute the actual command name resolved in Step 1.--help before constructing a command you have not used in the current session.slack trigger create without --trigger-def) cannot be run in the background. Tell the developer to run these in a new terminal window. slack login is not in this category — drive it inline using the --no-prompt / --ticket / --challenge flow in Step 5.slack run runs locally for development. slack deploy deploys to Slack's hosted infrastructure, unless .slack/hooks.json defines a deploy hook, in which case it runs that hook instead (see the deploy-slack-app skill). These are different operations, so do not confuse them.What SKILL.md sets; muted values are Claude Code's defaults
9 skills in this plugin
/block-kitUse when a developer wants to build or validate Block Kit layouts for Slack messages, modals, or Home tabs: message layouts, modals/forms/dialogs, Home tab interfaces, interactive buttons or menus, or modifying existing Block Kit JSON. Also trigger on any Slack UI component (sections, actions, inputs, headers, alerts, tables, carousels), the words "blocks" or "Block Kit Builder", a request to preview rendered blocks, or pasted JSON like "type": "section". Validates via the blocks.validate API method./create-slack-appUse when a developer wants to create, scaffold, or bootstrap a new Slack app or agent from scratch with the Slack CLI, or scaffold the project for a new app just created in App Settings (`--app`, `--template`, `--team`). Covers prerequisites, authentication, choosing a workspace to install into, and creating a project from a Bolt (JS or Python) template locally. Trigger on "create a Slack app", "new Bolt app", "start a Slack agent"./deploy-slack-appUse when a developer wants to deploy, host, or run a Slack app somewhere it keeps working after the local process stops, or mentions Railway, Heroku, `railway up`, `git push heroku`, `slack deploy`, a `deploy` hook in `.slack/hooks.json`, hosting a Socket Mode or Request URL (HTTP) Bolt app, deploying a Deno Slack SDK app (workflows, functions, and triggers) to Slack's managed hosting, deploying from Windows, graduating an app out of a developer sandbox, or tearing down a deployed app. Not for conceptual questions about how Slack app hosting works, which the `slack-docs` skill answers./slack-apiUse when a developer asks which Slack Web API method does something, needs a method's OAuth scopes or token type, wants to call or test a family.method endpoint (chat.postMessage, conversations.history, users.info, views.open), is handling cursor pagination (next_cursor) or rate limits (tier/ratelimited/Retry-After), or is debugging errors like missing_scope, invalid_auth, or channel_not_found. Also trigger on a pasted slack.com/api/ URL or docs.slack.dev/reference/methods link./slack-docsUse when answering a conceptual or how-to question about Slack platform features, or when asked to look up, fetch, or summarize a docs.slack.dev page, including a pasted docs.slack.dev link. Web API method reference pages (docs.slack.dev/reference/methods/...) belong to the `slack-api` skill. Covers finding and reading official Slack docs as clean markdown./slack-messagingUse when writing, drafting, scheduling, or improving a Slack message, announcement, or reply sent via the Slack MCP tools (slack_send_message, slack_send_message_draft, slack_schedule_message). Covers Slack markdown formatting, message structure, thread etiquette, reactions, and scheduling, and points to the right dialect for canvases and Block Kit.Other plugins' skills for the same job
npx claudepluginhub slackapi/slack-skills-plugin --plugin slack