wecomcli-doc-manage

Search, rename, and manage member permissions for WeCom documents via wecom-cli.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires wecom-cli, and includes references (resource) components.

What problem does it solve? Finding and administering WeCom (Enterprise WeChat) documents manually is slow: you need to locate docs by keyword or browsing history, rename them, grant member permissions, and configure link-join rules. This Skill wraps the wecom-cli doc management APIs so an AI agent can perform these public administration tasks directly from natural language requests. ## Core Features & Use Cases - Document Search: Search across doc, sheet, smartsheet, smartpage, PPT, collect forms, mind maps, flowcharts, journals, and PDFs with keyword tokenization, creator/visitor filters, time windows, sorting, and cursor-based pagination. - Rename Documents: Update the name of any doc, sheet, smartsheet, or smartpage by docid. - Member & Permission Management: Batch-add members with manager/edit/read roles and configure link-join rules for internal and external members. - Use Case: Ask "find the docs I browsed this week about the product roadmap" and the agent resolves your userid, runs a scoped search, and returns a clickable list of matching documents. ## Quick Start Ask the agent to search my recently viewed WeCom documents about the quarterly plan and list them as clickable links.

Frequently Asked Questions about wecomcli-doc-manage

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

FAQPage Schema
How do I search WeCom documents by keyword from the command line?

Run wecom-cli doc search with a JSON payload containing a keywords array, search_scope, and optional filters like doc_types, time windows, and sort order. Natural language queries should be tokenized first, with core terms combined as the first keyword element.

How to find documents I recently viewed in Enterprise WeChat?

Pass your own userid in the visitor_userids field with an opened_after time window, defaulting to the last 7 days. Results only include documents the caller has permission to access.

Can I add members or change permissions on a WeCom doc programmatically?

Yes, use wecom-cli doc members update with the docid and an add_member_list containing userid, user_type, and user_auth values of manager, edit, or read. Names must first be resolved to userids via the contact search skill.

Which WeCom document types support renaming and permission changes?

Only doc, sheet, smartsheet, and smartpage support renaming, member permissions, and join rules. Types like PPT, collect forms, mind maps, flowcharts, journals, and PDFs are searchable but cannot be modified through these interfaces.

Why does a WeCom document search return no results for another person's files?

The search API is permission-scoped: it only returns documents the current caller can access, regardless of whose userid is passed as a filter. Documents owned exclusively by others without your access will never appear.