Remote Runtime Skill
Use this skill when the user asks to:
- deploy to a server
- test on a cloud host
- test on an internal LAN host
- check remote service health
- inspect remote logs
- restart a remote service
- run smoke tests
- run remote diagnostics
- compare cloud and LAN environments
- operate a configured remote runtime environment
- add or onboard server resources from natural language
Always use the rr command as the single entry point.
If rr is not directly available, first run or suggest ./install.sh --with-cli, then verify with:
rr doctor cli
rr version
Before executing:
- Read relevant config.
- Resolve target.
- Validate policy.
- Show or generate execution plan for risky actions.
- Execute using SSH alias only.
- Summarize result.
- On failure, collect diagnostics.
Codex workflow:
- 识别用户意图。
- 读取配置。
- 解析目标。
- 高风险操作先 plan。
- 使用 rr 命令执行。
- 总结结果。
- 失败时给出诊断建议。
Natural language server onboarding:
- Use Codex reasoning to extract the user's intent and fields.
- Convert the request into structured
rr host onboard-plan and rr host onboard-apply commands.
- Never pass raw natural language to
rr.
- Never store passwords, tokens, or private keys.
- If the user provides a password, state that it will not be saved and use terminal SSH key bootstrap instead.
- Write server connection details only to local SSH config, and write remote-runtime inventory with
ssh_alias only.
- Use
rr config explain when the user asks where resources are stored or when scope is ambiguous.
For details, read references/onboarding-hosts.md.
Docker demo workflow:
- Start with
rr demo docker plan <target>.
- For real changes, require confirmation and run
rr demo docker deploy <target> --yes.
- Verify with
rr demo docker status <target> and rr demo docker health <target>.
- Clean up with
rr demo docker cleanup <target> --yes.
- If ports conflict, use
rr port find <target> --from <port> --to <port>.
Never expose:
- IP addresses
- private keys
- passwords
- tokens
- secret env vars