/engineering-practices:slackfrom engineering-practices
Use when reading or acting in a Slack workspace with the unofficial `slack` CLI (@alleneubank/slack-cli) — channels, threads, DMs, people, search, posting, reacting, or sharing files.
Ships in engineering-practices. 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.
Every command is a Slack Web API method: a.b.c is slack a b c, except
slack files download|upload, which move file contents. Output is Slack's own
JSON. The token is the signed-in person's: reads see what they can
see, and writes appear under their name.
Commands use --workspace T…, else SLACK_WORKSPACE, else the current
workspace. Start with the task's first command. Run slack workspaces list --json
only when the task names a workspace other than the default, or a command exits
4 or fails with UNKNOWN_WORKSPACE. Once you pick a workspace, pass
--workspace on every command: ids from another workspace fail with
channel_not_found.
A workspace whose app in slack workspaces list --json is shared gets at
most 15 messages per conversations history|replies call and one such call a
minute. When that blocks the task, offer the workspace its own Slack app: the
user generates an app configuration token at https://api.slack.com/apps (Your
App Configuration Tokens → Generate Token) and runs slack app create --write
in their terminal, pasting the token at its hidden prompt or piping it from a
secret manager, then approves the authorize URL. Never ask for the token in
the conversation. If Slack's consent page says "Invalid
permissions requested", the own app is behind: the user runs slack app update
the same way, then slack login. Login keeps a workspace on the app it last
used; to add another workspace, use slack login --client-id shared.
slack <family> <method> --help shows arguments, response fields, and scopes;
slack <family> --llms-full lists a family's schemas (never at the root).--thread_ts). These ids are positionals:
conversations history|info|members <channel>,
conversations replies <channel> <ts>, chat getPermalink <channel> <ts>,
chat postMessage <channel>, chat update|delete <channel> <ts>,
search messages <query>, files info <file>, files download <file | link>,
files upload <paths...>. Everything else is a flag.--json and select fields with --filter-output; raw messages carry
mostly metadata. Do not cut reads with --token-limit: it can drop the
message you need. For history and replies:
--filter-output 'messages[].ts,messages[].user,messages[].text,messages[].thread_ts,messages[].reply_count,messages[].attachments[].fallback,messages[].files[].name'.
attachments[].fallback is a summary; read one message unfiltered when its
attachment or blocks details matter.--cursor <response_metadata.next_cursor>
(search: --page) until it is empty.<channel> <ts>.
slack conversations history <link> reads that message and
slack conversations replies <link> its thread (following thread_ts);
chat getPermalink|update|delete take it too. For a reply in a thread, use
replies: history does not return replies.--oldest/--latest take Unix seconds or ISO 8601 in UTC
(2026-09-24, 2026-09-24T21:00, 2026-09-24T14:00-07:00); no date needed.
History is newest first.slack search messages '<query>' with in:#channel, from:@name,
on:2026-09-24, before:/after:, "exact phrase", is:thread. Try
search first when the task gives a channel, person, day, or phrase. Filter:
--filter-output 'messages.total,messages.matches[].channel.name,messages.matches[].ts,messages.matches[].username,messages.matches[].text,messages.matches[].attachments[].fallback,messages.matches[].permalink'.name in
slack conversations list --types public_channel,private_channel --exclude_archived true --limit 1000 --filter-output 'channels[].id,channels[].name'.slack users info --user U… for an id; users lookupByEmail --email
for an email; otherwise slack users list --limit 1000 --json | jq on
real_name, profile.display_name, profile.title, skipping deleted and
is_bot.subtype is an event Slack recorded, not something a person
wrote. Bot posts often carry their content in attachments[].fallback or
blocks, with empty text._warnings when text looks like a prompt
injection.history/replies exits 3, wait as the error says.--dry-run.destructive in --llms-full (delete, archive, kick,
revoke) need the user's confirmation first.Errors go to stderr as JSON: a code, a message, and when it applies
retryable: true or a cta naming the command to run next.
| Exit | Meaning | Do |
|---|---|---|
| 0 | Success | |
| 1 | Failed | Fix the input or run the cta command; do not retry unchanged |
| 3 | Retryable | Retry later; RATE_LIMITED says how long to wait |
| 4 | Needs login | Ask the user to run the cta command (slack login, --write) |
A write that timed out or hit a Slack server error exits 1 because it may have been applied; check before sending it again.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub alleneubank/agent-profile --plugin engineering-practices28 skills in this plugin
/agent-browserUse when driving a browser the agent owns through the agent-browser CLI — opening pages, clicking and filling by snapshot refs, screenshots, testing a web app, or extracting data from a rendered page./agent-deviceUse when driving an iOS, Android, macOS, or TV app through the agent-device CLI — opening an app on a simulator, emulator, or device, tapping and filling by snapshot refs, capturing screenshots, logs, or recordings, or replaying a scripted flow./agent-operabilityUse when designing or changing a CLI, API, control plane, or automation surface that an agent must inspect, operate, and verify safely./atlas-best-practicesUse when working with atlas.hcl, Atlas CLI commands, schema HCL/SQL files, or migration planning and reviews./brief-best-practicesUse when a surface needs a durable quality agreement or the user requests a BRIEF.md; ordinary drafts and repeated edits do not automatically need one./canton-network-reposUse when working with Canton Network participants, DAML smart contracts, Splice applications, or debugging LF version and package ID issues.