Skip to content
AI & Agents
Skill

/byted-tos-workspace-netdrive

检测并管理挂载在工作区 /root/.openclaw/workspace/ 下的网盘(TOS 存储桶挂载)。当你需要将文件保存到持久化存储、检查已挂载的 TOS 存储桶或列出可用的工作区网盘时使用此技能。

From plugin
agentkit-samples
417156 skills
Install
$ npx -y skills add bytedance/agentkit-samples --skill byted-tos-workspace-netdrive --agent claude-code

How 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.md
name: 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"

这种格式方便用户在外部系统中访问这些文件。

Ships withagentkit-samples

欢迎来到 AgentKit 代码工坊(Samples)仓库! AgentKit 是火山引擎推出的企业级 AI Agent 开发平台,为开发者提供完整的 Agent 构建、部署和运维解决方案。平台通过标准化的开发工具链和云原生基础设施,显著降低复杂智能体应用的开发部署门槛。 本代码库包含了一系列示例和教程,帮助您理解、实现和集成 AgentKit 的各项功能到您的应用中。

Get the whole plugin
Stats
428
Stars
91
Forks
Active
Maintenance
Python
Language
Apache-2.0
License
7h ago
Last commit
9mo ago
Created

Repo: bytedance/agentkit-samples