This skill should be used when the user needs to manage Tencent Weiyun cloud storage, including file upload/download, sharing, space management, and account...
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install weiyun-skills或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install weiyun-skills⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/weiyun-skills/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: weiyun-management license: MIT description: > This skill should be used when the user needs to manage Tencent Weiyun cloud storage, including file upload/download, sharing, space management, and account authentication via QR code scanning or cookies. It provides a complete Python toolkit for automating Weiyun operations with CLI and SDK support. Trigger phrases include "upload to weiyun", "download from weiyun", "weiyun share", "weiyun space", "manage weiyun files", "weiyun login", "scan QR code", "微云管理", "微云上传", "微云下载", "微云分享", "微云空间", "扫码登录", "文件管理", "云存储管理", "微云文件", "weiyun files", "cloud storage". ---
> 使用方法:本文档定义了所有可用的腾讯微云管理 Skills。AI Agent 或开发者可根据此文档调用 Python 脚本完成云存储操作。 > > 认证方式(二选一): > ```bash > # Method 1: QR code login (recommended) > python weiyun_skills/login.py --method qrcode > > # Method 2: Copy cookies from browser > python weiyun_skills/login.py --method cookies --cookies "uin=o012345678; skey=@abcdef1234; ..." > ``` > > 调用方式: > ```bash > # CLI > python weiyun_skills/main.py
---
- 目录 - 1. 认证 Skills - 1.1 qrcode\_login — 扫码登录 - 1.2 cookies\_login — Cookies 登录 - 2. 文件管理 Skills - 2.1 list\_files — 列出文件 - 2.2 upload\_file — 上传文件 - 2.3 upload\_folder — 上传文件夹 - 2.4 download\_file — 下载文件 - 2.5 download\_folder — 下载文件夹 - 2.6 delete\_file — 删除文件 - 2.7 move\_file — 移动文件 - 2.8 copy\_file — 复制文件 - 2.9 rename\_file — 重命名 - 2.10 create\_folder — 创建文件夹 - 2.11 search\_files — 搜索文件 - 3. 分享管理 Skills - 3.1 create\_share — 创建分享 - 3.2 cancel\_share — 取消分享 - 3.3 list\_shares — 列出分享 - 4. 空间管理 Skills - 4.1 get\_space\_info — 空间信息 - 4.2 get\_recycle\_bin — 回收站 - 4.3 restore\_file — 恢复文件 - 4.4 clear\_recycle\_bin — 清空回收站 - 附录 A:统一错误码 - 附录 B:Cookies 关键字段说明
---
描述:生成腾讯微云登录二维码,用户使用微信/QQ 扫码完成认证。登录成功后自动保存 Cookies 到 cookies.json。
CLI:
python weiyun_skills/login.py --method qrcode
Python:
from weiyun_skills.login import qrcode_login
cookies = qrcode_login()
# Terminal will display QR code, scan with WeChat/QQ
# After success, cookies are saved to cookies.json
输入参数:
| 参数名 | 类型 | 必填 | 默认值 | 说明 | |--------|------|------|--------|------| | save_path | string | ❌ | cookies.json | Cookies 保存路径 |
输出参数:
| 参数名 | 类型 | 说明 | |--------|------|------| | success | boolean | 是否登录成功 | | uin | string | 用户 UIN | | nickname | string | 用户昵称 | | cookies_str | string | Cookies 字符串 | | save_path | string | Cookies 保存路径 |
流程:
┌─────────────┐ ┌──────────────┐ ┌─────────────┐
│ Request QR │────▶│ Display QR │────▶│ User scans │
│ code URL │ │ in terminal │ │ with WeChat │
└─────────────┘ └──────────────┘ └──────┬──────┘
│
┌─────────────┐ ┌──────────────┐ │
│ Save to │◀────│ Get cookies │◀────────────┘
│ cookies.json│ │ from server │
└─────────────┘ └──────────────┘
---
描述:使用从浏览器复制的 Cookies 字符串完成登录认证。
CLI:
python weiyun_skills/login.py --method cookies --cookies "uin=o012345678; skey=@abcdef1234; p_uin=o012345678; pt4_token=xxxxx; p_skey=xxxxx"
Python:
from weiyun_skills.login import cookies_login
cookies = cookies_login(
cookies_str="uin=o012345678; skey=@abcdef1234; ..."
)
如何获取 Cookies:
F12 打开开发者工具Network(网络)标签页Headers(请求头)中找到 Cookie 字段输入参数:
| 参数名 | 类型 | 必填 | 默认值 | 说明 | |--------|------|------|--------|------| | cookies_str | string | ✅ | - | 从浏览器复制的 Cookie 字符串 | | save_path | string | ❌ | cookies.json | Cookies 保存路径 |
输出参数:
| 参数名 | 类型 | 说明 | |--------|------|------| | success | boolean | 是否验证成功 | | uin | string | 用户 UIN | | nickname | string | 用户昵称 | | save_path | string | Cookies 保存路径 |
---
描述:列出微云指定目录下的所有文件和文件夹。
CLI:
python weiyun_skills/main.py list /
python weiyun_skills/main.py list /我的文档 --sort size --order desc
Python:
files = client.list_files("/我的文档", sort_by="size", sort_order="desc")
输入参数:
| 参数名 | 类型 | 必填 | 默认值 | 说明 | |--------|------|------|--------|------| | remote_path | string | ❌ | / | 目录路径,默认根目录 | | sort_by | string | ❌ | name | 排序字段:name/size/time | | sort_order | string | ❌ | asc | 排序方向:asc/desc | | page | integer | ❌ | 1 | 分页页码 | | page_size | integer | ❌ | 100 | 每页数量 |
输出参数:
| 参数名 | 类型 | 说明 | |--------|------|------| | files | array | 文件列表 | | files[].file_id | string | 文件唯一 ID | | files[].name | string | 文件名 | | files[].type | string | file 或 folder | | files[].size | integer | 大小(字节) | | files[].size_str | string | 可读大小(如 2.5 MB) | | files[].path | string | 完整路径 | | files[].updated_at | string | 最后修改时间 | | total | integer | 总数量 |
示例输出:
{
"success": true,
"data": {
"files": [
{
"file_id": "f_abc123",
"name": "report.pdf",
"type": "file",
"size": 2621440,
"size_str": "2.5 MB",
"path": "/我的文档/report.pdf",
"updated_at": "2026-03-15 10:30:00"
},
{
"file_id": "d_folder01",
"name": "照片",
"type": "folder",
"size": 0,
"size_str": "-",
"path": "/我的文档/照片",
"updated_at": "2026-03-14 08:00:00"
}
],
"total": 2
},
"message": "ok"
}
---
描述:将本地文件上传到微云指定目录。支持大文件分片上传。
CLI:
python weiyun_skills/main.py upload ./report.pdf /我的文档/
python weiyun_skills/main.py upload ./big_video.mp4 /视频/ --overwrite
Python:
result = client.upload_file("./report.pdf", "/我的文档/report.pdf", overwrite=True)
输入参数:
| 参数名 | 类型 | 必填 | 默认值 | 说明 | |--------|------|------|--------|------| | local_path | string | ✅ | - | 本地文件路径 | | remote_path | string | ✅ | - | 微云目标路径 | | overwrite | boolean | ❌ | false | 是否覆盖同名文件 |
输出参数:
| 参数名 | 类型 | 说明 | |--------|------|------| | file_id | string | 上传后的文件 ID | | name | string | 文件名 | | size | integer | 文件大小 | | remote_path | string | 云端路径 | | md5 | string | 文件 MD5 | | uploaded_at | string | 上传时间 |
---
描述:将本地文件夹递归上传到微云,自动创建对应的目录结构。跳过隐藏文件和 __pycache__ 等缓存目录。
CLI:
# Upload folder to Weiyun root
python weiyun_skills/main.py upload-folder ./my_docs/
# Upload folder to a specific remote directory
python weiyun_skills/main.py upload-folder ./my_docs/ /目标文件夹/
# Overwrite existing files
python weiyun_skills/main.py upload-folder ./my_docs/ / --overwrite
Python:
# Upload to root
result = client.upload_folder("./my_docs/")
...安装 Weiyun Skills 后,可以对 AI 说这些话来触发它
Help me get started with Weiyun Skills
Explains what Weiyun Skills does, walks through the setup, and runs a quick demo based on your current project
Use Weiyun Skills to this skill should be used when the user needs to manage Tencent Wei...
Invokes Weiyun Skills with the right parameters and returns the result directly in the conversation
What can I do with Weiyun Skills in my marketing & growth workflow?
Lists the top use cases for Weiyun Skills, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/weiyun-skills/ 目录(个人级,所有项目可用),或 .claude/skills/weiyun-skills/(项目级)。重启 AI 客户端后,用 /weiyun-skills 主动调用,或让 AI 根据上下文自动发现并使用。
Weiyun Skills 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Weiyun Skills 可免费安装使用。请查阅仓库了解许可证信息。
This skill should be used when the user needs to manage Tencent Weiyun cloud storage, including file upload/download, sharing, space management, and account...
Weiyun Skills 属于「Marketing & Growth」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my marketing & growth tasks using Weiyun Skills
Identifies repetitive steps in your workflow and sets up Weiyun Skills to handle them automatically