编程

OpenClaw CLI

按命令族和 profile 选择合适的 OpenClaw CLI 命令,并校验执行结果。

它能做什么

根据请求把 OpenClaw CLI 任务路由到正确的命令族,再用 default、--dev 或 --profile 来控制运行时作用域,执行风险操作前先展开 --help 确认参数。自动化场景优先用 --json 输出,并通过 status、health、nodes 等命令校验执行结果。所有破坏性操作都要求用户先明确确认;OpenClaw 出问题时按 status → health → doctor → gateway/node 的顺序排查。

什么时候用它

  • 按 status → health → doctor → gateway/node 顺序排查 OpenClaw 异常
  • 在 references/command-map.md 里检索合适的命令族
  • 在 --dev 或命名 --profile 隔离状态下运行命令
  • 用 --json 输出与执行后检查确认结果

技能文档

OpenClaw CLI

Run OpenClaw commands safely and efficiently. Choose the right command family, execute with the correct profile context, and verify postconditions.

Execution Workflow

  1. Clarify the target state. Ask what should change and what must remain untouched.

  2. Select runtime scope first. Use default profile unless isolation is requested. Use:

  • openclaw --dev ... for isolated dev state under ~/.openclaw-dev.
  • openclaw --profile ... for named isolated state under ~/.openclaw-.
  1. Choose the command family. Use references/command-map.md to route the request quickly.

  2. Expand command details before running risky operations. Run openclaw --help for starred families and confirm flags.

  3. Prefer machine-readable output when automation is needed. Use --json where available, then parse/verify.

  4. Verify outcomes explicitly. Check with openclaw status, openclaw health, openclaw nodes status --json, or command-specific follow-up.

Safety Rules

  • Require explicit user confirmation before reset, uninstall, destructive --force flows, or credential-clearing operations.
  • Prefer non-destructive diagnostics first: status, health, doctor, logs.
  • Keep profile usage consistent across a workflow. Do not mix default and --dev/--profile commands accidentally.
  • For gateway issues, diagnose before restart unless restart is explicitly requested.

Triage Sequence

For generic "OpenClaw not working" issues:

  1. Run openclaw status.
  2. Run openclaw health.
  3. Run openclaw doctor.
  4. Check openclaw gateway ..., openclaw node ..., or openclaw nodes ... based on where failure appears.
  5. Escalate to targeted commands in references/command-map.md.

Resources

  • references/command-map.md: Command families, routing guidance, and practical recipes.

常见问题

怎么决定要跑哪个 OpenClaw 命令?
依据 references/command-map.md 路由请求,带星号的命令族在执行风险操作前会先展开 --help 确认参数。
会自动执行破坏性命令吗?
不会。reset、uninstall、带 --force 的操作以及凭据清理,都会先要求用户明确确认。
用哪些命令做结果校验?
主要是 openclaw status、openclaw health、openclaw nodes status --json,以及对应命令的后置检查。

相关技能

运维与扩展 OpenClaw 只读仪表盘的后端、前端标签页与安全模型。

174 次安装9 星标

用一条 CLI 命令管理 Nextcloud 的笔记、任务、日历、文件、联系人和 Deck 看板。

187 次安装9 星标

通过 30 个内置工具驱动 Godot 4.x 编辑器,覆盖场景、节点、变换、输入模拟、截图和日志。

114 次安装

为 OpenClaw 代理减少重复性的 token 消耗:按需加载上下文、Sonnet/Opus 分流、缓存感知的 heartbeat 调度。

459 次安装30 星标