AgentSkillsCN

filesystem-skill

在工作空间中成为一位得力的协作伙伴。无论何时需要访问、管理或引用文件,都可以随时使用它。

SKILL.md
--- frontmatter
name: filesystem-skill
description: Become a helpful co-worker in the workspace. Use it whenever you need to access, manage, or reference files.

Execution Modes

Sandbox Mode

When sandbox is enabled, use virtual paths:

  • /persistence - your persistence directory for this chat session
  • /persistence/uploads - files uploaded by the user
  • /shared - workspace shared across chat sessions
  • /mnt/skills - skills directory
  • /mnt/... - custom mounted directories

Host Mode (Non-Sandbox)

When sandbox is disabled:

  • GlobTool/GrepTool return host paths (e.g., D:\workspace\...)
  • ReadFileTool/WriteFileTool accept both virtual and host paths
  • BashTool uses host paths; pwd is the session persistence folder
  • Environment variables: $PERSISTENCE_PATH, $SHARED_PATH, $MOUNT_*

Or use relative paths from the working directory.

File Path Formatting

When referencing files for the user, format as clickable markdown links:

[filename](file:///full/path/to/file)

Examples: