Token导航 LogoToken导航

Agent Skill · 开发

exec-remote(远程执行)

exec-remote 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

exec-remote 是开发类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为执行命令;许可证信息还不明确,第三方扫描有提醒项,按安装量在开发类的 21,746 个 Skill 里排第 19,716。

总安装 259周安装 11GitHub Stars 公开资料未说明下载 91核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:exec-remote(远程执行)
来源仓库:https://github.com/primatrix/skills
仓库路径:skills/exec-remote
安装命令:
npx skills add https://github.com/primatrix/skills --skill exec-remote
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/primatrix/skills --skill exec-remote

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

exec-remote 在 SkyPilot 集群上远程执行 GPU/TPU 计算任务。适用于大规模模型推理或分布式训练场景。exec-remote 属于开发类 Skill,可作为该场景下的辅助能力补充。默认使用指定项目、集群与区域资源配置。通过 GitHub 安装,需配置 GCP 服务账号与密钥权限。

操作前应确认 CUDA 或 TPU 环境已就绪。

来源仓库内路径:skills/exec-remote

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/primatrix/skills --skill exec-remote;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要执行命令,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

exec-remote 怎么安装?

在终端执行 npx skills add https://github.com/primatrix/skills --skill exec-remote。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

exec-remote 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

exec-remote 需要什么权限?

权限级别是执行命令。安装流程涉及命令执行,可能通过 npx skills add https://github.com/primatrix/skills --skill exec-remote 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

exec-remote 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

exec-remote 用的人多吗?

公开数据是累计安装 259 次,近一周安装 11 次,下载 91 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

exec-remote 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 需要执行命令,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。

不太适合

  • 不能接受 Skill 在你机器上执行命令的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
exec-remote

远程执行 · 本页

259—执行命令未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Remote Execution Skill

This skill handles running code on remote GPU or TPU clusters via SkyPilot.

Defaults

The following defaults apply unless the user explicitly overrides them:

ParameterDefault
PROJECT_IDtpu-service-473302
CLUSTER_NAMEsglang-jax-agent-tests
ZONEasia-northeast1-b
NUM_SLICES1

Use these values directly — do NOT ask the user to confirm or re-enter them unless they specify otherwise.

1. Determine Target Device

Identify the target device from the user's request:

TargetCluster name fileEnv prefix
GPU.cluster_name_gpuexport CUDA_VISIBLE_DEVICES=0;
TPU.cluster_name_tpu*(none)*

If the user does not specify a device, ask them which one to use.

2. Prerequisites

  • The cluster must already be provisioned. Check that the corresponding cluster name file (.cluster_name_gpu or .cluster_name_tpu) exists and is non-empty in the project root.
  • If the file does not exist or is empty, provision the cluster using the appropriate method (see Section 3).

3. Cluster Provisioning

GPU (Standalone SkyPilot)

GPU clusters are provisioned using the standalone launch_gpu.sh script. Locate it in the scripts/ directory alongside this skill definition.

# Common accelerator types: H100:1, A100:1, L4:1
bash <absolute_path_to_launch_gpu.sh> <accelerator_type> <experiment_name>

The launch script automatically updates .cluster_name_gpu.

TPU

There are two provisioning paths for TPU:

Path A: GKE-based (via deploy-cluster skill) — Recommended

This path provisions TPU on GKE using the full pipeline: apply-resource -> deploy-cluster -> exec-remote.

Each TPU type gets its own SkyPilot cluster named <cluster>-<username>-<tpu_type>, allowing multiple topologies to run in parallel.

  1. Use the deploy-cluster skill which will:

- Use default cluster/project/zone unless user overrides - Ensure the GKE cluster exists (via apply-resource) - Configure SkyPilot for GKE - Launch a per-TPU-type SkyPilot cluster - Save the cluster name to .cluster_name_tpu

/deploy-cluster

Supported TPU types: v6e-1, v6e-4, v6e-8, v6e-16, v6e-32, v6e-64, v6e-128, v6e-256

Path B: Standalone SkyPilot TPU VM

For quick, single-node TPU usage without GKE, use the standalone launch_tpu.sh script:

# Common accelerator types: tpu-v4-8, tpu-v4-16, tpu-v6e-1, tpu-v6e-4
bash <absolute_path_to_launch_tpu.sh> <accelerator_type> <experiment_name>

The launch script automatically updates .cluster_name_tpu.

Teardown

# GPU
sky down $(cat .cluster_name_gpu) -y

# TPU (tear down all per-TPU-type clusters)
sky down <CLUSTER_NAME>-<USERNAME>-v6e-1 -y
sky down <CLUSTER_NAME>-<USERNAME>-v6e-4 -y

For GKE-based TPU, also remove the GKE cluster via /apply-resource delete if no longer needed.

4. Execution Command

GPU

sky exec $(cat .cluster_name_gpu) --workdir . "export CUDA_VISIBLE_DEVICES=0; uv run --extra gpu python <PATH_TO_SCRIPT> [ARGS]"
  • export CUDA_VISIBLE_DEVICES=0; ensures deterministic single-GPU execution. Adjust for multi-GPU jobs.
  • --extra gpu activates GPU optional dependencies (e.g. jax[cuda]).

TPU

sky exec <CLUSTER_NAME>-<USERNAME>-<TPU_TYPE> --workdir . "uv run --extra tpu python <PATH_TO_SCRIPT> [ARGS]"
  • --extra tpu activates TPU optional dependencies (e.g. jax[tpu]).
  • Use the per-TPU-type cluster name (e.g. sglang-jax-agent-tests-hongmao-v6e-1).

Common flags

  • --workdir. syncs the current local directory to the remote instance before running.
  • For pytest, use python -m pytest <test_path> instead of calling pytest directly.

