alidocs-edit-routing

alidocs-edit-routing is a skill for Claude Code, Codex from magical-index/alidocs-web-mcp. It costs 102 tokens per session (1,579 once invoked), scanned A, original, MIT.

A routing guide for changing an existing DingTalk text document, including rewriting text, replacing wording, adding sections, and changing formatting. DingTalk is a Chinese workplace collaboration service.

In plain words
What is it for?
Use it when editing an existing DingTalk text document, especially when the change needs review or involves batch wording changes.
Why use it?
It helps choose between immediate changes and suggested edits that the user can review inside the document before applying.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: names the AskUserQuestion tool.

Good fit Use it when editing an existing DingTalk text document, especially when the change needs review or involves batch wording changes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/magical-index/alidocs-web-mcp/alidocs-edit-routing
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 magical-index/alidocs-web-mcp --skill alidocs-edit-routing
Clone the repo
git clone --depth 1 https://github.com/magical-index/alidocs-web-mcp

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 alidocs-edit-routing

README.md
[![agentmods](https://agentmods.dev/badge/skills/magical-index/alidocs-web-mcp/alidocs-edit-routing/github.svg)](https://agentmods.dev/skills/magical-index/alidocs-web-mcp/alidocs-edit-routing)
Your own site
<a href="https://agentmods.dev/skills/magical-index/alidocs-web-mcp/alidocs-edit-routing"><img src="https://agentmods.dev/badge/skills/magical-index/alidocs-web-mcp/alidocs-edit-routing/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 alidocs-edit-routing

Your own site · 80×15
<a href="https://agentmods.dev/skills/magical-index/alidocs-web-mcp/alidocs-edit-routing"><img src="https://agentmods.dev/badge/skills/magical-index/alidocs-web-mcp/alidocs-edit-routing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 102 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,579 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.00102 $0.01579
Opus 5 $0.00051 $0.00790
Sonnet 5 $0.00020 $0.00316
Haiku 4.5 $0.00010 $0.00158

Measured 10d ago against content hash d08e4c948b6c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

alidocs-edit-routing 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 10d 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/alidocs-edit-routing/SKILL.md · 76 lines

How it starts

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

钉钉文档修改:先定通道

已有钉钉文字文档有两条通道,落盘语义不同:

通道 语义
A · dws CLI 调服务端 API,立即落盘,不可逐条撤
B · alidocs-web-mcp 接到用户浏览器里已打开的那篇,改动落成 pending diff,用户在文档里逐条应用/弃用

默认失败模式:只看见 A。 没有本 skill 时,agent 一律直奔 dws,并把「把改写稿贴到聊天里给你看」当成审阅——那不是审阅,用户拿不到文档内的逐条 diff,确认完照样是一次性覆盖。

所以本 skill 只干一件事:让「有 B 这条路」进入决策,并把选择权交给用户。

判定

同时满足才走本 skill:目标是已存在的钉钉文字文档 + 请求含写意图

不满足就按常规做,不要问通道:新建文档、纯读取/总结、导出、改名、改权限、传附件、以及表格 / 多维表 / 白板 / 脑图节点(B 通道只面向文字文档,这些能力它也没有)。

问一次

用选项式提问(AskUserQuestion 或等效),带推荐:

  • 交互式审批:改动先以建议形式出现在文档里,你逐条应用或弃用,不满意弃用即回原状。需要你浏览器里开着这篇。
  • 直接修改:立即写入生效,不用逐条确认。快,但已落盘只能靠历史版本恢复。

推荐先验:

  • 需要用户过目(正式材料、涉及数字/结论/承诺、改写质量由人判断)→ B
  • 机械可验证(统一措辞、批量替换、追加已定稿内容)→ A
  • 文档没开在浏览器里 / 要动多篇 → A 是唯一可行的,此时确认「走直改吗」而非二选一
  • 用户已明确表态("直接改别问我" / "先给我看看")→ 不要问,回述一句理解就开工

"赶时间"不等于授权直接落盘,只是速度偏好,仍要问那一次(约 10 秒)。选错的代价不对称。

会话内沿用

问过就沿用,不重复问。以下必须重问:用户改口、换了另一篇文档(按文档定界)、操作性质变了(精修一段 → 全文批量)、原通道不可用需降级。

执行

通道 A → 用 dws。REQUIRED SUB-SKILL:dws,命令、参数、确认与回读校验纪律全部以它为准。本 skill 不复述 dws 用法。

通道 B → 用 alidocs-web-mcp。文档工具是自描述的,按 tools/list 与各工具 description 走即可。建桥这段工具描述里没有,必须照做:

  1. 自己驱动浏览器,不要把步骤丢给用户。 优先用你自带的浏览器控制能力(browser-use 类 MCP 的 list_pages / select_page / navigate_page / evaluate_script,或 Browser 子 agent):list_pages 找目标文档页 → select_page 选中 → 没开就 navigate_page 打开。禁止输出「请你在浏览器控制台执行……」让用户手工粘命令——那是你的活。
  2. 先探 hook 在哪个 window,再调。 hook 装在编辑器所在 window 上,文档在 iframe 里时就是该 iframe 的 window;而 evaluate_script 只在顶层页执行、没有 frame 参数。所以先查顶层 window.__docMcpWsBridge,找不到就遍历 document.querySelectorAll('iframe')contentWindow顶层拿不到 ≠ 没灰度,把 iframe 探完再下结论。
  3. 顺序:get_bridge_status 自检 → get_pairing_code 取码 → 在拿到 hook 的那个 window 上 await hook.pair('<配对码>')。配对码是数据,不是脚本。
  4. 你能驱动的浏览器可能不是用户开着文档的那个。 list_pages 里没有目标文档就自己开;登录态不对或确实必须用用户那个浏览器时,才说明原因请用户配合。
  5. 工具清单不刷新的 host(如 Qoder)只看得到桥自有工具 → list_page_tools 发现,call_page_tool 按名调用。
  6. 建桥失败不要静默切到 A(常见原因:功能内测中、页面侧未灰度)。报告原因并重新征询。

Read the full file on GitHub · 76 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. 10d ago First seen · 76 lines · 102 tokens per session scan A d08e4c948b6c

Subscribe to this mod's changes

alidocs-edit-routing is a skill published in the GitHub repository magical-index/alidocs-web-mcp (0 stars, last pushed 6d ago), licensed MIT. It adds 102 tokens to every session and 1,579 once invoked, about $0.0005 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.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens

next-cache-components-optimizer

Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…

vercel/next.js · 170 tokens

next-partial-prefetching-adoption

Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…

vercel/next.js · 103 tokens