dingtalk-message
Skill3.6k starsChanged 3 months agoApache-2.0View on GitHub
钉钉消息发送技能。支持企业内部机器人(批量单聊/群聊)和 Webhook 自定义机器人两种接入方式,支持多机器人管理,支持文本、Markdown、链接、ActionCard、FeedCard等多种消息类型。
- Installs packages
1 other project uses a version of this.
Trending
Quiet since September.about the whole repository
Most recently taken up by
- breath57/dingtalk-skillstheir own version, first seen Jun 26, 2026
Who's talking about agentscope-ai/ReMe
- @pythonhub.dev“agentscope-ai / ReMe ReMe: Memory Management Kit for Agents - Remember Me, Refine Me. …”Bluesky · Apr 6, 2026 · 1 likes
- agentscope-ai/QwenPaw“chore(deps): update reme-ai dependency to version 0.3.1.8”GitHub · Mar 31, 2026 · 1 reactions
- agentscope-ai/QwenPaw“refactor(truncation): improve file truncation logic”GitHub · Mar 28, 2026 · 1 reactions
- agentscope-ai/QwenPaw“feat(memory): improve skills tool result truncation”GitHub · Mar 27, 2026 · 1 reactions
- @github-trending.bsky.social“📦 agentscope-ai / ReMe ⭐ 1,136 (+27) 🗒 Python ReMe: Memory Management Kit for Agents - Remember Me, …”Bluesky · Mar 3, 2026 · 1 likes
The biggest 5 of 23 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 23
Talked about on GitHub and Bluesky (23 times).
On GitHub · 21
- Mar 31, 2026chore(deps): update reme-ai dependency to version 0.3.1.8 — agentscope-ai/QwenPaw1 reaction · 2 comments
- Mar 28, 2026refactor(truncation): improve file truncation logic — agentscope-ai/QwenPaw1 reaction · 1 comment
- Mar 27, 2026feat(memory): improve skills tool result truncation — agentscope-ai/QwenPaw1 reaction · 1 comment
- Sep 15, 2026Add ReMe to harness and memory evolution tools — lobehub/awesome-rsi0 reactions · 1 comment
- Sep 13, 2026Curate ReMe with versioned memory-evolution evidence — YuxingLu613/awesome-agentic-evolution0 reactions
16 more on GitHub
- Sep 11, 2026Technology Radar — 2026-09-11 — carlosasantoss73-tech/AUREA0 reactions
- Sep 7, 2026Weekly discovery: new DeepSeek Harness ecosystem candidates — fendouai/awesome-deepseek-harness0 reactions · 1 comment
- Aug 31, 2026Weekly discovery: new DeepSeek Harness ecosystem candidates — fendouai/awesome-deepseek-harness0 reactions · 2 comments
- Jul 15, 2026feat(memory): enhance ReMe configuration and indexing safeguards — agentscope-ai/QwenPaw0 reactions · 1 comment
- Jul 13, 2026chore(deps): update reme-ai dependency to version 0.4.1.0 — agentscope-ai/QwenPaw0 reactions · 1 comment
- Jun 7, 2026chore(deps): bump reme-ai from 0.3.0.5 to 0.3.1.10 — citedy/adclaw0 reactions
- May 17, 2026chore(deps): bump reme-ai from 0.3.0.5 to 0.3.1.9 — citedy/adclaw0 reactions · 1 comment
- Apr 12, 2026taOSmd optimisations: semantic compression, memify, recall scoring, intent-aware retrieval — jaylfc/taOS0 reactions · 9 comments
- Apr 5, 2026chore(deps): bump reme-ai from 0.3.0.5 to 0.3.1.8 — citedy/adclaw0 reactions · 2 comments
- Mar 29, 2026chore(deps): bump reme-ai from 0.3.0.5 to 0.3.1.6 — citedy/adclaw0 reactions · 1 comment
- Mar 23, 2026fix(memory): handle empty compaction results and improve error reporting — agentscope-ai/QwenPaw0 reactions
- Mar 22, 2026chore(deps): bump reme-ai from 0.3.0.5 to 0.3.1.1 — citedy/adclaw0 reactions · 1 comment
- Mar 15, 2026Invalid JSON Schema for array parameters — multiple tools affected — bnomei/kirby-mcp0 reactions · 1 comment
- Mar 5, 2026Bump reme-ai from 0.3.0.0 to 0.3.0.5 — sunqirui1987/linx-claw0 reactions · 2 comments
- Mar 5, 2026[Bug]: Memory file watcher fails to sync vector store due to missing `memory.md` — agentscope-ai/QwenPaw0 reactions · 5 comments
- Mar 2, 2026[bugfix] add vllm embeddding support — agentscope-ai/QwenPaw0 reactions · 1 comment
On Bluesky · 2
- Apr 6, 2026agentscope-ai / ReMe ReMe: Memory Management Kit for Agents - Remember Me, Refine Me. https://github.com/agentscope-ai/ReMe — @pythonhub.dev1 likes and repost
- Mar 3, 2026📦 agentscope-ai / ReMe ⭐ 1,136 (+27) 🗒 Python ReMe: Memory Management Kit for Agents - Remember Me, Refine Me. — @github-trending.bsky.social1 likes and repost · 2 replies
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- breath57/dingtalk-skills★ 101same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository6 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- qwenpaw_memorySkill
- reme_memorySkill
- serper-searchSkill
- tushare-dataSkill
The file
Files
钉钉消息发送技能
概述
支持两种接入方式:
- Webhook 自定义机器人:通过 access_token 向群聊发送消息,接入简单
- 企业内部机器人:通过 app_key/app_secret 发送单聊、群聊消息,功能更全
支持多机器人管理,只有一个时自动使用,多个时按优先级自动选择。
环境要求
- Python 3.7+
pip install requests
首次配置
引导流程
首次使用此技能时,必须按以下流程引导用户完成配置:
- 询问用户的机器人类型和凭证信息:
- Webhook 机器人:需要
access_token(和可选的加签密钥secret) - 企业内部机器人:需要
app_key、app_secret、robot_code(和可选的agent_id)
- Webhook 机器人:需要
- 执行配置命令:
python scripts/dingtalk.py robot-add --name "机器人名" --type webhook ... - 验证配置:
python scripts/dingtalk.py config --show
配置文件路径
配置统一存储在系统配置目录,所有 AI agent 共享,无需重复配置:
| 平台 | 配置文件 | 状态文件 |
| macOS / Linux | ~/.config/dingtalk/config.json | ~/.config/dingtalk/state.json |
| Windows | %APPDATA%\dingtalk\config.json | %APPDATA%\dingtalk\state.json |
手动编辑配置文件
也可直接编辑配置文件,每个机器人用 name 标识(建议用群名、用途等有意义的名称),description 描述用途,方便智能匹配:
{
"default_robot": "技术告警群",
"robots": [
{
"name": "技术告警群",
"type": "webhook",
"description": "发送技术告警到后端技术群",
"webhook_token": "你的access_token",
"webhook_secret": ""
},
{
"name": "内部通知机器人",
"type": "app",
"description": "企业内部机器人,支持单聊和群聊",
"app_key": "你的AppKey",
"app_secret": "你的AppSecret",
"robot_code": "你的机器人编号",
"agent_id": ""
}
]
}
webhook_token填 access_token 即可,脚本自动拼接完整 URL。
通过命令行添加
# 添加 Webhook 机器人
python scripts/dingtalk.py robot-add --name "技术告警群" --type webhook --webhook-token "access_token_xxx" --desc "发送告警到后端技术群"
# 添加企业内部机器人
python scripts/dingtalk.py robot-add --name "内部通知" --type app --app-key dingxxx --app-secret xxx --robot-code robot-xxx --desc "支持单聊群聊"验证配置
python scripts/dingtalk.py config --show机器人管理
选择逻辑
- 只配置一个机器人时,自动使用
- 多个机器人时:
--robot指定 >default_robot> 最近使用过的 > 第一个可用的 - 用户未明确指定时,可根据机器人的
description和最近消息记录智能匹配,或询问用户
管理命令
# 添加(--desc 描述用途,便于记忆和智能选择)
python scripts/dingtalk.py robot-add --name "技术告警群" --type webhook --webhook-token "access_token_xxx" --desc "发送告警到后端技术群"
python scripts/dingtalk.py robot-add --name "内部通知" --type app --app-key dingxxx --app-secret xxx --robot-code robot-xxx --desc "企业内部机器人,支持单聊群聊"
# 查看所有机器人(含描述、使用次数、最近消息)
python scripts/dingtalk.py robot-list
# 更新描述 / 重命名
python scripts/dingtalk.py robot-update --name "技术告警群" --desc "后端+SRE告警群"
python scripts/dingtalk.py robot-update --name "alert-bot" --rename "技术告警群"
# 指定机器人发送
python scripts/dingtalk.py webhook-text --robot "技术告警群" "告警消息"
# 设置默认 / 启用禁用 / 删除
python scripts/dingtalk.py robot-default --name "产品日报群"
python scripts/dingtalk.py robot-enable --name "技术告警群" --disable
python scripts/dingtalk.py robot-remove --name "技术告警群"使用记录
每次发送消息会自动记录摘要到状态文件,包括:
- 使用次数、最近使用时间、最近状态
- 最近10条消息摘要(消息类型 + 内容前60字)
通过 robot-list 可查看,也用于智能选择机器人。
Webhook 消息
Webhook 命令以
webhook-前缀开头。 Webhook URL 获取:钉钉群 > 群设置 > 智能群助手 > 添加自定义机器人 > 复制 Webhook 地址
文本消息
# 已配置时直接发送
python scripts/dingtalk.py webhook-text "消息内容"
# 临时指定 token(无需配置)
python scripts/dingtalk.py webhook-text --webhook-token "access_token_xxx" "消息内容"
# @用户 / @所有人
python scripts/dingtalk.py webhook-text --at-mobiles 13800138000 "消息 @13800138000"
python scripts/dingtalk.py webhook-text --at-all "全员通知"Markdown 消息
python scripts/dingtalk.py webhook-markdown \
--title "天气提醒" \
"#### 杭州天气\n> 9度,西北风1级"链接消息
python scripts/dingtalk.py webhook-link \
--title "时代在进步" \
--url "https://www.dingtalk.com" \
--pic-url "https://example.com/image.png" \
"点击查看详情"ActionCard 消息
# 单按钮
python scripts/dingtalk.py webhook-action-card \
--title "审批通知" \
--single-title "查看详情" \
--url "https://www.dingtalk.com" \
"#### 请假申请\n请审批"
# 多按钮
python scripts/dingtalk.py webhook-action-card \
--title "审批通知" \
--buttons "同意,https://approve.com/yes;拒绝,https://approve.com/no" \
--btn-orientation 0 \
"#### 请假申请"FeedCard 消息
python scripts/dingtalk.py webhook-feed-card \
--links "新闻1,https://news1.com,https://img1.com/pic.png;新闻2,https://news2.com,https://img2.com/pic.png"加签安全
# 配置加签密钥(一次设置)
python scripts/dingtalk.py config --set webhook_secret=SECxxxxxxxxxxxxxxxxxxxxxxxxxx
# 或通过参数临时指定
python scripts/dingtalk.py webhook-text \
--webhook-token "access_token_xxx" \
--webhook-secret "SECxxxxxxxxxxxxxxxxxxxxxxxxxx" \
"带加签的消息"企业内部机器人消息
单聊消息
# 文本
python scripts/dingtalk.py text "Hello!" --users user001,user002
# Markdown
python scripts/dingtalk.py markdown --title "天气提醒" --users user001 \
"#### 杭州天气\n> 9度,西北风1级"
# 链接
python scripts/dingtalk.py link --title "时代在进步" --url "https://www.dingtalk.com" \
--users user001 "点击查看详情"
# ActionCard
python scripts/dingtalk.py action-card --title "审批通知" \
--single-title "查看详情" --url "https://www.dingtalk.com" \
--users user001 "#### 请假申请\n请审批"
# 文件
python scripts/dingtalk.py file --users user001 --file /path/to/report.pdf --file-name "月度报告.pdf"群聊消息
python scripts/dingtalk.py text "大家好!" \
--mode group \
--conversation-id chatxxxxxxxxxxxxxxxx \
--at-mobiles 13800138000,13900139000CLI 语法规则
content是位置参数(无--前缀),放在可选参数之后- 换行使用
\n,脚本自动处理转换 content必须用双引号包裹- 可通过
--app-key、--robot-code等参数临时覆盖配置文件
钉钉 Markdown 语法限制
钉钉 Markdown 只支持有限子集,构造内容时必须遵守:
支持: 标题(#)、加粗(**)、链接([](url))、图片()、无序列表(-)、有序列表(1.)、引用(>)
不支持(禁止使用): 分隔线(---)、表格、代码块、行内代码、删除线、任务列表、斜体、嵌套列表
脚本会自动移除分隔线
---,但其他不支持的语法需要手动避免。
常见错误码
企业内部机器人: 40001(token过期) / 40004(无效机器人) / 40009(用户不在可见范围) / 40010(未建立会话) / 40037(发送过频)
Webhook: 300001(无效token) / 310000(签名校验失败) / 302503(频率限制,每分钟20条)
注意事项
- 频率限制:企业内部机器人每秒20次,Webhook每分钟20条
- Webhook 仅群聊:不支持单聊,link/feedCard 不支持 @功能
- 单聊前置条件:用户需先主动给机器人发过消息
- 批量限制:单次最多发送100个用户
- 消息长度:过长内容建议拆分或使用文件发送
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