5. Usage Examples

Run a benchmark on GPU:

sky exec $(cat .cluster_name_gpu) --workdir . "export CUDA_VISIBLE_DEVICES=0; uv run --extra gpu python src/lynx/perf/benchmark_train.py"

Run tests on TPU (single type):

sky exec sglang-jax-agent-tests-hongmao-v6e-4 --workdir . "uv run --extra tpu python -m pytest src/lynx/test/"

Run CI tests on multiple TPU types in parallel:

# Deploy both types (sequential — config.yaml is global)
python <deploy-cluster>/scripts/deploy.py sglang-jax-agent-tests v6e-1 asia-northeast1-b
python <deploy-cluster>/scripts/deploy.py sglang-jax-agent-tests v6e-4 asia-northeast1-b

# Execute in parallel
sky exec sglang-jax-agent-tests-hongmao-v6e-1 --workdir . "python test/srt/run_suite.py --suite unit-test-tpu-v6e-1" &
sky exec sglang-jax-agent-tests-hongmao-v6e-4 --workdir . "python test/srt/run_suite.py --suite e2e-test-tpu-v6e-4" &
wait

6. Operational Notes

  • Logs: SkyPilot streams stdout and stderr directly to the terminal.
  • Interruption: Ctrl+C may not kill the remote process; check SkyPilot docs for cleanup if needed.

7. GKE TPU Full Pipeline Procedure (Path A)

When the user requests to run code on TPU and no .cluster_name_tpu exists (or the user explicitly wants a new cluster), follow this procedure to orchestrate the full pipeline: apply-resource -> deploy-cluster -> exec-remote.

All parameters use defaults unless the user explicitly overrides them — do NOT ask for confirmation.

7.1 Collect Parameters

Only ask the user for parameters they haven't specified. Use defaults for everything else:

ParameterDefaultNotes
PROJECT_IDtpu-service-473302GCP project ID
CLUSTER_NAMEsglang-jax-agent-testsGKE cluster name
TPU_TYPE*(must specify)*e.g. v6e-4, v6e-1
NUM_SLICES1Default to 1
ZONEasia-northeast1-bMust support the chosen TPU type

7.2 Create GKE Cluster (apply-resource)

Check prerequisites, then create the GKE cluster:

which xpk && which gcloud && which kubectl

xpk cluster create-pathways \
  --cluster $CLUSTER_NAME \
  --num-slices=$NUM_SLICES \
  --tpu-type=$TPU_TYPE \
  --zone=$ZONE \
  --spot \
  --project=$PROJECT_ID

7.3 Wait for GKE Cluster Ready

Poll until the cluster status becomes RUNNING. Do NOT proceed to deploy SkyPilot while status is PROVISIONING or RECONCILING — it will fail with SSL errors.

gcloud container clusters list --project=$PROJECT_ID \
  --filter="name=$CLUSTER_NAME" --format="table(name,location,status)"

7.4 Deploy SkyPilot on GKE (deploy-cluster)

Run the deploy script for each required TPU type. Each call creates a separate SkyPilot cluster.

# Deploy each TPU type (must be sequential — config.yaml is global)
# Only tpu_type is required; cluster_name and zone use defaults
python <path-to-deploy-cluster>/scripts/deploy.py v6e-1
python <path-to-deploy-cluster>/scripts/deploy.py v6e-4

This creates:

  • $CLUSTER_NAME-$USERNAME-v6e-1 — SkyPilot cluster for v6e-1 tests
  • $CLUSTER_NAME-$USERNAME-v6e-4 — SkyPilot cluster for v6e-4 tests

After completion, verify:

sky status                  # Both clusters should show as UP

7.5 Execute User Code (exec-remote)

Determine num_nodes from the TPU type (v6e-N where total_chips = N, num_nodes = N / 4, minimum 1):

TPU typenum_nodes
v6e-11
v6e-41
v6e-82
v6e-164
v6e-328
v6e-6416
v6e-12832
v6e-25664

For single-node types (v6e-1, v6e-4), omit --num-nodes. For multi-node types, add --num-nodes <N>.

# Single-node (v6e-1, v6e-4) — use per-TPU-type cluster name
sky exec $CLUSTER_NAME-$USERNAME-v6e-1 --workdir . \
  "uv run --extra tpu python <PATH_TO_SCRIPT> [ARGS]"

# Multi-node (v6e-8+)
sky exec $CLUSTER_NAME-$USERNAME-v6e-8 --num-nodes 2 --workdir . \
  "uv run --extra tpu python <PATH_TO_SCRIPT> [ARGS]"

# Parallel execution across multiple TPU types
sky exec $CLUSTER_NAME-$USERNAME-v6e-1 --workdir . "..." &
sky exec $CLUSTER_NAME-$USERNAME-v6e-4 --workdir . "..." &
wait

7.6 Cleanup

When the user requests teardown, remove both layers:

# 1. Remove SkyPilot clusters (one per TPU type)
sky down $CLUSTER_NAME-$USERNAME-v6e-1 -y
sky down $CLUSTER_NAME-$USERNAME-v6e-4 -y

# 2. Remove GKE cluster (only for Path A / GKE-based)
xpk cluster delete \
  --cluster $CLUSTER_NAME \
  --zone=$ZONE \
  --project=$PROJECT_ID

平台分布

Codex

36.76%
按下载量换算33

Claude

27.61%
按下载量换算25

Cursor

17.01%
按下载量换算15

Gemini CLI

9.47%
按下载量换算9

安全审计

Gen Agent Trust Hub

通过

Socket

可疑

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/primatrix/skills --skill exec-remote 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills