← 返回 Skills 市场
k55k32

DingTalk Channel Install

作者 Diamond Zhou · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ✓ 安全检测通过
758
总下载
0
收藏
5
当前安装
3
版本数
在 OpenClaw 中安装
/install dingtalk-channel-install
功能描述
安装和配置 OpenClaw 钉钉通道。使用当用户需要:(1) 安装 @soimy/dingtalk 插件,(2) 配置钉钉通道(Client ID/Secret 等),(3) 设置钉钉机器人连接。提供一键安装脚本和完整配置流程。
使用说明 (SKILL.md)

钉钉通道安装配置

快速安装和配置 OpenClaw 钉钉通道,实现钉钉与 OpenClaw 的双向通信。

⚠️ 安全提示

切勿将真实的 Client ID/Secret 提交到代码仓库! 示例中的凭证均为占位符,请替换为你自己的凭证。

快速开始

方式一:使用安装脚本(推荐)

python3 ~/.openclaw/workspace/my-skills/skills/dingtalk-channel-install/scripts/install_dingtalk.py \
  --client-id \x3C你的 Client ID> \
  --client-secret \x3C你的 Client Secret>

方式二:手动安装

  1. 安装插件

    openclaw plugins install @soimy/dingtalk
    
  2. 配置 channels - 编辑 ~/.openclaw/openclaw.json

    {
      "channels": {
        "dingtalk": {
          "enabled": true,
          "clientId": "\x3C你的 Client ID>",
          "clientSecret": "\x3C你的 Client Secret>",
          "dmPolicy": "open",
          "groupPolicy": "open",
          "showThinking": true,
          "thinkingMessage": "🤔 思考中,请稍候...",
          "debug": false,
          "messageType": "markdown",
          "allowFrom": ["*"]
        }
      }
    }
    
  3. 重启 Gateway

    openclaw gateway restart
    

脚本参数说明

参数 必填 说明
--client-id 钉钉应用 Client ID
--client-secret 钉钉应用 Client Secret
--robot-code 机器人 Code
--corp-id 企业 Corp ID
--agent-id 应用 Agent ID
--card-template-id 卡片模板 ID(仅 card 模式)
--card-template-key 卡片模板内容变量(仅 card 模式)
--message-type 消息类型:markdown/card,默认 markdown
--skip-restart 跳过 gateway 重启
--config-path 配置文件路径,默认 ~/.openclaw/openclaw.json

完整示例

基础配置(markdown 消息)

python3 ~/.openclaw/workspace/my-skills/skills/dingtalk-channel-install/scripts/install_dingtalk.py \
  --client-id \x3C你的 Client ID> \
  --client-secret \x3C你的 Client Secret>

卡片消息模式

python3 ~/.openclaw/workspace/my-skills/skills/dingtalk-channel-install/scripts/install_dingtalk.py \
  --client-id \x3CclientId> \
  --client-secret \x3CclientSecret> \
  --message-type card \
  --card-template-id \x3C模板 ID> \
  --card-template-key \x3C模板变量>

企业应用模式(带 corpId 和 agentId)

python3 ~/.openclaw/workspace/my-skills/skills/dingtalk-channel-install/scripts/install_dingtalk.py \
  --client-id \x3CclientId> \
  --client-secret \x3CclientSecret> \
  --corp-id \x3CcorpId> \
  --agent-id \x3CagentId>

配置说明

必填配置

  • clientId: 钉钉应用的唯一标识
  • clientSecret: 应用密钥,用于身份验证

可选配置

  • dmPolicy: "open" 允许私聊,"restricted" 限制私聊
  • groupPolicy: "open" 允许群聊,"restricted" 限制群聊
  • allowFrom: 允许的聊天来源,["*"] 表示允许所有
  • messageType: "markdown""card"
  • showThinking: 是否显示思考状态
  • debug: 调试模式

验证安装

  1. 检查插件状态:

    openclaw plugins list
    
  2. 检查配置:

    openclaw gateway status
    
  3. 在钉钉中添加机器人并发送消息测试

故障排查

插件重复警告

plugins.entries.dingtalk: plugin dingtalk: duplicate plugin id detected

