Agent skill

Dingtalk Message

by agentscope-ai in agentscope-ai/ReMe

钉钉消息发送技能。支持企业内部机器人(批量单聊/群聊)和 Webhook 自定义机器人两种接入方式,支持多机器人管理,支持文本、Markdown、链接、ActionCard、FeedCard等多种消息类型。

Apache-2.0Auto-check passedBackend & APIs

Install Dingtalk Message

skills CLI
$ npx skills add agentscope-ai/ReMe --skill dingtalk-message -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install agentscope-ai/ReMe dingtalk-message --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/agentscope-ai/ReMe.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/dingtalk-message .claude/skills/dingtalk-message && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
dingtalk-message
GitHub stars
3.6k
Token cost
~1.6k tokens
SKILL.md length
164 words
Files
4 (incl. scripts)
Skills in repo
3
Repo updated
First seen
Licence
Apache-2.0

At a glance

钉钉消息发送技能。支持企业内部机器人(批量单聊/群聊)和 Webhook 自定义机器人两种接入方式,支持多机器人管理,支持文本、Markdown、链接、ActionCard、FeedCard等多种消息类型。

  • Works in 3 steps: 询问用户的机器人类型和凭证信息 → 执行配置命令:python scripts/dingtalk.py… → 验证配置:python scripts/dingtalk.py config…
  • Tasks that involve Webhooks
  • SKILL.md covers 概述, 环境要求, 首次配置 and 机器人管理, plus 6 more sections
  • Runs Python scripts from its folder; calls python and pip; reaches dingtalk.com and approve.com

What it does

Dingtalk Message is an agent skill from agentscope-ai/ReMe. 钉钉消息发送技能。支持企业内部机器人(批量单聊/群聊)和 Webhook 自定义机器人两种接入方式,支持多机器人管理,支持文本、Markdown、链接、ActionCard、FeedCard等多种消息类型。

Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including scripts (for example `README.md`, `package.json` and `scripts/dingtalk.py`).

It sits in Backend & APIs, covering Webhooks and Markdown. It works with Python. The repository describes itself as: ReMe: Memory Management Kit for Agents - Remember Me, Refine Me. The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve Webhooks
  • Tasks that involve Markdown

Example prompts

  • “/dingtalk-message”

Requirements

  • Python 3

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. 询问用户的机器人类型和凭证信息
  2. 执行配置命令:python scripts/dingtalk.py robot-add --name "机器人名" --type webhook ...
  3. 验证配置:python scripts/dingtalk.py config --show

What it can do on your machine

Read from SKILL.md and the folder at commit 084c02e. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python
    • pip

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • dingtalk.com
    • approve.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Dingtalk Message loads about 1.6k tokens when it runs. Until then it costs about 30 tokens; SKILL.md has 164 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~30
When it runs · the whole SKILL.md, loaded when a task matches
~1.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from agentscope-ai/ReMe at commit 084c02e, republished under its Apache-2.0 licence (© agentscope-ai). 164 words, ~1,554 tokens.

Download SKILL.mdSave it as .claude/skills/dingtalk-message/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
dingtalk-message
description
钉钉消息发送技能。支持企业内部机器人(批量单聊/群聊)和 Webhook 自定义机器人两种接入方式,支持多机器人管理,支持文本、Markdown、链接、ActionCard、FeedCard等多种消息类型。
version
0.3.0

钉钉消息发送技能

概述

支持两种接入方式:

  • Webhook 自定义机器人:通过 access_token 向群聊发送消息,接入简单
  • 企业内部机器人:通过 app_key/app_secret 发送单聊、群聊消息,功能更全

支持多机器人管理,只有一个时自动使用,多个时按优先级自动选择。

环境要求

  • Python 3.7+
  • pip install requests

首次配置

引导流程

首次使用此技能时,必须按以下流程引导用户完成配置:

  1. 询问用户的机器人类型和凭证信息:

    • Webhook 机器人:需要 access_token(和可选的加签密钥 secret)
    • 企业内部机器人:需要 app_key、app_secret、robot_code(和可选的 agent_id)
  2. 执行配置命令:python scripts/dingtalk.py robot-add --name "机器人名" --type webhook ...

  3. 验证配置: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 描述用途,方便智能匹配:

json
{
    "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。

通过命令行添加
bash
# 添加 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 "支持单聊群聊"
验证配置
bash
python scripts/dingtalk.py config --show

机器人管理

选择逻辑
  • 只配置一个机器人时,自动使用
  • 多个机器人时:--robot 指定 > default_robot > 最近使用过的 > 第一个可用的
  • 用户未明确指定时,可根据机器人的 description 和最近消息记录智能匹配,或询问用户
管理命令
bash
# 添加(--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 地址

文本消息
bash
# 已配置时直接发送
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 消息
bash
python scripts/dingtalk.py webhook-markdown \
    --title "天气提醒" \
    "#### 杭州天气\n> 9度,西北风1级"
链接消息
bash
python scripts/dingtalk.py webhook-link \
    --title "时代在进步" \
    --url "https://www.dingtalk.com" \
    --pic-url "https://example.com/image.png" \
    "点击查看详情"
ActionCard 消息
bash
# 单按钮
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 消息
bash
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"
加签安全
bash
# 配置加签密钥(一次设置)
python scripts/dingtalk.py config --set webhook_secret=SECxxxxxxxxxxxxxxxxxxxxxxxxxx

# 或通过参数临时指定
python scripts/dingtalk.py webhook-text \
    --webhook-token "access_token_xxx" \
    --webhook-secret "SECxxxxxxxxxxxxxxxxxxxxxxxxxx" \
    "带加签的消息"

企业内部机器人消息

单聊消息
bash
# 文本
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"
群聊消息
bash
python scripts/dingtalk.py text "大家好!" \
    --mode group \
    --conversation-id chatxxxxxxxxxxxxxxxx \
    --at-mobiles 13800138000,13900139000

CLI 语法规则

  1. content 是位置参数(无 -- 前缀),放在可选参数之后
  2. 换行使用 \n,脚本自动处理转换
  3. content 必须用双引号包裹
  4. 可通过 --app-key、--robot-code 等参数临时覆盖配置文件

钉钉 Markdown 语法限制

钉钉 Markdown 只支持有限子集,构造内容时必须遵守:

支持: 标题(#)、加粗(**)、链接([](url))、图片(![](url))、无序列表(-)、有序列表(1.)、引用(>)

不支持(禁止使用): 分隔线(---)、表格、代码块、行内代码、删除线、任务列表、斜体、嵌套列表

脚本会自动移除分隔线 ---,但其他不支持的语法需要手动避免。

常见错误码

企业内部机器人: 40001(token过期) / 40004(无效机器人) / 40009(用户不在可见范围) / 40010(未建立会话) / 40037(发送过频)

Webhook: 300001(无效token) / 310000(签名校验失败) / 302503(频率限制,每分钟20条)

注意事项

  • 频率限制:企业内部机器人每秒20次,Webhook每分钟20条
  • Webhook 仅群聊:不支持单聊,link/feedCard 不支持 @功能
  • 单聊前置条件:用户需先主动给机器人发过消息
  • 批量限制:单次最多发送100个用户
  • 消息长度:过长内容建议拆分或使用文件发送

© agentscope-ai, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 3 other files (scripts) in skills/dingtalk-message of agentscope-ai/ReMe.

  • SKILL.md
  • README.md
  • package.json
  • scripts/dingtalk.py

Open the folder on GitHubat commit 084c02e

Compare with similar skills

Dingtalk Message next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Dingtalk Message compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Dingtalk Message this skillagentscope-ai/ReMe3.6k—~1.6kAutomated safety check: PassApache-2.0
Stripe Best Practiceskanchengw/cnllm1753 repos~925Automated safety check: PassApache-2.0
Tlgrtlgrcli/tlgr1931 repos~1.5kAutomated safety check: PassMIT
Telegram Development Guide2025Emma/vibe-coding-cn23k1 repos~3.7kAutomated safety check: PassMIT
Adobe App Builder Action Scaffolderadobe/skills196—~3.1kAutomated safety check: PassApache-2.0
Bfl APIblack-forest-labs/skills1251 repos~2.5kAutomated safety check: NotesMIT

Similar skills

  • Stripe Best Practices

    kanchengw/cnllm

    Guides Stripe integration decisions — API selection (Checkout Sessions vs PaymentIntents), Connect platform setup (Accounts v2, controller properties), billing/subscriptions, Treasury financial…

    175 GitHub starsUsed in 3 repos~925 tokens
    Backend & APIsAuto-check passed
  • Tlgr

    tlgrcli/tlgr

    Read and act on a personal Telegram account from the terminal with the tlgr CLI (MTProto user account, not a bot).

    193 GitHub starsUsed in 1 repo~1.5k tokens
    Backend & APIsAuto-check passed
  • Telegram Development Guide

    2025Emma/vibe-coding-cn

    Chinese-language guide to building on Telegram: bots through the Bot API, Mini Apps in JavaScript and custom clients through TDLib, with Python examples.

    23k GitHub starsUsed in 1 repo~3.7k tokens
    Backend & APIsAuto-check passed
  • Scaffolds, implements, deploys and debugs Adobe Runtime actions in App Builder projects, with templates for webhooks, events, database CRUD, sequences and Asset Compute workers.

    196 GitHub stars~3.1k tokensUpdated today
    Backend & APIsAuto-check passed
  • Bfl API

    black-forest-labs/skills

    BFL FLUX API integration guide covering endpoints, async polling patterns, rate limiting, error handling, webhooks, and regional endpoints with Python and TypeScript code examples.

    125 GitHub starsUsed in 1 repo~2.5k tokens
    Backend & APIsAuto-check: notes
  • E2a Integrate

    tokencanopy/e2a

    A skill your agent uses when adding e2a email capabilities to an application or codebase: outbound sending, inbound signed webhooks, REST polling, or SDK integration.

    192 GitHub stars~840 tokensUpdated 2 days ago
    Backend & APIsAuto-check passed

More from agentscope-ai/ReMe

  • Serper Search

    agentscope-ai/ReMe

    Search the public web through Serper instead of the built-in WebSearch tool.

    3.6k GitHub stars~459 tokensUpdated 2 days ago
    Auto-check passed
  • Reme Memory

    agentscope-ai/ReMe

    Use ReMe as file-native long-term memory in Claude Code. An agent skill from agentscope-ai/ReMe.

    3.6k GitHub stars~740 tokensUpdated 2 days ago
    Auto-check passed

Works with

Categories

Questions about Dingtalk Message

What does Dingtalk Message do?

钉钉消息发送技能。支持企业内部机器人(批量单聊/群聊)和 Webhook 自定义机器人两种接入方式,支持多机器人管理,支持文本、Markdown、链接、ActionCard、FeedCard等多种消息类型。. Dingtalk Message is an agent skill from agentscope-ai/ReMe.

When should I use Dingtalk Message?

Dingtalk Message fits situations like: tasks that involve Webhooks; tasks that involve Markdown.

How do I install Dingtalk Message in Claude Code?

Run `npx skills add agentscope-ai/ReMe --skill dingtalk-message -a claude-code`. Or copy the skill folder (skills/dingtalk-message in agentscope-ai/ReMe) into .claude/skills/dingtalk-message in your project. Claude Code loads it when a task matches its description.

How do I install Dingtalk Message in Codex?

Run `npx skills add agentscope-ai/ReMe --skill dingtalk-message -a codex`. Or copy the skill folder (skills/dingtalk-message in agentscope-ai/ReMe) into .agents/skills/dingtalk-message in your project. Codex loads it when a task matches its description.

Can I use Dingtalk Message in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add agentscope-ai/ReMe --skill dingtalk-message -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/dingtalk-message, .gemini/skills/dingtalk-message, .github/skills/dingtalk-message and .opencode/skills/dingtalk-message in your project.

What does Dingtalk Message need to run?

Going by SKILL.md and its folder, Dingtalk Message needs Python for the scripts in its folder and the command-line tools its instructions call (python and pip). Our summary lists: Python 3.

Does Dingtalk Message access the network?

SKILL.md names 2 domains. In commands or code: dingtalk.com and approve.com; the agent is likely to contact these when it follows the instructions. This is read from the text; nothing was executed.

Is Dingtalk Message safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Dingtalk Message use?

Dingtalk Message is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Dingtalk Message use?

About 1.6k tokens (SKILL.md is roughly 6.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Dingtalk Message?

Skills that share tags, products or a category with Dingtalk Message: Stripe Best Practices (kanchengw/cnllm, 175 stars), Tlgr (tlgrcli/tlgr, 193 stars), Telegram Development Guide (2025Emma/vibe-coding-cn, 23k stars) and Adobe App Builder Action Scaffolder (adobe/skills, 196 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Dingtalk Message?

agentscope-ai (a GitHub organization) maintains it in agentscope-ai/ReMe, which has 3,558 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on October 6, 2026.

Source: agentscope-ai/ReMe on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.