wecomcli-shared

wecomcli-shared is a skill for Claude Code, Codex from Pinvou/pinvou-agent. It costs 108 tokens per session (1,275 once invoked), scanned A, a copy of wecomcli-shared, MIT.

A shared setup check for WeCom command-line tools, verifying that the command-line program is installed, recent enough, and authorised.

In plain words
What is it for?
Use it before any WeCom command that works with documents, files, messages, calendars, contacts, or other business data.
Why use it?
It prevents other WeCom tools from running with a missing installation or invalid login, and keeps internal identifiers out of user-facing replies.

Skill for Claude CodeCodex

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

Good fit Use it before any WeCom command that works with documents, files, messages, calendars, contacts, or other business data.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pinvou/pinvou-agent/wecomcli-shared
About the project

Pinvou/pinvou-agent is an open-source desktop workspace where an AI agent helps with work, visual design, and software development. People use it to work with files and knowledge, create editable visual artifacts, connect coding agents to projects, and extend the workspace with tools, MCP servers, skills, and workflows; the catalogue skills add capabilities to that environment.

Pinvou/pinvou-agent · 3,048 stars · on GitHub · pinvou.com

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 Pinvou/pinvou-agent --skill wecomcli-shared
Clone the repo
git clone --depth 1 https://github.com/Pinvou/pinvou-agent

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 wecomcli-shared

