slack-post
Installation
SKILL.md
Slack Post
Send one text message through Slack's official chat.postMessage endpoint.
Safety
- Post only when the user or parent agent explicitly requests an external Slack message.
- Keep
SLACK_BOT_TOKENin the process environment. Never print, inspect, or pass it as an argument. - Use the configured bot token. Do not substitute a user token or another app's token.
- Treat the selected channel and any mentioned member as externally visible recipients.
- Use
--format jsonwhen another tool must parse the response.
Requirements
- Use Node.js 18 or newer. No package install is required.
- Grant the Slack app
chat:write. - Add the bot to the target conversation. Grant
chat:write.publiconly when the app must post to public channels it has not joined. - Load these values into the process environment before running the script: