Introduction¶
After a scheduled task or Agent workflow completes, the output is often an HTML report or a dashboard. If you simply attach files or paste long text into a group chat, members have to download and open them separately — a poor experience that also makes it hard to quickly skim conclusions in the conversation.
A more common need is: periodically push conclusions to a DingTalk group, with a clickable link for the full page when deeper inspection is needed. Setting up a custom Webhook robot isn’t hard, but dealing with signing, message types, rate limits, and the boundaries of markdown syntax can be a pain — every hiccup means going back and forth with the Open Platform docs.
The Skill described below packages “send notifications via group robot” into a reusable Agent capability, ships with a zero-dependency Python CLI, and covers automation notification scenarios like CI, monitoring, and daily reports. In particular, the link command is ideal for pushing a deployed HTML report URL to the group as a link card.
What This Is¶
- Skill identifier:
@clawhub_zhangifonly/dingding(ClawHub package name Dingding, current version 2.0.0) - Publisher: zhangifonly
- SkillHub page: Dingding
- User install entry: https://api.skillhub.cn/user_9b82e2a1/dingding
- Upstream docs: clawhub.ai/zhangifonly/dingding
On SkillHub, this Skill is categorized as dev-programming, with the tag requires_api_key=true; public stats show a score of 100000, 7407 downloads, and 158 installs (per the SkillHub page).
In one line: DingTalk group robot toolkit and Open Platform development guide — the Agent can use the bundled CLI to send text / markdown / link cards to a group, and gets a quick-reference on Open Platform APIs (tokens, approvals, directory, etc.).
Core Features¶
The following is drawn from the Skill body on ClawHub / SkillHub. Features not listed here should not be assumed to be supported.
Zero-Dependency Group Send CLI¶
The Skill ships with scripts/dingbot.py, relying only on the Python standard library. The declared behavior is: requests are sent exclusively to oapi.dingtalk.com; the second argument of the markdown command, if it’s a local file path, will be read as a file — otherwise no local files are read or written.
Three message types are supported:
| Command | Purpose |
|---|---|
text <content> [@phone,phone\|@all] |
Text, can @ specific members or everyone |
markdown <title> <md file or content> |
Markdown; title appears in the conversation list |
link <title> <body> <target URL> [image URL] |
Link card |
The signing algorithm is built in (HMAC-SHA256 + Base64 + URL concatenation), eliminating manual signing errors.
Automation Notification Scenarios (Officially Listed)¶
The Skill documentation explicitly supports:
- CI/CD:
textbuild/test/deploy results to the project group upon completion - Monitoring alerts:
markdownstructured alerts after anomaly detection - Scheduled daily reports:
markdownpush after cron generates an md report - Precise @: @ on-call phone numbers during alerts instead of default @all
After deploying a periodically generated HTML report to an accessible HTTPS URL, you can use link to push the title, summary, and URL. Members click to view the fully rendered page — no need to send the HTML file as an attachment (the specific deployment method is up to your static hosting or intranet gateway; the Skill does not provide hosting scripts).
Open Platform Development Quick Reference¶
Beyond Webhook robots, the Skill also summarizes key points for enterprise internal applications, for example:
- Legacy domain
oapi.dingtalk.comand new domainapi.dingtalk.comcoexist; the new-style token goes via the Headerx-acs-dingtalk-access-token GET /gettoken?appkey=&appsecret=to obtain an access_token (valid for 7200 seconds, requires centralized caching)- Features like work notifications, approvals, directory, attendance, etc. should be referenced from the open.dingtalk.com documentation
Enterprise internal applications are relatively simple (no marketplace review); third-party applications require going through the app marketplace review process.
Capabilities Explicitly NOT Covered by This Skill¶
The documentation states: does NOT include DingTalk personal account protocol automation; Stream mode callbacks, AI Assistant (DingTalk AI PaaS), and other newer capabilities are NOT covered — refer to official documentation. When group sending involves @all, the Agent should confirm with the user first.
Installation & Activation¶
Installing the CLI (SkillHub)¶
If the SkillHub CLI is not yet installed on your machine, follow the official instructions to check or install:
command -v skillhub && skillhub --version
If not installed, run the following (requires network access):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
Installing This Skill¶
The SkillHub page requires: follow skillhub.cn/install/skillhub.md, install identifier @clawhub_zhangifonly/dingding. You must use --dir to point to your current Agent’s skills directory; otherwise it defaults to ./skills/ which may not be recognized.
skillhub install @clawhub_zhangifonly/dingding --dir <your Agent skills directory>
Examples of skills directories for common Agents (from the SkillHub install docs):
- Cursor:
~/.cursor/skills/ - Claude Code:
~/.claude/skills/ - Codex:
~/.codex/skills/or.agents/skills/under the project - workbuddy:
~/.workbuddy/skills/
After installation, restart or refresh the skill index as required by your Agent.
Robot & Environment Variables¶
In your DingTalk group: Group Settings → Smart Group Assistant → Add Robot → Custom. For security settings, we recommend choosing “Sign” (HMAC signing).
export DING_WEBHOOK='https://oapi.dingtalk.com/robot/send?access_token=xxx'
export DING_SECRET='SECxxxxxx' # Signing secret; omit DING_SECRET if using keyword or IP whitelist mode
The tag requires_api_key=true means actual credentials (Webhook, Secret, Open Platform AppKey, etc.) must be configured in your environment. The Skill will not fill in keys on your behalf.
Typical Usage¶
Quick Smoke Test¶
Run from the Skill repo root directory (paths depend on your actual install location):
python3 scripts/dingbot.py text "Deployment complete" @all
python3 scripts/dingbot.py markdown "Patrol Daily Report" report.md
python3 scripts/dingbot.py link "New Version Release" "Click to view details" https://example.com/report/2026-11-17.html
The third line demonstrates a daily-report scenario: when the report HTML is published to a fixed or date-varying URL, use a link card to direct group members to the full page.
Integrating with Scheduled Tasks¶
A typical pipeline looks like:
- A scheduled task or Agent generates
report.mdor an HTML file - If it’s HTML, upload or sync it to a URL accessible on the public or internal network
- The final step in cron or the workflow invokes
dingbot.py markdownorlink
The Skill itself does not include cron; scheduling is still handled by your existing Jenkins, GitHub Actions, system cron, or Agent scheduled tasks.
Use Cases & Caveats¶
Who This Is For¶
- Developers or ops engineers who need automated notifications in DingTalk groups (build results, patrol checks, daily reports)
- Teams who want the Agent to call a standard Webhook per documentation, rather than manually looking up the signing algorithm each time
- Teams that need link cards to distribute clickable HTML/dashboard URLs
Limitations & Known Pitfalls¶
Error codes and handling suggestions from the Skill documentation:
| errcode | Meaning | Resolution |
|---|---|---|
| 300005 | Token does not exist | Webhook URL is wrong or the robot has been removed |
| 310000 | Security check failed | Keyword mode: message must contain the set keyword; Sign mode: verify DING_SECRET; IP mode: check egress IP |
| 130101 | Sending too fast | ~20 messages/minute per robot; exceeding may trigger a 10-minute block |
Other notes:
- Three security modes (keyword / sign / IP whitelist) — pick one; the documentation recommends signing, while keyword mode forces every message to include the specified word
- Group markdown is a syntax subset, tables are NOT supported; to show a table, send a screenshot or switch to a link card
@phoneonly works via the script wrapper intexttype; @ in markdown requires coordinating the body text with theatfield (see the Skill body)
If your solution relies on Stream callbacks, enterprise internal-purchase robot openConversationId monitoring, etc., this Skill’s documentation explicitly marks these as uncovered. You’ll need to consult the latest DingTalk Open Platform docs and implement them yourself.
Conclusion¶
For needs like automated DingTalk report delivery or scheduled HTML artifacts pushed to a group, the practical pattern is usually “scheduled output + clickable URL + group robot.” @clawhub_zhangifonly/dingding provides a zero-dependency dingbot.py, signing and three message-type wrappers, plus production-grade error codes and an Open Platform quick reference, enabling the Agent to reliably send group messages in CI, monitoring, and daily-report pipelines.
For installation and details, see SkillHub: https://api.skillhub.cn/user_9b82e2a1/dingding, upstream Skill docs: https://clawhub.ai/zhangifonly/dingding.