Skip to content
AI & Agents
Skill

/yao-workspace

Workspace file I/O expert. ALWAYS invoke this skill when you need to list workspaces, read or write files in a workspace on a remote node, or browse workspace directories. Use this for cross-node file operations — for local sandbox files, use standard filesystem tools instead.

BOOST
From plugin
yao
8.1k12 skills1 agent
Install
$ npx -y skills add YaoApp/yao --skill yao-workspace --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/yao-workspace

Context preview

The summary Claude sees to decide when to auto-load this skill.

Workspace file I/O expert. ALWAYS invoke this skill when you need to list workspaces, read or write files in a workspace on a remote node, or browse workspace directories. Use this for cross-node file operations — for local sandbox files, use standard filesystem tools instead.

SKILL.md

yao-workspace.SKILL.md
name: yao-workspace
description: Workspace file I/O expert. ALWAYS invoke this skill when you need to list workspaces, read or write files in a workspace on a remote node, or browse workspace directories. Use this for cross-node file operations — for local sandbox files, use standard filesystem tools instead.

Workspace Tools

Five tools for managing workspaces and file I/O, called via bash.

workspace_list

List workspaces with summary info. Use `workspace_get` for full details.

tai tool workspace_list '{}'
tai tool workspace_list '{"node": "tai-node-1"}'

| Parameter | Type | Required | Description | |-----------|--------|----------|--------------------------| | `node` | string | no | Filter by Tai node ID |

workspace_get

Get full workspace details: name, owner, node, labels, timestamps.

tai tool workspace_get '{"id": "ws-abc123"}'

| Parameter | Type | Required | Description | |-----------|--------|----------|---------------| | `id` | string | yes | Workspace ID |

workspace_file_list

List files and directories in a workspace path.

tai tool workspace_file_list '{"id": "ws-abc123"}'
tai tool workspace_file_list '{"id": "ws-abc123", "path": "src/components"}'

| Parameter | Type | Required | Description | |-----------|--------|----------|--------------------------------| | `id` | string | yes | Workspace ID | | `path` | string | no | Directory path (default ".") |

workspace_file_read

Read file content from workspace. Returns text (UTF-8) or base64 encoded.

tai tool workspace_file_read '{"id": "ws-abc123", "path": "README.md"}'
tai tool workspace_file_read '{"id": "ws-abc123", "path": "image.png", "encoding": "base64"}'

| Parameter | Type | Required | Description | |------------|--------|----------|------------------------------------------| | `id` | string | yes | Workspace ID | | `path` | string | yes | File path relative to workspace root | | `encoding` | string | no | "text" (default) or "base64" |

workspace_file_write

Write content to a file in workspace. For binary files, use base64 encoding.

tai tool workspace_file_write '{"id": "ws-abc123", "path": "output.txt", "content": "Hello World"}'
tai tool workspace_file_write '{"id": "ws-abc123", "path": "data.bin", "content": "base64data...", "encoding": "base64"}'

| Parameter | Type | Required | Description | |------------|--------|----------|------------------------------------------| | `id` | string | yes | Workspace ID | | `path` | string | yes | File path relative to workspace root | | `content` | string | yes | File content (text or base64 encoded) | | `encoding` | string | no | "text" (default) or "base64" |

Typical Workflow

1. `workspace_list` — discover available workspaces 2. `workspace_get` — get full details (node, labels) 3. `workspace_file_list` — browse directory structure 4. `workspace_file_read` — read specific files 5. `workspace_file_write` — write output files

Guidelines

  • Use `workspace_list` for discovery, `workspace_get` for details (list returns summaries only)
  • For large files (>1MB), prefer local filesystem operations if the workspace is mounted in the sandbox
  • Use `encoding: "base64"` for binary files (images, archives, etc.)
  • File paths are relative to the workspace root — do not use absolute paths
  • The current sandbox workspace ID is available via `$CTX_WORKSPACE_ID`
  • All output is JSON
Read more
Ships withyao

✨ All your agents and workspaces in one place, on every device you own. Track tasks on a board, accessible from desktop, mobile, browser, or API. Self-hosted.

Get the whole plugin
Stats
8,072
Stars
717
Forks
Active
Maintenance
Go
Language
5d ago
Last commit
5y ago
Created
3h ago
Added

Repo: YaoApp/yao

Other skills on yao.