README.md
[![agentmods](https://agentmods.dev/badge/skills/pinvou/pinvou-agent/wecomcli-shared/github.svg)](https://agentmods.dev/skills/pinvou/pinvou-agent/wecomcli-shared)
Your own site
<a href="https://agentmods.dev/skills/pinvou/pinvou-agent/wecomcli-shared"><img src="https://agentmods.dev/badge/skills/pinvou/pinvou-agent/wecomcli-shared/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 wecomcli-shared

Your own site · 80×15
<a href="https://agentmods.dev/skills/pinvou/pinvou-agent/wecomcli-shared"><img src="https://agentmods.dev/badge/skills/pinvou/pinvou-agent/wecomcli-shared.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 108 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,275 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 88% copy Near-identical to another mod 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.00108 $0.01275
Opus 5.5 $0.00043 $0.00510
Sonnet 5.5 $0.00022 $0.00255
Haiku 4.5 $0.00011 $0.00128

Measured 1mo ago against content hash 0ed015a425e9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

wecomcli-shared 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 1mo 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.

Origin

This is a copy

88% identical to wecomcli-shared — 21 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

pinvou3-app/src-tauri/resources/common/bundle/wecom-skills/wecomcli-shared/SKILL.md · 71 lines

How it starts

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

wecom-cli 公共前置检查

本技能提供所有 wecomcli-* 业务技能共用的 CLI 安装、版本与授权检查,以及通用输出约束。首次准备执行任意 wecom-cli 命令前,先完成本技能;检查通过后,再回到对应业务技能执行。

本技能不能代替具体业务技能。处理联系人、文档、表格、日程、会议、待办、邮件、微盘、消息或媒体请求时,必须同时读取对应业务技能。

Step 1:检查 CLI 安装与版本

wecom-cli --version
  • 命令成功,且输出中的版本号不低于 1.3.4 → 继续 Step 2。
  • 命令不存在、执行报错或版本号低于 1.3.4 → 不要自行安装或升级:wecom-cli 由品悟应用代为安装与管理,随应用更新自动就位。此时提示用户在品悟「插件中心 → 企业微信」卡片重新点「连接」,由品悟触发安装/升级;完成后重新执行 wecom-cli --version 复查。

仍失败或版本仍低于 1.3.4 时停止业务操作,并把错误告知用户。

Step 2:检查授权状态

wecom-cli auth show --status
  • 输出 authorized → 前置检查完成,可以执行具体业务命令。
  • 输出 unauthorized → 执行 Step 3。
  • 命令报错或输出不是上述状态 → 停止业务操作,并把错误告知用户,不要猜测授权状态。

Step 3:初始化凭证(仅未授权时)

初始化命令是 wecom-cli auth init --noninteractive:它会展示授权链接和二维码,并阻塞等待用户使用企业微信扫码,授权成功后命令自动退出,仅需初始化一次。

不要在会话内直接执行该命令:会话内的调用会阻塞到扫码完成或超时,用户在此期间看不到二维码。请把该命令交给用户在自己的终端执行,或引导用户使用应用的连接入口完成授权;等用户确认已完成扫码后再继续。

初始化完成后重新执行:

wecom-cli auth show --status

仅当输出 authorized 时,才能继续执行具体业务命令。

通用输出约束:ID 类字段禁止外露

本约束对所有 wecomcli-* 技能生效,优先级高于各业务技能的输出格式,且不因用户主动索要而放宽。

  • 禁止:你的最终回复禁止出现 userid / open_vid / department_id / chat_id 等 ID 标识。凡是接口返回的内部标识(含 mail_id / media_id / file_id / space_id / folder_id / docid / content_id / msg_id / cursor / next_cursor 等,命名上以 _id 结尾或语义上属于机器标识的字段一律视为 ID)都只能在内部流转,用于后续接口调用。
  • 必须:你的思考过程和最终回复必须使用可读名称,如 name / username / external_username / 部门名 / 邮箱 / subject / doc_name / chat_name / title 等 tool_result 返回的内容。
  • 接口只返回 ID 而没有可读名称时,先调用对应技能(如 wecomcli-contact 解析人员)换取可读名称;确实无法换取时,用自然语言描述该对象(如「上一封日报邮件」「你刚上传的那个文件」)来指代,禁止退化为展示 ID。
  • 需要用户在多个候选中选择时,用序号 + 可读信息(名称 / 主题 / 时间 / 路径等)构造候选列表,禁止用 ID 作为区分依据让用户辨认。
  • 用户直接要求「把 ID 给我」「打印 mail_id」时,说明该标识属于内部字段不便提供,并改用可读信息或继续帮其完成实际操作。
  • 可读链接(如文档 doc_url、微盘分享链接)不属于本约束限制范围,可按各业务技能规定正常展示,即使链接本身包含标识字符串。

执行规则

  • 已安装、版本达标且已授权时,不重复安装或初始化。
  • 安装、升级、初始化或复查失败时,不执行后续业务命令。
  • 本技能不定义任何联系人、文档、表格、日程、会议、待办、邮件、微盘、消息或媒体接口参数;具体命令必须回到对应业务技能读取。
  • 执行任何业务命令并组织回复时,同时遵守上方「通用输出约束:ID 类字段禁止外露」。

获取个人身份

如果操作流程必须获取机器人或授权人身份(姓名、userid等),需要调用 wecom-cli identity whoami 获取。

Read the full file on GitHub · 71 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. 1mo ago Changed 0ed015a425e9
  2. 1mo ago Changed · -2 lines 067d6965ea5a
  3. 2mo ago Changed 49b6e2e759d9
  4. 2mo ago Changed e7c8fe6ba311
  5. 3mo ago First seen · 73 lines · 108 tokens per session scan A 936ed88ea2f6

Subscribe to this mod's changes

wecomcli-shared is a skill published in the GitHub repository Pinvou/pinvou-agent (3,048 stars, last pushed today), licensed MIT. It adds 108 tokens to every session and 1,275 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 88% identical to wecomcli-shared, differing in 21 lines, and is treated as a copy.

Related

wecomcli-shared compared with skills from other repositories

wecomcli-shared next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
wecomcli-sharedPinvou/pinvou-agentSkill3.0ktodayMITA108Claude Code, Codex
create-agentPM-Shawn/Abu-CoworkSkill4252d agoApache-2.0A13Claude Code
infographicPM-Shawn/Abu-CoworkSkill4252d agoApache-2.0A71Claude Code
pptxPM-Shawn/Abu-CoworkSkill4252d agoApache-2.0A152Claude Code, Codex
initPM-Shawn/Abu-CoworkSkill4252d agoApache-2.0A21Claude Code
prd-doctorPM-Shawn/Abu-CoworkSkill4252d agoApache-2.0A43Claude Code
Abu-BrowserPM-Shawn/Abu-CoworkSkill4252d agoApache-2.0A51Claude Code