slack
Installation
SKILL.md
Slack Operations
Use this skill to read and, with explicit confirmation, write Slack data through the Slack Web API: channels, messages, threads, search, files, and webhook signature verification. This is a tool skill for the Slack platform. Building Slack apps and bots is application development; workspace administration (user provisioning, org-level settings, SSO) lives in the Slack admin console. This skill owns the everyday agent workflow: knowing what was said, finding it later, and posting a reply when a human confirms.
Operating contract
- Read-only discovery before any mutation. List channels, read history, follow threads, search, and list files freely. The bundled
slack-cliscript makes reads without writing anything. - Confirm the target, scope, and rollback path before acting. Sending a message or replying in a thread changes shared workspace state visible to everyone: it requires an explicit human directive naming the channel, plus
--dry-runpreview and--yesconfirmation throughslack-cli. There is no "unsend" for team members who already read it. - Respect bounded reads. Slack paginates; never page past what the task needs.
slack-cli --limit Ncaps every listing, and responses summarize records rather than dumping raw payloads. - Verify webhooks before trusting them. Any handler that accepts Slack events must verify
X-Slack-SignatureandX-Slack-Request-Timestampagainst the app signing secret, or anyone who can reach the endpoint can forge events.slack-cli webhook verifydoes this check. - Keep evidence bounded. Quote short message excerpts and IDs; never paste full threads, tokens, or file contents into chat.
The slack-cli script
scripts/slack-cli is an agent-first, stdlib-only CLI over the Slack Web API. It covers the full issue scope: messages, channels, threads, search, files, and webhook verification.