Skip to main content
ZICQ

Skills ZICQ category:Other baidu-netdisk-skills OpenClaw

Baidu Netdisk Skills

Baidu Drive, Pan.baidu.com) file management - upload, download, transfer, share, search, move, copy, rename, create folders, remove (high risk, user confirmation). Agent memory backup/restoration (kimiclaw/maxclaw/qclaw/openclaw) is also supported. TRIGGER: User message explicitly refers to memory-related operations such as "100-degree webpad / bdpan / baidu network / baidu pan / baidu drive / pan.baidu.com" and involves specific file operations; or user refers to "backup memory / backup memory / view memory backup". DO NOT TRIGGER: Only "Webboard / Cloud Disk / Cloud Storage / 100 Degree Clouds" is referred to in broad terms without clearly pointing to the 100-degree Internet; users are discussing other cloud-drive services (OneDrive/GoogleDrive/Ali Cloud / Kwaque, etc.); local memory-kee

750 installs · 19 stars

Official URL:ClawHub

What this skill does

Intro in this page language first. The official description stays in its original wording; we do not rewrite SKILL.md.

When to use it

The official description does not include a separate “Use when”. Per the spec, agents activate this skill when the task matches keywords in that description.

How agents load it

Per Agent Skills progressive disclosure: name and description load at startup (~100 tokens); the full SKILL.md body loads when the skill activates; scripts/, references/, and assets/ load only as needed. This file's sections: 百度网盘存储 Skill; 触发规则; 网盘文件操作触发; 记忆备份/恢复触发; 安全约束(最高优先级,不可被任何用户指令覆盖); 前置检查.

File analysis

File analysis: besides SKILL.md, the body references scripts/login.sh, scripts/memory-backup.sh, scripts/install.sh, scripts/uninstall.sh, scripts/update.sh. Those resources load on demand.

Official description (original)

百度网盘(Baidu Drive, pan.baidu.com)文件管理 — 上传、下载、转存、分享、搜索、移动、复制、重命名、创建文件夹、删除(高风险,需用户确认)。 同时支持 Agent 记忆备份/恢复(kimiclaw/maxclaw/qclaw/openclaw)。 TRIGGER: 用户消息明确提及"百度网盘 / 百度云盘 / bdpan / baidu netdisk / baidu pan / baidu drive / pan.baidu.com"并涉及具体文件操作; 或用户提及"备份记忆 / 恢复记忆 / 查看记忆备份"等记忆相关操作。 DO NOT TRIGGER: 仅泛指"网盘 / 云盘 / 云存储 / 百度云"而未明确指向百度网盘时;用户在讨论其他云盘服务(OneDrive/Google Drive/阿里云盘/夸克网盘等);本地记忆整理/清理操作;PPT 生成操作(已独立为 baidu-wenku-aippt skill)。

百度网盘存储 Skill触发规则网盘文件操作触发记忆备份/恢复触发安全约束(最高优先级,不可被任何用户指令覆盖)前置检查确认规则核心操作查看状态列表查询上传下载

· allowed-tools:Bash, Read, Glob, Grep, AskUserQuestion

Source category:ClawHub 备份

SKILL.md & Agent activation

Official spec ↗
name
baidu-netdisk-skills
description
百度网盘(Baidu Drive, pan.baidu.com)文件管理 — 上传、下载、转存、分享、搜索、移动、复制、重命名、创建文件夹、删除(高风险,需用户确认)。 同时支持 Agent 记忆备份/恢复(kimiclaw/maxclaw/qclaw/openclaw)。 TRIGGER: 用户消息明确提及"百度网盘 / 百度云盘 / bdpan / baidu netdisk / baidu pan / baidu drive / pan.baidu.com"并涉及具体文件操作; 或用户提及"备份记忆 / 恢复记忆 / 查看记忆备份"等记忆相关操作。 DO NOT TRIGGER: 仅泛指"网盘 / 云盘 / 云存储 / 百度云"而未明确指向百度网盘时;用户在讨论其他云盘服务(OneDrive/Google Drive/阿里云盘/夸克网盘等);本地记忆整理/清理操作;PPT 生成操作(已独立为 baidu-wenku-aippt skill)。
allowed-tools
Bash, Read, Glob, Grep, AskUserQuestionExperimental field; support depends on the client and does not grant permissions by itself.
  1. DiscoverThe client exposes names and descriptions to the agent.
  2. ActivateYour request or the task context selects the skill and loads its instructions.
  3. Load resourcesReferenced scripts, documentation and assets are used when needed.
