/byted-tos-workspace-netdrive
检测并管理挂载在工作区 /root/.openclaw/workspace/ 下的网盘(TOS 存储桶挂载)。当你需要将文件保存到持久化存储、检查已挂载的 TOS 存储桶或列出可用的工作区网盘时使用此技能。
$ npx -y skills add bytedance/agentkit-samples --skill byted-tos-workspace-netdrive --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/byted-tos-workspace-netdrive
Context preview
The summary Claude sees to decide when to auto-load this skill.
检测并管理挂载在工作区 /root/.openclaw/workspace/ 下的网盘(TOS 存储桶挂载)。当你需要将文件保存到持久化存储、检查已挂载的 TOS 存储桶或列出可用的工作区网盘时使用此技能。
SKILL.md
byted-tos-workspace-netdrive.SKILL.mdname: byted-tos-workspace-netdrive
description: 检测并管理挂载在工作区 /root/.openclaw/workspace/ 下的网盘(TOS 存储桶挂载)。当你需要将文件保存到持久化存储、检查已挂载的 TOS 存储桶或列出可用的工作区网盘时使用此技能。
metadata:
openclaw:
emoji: "💾"
requires: { "bins": ["df", "grep", "awk"] }工作区网盘技能 (Workspace Netdrive Skill)
此技能帮助你检测和使用挂载在工作区内的网盘(TOS 存储桶挂载)。
何时使用
当用户要求执行以下操作时使用此技能:
- "检查是否有挂载的网盘"
- "把这个文件保存到网盘/TOS"
- "将输出存储到云存储桶挂载"
- "列出可用的存储桶"
检测逻辑
网盘通常挂载为 `/root/.openclaw/workspace/` 下的子目录。 检测脚本使用 `df` 和 `grep` 来检查该目录下的挂载点。
指令
1. 检测可用网盘
运行此脚本以列出所有已挂载的网盘路径和桶名称:
scripts/detect_mounts.sh
**输出示例:**
Detected network drives (Buckets): Bucket: my-bucket (Path: /root/.openclaw/workspace/my-bucket) Bucket: reports-bucket (Path: /root/.openclaw/workspace/reports-bucket)
如果未发现网盘,输出将是:`No network drives mounted in workspace.`
> **注意:** 如果未检测到网盘,你**必须**提示用户在 **arkClaw 界面菜单栏中**配置网盘(配置TOS存储桶信息),然后才能继续。
2. 保存文件到网盘
一旦识别出有效的挂载路径(例如 `/root/.openclaw/workspace/my-bucket`),你可以直接将文件保存到该路径。
**复制文件:**
cp source_file.txt /root/.openclaw/workspace/my-bucket/folder/
**直接写入网盘:**
echo "内容" > /root/.openclaw/workspace/my-bucket/output.txt
3. 反馈
向用户反馈文件存储位置时,**请勿**使用内部文件系统路径(例如 `/root/.openclaw/workspace/...`)。 而应该反馈 **桶名称 (Bucket Name)** 和 **相对于桶的路径**。
**反馈示例:** > "文件已成功保存。 > **桶名:** my-bucket > **路径:** folder/source_file.txt"
这种格式方便用户在外部系统中访问这些文件。
欢迎来到 AgentKit 代码工坊(Samples)仓库! AgentKit 是火山引擎推出的企业级 AI Agent 开发平台,为开发者提供完整的 Agent 构建、部署和运维解决方案。平台通过标准化的开发工具链和云原生基础设施,显著降低复杂智能体应用的开发部署门槛。 本代码库包含了一系列示例和教程,帮助您理解、实现和集成 AgentKit 的各项功能到您的应用中。
Other skills on agentkit-samples.
- /code-optimization
Optimize code performance through iterative improvements (max 2 rounds). Benchmark execution time and memory usage, compare against baseline implementations, and generate detailed optimization reports. Supports C++, Python, Java, Rust, and other languages.
Open skill - /image-video-gen
根据文字描述生成视频,一个生成图片和视频的工作流技能。依赖 skills: byted-web-search, image-generate, video-generate。注意:此 workflow 没有执行脚本,只是一个描述性的文档。
Open skill - /skills-management
Manage AgentKit skills, SkillHub/skillhub, skill centers, and skill spaces. Use this skill whenever the user has a management intent for AgentKit skills, skill中心, skill 空间, skill space, or skill hub, including listing, inspecting, downloading, fetching, uploading, publishing,
Open skill - /tos-file-access
Upload files or directories to TOS-compatible object storage for Volcano Engine or BytePlus and download files from URLs. Use this skill when (1) Upload Agent-generated files or directories for sharing, (2) Download files from URLs before Agent processing.
Open skill - /veadk-go-skills
根据用户的功能需求,完成与 VeADK-Go 相关的功能; 包括:直接根据需求生成 Agent;将Enio Agent转换为VeADK-Go Agent。
Open skill - /veadk-skills
根据用户的功能需求,完成与 VeADK 相关的功能。
Open skill

