remote-compute-ssh
できること
このスキルは、エージェントが承認されたリモートサーバー(GPU のマシンなど)で、短いコマンドや長いジョブを SSH で実行できるようにします。自分のコンピューターより強力なマシンで重い作業をしたい人のためのものです。
使う場面
- ✓科学やデータのジョブに、自分のコンピューターにはない GPU やメモリが必要なとき。
- ✓長時間のジョブをリモートのサーバーで実行し、終わったら報告してほしいとき。
- ✓タスクを実行すべき、有効なコンピュートホストを選ぶ必要があるとき。
スキルのリンク
https://github.com/aipoch/open-science/blob/main/resources/skills/remote-compute-ssh/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“この学習ジョブを、有効になっている GPU のホストのどれかで実行し、終わったら結果を送ってください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、有効なコンピュートホストを確認し、短いコマンドを実行するか、長いジョブを投入します。待たずに進捗を読み、ジョブが終わったら結果を集めます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
This skill covers remote compute over SSH, including direct execution and Slurm submission:
listing hosts, creating handles, running short remote commands (callCommand), reading/writing host
knowledge docs, and the full async job lifecycle — submit → save job_id → read non-blocking
snapshots by that ID →
harvest → analysis turn → publish artifacts.
Where host.compute runs: host.compute lives ONLY on the control-plane REPL kernel — run
every example below with the repl_execute tool (JavaScript), the same kernel that hosts
host.mcp. The python/r data kernels have NO host.compute (SSH and approvals stay outside
the sandbox workspace); calling it from a python/r cell will fail with host.compute is undefined.
Choose an execution location
Only Compute Hosts enabled for this Session are visible or callable. Discover them in one catalog;
each entry has role selected or available. A non-empty selected pool is an execution instruction:
run tool-backed task work on one or more selected hosts as the task requires. The pool has no
priority and does not imply automatic multi-host scheduling. If no host is selected, choose from the
available entries. Read details() only for candidates that need closer evaluation.
Never guess or reuse a provider id absent from the catalog. A user naming a disabled host does not make it callable; explain that it must first be enabled for this Session. If no eligible host is usable, explain the blocker and ask the user how to proceed.
const hosts = await host.compute.listHosts()
const selectedHosts = hosts.filter((host) => host.role === 'selected')
const candidates = selectedHosts.length > 0 ? selectedHosts : hosts
Each list item is a compact summary with provider_id, display_name, shape, execution_mode,
status, and role
(last_probe_ok, probe_failed, or not_probed). last_probe_ok means the most recent persisted
Probe succeeded; it does not assert live connectivity. Knowledge documents and resource probe
snapshots are deliberately excluded from discovery results.
API reference
// List this Session's enabled hosts as one role-bearing compact catalog
const hosts = await host.compute.listHosts()
// Compatibility discovery names remain available; both still hide disabled hosts.
const visibleHosts = await host.compute.listRegistered()
const selectedHosts = await host.compute.listPreferred()
// Create a handle to a specific host (no network call)
const c = host.compute.create('ssh:<alias>')
// Run a short remote command (throws on approval_denied / host_unreachable / timeout)
const result = await c.callCommand('<shell command>', '<one-line intent for the approval card>', {
loginShell: true, // default: true — runs login profiles, then readable ~/.bashrc, before this command
timeoutSeconds: 60 // optional — the host applies its own default (60s) when omitted
})
// result → { exit_code, stdout, stderr, truncated }
// Read the persisted operation instructions and the independent resource probe snapshot.
// doc is always the exact saved text (including '' before instructions are saved).
// probe is explicitly null when this host has never been probed.
const info = await host.compute.details('ssh:<alias>', { mode: 'read' })
// Append a note to the persisted host knowledge doc (agent writes; 32 KB cap enforced).
// Append changes only doc; it never copies or changes probe observations.
await host.compute.details('ssh:<alias>', {
mode: 'append',
text: '\n## Note\nlearned X on <date>'
})
// Alternatively, replace the entire host knowledge doc. Read again before replacing,
// especially if you appended above: oldText must match the persisted doc exactly.
const latest = await host.compute.details('ssh:<alias>', { mode: 'read' })
await host.compute.details('ssh:<alias>', {
mode: 'replace',
text: '<new full doc>',
oldText: latest.doc
})
Treat doc as operation instructions and durable host knowledge. Treat probe as a dated
observation: resource values may change, and detecting a scheduler does not authorize submitting a
job or select an account, partition, or queue. On a document mismatch or details_conflict error,
read again and merge your draft with the latest document before retrying. A resource-only probe
refresh does not change doc or cause a replacement conflict. After writing, read again to verify
the saved contents. A successful append or replace result is only { ok: true }. The write res
よくある質問
どのサーバーでも使えますか?
いいえ。現在のセッションで有効にされたコンピュートホストだけを使います。
Python や R のデータのカーネルで動きますか?
いいえ。リモートの計算は制御 REPL でのみ実行され、Python や R のデータカーネルでは実行しないとされています。
ジョブが終わった後はどうなりますか?
エージェントは出力を集め、分析できます。その後、ユーザーが選んだ結果を共有します。
詳細
作者による元の説明
Evaluate and use SSH Remote Compute before choosing where to run GPU, high-memory, parallel, batch, model-inference, bioinformatics, or other long-running scientific work; supports short remote commands and asynchronous jobs with automatic harvest and analysis.
repo: aipoch/open-science
人気
- GitHubのスター
- 5.4k
- ランキング
- #14869
- ライセンス
- Apache-2.0
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
alphafold2
5.4kエージェントが、ColabFold のランナーを使い AlphaFold2 で、アミノ酸配列からタンパク質の立体構造を予測できるよう支援します。タンパク質の複合体にも対応します。
boltz
5.4kエージェントが、オープンソースの Boltz-2 モデルを使い、タンパク質、DNA、RNA、低分子の複合体の構造を予測できるよう支援します。任意で結合親和性の推定も行います。
borzoi
5.4kエージェントが、DNA の配列から発現やアクセシビリティなどのゲノム全体の活性トラックを予測し、予測される効果で変異を比べられるよう支援します。
chai1
5.4kエージェントが、Apache ライセンスの Chai-1 モデルを使い、一つの FASTA ファイルから、タンパク質、核酸、リガンドの複合体の構造を予測できるよう支援します。
似ているスキル
openclaw-update
394k既存のOpenClaw Gatewayを更新するようエージェントを支援します。インストール方法に合った更新方法を選び、セッションを動かし続けます。
diagnose-gateway
394k設定、チャンネル、ポートを確認して、OpenClaw Gatewayが失敗している理由を、何も変更せずに突き止めるようエージェントを支援します。
crabbox-apps
394k一時的なクラウドマシン上でアプリを開いて実行し、そのビューをチャットのサイドパネルに表示するようエージェントを支援します。