Agent skill

Wecom

by zhinjs in zhinjs/zhin

企业微信平台管理能力。当用户在企业微信中请求用户信息查询、部门架构查询、 发送文本消息时使用。即使用户没有提到企业微信,只要上下文是企业微信/WeCom 场景且涉及用户查询、部门管理或消息发送,就应触发。

MITAuto-check passed

Install Wecom

skills CLI
$ npx skills add zhinjs/zhin --skill wecom -a claude-code

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

GitHub CLI
$ gh skill install zhinjs/zhin wecom --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/zhinjs/zhin.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/adapters/wecom/agents/wecom/skills/wecom .claude/skills/wecom && 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
wecom
GitHub stars
137
Token cost
~297 tokens
SKILL.md length
59 words
Files
5
Skills in repo
11
Repo updated
First seen
Licence
MIT

At a glance

企业微信平台管理能力。当用户在企业微信中请求用户信息查询、部门架构查询、 发送文本消息时使用。即使用户没有提到企业微信,只要上下文是企业微信/WeCom 场景且涉及用户查询、部门管理或消息发送,就应触发。

  • Works in 4 steps: 部门查询从根部门 ID=1 开始。不知道部门 ID 时先… → 消息发送需要 userid,不是用户名或昵称。仅有昵称时先通过… → 企业微信不支持机器人撤回消息,一旦发出无法撤回。 → …
  • SKILL.md covers 核心原则, 工具分类 and 易错点
  • Runs TypeScript scripts from its folder

What it does

Wecom is an agent skill from zhinjs/zhin. 企业微信平台管理能力。当用户在企业微信中请求用户信息查询、部门架构查询、 发送文本消息时使用。即使用户没有提到企业微信,只要上下文是企业微信/WeCom 场景且涉及用户查询、部门管理或消息发送,就应触发。

Its SKILL.md is about 300 tokens, which your agent loads only when the skill is triggered. The skill folder holds 9 other files (for example `tools/get_dept_users/index.ts`, `tools/get_user/index.ts` and `tools/list_departments/index.ts`).

The repository describes itself as: AI-native TypeScript bot framework — one codebase for 20+ chat platforms (QQ, Discord, Telegram, Slack, WeChat…). Opt-in AI agent with MCP, tools & security policies. <10MB core. The licence is MIT.

Example prompts

  • “/wecom”

Requirements

  • Node.js

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. 部门查询从根部门 ID=1 开始。不知道部门 ID 时先 list_departments 获取整棵部门树。
  2. 消息发送需要 userid,不是用户名或昵称。仅有昵称时先通过 get_dept_users 查找。
  3. 企业微信不支持机器人撤回消息,一旦发出无法撤回。
  4. Access Token 有效期 7200 秒,适配器会自动刷新。

What it can do on your machine

Read from SKILL.md and the folder at commit fd5029a. 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

    Ships script files (TypeScript), which the agent can run.

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

  • Network

    No URLs in SKILL.md.

    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

Wecom loads about 297 tokens when it runs. Until then it costs about 27 tokens; SKILL.md has 59 words of instructions outside code blocks.

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

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 zhinjs/zhin at commit fd5029a, republished under its MIT licence (© zhinjs). 59 words, ~297 tokens.

Download SKILL.mdSave it as .claude/skills/wecom/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
wecom
description
企业微信平台管理能力。当用户在企业微信中请求用户信息查询、部门架构查询、 发送文本消息时使用。即使用户没有提到企业微信,只要上下文是企业微信/WeCom 场景且涉及用户查询、部门管理或消息发送,就应触发。
platforms
wecom
keywords
wecom, 企业微信, adapter:wecom, 部门, 用户, 通讯录, 企业
tags
im, enterprise
tools
get_user, get_dept_users, list_departments, send_text

企业微信技能

企业微信(WeCom)是腾讯面向企业的 IM 平台,具备组织架构(部门树)、应用消息推送等能力。

核心原则

组织架构是核心

企业微信的用户隶属于部门树,查询操作需要从组织架构出发:

