wecomcli-media

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

A file-transfer tool for WeCom media IDs, which are internal references to uploaded media files.

In plain words
What is it for?
Use it to download a file from a supplied media ID or upload a local file to obtain a media ID for another WeCom tool.
Why use it?
It handles moving a known media file between WeCom and the local computer without trying to understand or interpret the file.

Skill for Claude CodeCodex

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

Good fit Use it to download a file from a supplied media ID or upload a local file to obtain a media ID for another WeCom tool.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pinvou/pinvou-agent/wecomcli-media
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 · 1,779 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-media
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-media

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/pinvou/pinvou-agent/wecomcli-media"><img src="https://agentmods.dev/badge/skills/pinvou/pinvou-agent/wecomcli-media.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,514 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% 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.00084 $0.01514
Opus 5 $0.00042 $0.00757
Sonnet 5 $0.00017 $0.00303
Haiku 4.5 $0.00008 $0.00151

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

Security

Grade A, and why

wecomcli-media scanned grade A with 1 finding 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 2d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- **CLI 报错原样转达**:命令返回明确错误码时如实告知用户并给替代建议,禁止用 curl / python 等通用手段绕过 CLI 强行完成。
Origin

This is a copy

100% identical to wecomcli-media — 3 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-media/SKILL.md · 100 lines

How it starts

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

企业微信媒体文件

执行任何 wecom-cli 命令前,必须先读取并完成 wecomcli-shared 技能的公共前置检查。

资源型 skill,负责基于 media_id 下载媒体文件到本地,以及把本地文件上传为 media_id。是其他技能(微盘、邮件等)处理 media_id 相关操作的基础依赖:upload 会产出新的 media_id,但本 skill 不负责搜索/发现其他业务场景中已存在的 media_id(如邮件附件、微盘文件的 media_id 由对应业务技能产出),也不解析文件内容。

适用范围

适用

  • 根据其他技能或用户提供的 media_id 下载媒体文件到本地
  • 上传本地文件(本地路径已知)获取 media_id,供其他技能后续使用(如微盘上传素材)

不适用

  • 解析/识别文件内容(正文提取、OCR、看图问答、PDF/Word/Excel 解析等) → 本 skill 只负责把文件下载到本地拿 file_path,如需查看内容请直接通过 file_path 读取该本地文件
  • 搜索/发现其他业务场景中已存在的 media_id(如邮件附件、微盘文件列表/搜索等) → 由对应业务技能负责产出并返回 media_id,本 skill 只接收已有的 media_id 做下载;本地文件转media_id 的场景仍走本 skill 的 upload
  • 编造或猜测 media_id / 本地文件路径 → 两者必须来自其他技能返回或用户明确提供,禁止自行构造

接口详述

下载媒体文件

根据 media_id 下载媒体文件到本地,返回本地文件路径。

命令

wecom-cli media download --json '{"media_id": "MEDIA_ID"}'

入参

字段 类型 必填 说明
media_id string 文件的 media_id,由上传文件后获得,或由其他技能(邮件附件/内嵌图片等)返回

返回

字段 类型 说明
file_path string 下载成功后的本地文件路径

使用规则

  • 下载完成后如需查看文件内容,直接通过 file_path 读取该本地文件。
  • 下载失败时返回错误码和错误信息。
  • media_id 必须是真正的 media_id,不接受任何形式的 URL:若拿到的是一个链接(如 attach_url、正文里的图片/附件链接),不要把这个 URL 当作 media_id 传入本接口,会直接报错。尤其是命中 work.weixin.qq.com/filepreview/security/ 特征的防泄漏加密链接,属于加密的、与用户身份绑定的资源,本接口无法下载或解密,应直接告知用户该文件受防泄漏策略保护,引导其点击链接、在企业微信客户端内打开查看/保存,不要尝试用本接口或其他手段绕过。

上传媒体文件

将本地文件上传,获取 media_id

命令

wecom-cli media upload --json '{"file_path": "/tmp/example.pdf"}'

入参

字段 类型 必填 说明
file_path string 需要上传的文件的本地路径
type string 媒体类型:image(图片)/voice(语音,源文件仅支持 AMR 格式)/video(视频)/file(文件),可选传入;发送消息时以上传响应返回的 type 为准

返回

字段 类型 说明
type string 媒体类型:image(图片)/voice(语音)/video(视频)/file(文件)
media_id string 上传后的 media_id,供其他技能后续使用(如微盘uploadfile_content_media
created_at string 创建时间,格式:YYYY-MM-DD HH:mm:ss

Read the full file on GitHub · 100 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. 2d ago Changed 09a8f415eea3
  2. 7d ago Changed · +1 lines 48d66f051889
  3. 10d ago First seen · 99 lines · 84 tokens per session scan A b11c36e9ed4e

Subscribe to this mod's changes

wecomcli-media is a skill published in the GitHub repository Pinvou/pinvou-agent (1,779 stars, last pushed today), licensed MIT. It adds 84 tokens to every session and 1,514 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). It is 100% identical to wecomcli-media, differing in 3 lines, and is treated as a copy.

Related

Other skills, from other repositories

skill-creator

A skill for creating, editing, improving, and testing skills for coding agents.

PM-Shawn/Abu-Cowork · 47 tokens

algorithmic-art

Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright…

PM-Shawn/Abu-Cowork · 62 tokens

claude-api

Build apps with the Claude API or Anthropic SDK. TRIGGER when: code imports anthropic/@anthropic-ai/sdk/claudeagentsdk, or user asks to use Claude API, Anthropic SDKs, or Agent SDK. DO NOT TRIGGER when: code imports openai/other AI SDK, general programming, or ML/data-science tasks.

PM-Shawn/Abu-Cowork · 84 tokens

docx

Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when…

PM-Shawn/Abu-Cowork · 168 tokens

doc-coauthoring

Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision docs, or similar structured content. This workflow helps users efficiently transfer context, refine content through iteration, and verify the doc works for readers.…

PM-Shawn/Abu-Cowork · 77 tokens

canvas-design

Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.

PM-Shawn/Abu-Cowork · 59 tokens