agent-slack
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.
Security Assessment
Detected risks:
About agent-slack
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.
FAQ
How do I install `agent-slack` if it is not on my PATH?
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>`).
What authentication methods are supported?
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.
Are there any restrictions on Bash command formatting?
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.
Can I send messages with file attachments?
Yes. Messages can be sent via `agent-slack message send --attach`, which allows local file uploads directly from the CLI.
Which platforms are compatible?
The CLI supports macOS and Windows natively. On macOS, fallback authentication uses Chrome or Firefox if Slack Desktop credentials are unavailable.
Install agent-slack
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
stablyai/agent-slack