重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
npx skills add https://github.com/vm0-ai/vm0-skills --skill slack发送消息、读取频道并与 Slack 工作区进行交互。
curl -s -H "Authorization: Bearer $(printenv SLACK_TOKEN)" "https://slack.com/api/conversations.list?types=public_channel" | jq '.channels[] | {id, name}'
文档:https://docs.slack.dev/reference/methods/conversations.list
将 <channel-id> 替换为实际的频道 ID:
curl -s -H "Authorization: Bearer $(printenv SLACK_TOKEN)" "https://slack.com/api/conversations.history?channel=<channel-id>&limit=10" | jq '.messages[] | {ts, user, text}'
文档:https://docs.slack.dev/reference/methods/conversations.history
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
写入 /tmp/request.json:
{
"channel": "<channel-id>",
"text": "Hello, World"
}
curl -s -X POST "https://slack.com/api/chat.postMessage" -H "Authorization: Bearer $(printenv SLACK_TOKEN)" -H "Content-Type: application/json" -d @/tmp/request.json
写入 /tmp/request.json:
{
"channel": "<channel-id>",
"text": "Notification",
"blocks": [
{
"type": "section",
"text": {"type": "mrkdwn", "text": "*Alert:* Something happened"}
},
{
"type": "section",
"fields": [
{"type": "mrkdwn", "text": "*Status:*\nActive"},
{"type": "mrkdwn", "text": "*Priority:*\nHigh"}
]
}
]
}
curl -s -X POST "https://slack.com/api/chat.postMessage" -H "Authorization: Bearer $(printenv SLACK_TOKEN)" -H "Content-Type: application/json" -d @/tmp/request.json
Block Kit 构建器:https://app.slack.com/block-kit-builder
写入 /tmp/request.json:
{
"channel": "<channel-id>",
"thread_ts": "<thread-timestamp>",
"text": "Thread reply"
}
curl -s -X POST "https://slack.com/api/chat.postMessage" -H "Authorization: Bearer $(printenv SLACK_TOKEN)" -H "Content-Type: application/json" -d @/tmp/request.json
写入 /tmp/request.json:
{
"channel": "<channel-id>",
"ts": "<message-timestamp>",
"text": "Updated message"
}
curl -s -X POST "https://slack.com/api/chat.update" -H "Authorization: Bearer $(printenv SLACK_TOKEN)" -H "Content-Type: application/json" -d @/tmp/request.json
写入 /tmp/request.json:
{
"channel": "<channel-id>",
"ts": "<message-timestamp>"
}
curl -s -X POST "https://slack.com/api/chat.delete" -H "Authorization: Bearer $(printenv SLACK_TOKEN)" -H "Content-Type: application/json" -d @/tmp/request.json
curl -s -H "Authorization: Bearer $(printenv SLACK_TOKEN)" "https://slack.com/api/users.list" | jq '.members[] | {id, name, real_name}'
将 <user-email> 替换为实际的电子邮件地址:
curl -s -H "Authorization: Bearer $(printenv SLACK_TOKEN)" "https://slack.com/api/users.lookupByEmail?email=<user-email>"
curl -s -X POST 'https://slack.com/api/files.upload' -H "Authorization: Bearer $(printenv SLACK_TOKEN)" -F 'channels=C1234567890' -F 'file=@/path/to/file.txt' -F 'title=My File'
写入 /tmp/request.json:
{
"channel": "<channel-id>",
"timestamp": "<message-timestamp>",
"name": "thumbsup"
}
curl -s -X POST "https://slack.com/api/reactions.add" -H "Authorization: Bearer $(printenv SLACK_TOKEN)" -H "Content-Type: application/json" -d @/tmp/request.json
| 语法 | 效果 |
|---|---|
*bold* | 粗体 |
_italic_ | 斜体 |
~strike~ | |
code | 代码 |
| `<URL | text>` |
<@U123> | @提及用户 |
<#C123> | #频道链接 |
每周安装量
70
代码仓库
GitHub 星标数
51
首次出现
2026 年 1 月 24 日
安全审计
安装于
gemini-cli61
opencode61
codex59
github-copilot58
amp56
cursor56
Send messages, read channels, and interact with Slack workspaces.
curl -s -H "Authorization: Bearer $(printenv SLACK_TOKEN)" "https://slack.com/api/conversations.list?types=public_channel" | jq '.channels[] | {id, name}'
Docs: https://docs.slack.dev/reference/methods/conversations.list
Replace <channel-id> with the actual channel ID:
curl -s -H "Authorization: Bearer $(printenv SLACK_TOKEN)" "https://slack.com/api/conversations.history?channel=<channel-id>&limit=10" | jq '.messages[] | {ts, user, text}'
Docs: https://docs.slack.dev/reference/methods/conversations.history
Write to /tmp/request.json:
{
"channel": "<channel-id>",
"text": "Hello, World"
}
curl -s -X POST "https://slack.com/api/chat.postMessage" -H "Authorization: Bearer $(printenv SLACK_TOKEN)" -H "Content-Type: application/json" -d @/tmp/request.json
Docs: https://docs.slack.dev/reference/methods/chat.postmessage
Write to /tmp/request.json:
{
"channel": "<channel-id>",
"text": "Notification",
"blocks": [
{
"type": "section",
"text": {"type": "mrkdwn", "text": "*Alert:* Something happened"}
},
{
"type": "section",
"fields": [
{"type": "mrkdwn", "text": "*Status:*\nActive"},
{"type": "mrkdwn", "text": "*Priority:*\nHigh"}
]
}
]
}
curl -s -X POST "https://slack.com/api/chat.postMessage" -H "Authorization: Bearer $(printenv SLACK_TOKEN)" -H "Content-Type: application/json" -d @/tmp/request.json
Block Kit Builder: https://app.slack.com/block-kit-builder
Write to /tmp/request.json:
{
"channel": "<channel-id>",
"thread_ts": "<thread-timestamp>",
"text": "Thread reply"
}
curl -s -X POST "https://slack.com/api/chat.postMessage" -H "Authorization: Bearer $(printenv SLACK_TOKEN)" -H "Content-Type: application/json" -d @/tmp/request.json
Write to /tmp/request.json:
{
"channel": "<channel-id>",
"ts": "<message-timestamp>",
"text": "Updated message"
}
curl -s -X POST "https://slack.com/api/chat.update" -H "Authorization: Bearer $(printenv SLACK_TOKEN)" -H "Content-Type: application/json" -d @/tmp/request.json
Docs: https://docs.slack.dev/reference/methods/chat.update
Write to /tmp/request.json:
{
"channel": "<channel-id>",
"ts": "<message-timestamp>"
}
curl -s -X POST "https://slack.com/api/chat.delete" -H "Authorization: Bearer $(printenv SLACK_TOKEN)" -H "Content-Type: application/json" -d @/tmp/request.json
curl -s -H "Authorization: Bearer $(printenv SLACK_TOKEN)" "https://slack.com/api/users.list" | jq '.members[] | {id, name, real_name}'
Docs: https://docs.slack.dev/reference/methods/users.list
Replace <user-email> with the actual email address:
curl -s -H "Authorization: Bearer $(printenv SLACK_TOKEN)" "https://slack.com/api/users.lookupByEmail?email=<user-email>"
Docs: https://docs.slack.dev/reference/methods/users.lookupbyemail
curl -s -X POST 'https://slack.com/api/files.upload' -H "Authorization: Bearer $(printenv SLACK_TOKEN)" -F 'channels=C1234567890' -F 'file=@/path/to/file.txt' -F 'title=My File'
Docs: https://docs.slack.dev/reference/methods/files.upload
Write to /tmp/request.json:
{
"channel": "<channel-id>",
"timestamp": "<message-timestamp>",
"name": "thumbsup"
}
curl -s -X POST "https://slack.com/api/reactions.add" -H "Authorization: Bearer $(printenv SLACK_TOKEN)" -H "Content-Type: application/json" -d @/tmp/request.json
Docs: https://docs.slack.dev/reference/methods/reactions.add
| Syntax | Result |
|---|---|
*bold* | bold |
_italic_ | italic |
~strike~ | |
code | code |
| `<URL | text>` |
<@U123> | @mention user |
See: https://docs.slack.dev/apis/web-api/rate-limits
Weekly Installs
70
Repository
GitHub Stars
51
First Seen
Jan 24, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
gemini-cli61
opencode61
codex59
github-copilot58
amp56
cursor56
GitHub Actions 官方文档查询助手 - 精准解答 CI/CD 工作流问题
47,200 周安装
<#C123>| #channel link |