wecomcli-shared

Validates wecom-cli installation, version, and authorization before executing WeCom business commands.

2.0k|291|Updated Jul 24, 2026
One-click install
npx skills add https://github.com/Pinvou/pinvou-agent --skill wecomcli-shared-pinvou
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wecomcli-shared
Source: https://github.com/Pinvou/pinvou-agent/tree/main/pinvou3-app/src-tauri/resources/common/bundle/wecom-skills/wecomcli-shared
Command: npx skills add https://github.com/Pinvou/pinvou-agent --skill wecomcli-shared-pinvou

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires wecom-cli.

What problem does it solve? Before any wecomcli-* business skill runs a wecom-cli command, the CLI must be installed at version 1.2.1 or higher and the WeCom credentials must be authorized; this Skill performs those shared prerequisite checks so business commands do not fail unpredictably. ## Core Features & Use Cases - CLI Installation and Version Check: Runs wecom-cli --version and requires version 1.2.1 or higher, directing users to the Pinvou plugin center instead of manual npm installs when missing or outdated. - Authorization Flow: Checks auth status with wecom-cli auth show --status and initializes credentials via wecom-cli auth init --noninteractive with QR-code scanning when unauthorized. - Identity Retrieval and Output Constraints: Fetches bot or authorized user identity via wecom-cli identity whoami and enforces a global rule that internal IDs (userid, mail_id, docid, etc.) must never appear in user-facing replies. - Use Case: Before sending a WeCom message or querying a document, run this check to confirm the CLI is ready and authorized, then proceed to the corresponding business skill. ## Quick Start Before running any wecom-cli command, verify the CLI is installed at version 1.2.1 or higher and that WeCom authorization shows as authorized.

Frequently Asked Questions about wecomcli-shared

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check wecom-cli installation and version before running commands?

Run wecom-cli --version and confirm the reported version is 1.2.1 or higher. If the command is missing or the version is too low, do not install it manually; reconnect via the Pinvou plugin center's WeCom card, which manages installation and upgrades.

How do I authorize WeCom credentials for wecom-cli?

Run wecom-cli auth show --status to check authorization. If it returns unauthorized, run wecom-cli auth init --noninteractive, which displays a QR code to scan with the WeCom app; authorization only needs to be completed once.

Can I install or upgrade wecom-cli manually with npm?

No. wecom-cli is installed and managed by the Pinvou application and updates automatically with the app. If it is missing or outdated, use the plugin center's WeCom card to trigger installation or upgrade instead of npm.

Why can't wecom-cli skills show user IDs or mail IDs in replies?

The shared output constraint forbids exposing internal identifiers such as userid, mail_id, docid, or chat_id in final replies. Responses must use readable names like username, subject, or doc_name, resolving IDs through the contact skill when necessary.

What should I do when wecom-cli auth status check fails?

Stop all business operations and report the error to the user instead of guessing the authorization state. Business commands may only proceed after the status command explicitly returns authorized.