yao-workspace
Skill này làm gì
Skill này cho phép agent duyệt và chỉnh sửa file trong các workspace của Yao, kể cả workspace trên máy khác. Dành cho người quản lý file dự án trên nhiều máy tính.
Khi nào nên dùng
- ✓Khi bạn muốn xem những workspace nào đang tồn tại và chúng chạy ở đâu.
- ✓Khi bạn cần đọc hoặc ghi một file trong workspace trên máy tính khác.
- ✓Khi bạn muốn duyệt các thư mục trong một workspace.
Liên kết skill
https://github.com/YaoApp/yao/blob/main/tools/skills/yao-workspace/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Liệt kê các workspace của tôi, rồi cho tôi xem các file trong thư mục src của workspace dự án chính.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent liệt kê các workspace, sau đó xem bên trong workspace bạn chọn theo đường dẫn. Agent có thể đọc nội dung văn bản hoặc nội dung base64 của file, và ghi file. Với file trên cùng máy tính, agent dùng các công cụ file thông thường của nó.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
workspace_list— discover available workspacesworkspace_get— get full details (node, labels)workspace_file_list— browse directory structureworkspace_file_read— read specific filesworkspace_file_write— write output files
Guidelines
- Use
workspace_listfor discovery,workspace_getfor 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
Câu hỏi thường gặp
Đây có phải công cụ cho file cục bộ không?
Không. Với file trên cùng máy tính, agent dùng các công cụ file thông thường.
Nó có thấy workspace trên các node khác không?
Có. Workspace có thể được lọc theo node mà nó chạy trên.
Kết quả đọc file có định dạng gì?
Văn bản UTF-8, hoặc base64 với nội dung nhị phân.
Chi tiết
Mô tả gốc của tác giả
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.
repo: YaoApp/yao
Độ phổ biến
- Sao GitHub
- 8.3k
- Vị trí xếp hạng
- #12482
- Giấy phép
- —
- Cập nhật
- 19/10/2026
Bình luận
- …
Thêm skill từ kho mã này
yao-agent
8.3kGiúp agent của bạn liệt kê các agent trên một host Yao, tra cứu hoặc tải mã agent, triển khai thay đổi và kiểm tra danh sách bộ kết nối mô hình.
yao-audio
8.3kGiúp agent của bạn chuyển giọng nói trong file âm thanh, như bản ghi cuộc họp, thành văn bản và tự nhận diện ngôn ngữ nếu bạn không chọn.
yao-board
8.3kGiúp agent của bạn kiểm tra bảng kanban và trạng thái công việc trên nền tảng Yao, để báo cáo tiến độ dự án thật thay vì đoán mò.
yao-daemon
8.3kGiúp agent của bạn khởi động, kiểm tra, khởi động lại và dừng các dịch vụ chạy nền lâu dài, như máy chủ phát triển, và đọc những gì chúng in ra.
Skill tương tự
openclaw-update
394kGiúp agent của bạn cập nhật OpenClaw Gateway đang có, chọn cách cập nhật phù hợp với cách cài đặt và giữ phiên làm việc của bạn hoạt động.
diagnose-gateway
394kGiúp agent của bạn tìm hiểu vì sao OpenClaw Gateway bị lỗi bằng cách kiểm tra cài đặt, kênh và cổng mà không thay đổi gì.
crabbox-apps
394kGiúp agent của bạn mở và chạy một app trên máy đám mây tạm thời, rồi hiển thị giao diện của nó trong thanh bên của chat.