Slack

From ericwang915/PythonClaw · View interactive version

Slack is an AI agent skill from the GitHub repository ericwang915/PythonClaw. Slack API integration — send/read messages, react to messages, pin items, and fetch member info. Use when: user wants to send a Slack message, check Slack channels, react to a message, or manage pins. NOT for: Discord (use Discord channel), email (use email skill), or real-time Slack event streaming

How to use this skill

Skill file

Slack

Interact with Slack workspaces via the Slack Web API.

When to Use

✅ USE this skill when:

When NOT to Use

❌ DON'T use this skill when:

Setup

  1. Create a Slack app at https://api.slack.com/apps
  2. Add Bot Token Scopes: chat:write, channels:read, channels:history, reactions:write, reactions:read, pins:write, pins:read, users:read
  3. Install the app to your workspace
  4. Copy the Bot User OAuth Token (starts with xoxb-)
  5. Configure in pythonclaw.json:
"skills": {
  "slack": {
    "token": "xoxb-your-bot-token"
  }
}

Commands

Send a message

python {skill_path}/slack_api.py send --channel "#general" --text "Hello from PythonClaw"

Read recent messages

python {skill_path}/slack_api.py read --channel "#general" --limit 10

React to a message

python {skill_path}/slack_api.py react --channel "C123" --timestamp "1712023032.1234" --emoji "white_check_mark"

Pin a message

python {skill_path}/slack_api.py pin --channel "C123" --timestamp "1712023032.1234"

Get member info

python {skill_path}/slack_api.py user --user-id "U123"

List channels

python {skill_path}/slack_api.py channels

Notes

Resources

| File | Description |

|------|-------------|

| slack_api.py | Slack Web API client |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.