Official agent skill

Slack API

by slackapi in slackapi/slack-skills-plugin

A skill your agent uses 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…

OfficialMITAuto-check passedBackend & APIs

Install Slack API

skills CLI
$ npx skills add slackapi/slack-skills-plugin --skill slack-api -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install slackapi/slack-skills-plugin slack-api --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/slackapi/slack-skills-plugin.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/slack-api .claude/skills/slack-api && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
slack-api
GitHub stars
144
Token cost
~3.3k tokens
SKILL.md length
1,671 words
Files
1
Skills in repo
7
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses 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…

  • Works in 6 steps: Identify the Method (Discover) → Read the Method Contract (Navigate) → Authenticate and Scope → …
  • A developer asks which Slack Web API method does something
  • SKILL.md covers Fast Path (for clear, specific…, Step 1: Identify the Method…, Step 2: Read the Method… and Step 3: Authenticate and Scope, plus 4 more sections
  • Calls curl; reaches docs.slack.dev and slack.com

What it does

Slack API is an agent skill from slackapi/slack-skills-plugin, published by the product's own GitHub organization. Use 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 (nextcursor) or rate limits (tier/ratelimited/Retry-After), or is debugging errors like missingscope, invalidauth, or channelnotfound. Also trigger on a pasted slack.com/api/ URL or docs.slack.dev/reference/methods link.

Its SKILL.md is about 3.3k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Backend & APIs, covering Rate limiting and OAuth and OpenID Connect. It works with Slack. The repository describes itself as: Claude Code, Codex, Cursor, and npx skills plugin that enables your AI tools with a Slack MCP Server and Slack Developer Skills. The licence is MIT.

When your agent uses it

  • A developer asks which Slack Web API method does something
  • Needs a methods OAuth scopes
  • Test a family.method endpoint (chat.postMessage
  • Conversations.history

Example prompts

  • “/slack-api”

Requirements

  • Python 3

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Identify the Method (Discover)
  2. Read the Method Contract (Navigate)
  3. Authenticate and Scope
  4. Call the Method (Manage)
  5. Handle Pagination
  6. Handle Rate Limits and Errors

What it can do on your machine

Read from SKILL.md and the folder at commit 64c3f33. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • curl

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • docs.slack.dev
    • slack.com
    • api.slack.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Slack API loads about 3.3k tokens when it runs. Until then it costs about 123 tokens; SKILL.md has 1,671 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~123
When it runs · the whole SKILL.md, loaded when a task matches
~3.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from slackapi/slack-skills-plugin at commit 64c3f33, republished under its MIT licence (© slackapi). 1,671 words, ~3,297 tokens.

Download SKILL.mdSave it as .claude/skills/slack-api/SKILL.md (or your agent's skills folder).
name
slack-api
description
Use 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.
argument-hint
[method.name | family]

Slack Web API

Help the developer discover the right Web API method, read its contract, and call it correctly. Slack exposes hundreds of methods named in family.method dot notation (e.g. chat.postMessage, conversations.history) at https://slack.com/api/<method>. Every method's doc page follows a fixed URL pattern, so the contract for any method is always one fetch away.

If $0 is provided, it is either a full method.name (jump to Step 2 to read its contract) or a family name (go to Step 1 and find it in the index).

Critical rules:

  • Verify a method name and its required scopes against its doc page before calling it — never invent method names or guess scopes. Method names use family.method dot notation.
  • Every response has a top-level ok boolean. Always check ok before using the result; on ok: false, read the error string.
  • Method names, scopes, rate tiers, and arguments come from the live doc page (https://docs.slack.dev/reference/methods/<method-lowercased>.md). The docs are the source of truth — discover from the live index, read the contract from the method's own page.

DO NOT rules:

  • DO NOT assume a method is GET — many are POST. Check the doc page.
  • DO NOT hardcode bearer tokens into committed code or share them in plain text.
  • DO NOT use deprecated methods (files.upload, dialog.open, rtm.*, oauth.access, search.*, stars.*, reminders.*) without checking the replacement — a deprecated method's own doc page names what supersedes it; prefer the replacement for new apps.
  • DO NOT paginate by incrementing a page number — Slack uses opaque cursors (see Step 5).

Execution posture — run reads, confirm writes:

  • Read-only methods (*.list, *.info, *.history, conversations.members, auth.test, etc.) may be run directly to help the developer.
  • State-changing or destructive methods (chat.postMessage/update/delete, any *.delete/*.remove/*.kick/*.archive, and all admin.*) — prepare the exact command and confirm with the developer before running it.

Fast Path (for clear, specific requests)

If the developer already knows the method — they named it, pasted a https://slack.com/api/<method> URL or a docs.slack.dev/reference/methods/<method> link, or gave a family.method — skip discovery:

  1. Go to Step 2 to read the method's contract.
  2. Go to Step 4 to call it (honoring the execution posture above).

Full-workflow indicators (start at Step 1):

  • "Which method does X?" / "How do I list/fetch/post … via the API?"
  • The capability is known but the method name is not.
  • Exploratory questions about what the API can do.

Step 1: Identify the Method (Discover)

Map the developer's intent to a family, then to a candidate method.

Browsing the index

WebFetch the live method index:

text
https://docs.slack.dev/reference/methods.md

It lists every Web API method in family.method notation with a one-line description and a link to that method's own doc page. It is complete and always current — scan it for a candidate, then follow the method's link into Step 2 to read the contract (the index has descriptions only; rate tier, scopes, token type, and pagination all live on the per-method page).

Never publish or call a method name you have not seen on a live page.

Searching the docs

When you would rather search by keyword than scan the index, and the Slack CLI is available, use the slack:slack-cli skill — Step 3: Searching Documentation (slack docs search) — to query Slack's docs from the terminal. That step covers the command and flags; results will point you to the method's reference page, which you then read in Step 2. Without the CLI, WebFetch the index (https://docs.slack.dev/reference/methods.md) and scan it instead.


Step 2: Read the Method Contract (Navigate)

Fetch the method's doc page with WebFetch. Either follow the method's link from the index (Step 1) or construct the URL — the path segment is all-lowercase and ends in .md:

text
https://docs.slack.dev/reference/methods/<method-lowercased>.md

For example, conversations.members → https://docs.slack.dev/reference/methods/conversations.members.md, and chat.postMessage → https://docs.slack.dev/reference/methods/chat.postmessage.md. When in doubt about casing, follow the index link rather than building the URL by hand.

Every method page documents, consistently:

  • HTTP method (GET / POST) and the endpoint https://slack.com/api/<method>
  • Required OAuth scopes and the token type (bot xoxb- vs user xoxp-)
  • Arguments — required vs optional, with types
  • An example request and response
  • An errors table (method-specific codes)
  • The rate-limit tier

Extract the required arguments and required scopes before calling. For what these cross-cutting concepts mean in general — beyond what the method page states — the canonical references are: the response envelope, POST bodies, and auth at https://docs.slack.dev/apis/web-api.md; pagination at https://docs.slack.dev/apis/web-api/pagination.md; and rate-limit tiers at https://docs.slack.dev/apis/web-api/rate-limits.md.


Step 3: Authenticate and Scope

Calling any non-public method requires a token with the right scopes and type. This skill's job here is to determine, from the contract you read in Step 2, which token type and scopes the method needs — independent of how you ultimately send the token.

From the contract you read in Step 2:

  • Confirm the token type — a bot token cannot call a user-only method (the method's doc page states which token types it accepts), and vice versa. For what each token prefix (xoxb-, xoxp-, xapp-) is and when to use it, see https://docs.slack.dev/authentication/tokens.md.
  • Note the required scopes. If a call later fails with missing_scope, the response's needed and provided fields name the gap — add the needed scope to the app manifest and reinstall the app.
  • admin.* methods require an Enterprise Grid org-level token.

A couple of methods need no auth: api.test (connectivity), auth.test (validates whatever token you do send) and blocks.validate.

You need a token only when the method requires one. There are two ways to get one — pick whichever fits the developer's setup. The Slack CLI is optional: if the developer does not have it and prefers not to install it, take Path B rather than forcing an install.

Path A: Use the Slack CLI (if installed or wanted)

The CLI supplies an authenticated session, so once the developer is logged in you can call methods without handling a token yourself (Step 4, "Via the Slack CLI").

Use the slack:slack-cli skill — Step 1: Detect the Slack CLI — to check whether the public Slack CLI is installed and resolve its command name. That step also proposes installing the CLI when it is absent. The fingerprint check, alias fallback, and install instructions all live there; do not duplicate them here.

Once resolved, use the detected command name for all CLI commands in this skill. We refer to it as SLACK_CMD — substitute the actual resolved command name everywhere you see SLACK_CMD.

Use the slack:slack-cli skill — Step 5: Authentication (slack auth) — to check the developer's login state and, if needed, walk them through slack login. Authentication mechanics live there.

Show full SKILL.md (615 more words)Show less
Path B: No CLI — bring your own token

You do not need the CLI to call a method. Get a token of the type you determined above from the app's OAuth & Permissions page in the Slack app config (https://api.slack.com/apps → your app → OAuth & Permissions → OAuth Tokens): the Bot User OAuth Token (xoxb-…) or the User OAuth Token (xoxp-…). That page also lists the scopes currently granted — confirm the ones from Step 2 are present. Then send that token with curl or an SDK in Step 4 ("Via raw HTTP" / "Via an SDK").


Step 4: Call the Method (Manage)

First apply the execution posture: if the method changes state (post/update/delete/archive/kick, or any admin.*), show the developer the exact command and get a yes before running it. Read-only calls can be run directly.

Via the Slack CLI (if installed)

To call a method from the terminal, use the slack:slack-cli skill — Step 4: Calling Web API Methods (slack api). That step covers the SLACK_CMD api <method> key=value … syntax so that it is not repeated here. Pass the required arguments you gathered from the method's doc page in Step 2.

The CLI uses the developer's authenticated session, so it is the simplest path once they are logged in (Step 3).

Via raw HTTP (curl)

Use the Bash tool when the developer wants a raw request or isn't using the CLI. Send the token in the Authorization header — the bot or user token from Step 3 (Path B, or the CLI session).

Form-encoded (the default for most methods):

bash
curl -s -X POST 'https://slack.com/api/conversations.list' \
  -H 'Authorization: Bearer xoxb-YOUR-TOKEN' \
  -d 'types=public_channel&limit=200'

JSON body (for methods taking complex arguments like blocks, view, attachments, metadata):

bash
curl -s -X POST 'https://slack.com/api/chat.postMessage' \
  -H 'Authorization: Bearer xoxb-YOUR-TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{"channel":"C0123456789","text":"Hello from the API"}'

Check the method's page for which content type it expects. With form encoding, a structured argument is passed as a JSON-encoded string value (e.g. blocks=[...]).

Via an SDK

In Bolt and the Slack SDKs, each method is a client function whose arguments match the doc page's argument table:

  • JavaScript: await client.chat.postMessage({ channel, text, blocks })
  • Python: client.chat_postMessage(channel=channel, text=text, blocks=blocks)

(Note the JS dot form chat.postMessage vs the Python underscore form chat_postMessage.) To construct the blocks/view payload these calls take, use the slack:block-kit skill — this skill treats that payload as an opaque argument and focuses on the method call around it.


Step 5: Handle Pagination

Methods that return collections use cursor pagination, not page numbers. A method's doc page states whether it paginates, and the full list of cursor-paginated methods is under Methods supporting cursor-based pagination at https://docs.slack.dev/apis/web-api/pagination.md:

  1. Call with a limit (page size — check the method's max).
  2. Read response_metadata.next_cursor from the response.
  3. If it is non-empty, call again with cursor=<next_cursor>.
  4. Repeat until next_cursor comes back empty.
bash
# First page
curl -s -X POST 'https://slack.com/api/conversations.history' \
  -H 'Authorization: Bearer xoxb-YOUR-TOKEN' \
  -d 'channel=C0123456789&limit=200'

# Next page — pass the cursor from response_metadata.next_cursor
curl -s -X POST 'https://slack.com/api/conversations.history' \
  -H 'Authorization: Bearer xoxb-YOUR-TOKEN' \
  -d 'channel=C0123456789&limit=200&cursor=dXNlcjpVMDYxTkZUVDI='

Cursors are opaque — never construct, parse, or reuse an old one.


Step 6: Handle Rate Limits and Errors

When ok is false, branch on the error string:

  • For method-specific codes, read the errors table on the method's doc page (Step 2) — it lists every error that method returns, including cross-cutting ones like not_authed, invalid_auth, missing_scope, channel_not_found, and invalid_arguments.
  • For what the envelope itself means (ok, error, warning, response_metadata), see Evaluating responses at https://docs.slack.dev/apis/web-api.md.
  • response_metadata.messages often pinpoints a malformed argument.

Rate limits: on HTTP 429 / error: "ratelimited", honor the Retry-After response header (seconds) — wait, then retry. Do not retry in a tight loop. Each method's tier (1–4 or special) caps calls per minute; the tier table is at https://docs.slack.dev/apis/web-api/rate-limits.md, and newer non-Marketplace apps face stricter caps on some methods, so trust the method's own page for the exact number.


Notes

  • Slack Lists methods use the slackLists.* prefix — a bare lists.* name does not exist.
  • Scope: this skill owns the method layer — which method, its contract, and the call around it. CLI auth and calls are delegated to slack:slack-cli; Block Kit payloads to slack:block-kit.

© slackapi, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/slack-api of slackapi/slack-skills-plugin.

Open the folder on GitHubat commit 64c3f33

Compare with similar skills

Slack API next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Slack API compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Slack API this skillslackapi/slack-skills-plugin144—~3.3kAutomated safety check: PassMIT
Better Auth Security Best PracticesEpicenterHQ/epicenter4.8k—~896Automated safety check: PassCustom licence
Socialite Developmenthexlet-volunteers/hexlet-sicp1145 repos~1.2kAutomated safety check: PassMIT
Add Channel Connect Buttonnovuhq/novu40k—~1.6kAutomated safety check: PassCustom licence
Frappe Core APIImpertio-Studio/Frappe_Claude_Skill_Package1871 repos~3.2kAutomated safety check: PassMIT
Frappe Errors APIImpertio-Studio/Frappe_Claude_Skill_Package1871 repos~4kAutomated safety check: PassMIT

Similar skills

  • Better Auth security hardening: rate limits, secrets, CSRF, trusted origins, cookies, sessions, OAuth tokens, and audit logging.

    4.8k GitHub stars~896 tokensUpdated today
    Backend & APIsAuto-check passed
  • Socialite Development

    hexlet-volunteers/hexlet-sicp

    Manages OAuth social authentication with Laravel Socialite. An agent skill from hexlet-volunteers/hexlet-sicp.

    114 GitHub starsUsed in 5 repos~1.2k tokens
    Backend & APIsAuto-check passed
  • Build a new channel Connect button (e.g. An agent skill from novuhq/novu.

    40k GitHub stars~1.6k tokensUpdated today
    Backend & APIsAuto-check passed
  • Frappe Core API

    Impertio-Studio/Frappe_Claude_Skill_Package

    A skill your agent uses when building ERPNext/Frappe API integrations (v14/v15/v16) including REST API, RPC API, authentication, webhooks, and rate limiting.

    187 GitHub starsUsed in 1 repo~3.2k tokens
    Backend & APIsAuto-check passed
  • Frappe Errors API

    Impertio-Studio/Frappe_Claude_Skill_Package

    A skill your agent uses when debugging or handling API errors in Frappe/ERPNext v14/v15/v16.

    187 GitHub starsUsed in 1 repo~4k tokens
    Backend & APIsAuto-check passed
  • Add a new Rome-managed OAuth integration for a third-party service so a user can delegate access by clicking Connect, and Rome can act on the service with the delegated token (the GitHub/Slack model…

    717 GitHub stars~3.6k tokensUpdated today
    Backend & APIsAuto-check passed

More from slackapi/slack-skills-plugin

  • Block Kit

    slackapi/slack-skills-plugin

    Official

    A skill your agent uses 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…

    144 GitHub stars~4.5k tokensUpdated today
    Auto-check passed
  • Create Slack App

    slackapi/slack-skills-plugin

    Official

    A skill your agent uses when a developer wants to create, scaffold, or bootstrap a new Slack app or agent from scratch with the Slack CLI.

    144 GitHub stars~3.1k tokensUpdated today
    Auto-check passed
  • Slack Docs

    slackapi/slack-skills-plugin

    Official

    A skill your agent uses 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…

    144 GitHub stars~2.2k tokensUpdated today
    Auto-check passed
  • Slack Messaging

    slackapi/slack-skills-plugin

    Official

    A skill your agent uses when writing, drafting, scheduling, or improving a Slack message, announcement, or reply sent via the Slack MCP tools (slacksendmessage, slacksendmessagedraft…

    144 GitHub stars~1.3k tokensUpdated today
    Auto-check passed
  • Slack Search

    slackapi/slack-skills-plugin

    Official

    A skill your agent uses when locating messages, files, channels, or people across Slack, or gathering context before answering, with the search MCP tools (slacksearchpublic…

    144 GitHub stars~1.5k tokensUpdated today
    Auto-check passed
  • Test Slack App

    slackapi/slack-skills-plugin

    Official

    A skill your agent uses when a developer wants to test, try out, smoke-test, verify, or confirm that a Slack app built with the Slack CLI (or a plain Bolt app) actually works, by running it in a…

    144 GitHub stars~2.4k tokensUpdated today
    Auto-check: notes

Works with

Categories

Questions about Slack API

What does Slack API do?

A skill your agent uses 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…. Slack API is an agent skill from slackapi/slack-skills-plugin, published by the product's own GitHub organization.open), is handling cursor pagination (nextcursor) or rate limits (tier/ratelimited/Retry-After), or is debugging errors like missingscope, invalidauth, or channelnotfound.

When should I use Slack API?

Slack API fits situations like: A developer asks which Slack Web API method does something; needs a methods OAuth scopes; test a family.method endpoint (chat.postMessage; conversations.history.

How do I install Slack API in Claude Code?

Run `npx skills add slackapi/slack-skills-plugin --skill slack-api -a claude-code`. Or copy the skill folder (skills/slack-api in slackapi/slack-skills-plugin) into .claude/skills/slack-api in your project. Claude Code loads it when a task matches its description.

How do I install Slack API in Codex?

Run `npx skills add slackapi/slack-skills-plugin --skill slack-api -a codex`. Or copy the skill folder (skills/slack-api in slackapi/slack-skills-plugin) into .agents/skills/slack-api in your project. Codex loads it when a task matches its description.

Can I use Slack API in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add slackapi/slack-skills-plugin --skill slack-api -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/slack-api, .gemini/skills/slack-api, .github/skills/slack-api and .opencode/skills/slack-api in your project.

What does Slack API need to run?

Going by SKILL.md and its folder, Slack API needs the command-line tools its instructions call (curl). Our summary lists: Python 3.

Does Slack API access the network?

SKILL.md names 3 domains. In commands or code: docs.slack.dev, slack.com and api.slack.com; the agent is likely to contact these when it follows the instructions. This is read from the text; nothing was executed.

Is Slack API safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Slack API use?

Slack API is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Slack API use?

About 3.3k tokens (SKILL.md is roughly 13k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Slack API?

Skills that share tags, products or a category with Slack API: Better Auth Security Best Practices (EpicenterHQ/epicenter, 4.8k stars), Socialite Development (hexlet-volunteers/hexlet-sicp, 114 stars), Add Channel Connect Button (novuhq/novu, 40k stars) and Frappe Core API (Impertio-Studio/Frappe_Claude_Skill_Package, 187 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Slack API?

slackapi (a GitHub organization, an official publisher) maintains it in slackapi/slack-skills-plugin, which has 144 GitHub stars. The repository holds 7 skills in this directory. The repository was last updated on October 6, 2026.

Source: slackapi/slack-skills-plugin on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.