Channel Message logo

Channel Message

CommunityPopular
mateaix
channel_message

当需要主动向某个渠道会话单向推送消息时使用(企业微信、钉钉、飞书、Telegram、Discord、QQ、Slack 等)。适用于任务完成通知、定时提醒告警、异步结果回推等场景。先用 list_channel_sessions 查询目标会话,再用 send_channel_message 发送。

Overview

Publishermateaix
Repositorymateclaw
Skill namechannel_message
Stars
1.1K
Forks
337
Bundled files
Instructions only
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by mateaix on GitHub. Read the source before you install it.

Installation

Install the Channel Message AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/mateaix/mateclaw/tree/dev/mateclaw-server/src/main/resources/skills/channel_message
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/mateaix/mateclaw.git /tmp/mateclaw
mkdir -p .claude/skills
cp -r /tmp/mateclaw/mateclaw-server/src/main/resources/skills/channel_message .claude/skills/channel_message
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Channel Message in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Channel Message on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Channel Message is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

渠道消息推送

何时使用

仅在以下情况使用,这是单向推送,不会收到回复:

应该使用

  • 用户明确要求"向某个渠道 / 会话发送消息"
  • 异步任务完成后主动通知用户
  • 定时提醒、告警、状态更新
  • 将后台任务结果推送回指定会话

不应使用

  • 当前对话中的正常回复(直接回复即可,不要重复推送)
  • 需要等待用户回复的双向交互
  • 目标渠道或会话不明确时(先询问用户)

支持渠道

wecom(企业微信)、dingtalk、feishu、telegram、discord、qq、slack、weixin

注意:只有机器人收到过消息的会话才能主动推送——平台的推送句柄是在收到入站消息时记录的。如果目标会话不在列表里,需要先让对方在该会话中给机器人发一条消息。

工作流程

第一步:查询目标会话

list_channel_sessions(channelType="wecom")
  • channelType 可选,不传则列出当前工作区所有可推送会话
  • 返回每个会话的 conversation_id、渠道名称、用户名、最后活跃时间
  • 有多个候选会话时,优先选最后活跃时间最近的

第二步:发送消息

send_channel_message(
  conversationId="wecom:xxxx",
  message="✅ 数据分析已完成,结果已保存到 report.xlsx"
)
  • conversationId 必须来自 list_channel_sessions 的返回结果,不要凭空猜测
  • message 为消息正文(纯文本 / Markdown,取决于渠道能力),超过 4096 字符会被截断

常见场景示例

温度告警推送到企业微信

list_channel_sessions(channelType="wecom")
# 从结果中选目标会话,例如 conversation_id 为 wecom:DeBaDe 的会话,然后:
send_channel_message(
  conversationId="wecom:DeBaDe",
  message="【温度告警】中控测试会议室 当前温度 29.3℃,已超过 28℃,请及时处理"
)

任务完成通知到钉钉

list_channel_sessions(channelType="dingtalk")
send_channel_message(
  conversationId="dingtalk:sw:xxxx",
  message="✅ 周报生成完成,已写入知识库"
)

常见错误

  • 没有先查会话就发送:conversationId 必须先通过 list_channel_sessions 获取
  • 把正常对话回复当成推送:当前会话直接回复不需要用本技能
  • 期望收到回复:send_channel_message 是单向推送,不返回用户回复
  • 目标会话不存在:说明机器人从未在该会话收到过消息,请先让用户在目标会话里给机器人发一条消息
  • 渠道未启用 / 不支持主动推送:按报错提示先在渠道管理中启用对应渠道

Frequently asked questions

What does the Channel Message AI skill do?

当需要主动向某个渠道会话单向推送消息时使用(企业微信、钉钉、飞书、Telegram、Discord、QQ、Slack 等)。适用于任务完成通知、定时提醒告警、异步结果回推等场景。先用 list_channel_sessions 查询目标会话,再用 send_channel_message 发送。

Why use Channel Message on TypingMind?

Because you install it once and use it with any model. Channel Message is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Channel Message in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/mateaix/mateclaw/tree/dev/mateclaw-server/src/main/resources/skills/channel_message. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Channel Message?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Channel Message?

As many as you like. As long as a model supports skills, you can use Channel Message with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Channel Message AI skill free?

Yes. It is published on GitHub by mateaix under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