Agent skill

Wecomcli Shared

by WecomTeam in WecomTeam/wecom-cli

wecom-cli 业务技能的公共前置检查、获取机器人及授权真人身份,以及通用输出约束。任何 wecomcli- 技能首次准备执行 wecom-cli 命令前,都必须同时读取本技能,检查 CLI 是否安装、版本是否不低于 1.2.1,以及企业微信凭证是否已授权;仅在缺失、版本过低或未授权时执行安装或初始化。本技能还定义所有技能通用的 ID 类字段禁止外露约束。本技能不处理具体业务请求。

MITAuto-check passedDocuments & Office

Install Wecomcli Shared

skills CLI
$ npx skills add WecomTeam/wecom-cli --skill wecomcli-shared -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install WecomTeam/wecom-cli wecomcli-shared --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/WecomTeam/wecom-cli.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/wecomcli-shared .claude/skills/wecomcli-shared && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
wecomcli-shared
GitHub stars
3.2k
Used in
1 other repo
Token cost
~540 tokens
SKILL.md length
117 words
Files
1
Skills in repo
14
Repo updated
First seen
Licence
MIT

At a glance

wecom-cli 业务技能的公共前置检查、获取机器人及授权真人身份,以及通用输出约束。任何 wecomcli- 技能首次准备执行 wecom-cli 命令前,都必须同时读取本技能,检查 CLI 是否安装、版本是否不低于 1.2.1,以及企业微信凭证是否已授权;仅在缺失、版本过低或未授权时执行安装或初始化。本技能还定义所有技能通用的 ID 类字段禁止外露约束。本技能不处理具体业务请求。

  • Works in 3 steps: :检查 CLI 安装与版本 → :检查授权状态 → :初始化凭证(仅未授权时)
  • Documents & Office work in your project
  • SKILL.md covers Step 1:检查 CLI 安装与版本, Step 2:检查授权状态, Step 3:初始化凭证(仅未授权时) and 通用输出约束:ID 类字段禁止外露, plus 2 more sections
  • Calls npm

What it does

Wecomcli Shared is an agent skill from WecomTeam/wecom-cli. wecom-cli 业务技能的公共前置检查、获取机器人及授权真人身份,以及通用输出约束。任何 wecomcli- 技能首次准备执行 wecom-cli 命令前,都必须同时读取本技能,检查 CLI 是否安装、版本是否不低于 1.2.1,以及企业微信凭证是否已授权;仅在缺失、版本过低或未授权时执行安装或初始化。本技能还定义所有技能通用的 ID 类字段禁止外露约束。本技能不处理具体业务请求。

Its SKILL.md is about 540 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Documents & Office. The repository describes itself as: 企业微信开放平台命令行工具 — 让人类和 AI Agent 都能在终端中操作企业微信. The licence is MIT.

When your agent uses it

  • Documents & Office work in your project

Example prompts

  • “/wecomcli-shared”

Requirements

  • Node.js

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. :检查 CLI 安装与版本
  2. :检查授权状态
  3. :初始化凭证(仅未授权时)

What it can do on your machine

Read from SKILL.md and the folder at commit c4b9b66. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use npm, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Wecomcli Shared loads about 540 tokens when it runs. Until then it costs about 53 tokens; SKILL.md has 117 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~53
When it runs · the whole SKILL.md, loaded when a task matches
~540

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from WecomTeam/wecom-cli at commit c4b9b66, republished under its MIT licence (© WecomTeam). 117 words, ~540 tokens.

