dingtalk-escalation

dingtalk-escalation is a skill for Claude Code, Codex from baixinghao/intent-gate-service. It costs 88 tokens per session (961 once invoked), scanned A, original, MIT.

A procedure for sending an unresolved decision to a DingTalk group, where people can answer through the bot. DingTalk is a team messaging platform commonly used in China.

In plain words
What is it for?
Use it to ask a DingTalk group for a decision, business or technical clarification, or non-blocking alignment, using correlation tokens and defined timeout behavior.
Why use it?
It provides a controlled way to ask reachable people when code or available evidence cannot settle a decision, while matching replies to the right question.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to ask a DingTalk group for a decision, business or technical clarification, or non-blocking alignment, using correlation tokens and defined timeout behavior.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/baixinghao/intent-gate-service/dingtalk-escalation
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add baixinghao/intent-gate-service --skill dingtalk-escalation
Clone the repo
git clone --depth 1 https://github.com/baixinghao/intent-gate-service

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for dingtalk-escalation

README.md
[![agentmods](https://agentmods.dev/badge/skills/baixinghao/intent-gate-service/dingtalk-escalation/github.svg)](https://agentmods.dev/skills/baixinghao/intent-gate-service/dingtalk-escalation)
Your own site
<a href="https://agentmods.dev/skills/baixinghao/intent-gate-service/dingtalk-escalation"><img src="https://agentmods.dev/badge/skills/baixinghao/intent-gate-service/dingtalk-escalation/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for dingtalk-escalation

Your own site · 80×15
<a href="https://agentmods.dev/skills/baixinghao/intent-gate-service/dingtalk-escalation"><img src="https://agentmods.dev/badge/skills/baixinghao/intent-gate-service/dingtalk-escalation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 88 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 961 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00088 $0.00961
Opus 5 $0.00044 $0.00481
Sonnet 5 $0.00018 $0.00192
Haiku 4.5 $0.00009 $0.00096

Measured 8d ago against content hash 73a3d9351013, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

dingtalk-escalation scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/dingtalk-escalation/SKILL.md · 73 lines

How it starts

The opening of the file, as written. The whole thing — 73 lines — stays where its author put it; the contents beside it link to each section on GitHub.

DingTalk Escalation Protocol(姊妹篇 intent-gate-service 专用)

本 skill 随钉钉交互剥离至 intent-gate-service-service。intent-gate 主插件默认 single 通道(对话框兜底),不碰钉钉;装了 intent-gate-service MCP 后本规程生效。

When to Use

Use the blocking gate (ask_human) or group-channel alignment (group_dispatch) when a decision needs a human who is reachable in the DingTalk group — not for things code evidence can settle, and never as a substitute for thinking.

Reply Protocol

Every escalated question carries a correlation token [HG-XXXX]:

  • The group message states the question, numbered candidate options, and the reply format: @robot [HG-XXXX] <answer>.
  • Humans reply by @-mentioning the robot with the token. Gate answers return to you as HUMAN_REPLY[who]: answer; alignment answers land in the requirement's _review/inbox/ and are collected via intent-gate's collect_answers.
  • With exactly one pending gate, the token may be omitted (HG_ALLOW_IMPLICIT_SINGLE_MATCH). With several pending, a token-less reply is rejected — never assume it matched.
  • Alignment questions are non-blocking and have no timeout: no answer means not urgent. Reconcile on session resume via intent-gate-service's group_rebroadcast (or intent-gate's rebroadcast_pending for the file-level checklist). Blocking gates return NO_REPLY on timeout — treat that as an explicit instruction to take the conservative path, never to improvise.

Tool Split(两个服务各管一段,文件契约衔接)

工具 所在服务 用途
ask_human / list_pending / cancel_gate intent-gate-service 编码期阻塞式决策闸门(红灯人工升级)
group_dispatch / group_rebroadcast intent-gate-service 意图对齐发题到群 / 未决题催单
collect_answers / resolve_question / list_pending_questions intent-gate 答案领取、核销写流水、就绪自检(单一事实源)

🔴 答案的注入与核销永远在 intent-gate 侧:intent-gate-service 只做分发与递送, 改图/补分支是宿主的活,文件账本不依赖钉钉存活。

Security Model (fail-closed)

  • The whitelist (HG_ALLOWED_SENDERS) empty = nobody can answer. Do not broaden it to "make things work" — an empty whitelist blocking answers is the system working as designed.
  • Only whitelisted staffIds can settle a gate; answers are attributed to the sender and recorded verbatim in the alignment log (accountability is a feature).
  • HTTP callback mode verifies DingTalk signatures and decrypts AES payloads; per-sender rate limiting applies.

Read the full file on GitHub · 73 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 73 lines · 88 tokens per session scan A 73a3d9351013

Subscribe to this mod's changes

dingtalk-escalation is a skill published in the GitHub repository baixinghao/intent-gate-service (2 stars, last pushed 27d ago), licensed MIT. It adds 88 tokens to every session and 961 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.