원클릭으로
slack
Manage Slack channels, messages, users, reactions and files via Bot API
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Manage Slack channels, messages, users, reactions and files via Bot API
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Manage Cloudflare zones, DNS records, Workers, Pages and cache via API
Manage Cloudinary media assets, transformations and upload via REST API
Monitor infrastructure, query metrics, manage monitors and events via Datadog API
Manage DigitalOcean droplets, domains, databases, apps and volumes via API v2
Manage Firebase projects, Firestore, Auth users and Hosting via REST API
Manage Intercom conversations, contacts, articles and help center via REST API
| name | slack |
| description | Manage Slack channels, messages, users, reactions and files via Bot API |
| user-invocable | true |
| argument-hint | ["action or channel name"] |
Connect to Slack to manage channels, send messages, browse history, list users, add reactions, pin messages, upload files and search across your workspace. Pure Ruby, zero gems — stdlib only.
scripts/
├── auth.rb # Bearer token auth + slack_request helper (required by all scripts)
├── check_setup.rb # Check if token exists (outputs OK or SETUP_NEEDED)
├── save_token.rb # Save and validate a Bot token
├── channels.rb # List channels in the workspace
├── channel_info.rb # Get info about a channel
├── post_message.rb # Post a message to a channel
├── messages.rb # Get message history for a channel
├── users.rb # List users in the workspace
├── user_info.rb # Get info about a user
├── add_reaction.rb # Add a reaction to a message
├── remove_reaction.rb # Remove a reaction from a message
├── pins.rb # List pinned messages in a channel
├── pin_message.rb # Pin a message in a channel
├── upload_file.rb # Upload file content to a channel
└── search_messages.rb # Search messages across the workspace
ruby ~/.claude/skills/slack/scripts/check_setup.rb
If the output is OK, proceed to the Flow section.
If the output is SETUP_NEEDED, guide the user step by step. Present ONE step at a time, wait for the user to confirm before moving to the next.
Step 1 — Ask the user to create a Slack app and get the Bot token:
You need a Slack Bot User OAuth Token. Go to the Slack API portal: https://api.slack.com/apps
- Click Create New App > From scratch, give it a name and select your workspace
- Go to OAuth & Permissions in the left menu
- Under Bot Token Scopes, add the following scopes:
channels:readchannels:historychat:writeusers:readreactions:writepins:writefiles:writesearch:read- Click Install to Workspace at the top and authorize
- Copy the Bot User OAuth Token (starts with
xoxb-)Paste the bot token here.
Step 2 — When the user pastes the token, save it:
ruby ~/.claude/skills/slack/scripts/save_token.rb 'PASTED_TOKEN'
If the script outputs an error, the token is invalid. Ask the user to double-check and try again.
If setup is not complete, DO NOT proceed to the Flow. Complete all steps first.
The argument $ARGUMENTS may contain a channel name or action reference.
ruby ~/.claude/skills/slack/scripts/channels.rb
ruby ~/.claude/skills/slack/scripts/channels.rb --limit 50
ruby ~/.claude/skills/slack/scripts/channels.rb --types public_channel,private_channel
Present the channels. Ask which channel to work with if needed.
Get channel info:
ruby ~/.claude/skills/slack/scripts/channel_info.rb CHANNEL_ID
Read messages:
ruby ~/.claude/skills/slack/scripts/messages.rb CHANNEL_ID
ruby ~/.claude/skills/slack/scripts/messages.rb CHANNEL_ID --limit 50
Post a message (requires user confirmation):
Show the message content first, then ask to confirm before sending.
ruby ~/.claude/skills/slack/scripts/post_message.rb CHANNEL_ID "Hello from HiTank!"
List users:
ruby ~/.claude/skills/slack/scripts/users.rb
ruby ~/.claude/skills/slack/scripts/users.rb --limit 50
Get user info:
ruby ~/.claude/skills/slack/scripts/user_info.rb USER_ID
Add a reaction (requires user confirmation):
ruby ~/.claude/skills/slack/scripts/add_reaction.rb CHANNEL_ID TIMESTAMP thumbsup
Remove a reaction (requires user confirmation):
ruby ~/.claude/skills/slack/scripts/remove_reaction.rb CHANNEL_ID TIMESTAMP thumbsup
List pinned messages:
ruby ~/.claude/skills/slack/scripts/pins.rb CHANNEL_ID
Pin a message (requires user confirmation):
ruby ~/.claude/skills/slack/scripts/pin_message.rb CHANNEL_ID TIMESTAMP
Upload a file (requires user confirmation):
ruby ~/.claude/skills/slack/scripts/upload_file.rb CHANNEL_ID "file content here" --filename notes.txt --title "My Notes"
Search messages:
ruby ~/.claude/skills/slack/scripts/search_messages.rb "search query"
ruby ~/.claude/skills/slack/scripts/search_messages.rb "search query" --count 10
Authorization: Bearer xoxb-...)~/.config/slack/token (outside the repo, never commit)<@USER_ID> in message content{"ok": true/false} — all scripts check data['ok'] and output errorssearch:read scope is required for search_messages.rbhttps://slack.com/api