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.
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.
npx skills add Pinvou/pinvou-agent --skill wecomcli-mediagit clone --depth 1 https://github.com/Pinvou/pinvou-agentWrote 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.
[](https://agentmods.dev/skills/pinvou/pinvou-agent/wecomcli-media)<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.
<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>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.
| Model | Per session | Once 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 |
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 强行完成。 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.
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,供其他技能后续使用(如微盘upload 的 file_content_media) |
created_at |
string | 创建时间,格式:YYYY-MM-DD HH:mm:ss |
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.
- 2d ago Changed 09a8f415eea3
- 7d ago Changed · +1 lines 48d66f051889
- 10d ago First seen · 99 lines · 84 tokens per session scan A b11c36e9ed4e
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.
Other skills, from other repositories
skill-creator
A skill for creating, editing, improving, and testing skills for coding agents.
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…
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.
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…
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.…
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.