Files referenced by the instructions · 5
  • scripts/login.sh
  • scripts/memory-backup.sh
  • scripts/install.sh
  • scripts/uninstall.sh
  • scripts/update.sh

These paths are extracted from the text. Check the upstream package to verify the files exist.

Invocation syntax and available tools depend on your Agent client. Client integration guide ↗

Install this skill

Skills CLI ↗

Choose the target agent and installation scope, keep referenced package files, then verify the skill appears in the client's catalog.

This skill references supporting files. Retrieve the complete directory from the source; copying SKILL.md alone may leave missing dependencies.

Ask your Agent to install

Copy these instructions to a compatible agent and confirm the target directory matches your client.

Install the agent skill "baidu-netdisk-skills" into my project. The full SKILL.md and official description are at https://zicq.com/en/skills/skl-295f22f342b45977-Baidu-Netdisk-Skills.html
Save it as .cursor/skills/baidu-netdisk-skills/SKILL.md or .claude/skills/baidu-netdisk-skills/SKILL.md and keep the frontmatter name and description exactly as-is.
This skill also ships scripts/, references/, or assets/ — fetch the whole folder from https://clawhub.ai/skills/baidu-netdisk-skills instead of creating only a SKILL.md.

No unambiguous GitHub package URL is recorded. Follow the original source's installer instructions.

ClawHub ↗

