ワンクリックで
slack
Read and send Slack messages using @slack/web-api
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Read and send Slack messages using @slack/web-api
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Build today's mapped ZEP time-log plan from Google Calendar, preview it against ZEP, and enter it through guarded Playwright automation only after explicit approval.
Help users create structured decision matrices by suggesting criteria, options, and weights — output as comparison tables
Backup CLAUDE.md, TASKS.md, and memory/ to a private Git repo using `bash .claude/skills/memory-backup/backup.sh`.
Pull recent Notion Journal entries into memory/journals/YYYY/month_YYYY-MM_text.txt.
Fetches live prices for equities and forex for investment portfolio.
Sync work context from external sources, update tasks and memory, and report changes
| name | slack |
| description | Read and send Slack messages using @slack/web-api |
| tools | ["Bash"] |
You are a Slack assistant. Use the @slack/web-api Node.js package to interact with Slack.
Use the slack-cli.js script in this skill directory:
node .claude/skills/slack/slack-cli.js <command> [args]
| Command | Description | Example |
|---|---|---|
channels [--filter regex] [--limit N] [--types types] [--json] | List channels with pagination, optional regex filtering, and JSON output | node slack-cli.js channels --filter "project" --json |
history <channelId> [--limit N] [--days N] [--oldest ts] [--latest ts] [--json] | Read channel history with filters | node slack-cli.js history C0A11MKGDT2 --days 7 --json |
search <query> [--channels ids] [--days N] [--limit N] [--channel-limit N] [--json] | Search using Slack's web.search.messages API; falls back to local channel history scan if search:read scope is missing or multiple channels are specified | node slack-cli.js search "blocker" --channels C0A1K7R9W74 |
messages-filter <channelId> --pattern <regex> [--days N] [--json] | Filter channel messages by regex | `node slack-cli.js messages-filter C0A1K7R9W74 --pattern "blocked |
threads <channelId> [--days N] [--json] | List parent messages with replies | node slack-cli.js threads C0A11MKGDT2 --days 14 |
thread-get <channelId> <threadTs> [--json] | Read full thread (parent + replies) | node slack-cli.js thread-get C0A11MKGDT2 123.456 |
thread-scan <channelId> [--parent-pattern regex] [--reply-pattern regex] [--reply-user U...] [--days N] [--json] | Scan threaded conversations with parent/reply filters | node slack-cli.js thread-scan C0A1K7R9W74 --parent-pattern "daily standup" --reply-user U09NUL2LCKU --days 7 |
users-resolve --ids <id1,id2> | Resolve user IDs in batch | node slack-cli.js users-resolve --ids U1,U2 --json |
channels-resolve --ids <id1,id2> | Resolve channel IDs in batch | node slack-cli.js channels-resolve --ids C1,C2 |
extract <channelId> --mode <blockers|tasks|decisions|risks> [--days N] [--json] | Extract workflow signals from messages | node slack-cli.js extract C0A1K7R9W74 --mode blockers --days 7 |
export <channelId> [--format json|csv|md] [--out path] | Export channel messages for analysis | node slack-cli.js export C0A1K7R9W74 --format md --out blockers.md |
send <channel> <text> [--thread-ts ts] [--rich-text] | Send message to channel or thread | node slack-cli.js send C0A1K7R9W74 'Update posted' --thread-ts 123.456 --rich-text |
files <channelId> [limit] | List files in channel | node slack-cli.js files C0A11MKGDT2 10 |
download <fileId> [path] | Download attachment | node slack-cli.js download F12345678 ./file.pdf |
test | Test authentication | node slack-cli.js test |
Requires SLACK_TOKEN environment variable with a User Token (starts with xoxp-).
User tokens have full access to channels you're already a member of. No bot installation or channel invitations needed.
Get your token from https://api.slack.com/apps:
channels:history, groups:history, im:history, mpim:historychannels:read, groups:read, users:readchat:write, im:writefiles:readsearch:read (enables web.search.messages)xoxp-).env file and save your token in it:
SLACK_TOKEN=xoxp-your-tokenCannot find module '@slack/web-api', run npm install from the workspace root so the package in package.json is installed.| Method | Purpose |
|---|---|
web.conversations.list() | List channels |
web.conversations.history() | Read messages |
web.conversations.replies() | Read thread replies |
web.chat.postMessage() | Send message |
web.files.list() | List files in channel |
web.files.info() | Get file metadata |
web.users.info() | Get user details |
web.search.messages() | Full-text search across channels (requires search:read scope) |
local conversations.history() scan | Fallback when search:read scope is missing or multiple channels are specified |
web.auth.test() | Verify token |
When showing messages:
[time] message text...