wecom_list_departments → 获取部门列表(默认从根部门 ID=1 开始)
wecom_get_dept_users(dept_id) → 获取部门下的用户列表
wecom_get_user(user_id) → 获取用户详情
消息发送

wecom_send_text 通过应用消息接口发送文本消息,需要知道接收者的 userid。 群消息通过 webhook 回调自动处理,不需要主动调用发送工具。

工具分类

组织架构
工具用途说明
wecom_list_departments部门列表默认从根部门 ID=1 开始
wecom_get_dept_users部门用户列表返回简单用户信息
wecom_get_user用户详情需要通讯录权限
消息
工具用途说明
wecom_send_text发送文本消息发给指定用户,通过应用消息接口

易错点

  1. 部门查询从根部门 ID=1 开始。不知道部门 ID 时先 list_departments 获取整棵部门树。
  2. 消息发送需要 userid,不是用户名或昵称。仅有昵称时先通过 get_dept_users 查找。
  3. 企业微信不支持机器人撤回消息,一旦发出无法撤回。
  4. Access Token 有效期 7200 秒,适配器会自动刷新。

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

Files

SKILL.md and 4 other files in plugins/adapters/wecom/agents/wecom/skills/wecom of zhinjs/zhin.

  • SKILL.md
  • tools/get_dept_users/index.ts
  • tools/get_user/index.ts
  • tools/list_departments/index.ts
  • tools/send_text/index.ts

Open the folder on GitHubat commit fd5029a

Compare with similar skills

Wecom 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.

Wecom compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Wecom this skillzhinjs/zhin137—~297Automated safety check: PassMIT
Yichen Wecom Operationsmcncarl/yichen-skills4.3k—~612Automated safety check: PassCustom licence
Notify Wecomdaymade/claude-code-skills1.4k—~802Automated safety check: PassMIT
Wecom Announcementmohitagw15856/pm-claude-skills1.4k—~930Automated safety check: PassMIT
Yichen Wecom Local Vaultmcncarl/yichen-skills4.3k—~1.3kAutomated safety check: PassCustom licence
Wecom DocLeoYeAI/openclaw-master-skills2.2k—~2.6kAutomated safety check: PassMIT

Similar skills

  • Yichen Wecom Operations

    mcncarl/yichen-skills

    企业微信官方 wecom-cli 操作入口。用于把本地 Markdown 创建为普通或智能文档、在用户另行配置图片上传 helper 后生成含本地图片的智能文档、读取或覆写企微文档、创建与管理待办,并在企业权限开放时预约、查询、更新或取消会议和日程。用户提到“企微文档”“智能文档”“上传 Markdown”“预定会议”“企微会议”“企微日程”“企微待办”时使用;不用于消息发送或企业微信客户端操作。

    4.3k GitHub stars~612 tokensUpdated 4 days ago
    Documents & OfficeAuto-check passed
  • Notify Wecom

    daymade/claude-code-skills

    Send a single one-off message to a WeCom (Enterprise WeChat) group bot.

    1.4k GitHub stars~802 tokensUpdated today
    Backend & APIsAuto-check passed
  • Wecom Announcement

    mohitagw15856/pm-claude-skills

    Write an internal announcement for WeCom (企业微信) or a company group chat: policy changes, office notices, system outages, holiday arrangements and organisational updates, in the clear, polite…

    1.4k GitHub stars~930 tokensUpdated yesterday
    DevOps & CloudAuto-check passed
  • Yichen Wecom Local Vault

    mcncarl/yichen-skills

    Read, decrypt, query, search, and export local WeCom/企业微信 5.x desktop databases on macOS into a private read-only vault.

    4.3k GitHub stars~1.3k tokensUpdated 4 days ago
    Data & AnalyticsAuto-check passed
  • Wecom Doc

    LeoYeAI/openclaw-master-skills

    文档与智能表格操作。当用户提到企业微信文档、创建文档、编辑文档、新建文档、写文档、智能表格时激活。支持文档创建/写入和智能表格的创建及子表/字段/记录写入。注意:所有文档创建和编辑请求都应使用此 skill,不要尝试用其他方式处理文档操作。

    2.2k GitHub stars~2.6k tokensUpdated 2 mo ago
    Agent WorkflowsAuto-check passed
  • Setup Notifications Via Wecom

    daymade/claude-code-skills

    Set up and send technical status notifications through WeCom (Enterprise WeChat) webhooks.

    1.4k GitHub stars~3.1k tokensUpdated today
    Backend & APIsAuto-check passed

