用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/matevip/mateclaw --skill channel-message命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | channel_message |
| version | 1.3.0 |
| description | 当需要主动向用户、会话或渠道单向推送消息时使用。适用于任务完成通知、定时提醒、异步结果回推等场景。 |
| dependencies | {"tools":["execute_shell_command"]} |
仅在以下情况使用,这是单向推送,不会收到回复:
console、dingtalk、feishu、telegram、discord、qq、slack
macOS / Linux:
execute_shell_command(
command="mateclaw chats list --agent-id <agentId> --channel <channel>"
)
Windows:
execute_shell_command(
command="mateclaw.exe chats list --agent-id <agentId> --channel <channel>"
)
从返回结果中获取 user_id 和 session_id。有多个会话时,优先选 updated_at 最近的。
macOS / Linux:
execute_shell_command(
command="mateclaw channels send --agent-id <agentId> --channel <channel> --target-user <userId> --target-session <sessionId> --text \"消息内容\""
)
Windows(PowerShell):
execute_shell_command(
command="mateclaw.exe channels send --agent-id <agentId> --channel <channel> --target-user <userId> --target-session <sessionId> --text '消息内容'"
)
| 参数 | 说明 |
|---|---|
--agent-id | 当前 Agent 的 ID |
--channel | 目标渠道名称(见支持渠道列表) |
--target-user | 目标用户 ID(从 chats list 获取) |
--target-session | 目标会话 ID(从 chats list 获取) |
--text | 消息内容 |
execute_shell_command(
command="mateclaw chats list --agent-id task-bot --channel dingtalk"
)
# 从结果中取 user_id / session_id,然后:
execute_shell_command(
command="mateclaw channels send --agent-id task-bot --channel dingtalk --target-user alice --target-session alice_dt_001 --text \"✅ 数据分析已完成,结果已保存到 report.xlsx\""
)
execute_shell_command(
command="mateclaw chats list --agent-id notify-bot --user-id alice"
)
若 mateclaw 命令不可用:
execute_shell_command(command="which mateclaw || where mateclaw")
mateclaw CLI 未找到,无法主动推送消息。请确认 MateClaw 已正确安装并将 CLI 加入 PATH。安装后重试。
channels send 是单向推送,不返回用户回复