npx skills add https://github.com/vm0-ai/vm0-skills --skill slack-webhook使用入站 Webhook 向 Slack 频道发送消息。无需 OAuth 或机器人设置。
export SLACK_WEBHOOK_URL=https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXX
写入 /tmp/slack_request.json:
{
"text": "Hello, world."
}
然后运行:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
curl -X POST $(printenv SLACK_WEBHOOK_URL) -H "Content-type: application/json" -d @/tmp/slack_request.json
写入 /tmp/slack_request.json:
{
"text": "*Bold* and _italic_ text"
}
然后运行:
curl -X POST $(printenv SLACK_WEBHOOK_URL) -H "Content-type: application/json" -d @/tmp/slack_request.json
写入 /tmp/slack_request.json:
{
"text": "Check <https://example.com|this link>"
}
然后运行:
curl -X POST $(printenv SLACK_WEBHOOK_URL) -H "Content-type: application/json" -d @/tmp/slack_request.json
写入 /tmp/slack_request.json:
{
"text": "New review submitted",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Danny left the following review:"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "<https://example.com|Overlook Hotel>\n:star:\nDoors had too many axe holes."
}
}
]
}
然后运行:
curl -X POST $(printenv SLACK_WEBHOOK_URL) -H "Content-type: application/json" -d @/tmp/slack_request.json
写入 /tmp/slack_request.json:
{
"text": "Deployment status",
"blocks": [
{
"type": "section",
"fields": [
{
"type": "mrkdwn",
"text": "*Environment:*\nProduction"
},
{
"type": "mrkdwn",
"text": "*Status:*\nSuccess"
}
]
}
]
}
然后运行:
curl -X POST $(printenv SLACK_WEBHOOK_URL) -H "Content-type: application/json" -d @/tmp/slack_request.json
| 语法 | 效果 |
|---|---|
*bold* | 粗体 |
_italic_ | 斜体 |
~strike~ | |
code | 代码 |
\n | 换行 |
| `<URL | text>` |
:emoji: | 表情符号 |
包含 ! 的消息可能因 Shell 历史扩展而失败。请使用 heredoc:
curl -s -X POST $(printenv SLACK_WEBHOOK_URL) -H "Content-type: application/json" -d @- << 'EOF'
{"text":"Deploy completed! :rocket:"}
EOF
成功:ok (HTTP 200)
错误:
invalid_payload - JSON 格式错误no_text - 缺少 text 字段no_service - Webhook 已禁用或无效channel_not_found - 频道已删除channel_is_archived - 频道已归档action_prohibited - 管理员限制如需完整的 API 访问权限,请使用带有 Bot Token 的 slack 技能。
每周安装数
77
代码仓库
GitHub 星标数
49
首次出现
2026年1月24日
安全审计
安装于
opencode68
gemini-cli67
codex65
github-copilot63
cursor63
claude-code60
Send messages to a Slack channel using Incoming Webhooks. No OAuth or bot setup required.
export SLACK_WEBHOOK_URL=https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXX
Write to /tmp/slack_request.json:
{
"text": "Hello, world."
}
Then run:
curl -X POST $(printenv SLACK_WEBHOOK_URL) -H "Content-type: application/json" -d @/tmp/slack_request.json
Write to /tmp/slack_request.json:
{
"text": "*Bold* and _italic_ text"
}
Then run:
curl -X POST $(printenv SLACK_WEBHOOK_URL) -H "Content-type: application/json" -d @/tmp/slack_request.json
Write to /tmp/slack_request.json:
{
"text": "Check <https://example.com|this link>"
}
Then run:
curl -X POST $(printenv SLACK_WEBHOOK_URL) -H "Content-type: application/json" -d @/tmp/slack_request.json
Write to /tmp/slack_request.json:
{
"text": "New review submitted",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Danny left the following review:"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "<https://example.com|Overlook Hotel>\n:star:\nDoors had too many axe holes."
}
}
]
}
Then run:
curl -X POST $(printenv SLACK_WEBHOOK_URL) -H "Content-type: application/json" -d @/tmp/slack_request.json
Write to /tmp/slack_request.json:
{
"text": "Deployment status",
"blocks": [
{
"type": "section",
"fields": [
{
"type": "mrkdwn",
"text": "*Environment:*\nProduction"
},
{
"type": "mrkdwn",
"text": "*Status:*\nSuccess"
}
]
}
]
}
Then run:
curl -X POST $(printenv SLACK_WEBHOOK_URL) -H "Content-type: application/json" -d @/tmp/slack_request.json
| Syntax | Result |
|---|---|
*bold* | bold |
_italic_ | italic |
~strike~ | |
code | code |
\n | newline |
| `<URL | text>` |
Messages with ! may fail due to shell history expansion. Use heredoc:
curl -s -X POST $(printenv SLACK_WEBHOOK_URL) -H "Content-type: application/json" -d @- << 'EOF'
{"text":"Deploy completed! :rocket:"}
EOF
Success: ok (HTTP 200)
Errors:
invalid_payload - Malformed JSONno_text - Missing text fieldno_service - Webhook disabled or invalidchannel_not_found - Channel deletedchannel_is_archived - Channel archivedaction_prohibited - Admin restrictionFor full API access, use the slack skill with Bot Token.
Weekly Installs
77
Repository
GitHub Stars
49
First Seen
Jan 24, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode68
gemini-cli67
codex65
github-copilot63
cursor63
claude-code60
Skills CLI 使用指南:AI Agent 技能包管理器安装与管理教程
44,900 周安装
LangGraph 人机交互中断功能:实现人工审核与流程控制
3,600 周安装
LangChain Deep Agents 智能体编排:子智能体委托、任务规划与人工审核中间件
3,600 周安装
LangChain深度代理框架deep-agents-core:任务规划、子代理与长期记忆的AI代理开发
3,500 周安装
Python资源管理:上下文管理器自动释放数据库连接、文件句柄和网络套接字
3,500 周安装
Svelte 5 代码编写器 - SvelteKit CLI 工具,自动修复代码与文档查询
3,500 周安装
金融专家Skill:金融系统开发、支付处理与银行API集成专业指南
3,400 周安装
:emoji:| emoji |