send-wecom-file

Solid

Send a workspace file to a WeCom user via the wecom CLI. Use when the user wants to send a file, attachment, or document via WeCom.

Data & Documents 93 stars 12 forks Updated 4 days ago Apache-2.0

Install

View on GitHub

Quality Score: 85/100

Stars 20%
66
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

<objective> Send workspace files to a WeCom user using the `wecom send-file` CLI command (`@webank/wecom`). The skill resolves the current WeCom user from the session ID, supports explicit recipients, confirms the operation, and sends the file. </objective> <quick_start> Send a file to the current session owner: ```bash CURRENT_USER=$(wecom current-user --session-id ${CLAUDE_SESSION_ID}) wecom send-file --to-user "${CURRENT_USER}" --file-path path/inside/workspace/file.pdf --session-id ${CLAUDE_SESSION_ID} ``` Send a file to a specific user: ```bash wecom send-file --to-user USERID --file-path path/inside/workspace/file.pdf --session-id ${CLAUDE_SESSION_ID} ``` If `wecom` is not in PATH, use `npx wecom` or the full path from `WECOM_CLI_PATH`. </quick_start> <workflow> 1. **Verify CLI version**: Before any send operation, check the installed CLI version: ```bash wecom --version ``` Expected: `1.2.0` or higher. If the version is lower, advise the user to update: ```bash npm install -g @webank/wecom@latest ``` If `wecom` is not found, check `npx wecom --version` or `${WECOM_CLI_PATH} --version`. If the CLI is not installed at all, advise the user to install it: ```bash npm install -g @webank/wecom ``` 2. **Extract intent**: Parse the user's request for: - The file name or path they want to send - The recipient: `to me` or `to <USERID>` 3. **Resolve recipient**: - If the user says `to me`, resolve the recipient by calling the CLI...

Details

Author
ai-dvps
Repository
ai-dvps/comate
Created
3 months ago
Last Updated
4 days ago
Language
TypeScript
License
Apache-2.0

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category