slack
Installation
SKILL.md
There is no first-party Slack CLI fit for daily use, so we drive the
Slack Web API with curl + jq. The
user's OAuth bearer token is in $SLACK_TOKEN; every call needs it as
Authorization: Bearer $SLACK_TOKEN.
The Slack API ALWAYS returns 200 — check the JSON ok field for success.
A failed call has {"ok": false, "error": "<reason>"}. Surface the
error value verbatim to the user when it occurs.
Always start with auth.test to confirm the connection works AND
to learn what bot user / team you're posting as. Many subsequent calls
need the bot's user id (auth.test returns user_id).