More from zhinjs/zhin

All 11 skills in this repo
  • Refactor existing Zhin.js plugins into a cleaner standard structure.

    137 GitHub stars~1.1k tokensUpdated 15 days ago
    Auto-check passed
  • Migrate legacy Zhin.js plugins and projects to the convention-based Plugin Runtime — from usePlugin/getPlugin/addCommand/addMiddleware/addComponent/addTool/addCron/declareConfig/useContext and…

    137 GitHub stars~1.6k tokensUpdated 15 days ago
    Auto-check passed
  • Zhin Audit

    zhinjs/zhin

    Audit Zhin.js changes for security, performance, lifecycle, and architecture regressions.

    137 GitHub stars~596 tokensUpdated 15 days ago
    Auto-check: notes
  • Implement Zhin.js plugins with Plugin Runtime. An agent skill from zhinjs/zhin.

    137 GitHub stars~1.6k tokensUpdated 15 days ago
    Auto-check passed
  • GitHub CLI

    zhinjs/zhin

    使用 gh CLI 处理内置 GitHub Tool 未覆盖的 Issue、PR、Release、Workflow、搜索和 API 操作。

    137 GitHub stars~366 tokensUpdated 15 days ago
    Auto-check passed
  • Checkin

    zhinjs/zhin

    签到积分系统查询能力。当用户想查看自己的积分、签到排行榜、连签天数、 或了解签到奖励时使用。日常签到通过聊天命令触发,此技能提供积分查询的 AI 工具。

    137 GitHub stars~167 tokensUpdated 15 days ago
    Auto-check passed

Questions about Wecom

What does Wecom do?

企业微信平台管理能力。当用户在企业微信中请求用户信息查询、部门架构查询、 发送文本消息时使用。即使用户没有提到企业微信,只要上下文是企业微信/WeCom 场景且涉及用户查询、部门管理或消息发送,就应触发。. Wecom is an agent skill from zhinjs/zhin.

How do I install Wecom in Claude Code?

Run `npx skills add zhinjs/zhin --skill wecom -a claude-code`. Or copy the skill folder (plugins/adapters/wecom/agents/wecom/skills/wecom in zhinjs/zhin) into .claude/skills/wecom in your project. Claude Code loads it when a task matches its description.

How do I install Wecom in Codex?

Run `npx skills add zhinjs/zhin --skill wecom -a codex`. Or copy the skill folder (plugins/adapters/wecom/agents/wecom/skills/wecom in zhinjs/zhin) into .agents/skills/wecom in your project. Codex loads it when a task matches its description.

Can I use Wecom 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 zhinjs/zhin --skill wecom -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/wecom, .gemini/skills/wecom, .github/skills/wecom and .opencode/skills/wecom in your project.

What does Wecom need to run?

Going by SKILL.md and its folder, Wecom needs TypeScript for the scripts in its folder. Our summary lists: Node.js.

Does Wecom access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Wecom 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 Wecom use?

Wecom 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 Wecom use?

About 297 tokens (SKILL.md is roughly 1.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 Wecom?

Skills that share tags, products or a category with Wecom: Yichen Wecom Operations (mcncarl/yichen-skills, 4.3k stars), Notify Wecom (daymade/claude-code-skills, 1.4k stars), Wecom Announcement (mohitagw15856/pm-claude-skills, 1.4k stars) and Yichen Wecom Local Vault (mcncarl/yichen-skills, 4.3k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Wecom?

zhinjs (a GitHub organization) maintains it in zhinjs/zhin, which has 137 GitHub stars. The repository holds 11 skills in this directory. The repository was last updated on September 23, 2026.

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