Download SKILL.mdSave it as .claude/skills/wecomcli-shared/SKILL.md (or your agent's skills folder).
name
wecomcli-shared
description
wecom-cli 业务技能的公共前置检查、获取机器人及授权真人身份,以及通用输出约束。任何 wecomcli-* 技能首次准备执行 wecom-cli 命令前,都必须同时读取本技能,检查 CLI 是否安装、版本是否不低于 1.2.1,以及企业微信凭证是否已授权;仅在缺失、版本过低或未授权时执行安装或初始化。本技能还定义所有技能通用的 ID 类字段禁止外露约束。本技能不处理具体业务请求。

wecom-cli 公共前置检查

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

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

Step 1:检查 CLI 安装与版本

bash
wecom-cli --version
  • 命令成功,且输出中的版本号不低于 1.2.1 → 继续 Step 2。
  • 命令不存在、执行报错或版本号低于 1.2.1 → 执行安装/升级:
bash
npm install -g @wecom/cli

安装完成后重新执行 wecom-cli --version;仍失败或版本仍低于 1.2.1 时停止业务操作,并把错误告知用户。

Step 2:检查授权状态

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

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

bash
wecom-cli auth init --noninteractive

该命令会展示授权链接和二维码,并等待用户使用企业微信扫码。授权成功后命令自动退出,仅需初始化一次。

初始化完成后重新执行:

bash
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 获取。

© WecomTeam, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/wecomcli-shared of WecomTeam/wecom-cli.

Open the folder on GitHubat commit c4b9b66

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in WecomTeam/wecom-cli, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Wecomcli Shared next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Wecomcli Shared compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Wecomcli Shared this skillWecomTeam/wecom-cli3.2k1 repos~540Automated safety check: PassMIT
Markdown Article FormatterJimLiu/baoyu-skills26k6 repos~3.5kAutomated safety check: PassMIT
MarkitdownImCa0/just-laws78114 repos~3.2kAutomated safety check: NotesMIT
Obsidian MarkdownAtmosphere/atmosphere3.8k20 repos~1.3kAutomated safety check: PassApache-2.0
DOCXrvdbreemen/OTGW-firmware20733 repos~4.3kAutomated safety check: PassProprietary
Gzh Designisjiamu/gzh-design-skill3.9k1 repos~2.2kAutomated safety check: PassAGPL-3.0

Similar skills

  • Markdown Article Formatter

    JimLiu/baoyu-skills

    Reformats plain text or Markdown articles with frontmatter, a title, a summary, headings, bold, lists and code blocks, and saves a separate formatted copy.

    26k GitHub starsUsed in 6 repos~3.5k tokens
    Documents & OfficeAuto-check passed
  • Markitdown

    ImCa0/just-laws

    Convert files and office documents to Markdown. An agent skill from ImCa0/just-laws.

    781 GitHub starsUsed in 14 repos~3.2k tokens
    Documents & OfficeAuto-check: notes
  • Obsidian Markdown

    Atmosphere/atmosphere

    Create and edit Obsidian Flavored Markdown with wikilinks, embeds, callouts, properties, and other Obsidian-specific syntax.

    3.8k GitHub starsUsed in 20 repos~1.3k tokens
    Documents & OfficeAuto-check passed
  • DOCX

    rvdbreemen/OTGW-firmware

    A skill your agent uses whenever the user wants to create, read, edit, or manipulate Word documents (.docx files).

    207 GitHub starsUsed in 33 repos~4.3k tokens
    Documents & OfficeAuto-check passed
  • Gzh Design

    isjiamu/gzh-design-skill

    微信公众号文章排版引擎,将 Markdown 转换为可直接粘贴到公众号编辑器的 HTML。主题风格从 references/theme-index.md 注册的自定义主题库中选取,自动章节编号、关键词下划线标记、引言卡片、目录导航、代码块、图片/GIF、作者签名。支持 Markdown / Word(.docx) / PDF / 纯文本输入(非 Markdown…

    3.9k GitHub starsUsed in 1 repo~2.2k tokens
    Documents & OfficeAuto-check passed
  • Reads, creates and edits Word .docx files with python-docx, and drops to raw OOXML for tracked changes, comments and byte-exact edits.

    41k GitHub stars~2.5k tokensUpdated 3 days ago
    Documents & OfficeAuto-check passed

More from WecomTeam/wecom-cli

All 14 skills in this repo
  • WeCom Online Doc Manager

    WecomTeam/wecom-cli

    Creates WeCom online docs, imports local .doc, .docx or .txt files as docs, reads their content and appends to or overwrites them through wecom-cli.

    3.2k GitHub starsUsed in 1 repo~1.2k tokens
    Auto-check passed
  • WeCom To-Do Manager

    WecomTeam/wecom-cli

    Manages WeCom to-dos from the terminal with wecom-cli: create, list, filter, update, finish and delete them, including assignees and deadlines.

    3.2k GitHub starsUsed in 2 repos~727 tokens
    Auto-check passed
  • WeCom Calendar Scheduler

    WecomTeam/wecom-cli

    Books, views, searches, updates, cancels or checks free/busy time on WeCom (Enterprise WeChat) calendars and meeting rooms, routed away from online-meeting creation.

    3.2k GitHub starsUsed in 1 repo~3.7k tokens
    Auto-check passed
  • WeCom Document Management

    WecomTeam/wecom-cli

    Searches WeCom documents by keyword, recent views or creator, renames them, adds member permissions and sets link-join rules across doc, sheet, smartsheet and smartpage types.

    3.2k GitHub starsUsed in 1 repo~1.8k tokens
    Auto-check passed
  • WeCom Email Manager

    WecomTeam/wecom-cli

    Sends, replies to, forwards and searches enterprise WeChat mail through wecom-cli, including emailed calendar invitations and meeting bookings.

    3.2k GitHub starsUsed in 1 repo~1.7k tokens
    Auto-check passed
  • WeCom Meeting Manager

    WecomTeam/wecom-cli

    Creates, finds, updates and cancels WeCom online meetings from the terminal, reads their details, summaries and transcripts, and keeps meetings apart from calendar events.

    3.2k GitHub starsUsed in 1 repo~4.6k tokens
    Auto-check passed

Questions about Wecomcli Shared

What does Wecomcli Shared do?

wecom-cli 业务技能的公共前置检查、获取机器人及授权真人身份,以及通用输出约束。任何 wecomcli- 技能首次准备执行 wecom-cli 命令前,都必须同时读取本技能,检查 CLI 是否安装、版本是否不低于 1.2.1,以及企业微信凭证是否已授权;仅在缺失、版本过低或未授权时执行安装或初始化。本技能还定义所有技能通用的 ID 类字段禁止外露约束。本技能不处理具体业务请求。. Wecomcli Shared is an agent skill from WecomTeam/wecom-cli.

When should I use Wecomcli Shared?

Wecomcli Shared fits situations like: documents & Office work in your project.

How do I install Wecomcli Shared in Claude Code?

Run `npx skills add WecomTeam/wecom-cli --skill wecomcli-shared -a claude-code`. Or copy the skill folder (skills/wecomcli-shared in WecomTeam/wecom-cli) into .claude/skills/wecomcli-shared in your project. Claude Code loads it when a task matches its description.

How do I install Wecomcli Shared in Codex?

Run `npx skills add WecomTeam/wecom-cli --skill wecomcli-shared -a codex`. Or copy the skill folder (skills/wecomcli-shared in WecomTeam/wecom-cli) into .agents/skills/wecomcli-shared in your project. Codex loads it when a task matches its description.

Can I use Wecomcli Shared in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add WecomTeam/wecom-cli --skill wecomcli-shared -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/wecomcli-shared, .gemini/skills/wecomcli-shared, .github/skills/wecomcli-shared and .opencode/skills/wecomcli-shared in your project.

What does Wecomcli Shared need to run?

Going by SKILL.md and its folder, Wecomcli Shared needs the command-line tools its instructions call (npm). Our summary lists: Node.js.

Does Wecomcli Shared access the network?

SKILL.md contains no URLs. Its commands use npm, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Wecomcli Shared safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Wecomcli Shared use?

Wecomcli Shared is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Wecomcli Shared use?

About 540 tokens (SKILL.md is roughly 2.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Wecomcli Shared?

Skills that share tags, products or a category with Wecomcli Shared: Markdown Article Formatter (JimLiu/baoyu-skills, 26k stars), Markitdown (ImCa0/just-laws, 781 stars), Obsidian Markdown (Atmosphere/atmosphere, 3.8k stars) and DOCX (rvdbreemen/OTGW-firmware, 207 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Wecomcli Shared?

WecomTeam (a GitHub organization) maintains it in WecomTeam/wecom-cli, which has 3,159 GitHub stars. The repository holds 14 skills in this directory. The repository was last updated on September 24, 2026.

Source: WecomTeam/wecom-cli on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.