rhostlisted
Install: claude install-skill starfield17/rhost
# rhost
Use the command you would run locally and add only the remote execution context:
```bash
rhost exec <host> --cwd '<remote-directory>' --command '<shell program>'
```
The `--command` value, or the contents of `--command-file`, runs in a new remote
login-bash context. Pipes,
redirections, variables, and compound syntax inside that value are remote.
Pipes outside the quoted value are local:
```bash
rhost exec <host> --command 'cat result.txt | sort' # sort is remote
rhost exec <host> --command 'cat result.txt' | sort # sort is local
```
Direct execution needs remote `bash`, `setsid`, and a base64 decoder. Optional
features have additional dependencies; use `rhost doctor <host> --json` to
inspect them, never auto-install packages.
Human mode streams stdout/stderr and forwards stdin. It has no default execution
deadline. Add `--timeout` only when the step has a meaningful bound. Use `--json`
when the result must be classified programmatically; branch on `error.code`, and
inspect `data.exit_code`, truncation, timeout/cancellation, and
`cleanup_confirmed` rather than parsing English output.
Combine related read-only observations on the same host into one remote command
to avoid repeated SSH round trips. Keep unrelated mutations separate so each
result has an unambiguous exit and retry decision.
## Rules
- Pass exactly one non-empty shell program with `--command` or
`--command-file`. Quote command text as one local argument; `-c` is the
equivalent short form.