본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)8.6k · #12403

cross-host-rig-commands

하는 일

이 스킬은 호스트로 등록된 다른 기기에 OpenRig 명령을 보내는 방법을 설명합니다. 여러 대의 컴퓨터에서 OpenRig를 운영하는 사용자를 위한 것입니다.

사용하는 경우

  • ✓등록된 원격 OpenRig 호스트를 지정해야 할 때.
  • ✓원격 호스트에 맞는 연결 방식을 골라야 할 때.
  • ✓다른 기기에서 실행된 명령의 결과를 읽어야 할 때.

스킬 링크

https://github.com/mvschwarz/openrig/blob/main/packages/daemon/specs/agents/shared/skills/core/cross-host-rig-commands/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/mvschwarz/openrig/blob/main/packages/daemon/specs/agents/shared/skills/core/cross-host-rig-commands/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“원격 개발 호스트에서 status 명령을 실행해 주고, 연결되는지와 어떤 연결 방식을 쓰는지 알려 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

호스트가 전송 방식(SSH 또는 HTTP)과 함께 어떻게 등록되는지, 명령과 결과가 어떻게 오가는지 설명하며, 중요한 작업 전에 확인 절차를 둡니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Cross-host rig commands

Use a registered host address and the entry's declared transport. SSH entries run a remote CLI through a single-hop shell; HTTP entries use the remote daemon. These paths have different prerequisites and command coverage. Check the exact command's help and the target installation before a consequential operation.

Choose and inspect the destination

rig host list shows registered hosts. rig host add --help describes registry writes; rig host doctor --help describes reachability checks. Inspect the configured OpenRig home rather than assuming the default ~/.openrig/hosts.yaml. Registry changes affect later routing, so make them within the requested scope.

hosts:
  - id: test-vm
    transport: ssh
    target: test-vm.local
    user: example-user
  - id: remote-dev
    transport: http
    url: http://remote-dev.example:7433
    bearer_env: REMOTE_RIG_TOKEN

The registry requires a hosts array, unique non-empty ids and a supported transport. SSH needs a non-empty target; user and notes are optional. HTTP needs a URL and accepts at most one of bearer_env or bearer_file. Omitting both is valid for a tokenless target. A configured but unavailable bearer is a permission failure, not anonymous fallback. Host ids also have reserved-name validation; use the actual validator's error rather than inventing an alias that collides.

Address the intended operation

rig send dev-worker@example-rig "check the assigned result" --host remote-dev --verify
rig capture dev-worker@example-rig --host remote-dev
rig ps --host remote-dev --nodes --json
rig whoami --host remote-dev

These coordination commands select SSH or HTTP from the registry entry. They do not silently try another transport when one fails. A host-qualified target can be convenient, but confirm its parsing and any persisted host selection with the particular command. Explicit --host is preferable for consequential cross-host work.

Queue destinations use explicit --host or a supported host-qualified destination; queue writes do not follow persisted host selection. The CLI separates the host from the canonical seat in the routing envelope. Different queue subcommands have different flags: check their help instead of copying a flag from send. A local success message alone does not establish remote persistence or pickup.

Read failures at the layer that failed

Signal What to inspect
registry-load-failed / unknown-host Registry path, entry and exact destination
ssh-unreachable SSH connection, target and transport diagnostics
permission-gate The configured SSH or HTTP credentials and target policy
remote-daemon-unreachable Target listener and actual running daemon identity
remote-outcome-unknown The request may have arrived (timeout, dropped connection, unreadable reply): check its effect, for a send the target pane, before any retry
remote-command-not-found Remote CLI installation and executable lookup
remote-command-failed The remote operation's own status and error

The exact result taxonomy depends on the path. HTTP failures expose the remote status/error; SSH distinguishes the shell transport from the remote command. Do not start or replace a remote daemon merely because a diagnostic suggests it; first establish the target's state and the authority for that lifecycle action. A timed-out write may have reached its destination. Reconcile its durable effect before retrying.

Verification and attribution

Transport success is not delivery verification or agent consumption. SSH forwards --verify and returns the remote CLI result. HTTP preserves the remote transport verdict and explicitly reports that the local pane-effect check did not run cross-host. Inspect that result and the destination effect required by the task; never replace it with “SSH exited zero” or “HTTP returned successfully.”

Cross-host output names the host/target; JSON envelopes carry cross_host metadata. The precise envelope differs by command and transport. Preserve the underlying remote result when passing evidence onward.

A target's host suffix selects a destination; a sender's origin identifies where a reply belongs. Use the rendered reply address and verify its host mapping. Current send derives the sender from the executing seat context, not a caller's --from assertion. It adds origin-host identity at cross-host forwarding; do not assume local sends have the same suffix. Unkn

자주 묻는 질문

두 가지 연결 방식은 무엇인가요?

SSH는 원격 명령줄 세션을 실행하고, HTTP는 원격 OpenRig 데몬과 통신합니다.

토큰이 항상 필요한가요?

아닙니다. HTTP 호스트는 토큰 없이도 쓸 수 있지만, 설정된 토큰을 쓸 수 없으면 권한 실패로 취급합니다.

호스트 목록을 대신 바꾸나요?

레지스트리 변경은 사용자가 요청한 범위 안에서만 이루어지며, 스킬은 먼저 호스트 목록을 확인하라고 설명합니다.

상세 정보

작성자의 원본 설명

Use when addressing a registered remote OpenRig host, choosing its transport, or interpreting a cross-host result.

repo: mvschwarz/openrig

인기도

GitHub 스타
8.6k
순위
#12403
라이선스
Apache-2.0
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