/slack:read-slackfrom slack
Reads Slack messages, threads, and channel history via the Web API from the terminal. Useful when a user pastes a Slack URL or asks to pull, search, or investigate Slack conversations.
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.
Read when SKILL.md points to them; scripts run unread.
Getting Slack context to Claude by copy/paste is slow and lossy — it drops reply structure, real timestamps, thread links, and edit markers, which is exactly the detail an investigation needs. This skill reads Slack directly through the Web API and prints clean text you can act on.
It is read-only and scoped to your own visibility — only the channels and DMs the token owner is already a member of. It cannot post, edit, or delete anything. Sending to Slack is the companion notify-slack skill, which holds a separate credential that can only post to one channel.
The script needs a Slack user token (xoxp-…) and the curl + jq tools. If setup isn't done yet, the plugin README has the full walkthrough of creating the Slack app, requesting install approval, and minting the token. It is at ${CLAUDE_PLUGIN_ROOT}/README.md — Codex: substitute the installed plugin directory for that token. Provide the token one of two ways:
export SLACK_USER_TOKEN=xoxp-…, orexport SLACK_TOKEN_OP_REF="op://Employee/Slack read-only/token" (1Password ref; the script resolves it via op read so the token never lands in your shell env). With several 1Password accounts signed in, also set SLACK_TOKEN_OP_ACCOUNT to the account that holds it (passed as op read --account), or OP_ACCOUNT.The token is passed to curl on stdin, never on the command line — it won't show up in ps or shell history.
On first use — or whenever a call fails — run the check (it makes one auth.test call and prints the authenticated user/workspace). Don't run it on every invocation; once it passes for the session, trust it.
# Codex: this path resolves under Claude Code; substitute the directory containing this SKILL.md.
SKILL_DIR="${CLAUDE_SKILL_DIR}"
bash "$SKILL_DIR/scripts/slack.sh" --check
If it errors, the message says what's missing — usually the token isn't exported yet.
When the user gives a Slack message or thread URL, pass it straight through:
# Codex: this path resolves under Claude Code; substitute the directory containing this SKILL.md.
SKILL_DIR="${CLAUDE_SKILL_DIR}"
bash "$SKILL_DIR/scripts/slack.sh" thread 'https://acme.slack.com/archives/C08L6GH92R3/p1766517669357109?thread_ts=1763502924.627409&cid=C08L6GH92R3'
The URL carries the channel ID and timestamps, so nothing else is needed. If thread_ts is present the whole thread is returned; otherwise just that message. You can also pass a channel ID and a raw ts instead of a URL:
# Codex: this path resolves under Claude Code; substitute the directory containing this SKILL.md.
SKILL_DIR="${CLAUDE_SKILL_DIR}"
bash "$SKILL_DIR/scripts/slack.sh" thread C08L6GH92R3 1763502924.627409
Output is one block per message — author, local timestamp, then the message text with <@U…> mentions, <#C…|chan> channel refs, and <url|label> links unwrapped into readable form.
# Codex: this path resolves under Claude Code; substitute the directory containing this SKILL.md.
SKILL_DIR="${CLAUDE_SKILL_DIR}"
bash "$SKILL_DIR/scripts/slack.sh" search 'rate limit migration' 20
Uses search.messages (user-token only) and prints each match with its channel, author, timestamp, text, and a permalink you can hand back to the user. Slack search operators work inside the query, e.g. search 'in:#lindris-onboarding 503 error'.
# Codex: this path resolves under Claude Code; substitute the directory containing this SKILL.md.
SKILL_DIR="${CLAUDE_SKILL_DIR}"
bash "$SKILL_DIR/scripts/slack.sh" history C08L6GH92R3 30
Prints the most recent messages (newest first) for a channel ID (or an /archives/<id> URL). Default limit is 20.
The script writes to stdout. For a long thread you're about to reason over, redirect it to a file and read that, rather than pasting a wall of text into the conversation:
# Codex: this path resolves under Claude Code; substitute the directory containing this SKILL.md.
SKILL_DIR="${CLAUDE_SKILL_DIR}"
bash "$SKILL_DIR/scripts/slack.sh" thread '<url>' > /tmp/slack-thread.txt
Then Read /tmp/slack-thread.txt. This keeps the chat lean and gives you the complete, faithful thread to investigate from.
search needs search:read, a user-token-only scope — a bot token can't search. This is why the setup uses an xoxp- user token.U… ID, the token lacks users:read or the user is outside your visibility.What SKILL.md sets; muted values are Claude Code's defaults
Use when the user: - pastes a Slack URL (https://<workspace>.slack.com/archives/C…/p…) and wants its content - says "pull this Slack thread", "read this Slack conversation", "what did X say in Slack", "get me that thread", "grab the Slack discussion about Y", "quote this thread" - wants Slack context to investigate an issue/incident/customer question - asks to "search Slack for …" or "find the Slack message where …" - asks for a channel's recent messages Prefer this over hand-copied Slack text — the API preserves authors, timestamps, reply order, and links that copy/paste loses.
Three short reads, in order
Other plugins' skills for the same job
3 skills in this plugin
/listen-slackTwo-way Slack: post a status update with a bot token and wait, with zero model tokens, for a human to reply in its thread — an :ear: shows the agent is listening, :eyes: marks each reply it picked up. Covers 'post an update and wait for my reply on Slack', 'ask me on Slack and keep going when I answer', 'listen for my Slack reply'./notify-slackPost a message to Slack from the terminal via an incoming webhook — a completion notification, a progress update, a result summary, or a Block Kit message. Covers 'ping me on Slack when this finishes', 'post that summary to Slack', 'send this to the team channel'.npx claudepluginhub jtsternberg/claude-plugins --plugin slack