本文へスキップ
Skillpedia
デプロイとクラウド(DevOps)8.3k · #12482

yao-workspace

できること

このスキルにより、エージェントはYaoのワークスペース内のファイルを閲覧、編集できます。他のマシン上のワークスペースも含みます。複数のコンピューターにまたがってプロジェクトファイルを管理する人向けです。

使う場面

  • ✓どのワークスペースが存在し、どこで動いているかを見たいとき。
  • ✓別のコンピューター上のワークスペースで、ファイルを読み書きする必要があるとき。
  • ✓ワークスペース内のフォルダを閲覧したいとき。

スキルのリンク

https://github.com/YaoApp/yao/blob/main/tools/skills/yao-workspace/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/YaoApp/yao/blob/main/tools/skills/yao-workspace/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“私のワークスペースを一覧表示し、メインプロジェクトのワークスペースにある src フォルダのファイルを見せてください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントはワークスペースを一覧表示し、あなたが選んだものの中をパスで確認します。ファイルのテキストやbase64の内容を読んだり、ファイルを書き込んだりできます。同じコンピューターのファイルには、エージェントは通常のファイルツールを使います。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

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
よくある質問

これはローカルファイル用のツールですか?

いいえ。同じコンピューター上のファイルには、エージェントは通常のファイルツールを使います。

他のノードのワークスペースも見られますか?

はい。ワークスペースは、それが動いているノードで絞り込めます。

ファイルの読み取りはどの形式で返されますか?

UTF-8のテキスト、またはバイナリの内容の場合はbase64です。

詳細

作者による元の説明

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

人気

GitHubのスター
8.3k
ランキング
#12482
ライセンス
—
更新日
2026/10/19

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル