slack
Installation
SKILL.md
Slack Web API Skill
Interact with Slack: read, write, search, react, pin, and manage conversations via the Web API.
IMPORTANT: First-Use Initialization
Before executing any Slack operation, check if the mode config file exists:
cat ~/.agents/config/slack/config.env
If the file does not exist (or does not contain SLACK_MODE), you must ask the user which mode they want to use. Present these three options:
- Token (macOS only): Extracts session tokens directly from Chrome. Fastest option. Requires Chrome with Slack open, AppleScript enabled, and
uvxinstalled. - Browser (cross-platform): Uses a local Playwright browser to make API calls. Works on macOS, Linux, and Windows. Requires Node.js 18+. Supports SSO and 2FA login.
- Auto-detect (recommended): Automatically uses browser mode if a Playwright session exists, otherwise falls back to token mode. Best of both worlds.
Once the user selects a mode, save it immediately:
mkdir -p ~/.agents/config/slack