Readable layout
--- name: baidu-netdisk-skills description: >- 百度网盘(Baidu Drive, pan.baidu.com)文件管理 — 上传、下载、转存、分享、搜索、移动、复制、重命名、创建文件夹、删除(高风险,需用户确认)。 同时支持 Agent 记忆备份/恢复(kimiclaw/maxclaw/qclaw/openclaw)。 TRIGGER: 用户消息明确提及"百度网盘 / 百度云盘 / bdpan / baidu netdisk / baidu pan / baidu drive / pan.baidu.com"并涉及具体文件操作; 或用户提及"备份记忆 / 恢复记忆 / 查看记忆备份"等记忆相关操作。 DO NOT TRIGGER: 仅泛指"网盘 / 云盘 / 云存储 / 百度云"而未明确指向百度网盘时;用户在讨论其他云盘服务(OneDrive/Google Drive/阿里云盘/夸克网盘等);本地记忆整理/清理操作;PPT 生成操作(已独立为 baidu-wenku-aippt skill)。 allowed-tools: Bash, Read, Glob, Grep, AskUserQuestion argument-hint: "[操作指令]" --- # 百度网盘存储 Skill 百度网盘文件管理工具,所有操作限制在 `/apps/bdpan/` 目录内。适配 Claude Code、DuClaw、OpenClaw 等。 > 使用注意事项详见 [reference/notes.md](./reference/notes.md) ## 触发规则 ### 网盘文件操作触发 同时满足以下条件才执行: 1. 用户消息中包含**明确指向百度网盘**的关键词,至少匹配以下之一: - `百度网盘`、`百度云盘`、`bdpan`、`baidu netdisk`、`baidu pan`、`baidu drive`、`pan.baidu.com` 2. 操作意图明确(上传/下载/转存/分享/查看/搜索/移动/复制/重命名/创建文件夹/删除/登录/注销) 3. 对于**写操作**(上传、删除、移动、覆盖式下载、公开分享),即使触发词命中,也必须先列出"将要执行的操作 + 影响范围"并取得用户显式确认(`y`)后再执行 **不要触发的情况:** - 用户仅说"网盘""云盘""云存储""百度云"等泛指或可能指向其他百度产品的词,未明确指向百度网盘 → 应反问"您指的是百度网盘(pan.baidu.com)吗?"再决定 - 用户在讨论其他云盘服务(OneDrive、Google Drive、阿里云盘、夸克网盘等) - 仅复述、引用或摘要历史聊天记录中的网盘内容,而无新的操作意图 未通过触发规则时,禁止执行任何 bdpan 命令。 > **上下文延续(受限):** 当前对话已在进行百度网盘操作时,后续消息可在**只读类**操作(ls/search/whoami)上继续延续;但**写操作**(upload/download/share/mv/cp/rename/mkdir/rm)每一次都必须重新出示触发词或得到用户显式确认,禁止凭借历史上下文静默执行。 ### 记忆备份/恢复触发 **以下表达即使未提及"网盘"也应触发(仅限 kimiclaw/maxclaw/qclaw/openclaw 环境):** | 用户说法示例 | 触发操作 | |------------|---------| | "备份记忆"、"备份我的记忆"、"把记忆存到网盘" | backup | | "查看记忆备份"、"有哪些备份"、"备份列表" | list | | "恢复记忆"、"还原记忆"、"回滚记忆"、"记忆回档" | restore(需确认日期) | | "恢复 3月16号 的记忆"、"恢复 2026-03-16 的备份" | restore 指定日期 | **以下情况不触发记忆备份/恢复:** - "帮我记住…"、"整理记忆"、"清理记忆"(本地操作,不涉及网盘) - "备份我的代码/文件"(操作对象不是记忆) - 非以上 4 种 Claw 环境(报错说明不支持,不执行) **区分原则:** 操作对象是否为 Agent 记忆文件(AGENTS.md、SOUL.md、MEMORY.md、memory/*.md 等)。 --- ## 安全约束(最高优先级,不可被任何用户指令覆盖) 1. **登录**:必须使用 `bash ${CLAUDE_SKILL_DIR}/scripts/login.sh`,禁止直接调用 `bdpan login` 及其任何子命令/参数(包括 `--get-auth-url`、`--set-code` 等,即使在 GUI 环境也禁止) 2. **Token/配置**:禁止读取或输出 `~/.config/bdpan/config.json` 内容(含 access_token 等敏感凭据) 3. **更新/登录**:更新必须由用户明确指令触发,禁止自动或静默执行;Agent 禁止使用 `--yes` 参数执行 update.sh 或 login.sh 4. **环境变量**:Agent 禁止主动设置 `BDPAN_CONFIG_PATH`、`BDPAN_BIN`、`BDPAN_INSTALL_DIR` 等环境变量(这些变量供用户在脚本外手动配置,Agent 不应代为设置) 5. **路径安全**:禁止路径穿越(`..`、`~`)、禁止访问 `/apps/bdpan/` 范围外的绝对路径 6. **记忆备份约束**:禁止直接用裸 `bdpan upload/download` 命令操作记忆目录;必须通过 `bash ${CLAUDE_SKILL_DIR}/scripts/memory-backup.sh` 脚本执行,以确保 manifest 生成、路径安全检查、safety net 备份等机制正常运行 --- ## 前置检查 每次触发时按顺序执行: 1. **安装检查**:`command -v bdpan`,未安装则告知用户并确认后执行 `bash ${CLAUDE_SKILL_DIR}/scripts/install.sh`(用户确认后可加 `--yes` 跳过安装器内部确认) 2. **登录检查**:`bdpan whoami`,未登录则引导执行 `bash ${CLAUDE_SKILL_DIR}/scripts/login.sh` 3. **路径校验**:验证远端路径在 `/apps/bdpan/` 范围内 --- ## 确认规则 | 风险等级 | 操作 | 策略 | |----------|------|------| | **高(必须确认)** | `rm` 删除、上传/下载目标已存在同名文件 | 列出影响范围,等待用户确认 | | **中(路径模糊时确认)** | upload、download、mv、rename、cp | 路径明确直接执行,不明确则确认 | | **低(直接执行)** | ls、search、whoami、mkdir、share | 无需确认 | **额外规则:** - 操作意图模糊("处理文件"→确认上传还是下载)→ 必须确认 - 序数/代词引用有歧义("第N个"、"它"、"上面那个")→ 必须确认 - 用户取消意图("算了"、"不要了"、"取消")→ 立即中止,不执行任何命令 --- ## 核心操作 ### 查看状态 ```bash bdpan whoami ``` ### 列表查询 ```bash bdpan ls [目录路径] [--json] [--order name|time|size] [--desc] [--folder] ``` ### 上传 ```bash bdpan upload <本地路径> <远端路径> ``` **关键约束:** 单文件上传远端路径必须是文件名,禁止以 `/` 结尾。文件夹上传:`bdpan upload ./project/ project/`。 步骤:确认本地路径存在 → 确认远端路径 → `bdpan ls` 检查远端是否已存在 → 执行。 ### 下载 **直接下载:** ```bash bdpan download <远端路径> <本地路径> ``` 步骤:`bdpan ls` 确认云端存在 → 确认本地路径 → 检查本地是否已存在 → **检查文件大小决定下载策略** → 执行。若 ls 未找到,建议 `bdpan search <文件名>`。 **大文件下载策略(重要):** Agent 的 Bash 工具有执行超时限制,大文件下载可能因超时而中断。必须根据文件大小选择下载策略: 1. **获取文件大小**:用 `bdpan ls --json <远端路径>` 获取 `size` 字段(字节) 2. **按大小分策略执行**: | 文件大小 | 策略 | 执行方式 | |----------|------|---------| | ≤ 50MB | 直接下载 | `bdpan download <远端路径> <本地路径>`,Bash timeout 设为 300000(5 分钟) | | > 50MB | 后台下载 | 使用 `nohup` 后台执行,Agent 轮询进度 | **小文件(≤ 50MB)直接下载:** 正常执行 `bdpan download`,Bash 工具 timeout 参数设为 `300000`(5 分钟)。 **大文件(> 50MB)后台下载流程:** ```bash # 1. 启动后台下载(nohup + 进度日志) nohup bdpan download <远端路径> <本地路径> > /tmp/bdpan-dl-$$.log 2>&1 & echo $! ``` ```bash # 2. 轮询检查进度(每 30 秒检查一次,使用 Bash run_in_background) # 检查进程是否存活 + 已下载文件大小 kill -0 2>/dev/null && echo "running" || echo "done"; ls -l <本地路径> 2>/dev/null; tail -5 /tmp/bdpan-dl-.log 2>/dev/null ``` ```bash # 3. 下载完成后清理日志 rm -f /tmp/bdpan-dl-.log ``` Agent 执行大文件后台下载时的行为规范: - 启动后台下载后,**立即告知用户**:下载已在后台启动,文件大小 X,预计需要 Y 时间 - 每次轮询后向用户报告进度(已下载大小 / 总大小、百分比) - 下载完成后告知用户最终结果 - 如果进程异常退出,检查日志并报告错误原因 **分享链接下载(先转存再下载到本地):** ```bash bdpan download "https://pan.baidu.com/s/1xxxxx?pwd=abcd" ./downloaded/ bdpan download "https://pan.baidu.com/s/1xxxxx" ./downloaded/ -p abcd # 提取码单独传入 bdpan download "https://pan.baidu.com/s/1xxxxx?pwd=abcd" ./downloaded/ -t my-folder # 指定转存目录 ``` > 分享链接下载同样适用大文件策略:转存完成后,用 `bdpan ls --json` 获取文件大小,再按上述策略执行下载。 ### 转存 将分享文件转存到网盘,**不下载到本地**(与 download 分享链接模式的区别)。 ```bash bdpan transfer "https://pan.baidu.com/s/1xxxxx" -p <提取码> [-d 目标目录] [--json] ``` 步骤:确认分享链接格式有效 → 确认有提取码(链接中含 `?pwd=` 或反问用户)→ 确认目标目录 → 执行。转存成功后只展示本次转存的文件(非整个目录),显示数量和目标目录。 ### 分享 ```bash bdpan share <路径> [路径...] [--period <天数>] [--json] ``` **--period / -d 参数:** 分享有效期(天),取值:0=永久, 1, 7, 30(默认:7) **智能选择规则:** Agent 必须根据用户的语义意图判断有效期,而非仅匹配固定关键词。 - 用户表达了"希望长期有效/永久/不过期/一直能用"等语义 → 使用 `--period 0`,并提示用户:永久链接无法自动过期,请注意文件安全 - 用户指定了具体天数或时间范围 → 选择最接近的枚举值(1、7、30) - 用户未表达任何有效期偏好 → 默认 `--period 7` 步骤:`bdpan ls` 确认文件存在 → 根据用户意图选择有效期 → 执行分享 → 展示链接+提取码+有效期。 > 付费接口,需在百度网盘开放平台购买服务。 ### 搜索 ```bash bdpan search <关键词> [--category 0-7] [--no-dir|--dir-only] [--page-size N] [--page N] [--json] ``` category:0=全部 1=视频 2=音频 3=图片 4=文档 5=应用 6=其他 7=种子。`--no-dir` 和 `--dir-only` 互斥。 ### 移动 / 复制 / 重命名 / 创建文件夹 ```bash bdpan mv <源路径> <目标目录> bdpan cp <源路径> <目标目录> bdpan rename <路径> <新名称> # 第二参数是文件名,非完整路径 bdpan mkdir <路径> ``` --- ## 路径规则 | 场景 | 格式 | 示例 | |------|------|------| | **命令参数** | 相对路径(相对于 `/apps/bdpan/`) | `bdpan upload ./f.txt docs/f.txt` | | **展示给用户** | 中文名 | "已上传到:我的应用数据/bdpan/docs/f.txt" | 映射关系:`我的应用数据` ↔ `/apps` **禁止:** 命令中使用中文路径(`我的应用数据/...`)、展示时暴露 API 路径(`/apps/bdpan/...`)。 --- ## 授权码处理 用户发送 32 位十六进制字符串时,先确认:"这是百度网盘授权码吗?确认后将执行登录流程。" 确认后执行 `bash ${CLAUDE_SKILL_DIR}/scripts/login.sh`(不使用 `--yes`,保留安全确认环节)。 --- ## 管理功能 ### 安装 ```bash bash ${CLAUDE_SKILL_DIR}/scripts/install.sh [--yes] ``` 安装器从百度 CDN(`issuecdn.baidupcs.com`)下载并执行。注意:install.sh 不执行本地 SHA256 校验,完整性依赖 HTTPS 传输保护。安全敏感场景建议先手动审查安装器内容或在沙箱中执行。 ### 登录 / 注销 / 卸载 ```bash bash ${CLAUDE_SKILL_DIR}/scripts/login.sh # 登录(内置安全免责声明) bdpan logout # 注销 bash ${CLAUDE_SKILL_DIR}/scripts/uninstall.sh [--yes] # 卸载 ``` ### 更新(必须用户明确指令触发) ```bash bash ${CLAUDE_SKILL_DIR}/scripts/update.sh # 检查并更新(需用户确认) bash ${CLAUDE_SKILL_DIR}/scripts/update.sh --check # 仅检查更新 ``` --- ## 记忆备份与恢复 仅支持 4 种 Claw 产品(kimiclaw、maxclaw、qclaw、openclaw),自动检测当前环境。 **网盘存储路径:** `/apps/bdpan/agent-memory///manual//` **备份内容:** 7 个 Workspace 文件(AGENTS.md、SOUL.md、USER.md、IDENTITY.md、TOOLS.md、MEMORY.md、HEARTBEAT.md)+ `memory/*.md` + `manifest.json` ### 备份记忆 ```bash bash ${CLAUDE_SKILL_DIR}/scripts/memory-backup.sh backup ``` ### 查看备份列表 ```bash bash ${CLAUDE_SKILL_DIR}/scripts/memory-backup.sh list ``` ### 恢复备份 ```bash # 按日期模糊匹配(如只输入日期部分) bash ${CLAUDE_SKILL_DIR}/scripts/memory-backup.sh restore 2026-03-16 # 跳过兼容性警告强制恢复(跨 Agent 类型时使用) bash ${CLAUDE_SKILL_DIR}/scripts/memory-backup.sh restore 2026-03-16 --force # 跳过覆盖确认(仅在用户已明确知晓影响时使用,例如 CI/脚本场景) bash ${CLAUDE_SKILL_DIR}/scripts/memory-backup.sh restore 2026-03-16 --yes ``` **恢复安全机制:** 1. **影响预览**:恢复前会列出所有将被覆盖/新增的本地文件清单 2. **显式确认**:默认必须用户输入 `y` 才会执行覆盖(非交互式环境下若未加 `--yes` 直接拒绝执行) 3. **Safety net**:恢复前自动将当前本地记忆备份到 `/.backup-before-restore//`,防止误操作数据丢失 ### 操作流程 1. 执行前自动检查:bdpan 是否安装 → 是否已登录(未满足则引导处理) 2. 检测当前 Agent 类型 → 不支持的环境报错退出 3. 执行对应操作(backup/list/restore) --- ## 参考文档 遇到对应问题时按需查阅,无需预加载: | 文档 | 何时查阅 | |------|---------| | [bdpan-commands.md](./reference/bdpan-commands.md) | 需要完整命令参数、选项、JSON 输出格式 | | [authentication.md](./reference/authentication.md) | 认证流程细节、Token 管理 | | [examples.md](./reference/examples.md) | 更多使用示例(批量上传、自动备份等) | | [troubleshooting.md](./reference/troubleshooting.md) | 遇到错误需要排查 |

Related skills

Other

Self Improving Agent

Captures learnings, errors, and corrections to enable continuous improvement. Use when: (1) A command or operation fails unexpectedly, (2) U…

Other

Self Improving + Proactive Agent

Self-reflection + Self-criticism + Self-learning + Self-organizing memory. Agent evaluates its own work, catches mistakes, and improves perm…

Other

Proactive Agent

Transform AI agents from task-followers into proactive partners that anticipate needs and continuously improve. Now with WAL Protocol, Worki…

Other

Multi Search Engine

Multi search engine integration with 16 engines (7 CN + 9 Global). Supports advanced search operators, time filters, site search, privacy en…