这是正常警告,不影响使用。如需清理,删除重复的插件目录后重启。

配置验证失败

运行 openclaw doctor --fix 自动修复配置问题。

消息无法发送

  1. 检查 Client ID/Secret 是否正确
  2. 确认钉钉应用已配置机器人
  3. 检查 allowFrom 设置是否匹配 dmPolicy/groupPolicy

参考资源

安全使用建议
This skill appears to do exactly what it says: install the @soimy/dingtalk plugin and add the DingTalk channel to your OpenClaw config. Before running it: (1) inspect the included script (it's short and readable) and confirm the config path is correct; (2) back up ~/.openclaw/openclaw.json so you can restore prior settings; (3) avoid committing clientId/clientSecret into source control — the script writes them in plaintext to the OpenClaw config; (4) verify you trust the @soimy/dingtalk plugin source (SKILL.md links the GitHub repo) and that the openclaw CLI on your system is legitimate; (5) consider running with --skip-restart and restarting the gateway manually after review. If you need greater assurance, confirm the plugin package contents and origin before installing.
功能分析
Type: OpenClaw Skill Name: dingtalk-channel-install Version: 1.0.2 The skill bundle is a legitimate utility for installing and configuring the OpenClaw DingTalk channel. The provided Python script (scripts/install_dingtalk.py) safely automates the installation of the '@soimy/dingtalk' plugin and updates the local configuration file (~/.openclaw/openclaw.json) using standard practices, such as avoiding shell injection in subprocess calls and providing clear warnings about credential management in SKILL.md.
能力评估
Purpose & Capability
Name/description state installing/configuring a DingTalk channel; the script installs the @soimy/dingtalk plugin, updates ~/.openclaw/openclaw.json, and restarts the gateway — all consistent with that purpose. No unrelated credentials or binaries are requested.
Instruction Scope
SKILL.md and the script limit actions to installing the plugin, writing the specified OpenClaw config path, and restarting the gateway. They do not read or transmit other system files or environment variables beyond what is needed.
Install Mechanism
This is an instruction-only skill with a local Python script. There are no remote downloads or extract steps in the skill itself; the script invokes the openclaw CLI to install the plugin (expected behavior). No suspicious install URLs or archive extraction are present.
Credentials
No required environment variables or hidden credentials are declared. The script requires client-id and client-secret as command-line arguments (appropriate for configuring the channel). No unrelated secrets or config paths are requested.
Persistence & Privilege
The skill does not request always:true and is user-invocable. It writes only to the OpenClaw config (user-specified path) and enables the plugin — expected for a channel installer.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install dingtalk-channel-install
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /dingtalk-channel-install 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.2
- 更新了参考文档链接,现指向 OpenClaw 钉钉通道文档。 - 其余内容保持不变,无功能和脚本调整。
v1.0.1
fix shell injection risk
v1.0.0
- Initial release of dingtalk-channel-install skill for OpenClaw. - Provides one-click script and manual steps for installing and configuring the DingTalk channel. - Includes detailed setup instructions, parameters, example commands, and troubleshooting tips. - Supports both markdown and card message types, with options for enterprise app configuration. - Emphasizes security best practices for handling credentials.
元数据
Slug dingtalk-channel-install
版本 1.0.2
许可证 MIT-0
累计安装 7
当前安装数 5
历史版本数 3
常见问题

DingTalk Channel Install 是什么?

安装和配置 OpenClaw 钉钉通道。使用当用户需要:(1) 安装 @soimy/dingtalk 插件,(2) 配置钉钉通道(Client ID/Secret 等),(3) 设置钉钉机器人连接。提供一键安装脚本和完整配置流程。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 758 次。

如何安装 DingTalk Channel Install?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install dingtalk-channel-install」即可一键安装,无需额外配置。

DingTalk Channel Install 是免费的吗?

是的,DingTalk Channel Install 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

DingTalk Channel Install 支持哪些平台?

DingTalk Channel Install 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 DingTalk Channel Install?

由 Diamond Zhou(@k55k32)开发并维护,当前版本 v1.0.2。

💬 留言讨论