Skip to content
Skills Library
Data & analytics · Automation

remote-compute

/remote-compute

在工作站与 GPU / 计算节点之间提交、查询、同步和查看远程任务,并把实验结果整理成手机上能直接看的摘要。工作站只做代码编辑、Git、SSH、轻量检查和小文件查看;数据、模型、训练、评估、推理都在计算节点执行。提交或查询远程任务、同步代码、拉取日志或指标、“把结果发到手机上看”、查看节点网页服务时使用。

Repository
PocketRig ↗
Licence
MIT
Last repository change
27.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
1
Deprecation

No signals detected. Repository changed on 27.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

在工作站与 GPU / 计算节点之间提交、查询、同步和查看远程任务,并把实验结果整理成手机上能直接看的摘要。工作站只做代码编辑、Git、SSH、轻量检查和小文件查看;数据、模型、训练、评估、推理都在计算节点执行。提交或查询远程任务、同步代码、拉取日志或指标、“把结果发到手机上看”、查看节点网页服务时使用。

Triggers from the description

把结果发到手机上看
Original author description

在工作站与 GPU / 计算节点之间提交、查询、同步和查看远程任务,并把实验结果整理成手机上能直接看的摘要。工作站只做代码编辑、Git、SSH、轻量检查和小文件查看;数据、模型、训练、评估、推理都在计算节点执行。提交或查询远程任务、同步代码、拉取日志或指标、“把结果发到手机上看”、查看节点网页服务时使用。

How it works

  1. 连接信息
  2. 1. 远程提交
  3. 2. 状态查询
  4. 3. 结果同步
  5. 4. 结果回传到手机
  6. 5. 可视化连接
  7. 规则
Original SKILL.md headings · 66 lines, 173 words
SKILL.md preview
---
name: remote-compute
description: 在工作站与 GPU / 计算节点之间提交、查询、同步和查看远程任务,并把实验结果整理成手机上能直接看的摘要。工作站只做代码编辑、Git、SSH、轻量检查和小文件查看;数据、模型、训练、评估、推理都在计算节点执行。提交或查询远程任务、同步代码、拉取日志或指标、“把结果发到手机上看”、查看节点网页服务时使用。
---

# remote-compute

复制到本人目录使用(如 `~/.claude/skills/remote-compute/`,或用仓库的 `skills/install.sh`)。模板中不写密码、令牌或私钥。

## 连接信息

每个项目在仓库根目录的 `CLAUDE.local.md`(不提交,加入 `.git/info/exclude`)中记录:

```text
host: compute-node-1          # ~/.ssh/config 中的别名
dir: /data/<user>/<project>   # 远程工作目录
env: source ~/venvs/<project>/bin/activate   # 远程环境激活命令
scheduler: slurm | systemd-run | tmux
```

缺少任何一项时先问用户,不要退回工作站执行重计算。

## 1. 远程提交

1. `git status` 确认本地已提交;`git push`。
2. `ssh <host> 'cd <dir> && git status --short && git fetch && git checkout <commit>'`;远程有未提交修改时先告诉用户。
3. 按 scheduler 提交,命令中写明资源参数,日志写到 `<dir>/logs/<job-id>.log`,日志首行记录 commit。
4. 返回:任务 ID、commit、日志路径、产物目录。

预计超过几分钟的任务一律后台提交,提交后不要在前台等待;任务不能依赖手机或 SSH 前台连接。

## 2. 状态查询

输入任务 ID,返回调度状态、关键指标的最新值(step、loss 等)、日志末尾 20 行和产物目录列表。回答要短到能在手机上一屏看完。停止任务(`scancel`、`kill` 等)前必须先征得用户同意;Paseo 中停止代理不代表远程作业已结束。

## 3. 结果同步

- 先在远程聚合或抽样,只拉指标、日志片段、少量样例和图片。
- 拉取前用 `du -sh` 查看大小;超过 50 MB 先告诉用户。
- 存到 `~/results/<project>/<job-id>/`,并记录远程路径与时间。
- 不拉数据集、权重、检查点和大批量结果;rsync 默认不加 `--delete`。

## 4. 结果回传到手机

工作站常开,手机通过 Paseo 打开的就是工作站上的会话,所以“手机上看结果”只需要把结果整理在工作站上:

1. 同步完成后在 `~/results/<project>/<job-id>/` 写 `summary.md`:任务 ID、commit、状态与用时、关键指标表(与上一版对比时列出差值)、图片相对链接(如 `![loss]` 指向同目录的 `loss.png`)、远程完整产物路径。
2. 曲线图在节点上生成 PNG 后再拉回,宽度不超过 1200 px,便于手机查看。
3. 在会话里直接回复摘要:3–5 行结论 + 指标表 + `summary.md` 路径。用户在手机上可以接着发下一条指令(例如“和上一版对比”“改学习率重跑”)。
4. 用户要求“跑完通知我”时,提交时在节点任务末尾写完成标记文件;之后的查询以标记文件为准,不要轮询占用前台。

## 5. 可视化连接

节点上的网页服务(TensorBoard 等)通过两段 SSH 隧道给本人电脑查看,端口按人或任务错开:

```bash
# 工作站
ssh -N -L 127.0.0.1:<工作站端口>:127.0.0.1:<服务端口> <host>
# 本人电脑
ssh -p 2222 -N -L 127.0.0.1:<本地端口>:127.0.0.1:<工作站端口> <user>@<WS_IP>
```

返回可访问地址 `http://127.0.0.1:<本地端口>` 以及关闭方式。手机上优先看第 4 节的摘要与图片。

## 规则

- 远程数据、权重和检查点不删除、不覆盖。
- 只使用本人 SSH 身份;连接失败或需要密码时停下来告诉用户。
- 大改前先提交或打快照;已推送的历史用 `git revert` 回退。

Versions

The database has no other skills named remote-compute.

Database snapshot: 13.11.2026 · package version 089567ec1029 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100remote-gpu-setup
    Add, re-probe, update or remove the clusters remote-gpu allocates on (~/.remote-gpu/clusters/), and verify them. Use for /remote-gpu-setup, when remote-gpu has no cluster or none that fits the task, or when the user asks to add, check or remove a cluster.
  • 90remote-compute-ops
    Operate GPU and remote compute across RunPod (Pods and Serverless), Massed Compute VMs, and owned or virtual remote servers through existing bridges, SSH sessions, MCP/API adapters, bounded polling, cost controls, and resumable lifecycle checks. Use when the user mentions…
  • 100aris-compute-guard
    Mandatory pre-flight compute resource check before running experiments. Detects whether local/remote GPU or compute resources are actually available. If resources are unavailable, STOPS the experiment pipeline immediately and reports to the user — preventing the model from…
  • 100remote-cluster-agent
    Remote GPU cluster ops via `rca` CLI — run commands, transfer files, GPU/node inspection, mutagen sync. Trigger for any remote execution, training, GPU, cluster status, sync, or tail-log task even when 'cluster' isn't said. Triggers: cluster, GPU, rca, training, node, sync code,…
  • 100remote-gpu
    Allocate whole remote GPU nodes on the Slurm-family clusters under ~/.remote-gpu/clusters/ and use them through one `remote-gpu` CLI: get nodes, run commands or docker images, start long background jobs, sync files, release. Use whenever a task needs a real GPU / ROCm machine…
  • 95compute-env-setup
    Set up a compute environment on a remote provider so Claude Science jobs can run there. Covers direct SSH/conda hosts, Slurm clusters, container-via-bridge runners, and managed-API providers (Modal, GCP, RunPod). Use when standing up a new provider, porting an env to a different…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.