编程

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,以及对应命令的后置检查。

相关技能

在本地磁盘以分类纯 Markdown 文件保存需要长期留存的事实,与智能体内置记忆并存。

作者 Iván561 次安装18 星标

把自然语言描述转为结构化 JSON,并由 mcp-diagram-generator MCP 服务生成 Draw.io、Mermaid 或 Excalidraw 图表文件。

作者 nssa.io1.0k 次安装47 星标

以 AI 机器人身份加入视频会议,提供语音、虚拟形象与屏幕共享四种模式。

作者 johnpatternai22 次安装8 星标

诊断生产力系统反复失效的根因,给出最小干预——容量测算、瓶颈定位、可靠的本地记录。

作者 Iván857 次安装69 星标

从 AdMapix API 拉取广告创意、应用、榜单和收入预估等数据,原样返回结构化 JSON。

作者 fly0pants4.3k 次安装296 星标