cardano-cli-operator

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

cardano-cli-operator (manual-only)

cardano-cli-operator(仅手动模式)

This skill is a deterministic exec gateway: when you run the slash command, OpenClaw bypasses the model and forwards your arguments straight to the Exec Tool (
command-dispatch: tool
).
本Skill是一个确定性执行网关:当你运行斜杠命令时,OpenClaw会绕过模型,将你的参数直接转发给Exec Tool
command-dispatch: tool
)。

Safety first: force approvals + allowlist mode

安全优先:强制审批 + 白名单模式

Before using this operator, set Exec defaults for the session:
  • /exec host=gateway security=allowlist ask=on-miss
使用本操作员之前,请设置会话的Exec默认值:
  • /exec host=gateway security=allowlist ask=on-miss

Allowlist-safe shortcut (recommended)

白名单安全快捷方式(推荐)

If your Exec allowlist is strict, allowlist one entrypoint and route everything through it:
  • Allowlist:
    ~/Projects/**/cardano-agent-skills/scripts/oc-safe.sh
    (adjust glob)
  • Run:
    • /cardano_cli_operator ./scripts/oc-safe.sh cardano version
    • /cardano_cli_operator ./scripts/oc-safe.sh cardano query tip --mainnet
如果你的Exec白名单规则严格,只需将一个入口点加入白名单,然后通过它路由所有操作:
  • 白名单:
    ~/Projects/**/cardano-agent-skills/scripts/oc-safe.sh
    (调整通配符)
  • 运行:
    • /cardano_cli_operator ./scripts/oc-safe.sh cardano version
    • /cardano_cli_operator ./scripts/oc-safe.sh cardano query tip --mainnet

Use it (copy/paste)

使用方法(直接复制粘贴)

Run
cardano-cli
via the included wrapper (native
cardano-cli
if installed, otherwise Docker fallback):
  • Version
    • /cardano_cli_operator ./skills/cardano-cli-operator/scripts/cardano-cli.sh version
  • Query tip (requires socket / correct network)
    • /cardano_cli_operator ./skills/cardano-cli-operator/scripts/cardano-cli.sh query tip --mainnet
  • Dump protocol params (example)
    • /cardano_cli_operator ./skills/cardano-cli-operator/scripts/cardano-cli.sh query protocol-parameters --mainnet --out-file pparams.json
通过内置的包装器运行
cardano-cli
(若已安装则使用原生
cardano-cli
,否则自动回退到Docker):
  • 查看版本
    • /cardano_cli_operator ./skills/cardano-cli-operator/scripts/cardano-cli.sh version
  • 查询区块头(需要套接字/正确的网络配置)
    • /cardano_cli_operator ./skills/cardano-cli-operator/scripts/cardano-cli.sh query tip --mainnet
  • 导出协议参数(示例)
    • /cardano_cli_operator ./skills/cardano-cli-operator/scripts/cardano-cli.sh query protocol-parameters --mainnet --out-file pparams.json

Socket note (Docker fallback)

套接字说明(Docker回退模式)

If you have a local node socket and you're using Docker fallback, set:
  • CARDANO_NODE_SOCKET_PATH=/path/to/node.socket
如果你有本地节点套接字且使用Docker回退模式,请设置:
  • CARDANO_NODE_SOCKET_PATH=/path/to/node.socket

Notes

注意事项

  • This operator does not decide what to run; it runs what you type deterministically.
  • Use the non-operator skills for guidance and safe templates.
  • 本操作员不会决定要运行的命令;它会严格按照你输入的内容确定性执行。
  • 如需指导和安全模板,请使用非操作员类Skill。