Slack CLI for agents: read URLs/threads/history/unreads/later/canvases/workflows, search messages/files, download attachments, lookup users, list/create/invite channels, open DMs, draft messages, schedule sends, and explicit sends/edits/deletes/reactions/mark-read/uploads.
Detected risks:
The `agent-slack` skill provides a command-line interface (CLI) for automating interactions with Slack, streamlining tasks that would normally require manual navigation through Slack's user interface. It enables AI agents to read messages and threads, browse recent channel messages, download attachments, search messages and files, and manage message workflows directly from the terminal. By providing a unified CLI tool, it addresses the need for programmatic access to Slack data, making message handling, file management, and workflow automation more efficient and reproducible.
You can install it using one of the following methods: run the curl installation script (`curl -fsSL https://raw.githubusercontent.com/stablyai/agent-slack/main/install.sh | sh`), install via npm (`npm i -g agent-slack`, requiring Node >= 22.5), or run it directly with Nix (`nix run github:stablyai/agent-slack -- <args>`).
Authentication is automatic on macOS and Windows using Slack Desktop first, with Chrome and Firefox fallbacks. Alternatively, you can set environment variables for Slack tokens or use a standard token (`SLACK_TOKEN`). After importing credentials, run `agent-slack auth test` to verify.
Yes. To avoid security approval prompts, commands must avoid `#`, consecutive quotes (`''` or `""`), Python usage in pipes, `||`/`&&` chains, and file redirects. Only `| jq` is allowed for JSON filtering with single quotes.
Yes. Messages can be sent via `agent-slack message send --attach`, which allows local file uploads directly from the CLI.
The CLI supports macOS and Windows natively. On macOS, fallback authentication uses Chrome or Firefox if Slack Desktop credentials are unavailable.
Quick Setup:
.claude/skills/Repository
stablyai/agent-slack