agent-slack
A Slack automation CLI designed specifically for AI Agents
Install & Use
Copy this prompt and send it to your AI assistant (Claude / Cursor / TRAE / Codex / WorkBuddy etc.) to auto-install:
Help me install this AI Skill: agent-slack. It is used for: A Slack automation CLI designed specifically for AI Agents Full Skill content: https://321skill.com/skills/agent-slack/raw/index.md Read that page and install it.
The prompt includes a link to the full Skill content. You can also view the full content.
This Skill addresses the challenges AI Agents face when efficiently reading, writing, searching, and automating message management within Slack. In practical development, AI Agents frequently need to communicate with teams, retrieve context, and send notifications. However, traditional API calls are cumbersome and incur high Token costs, leading to expensive large language model operations and slow response times.
Usage is straightforward: simply install it globally via Bun or npm, then operate it directly through the command line or natural language instructions. For example, tell your AI "Check recent messages in #general," and it will automatically invoke agent-slack to retrieve results in a compact JSON format. Sending messages, searching files, managing channels, and orchestrating workflows can all be done with a single command. It also supports human-in-the-loop browser editors (message compose) and native Slack draft management.
It is ideal for teams or individuals who need deep Slack integration into their AI workflows. This is especially true for developers already using AI coding agents like Claude Code, Codex, or Cursor, as well as for DevOps engineers and project managers who need to batch-manage messages or automate project status synchronization.
It is recommended to use this tool in non-CI environments to fully leverage its human-in-the-loop interaction capabilities. Note that zero-config authentication relies on Slack Desktop; a manual token import is required for pure server environments. Additionally, it primarily focuses on text and file operations and does not support advanced features like video calls.
Key Features
Unlike the official Slack CLI, agent-slack is optimized for AI Agents, outputting compact JSON and automatically trimming empty fields to significantly reduce Token consumption. It also supports zero-config authentication (directly reusing the Slack Desktop login state), eliminating the need to manually obtain tokens or configure environment variables.
Limitations
Requires Node.js >= 22.5 or the Bun runtime. Zero-config authentication requires running in a desktop environment where Slack Desktop is already logged in; pure CI servers require manual token configuration.
FAQ
How do I install agent-slack?
Recommended method using Bun: `curl -fsSL https://raw.githubusercontent.com/stablyai/agent-slack/main/install.sh | sh`; or install globally via npm: `npm i -g agent-slack`.
What Slack permissions are required?
In zero-config mode, it automatically uses the current login state of Slack Desktop. For manual authentication, you can use `agent-slack auth import-desktop` or import cookies.
Installation guide for AI assistants
If your AI coding assistant (Claude Code, Cursor, TRAE etc.) can see this page, send it this message to auto-install:
Visit https://321skill.com/skills/agent-slack/raw/index.md to read the original Skill definition (Markdown format) for agent-slack, and install it according to the instructions.
Raw Markdown URL for AI: /skills/agent-slack/raw/index.md