跳到正文
cccskills
OpenClaw 官方免费在 GitHub 公开

ocm-operator

Use OpenClaw Manager (OCM) safely and correctly for OpenClaw environment lifecycle work, runtime installation/builds, release-shaped local builds, upgrades, migration/adoption, cloning existing user state, service supervision, gateway logs, dev worktrees, plugin testing, model/provider smoke tests, TUI/dashboard checks, cleanup, and concise reporting. Use whenever Codex is asked to use OCM, manage OpenClaw envs/runtimes/services, test OpenClaw with OCM, reproduce existing-user or new-user flows, or avoid breaking user state while working with OpenClaw.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(5)

  • SKILL.md5.1 KB
  • agents/openai.yaml271 B
  • references/command-cookbook.md6.9 KB
  • references/local-paths.md3.0 KB
  • references/safety-and-state.md3.9 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

OCM Operator

Operating Model

Use OCM as the control plane for OpenClaw. Treat an OCM environment as the isolation boundary: it owns OPENCLAW_HOME, state, config, workspace, gateway port, runtime/launcher binding, and service policy.

Prefer OCM commands over raw OpenClaw commands whenever the task touches:

  • env creation, cloning, migration, export/import, snapshots, or cleanup
  • runtime install/build/verify/update/remove
  • upgrades or release testing
  • background gateway services
  • logs, status, TUI/dashboard, plugin checks, model checks

Run OpenClaw inside an env with:

ocm @<env> -- <openclaw args>

Use ocm env exec <env> -- <command> only when you need a non-OpenClaw command inside the env, such as env, node, or shell tooling.

First Steps

  1. Inspect current state before changing it:
ocm env list
ocm service status
ocm runtime list
  1. Read help for the exact surface before using unfamiliar flags:
ocm help start
ocm help env
ocm help runtime
ocm help service
ocm help logs
ocm help upgrade
  1. For detailed command patterns, read references/command-cookbook.md.

  2. For destructive operations, service boundaries, or real user state, read references/safety-and-state.md before acting.

  3. For this machine's common paths and release-test defaults, read references/local-paths.md.

Decision Guide

  • Start a normal runtime-backed env: use ocm start <env> --runtime <runtime> or ocm start <env> --version <version>.
  • Start a fresh user env: use ocm start <env> --runtime <runtime> first; use --onboard only when testing interactive onboarding specifically.
  • Use source-backed OpenClaw development: use ocm dev <env> --repo <repo>. Do not use this as proof of release packaging.
  • Test release behavior from local OpenClaw source: use ocm runtime build-local <runtime> --repo <repo> --force, then test envs against that runtime.
  • Test existing-user upgrade behavior: clone the existing env, upgrade the clone, and never mutate the source env directly.
  • Run OpenClaw commands in an env: use ocm @<env> -- ....
  • Read logs: use ocm logs <env>.
  • Manage background gateway state: use ocm service status/start/stop/restart.
  • Clean up: use ocm env destroy <env> --yes; this removes env snapshots, OCM service policy, and OCM-created dev worktrees.

Safety Rules

  • Treat important existing user envs as durable state. Clone first for testing unless the user explicitly asks to mutate them.
  • Clones retain durable auth and settings. Treat them as secret-bearing, keep services stopped by default, and require explicit authorization before provider, channel, webhook, browser, or other external calls.
  • Use a credential-free fresh env for untrusted plugins or authentication tests. Never export, publish, or attach an unsanitized clone.
  • Remove envs with ocm env destroy.
  • Manage OCM env gateway lifecycle with ocm service.
  • Remember OCM injects OPENCLAW_SERVICE_REPAIR_POLICY=external for env-run OpenClaw processes, so openclaw doctor --fix should repair normal env state but skip OpenClaw-owned service lifecycle repair.
  • Do not treat ocm dev, pnpm openclaw, or a source worktree as release validation. For release behavior, build and use a package runtime.
  • Clean up temporary envs, services, worktrees, tarballs, and retained simulation envs.
  • If a command could change real user data, run read-only inspection or clone first, then report the exact command you plan to run if there is ambiguity.

Verification Standard

Finish by exercising the relevant command path. Prefer these checks:

ocm env list
ocm service status <env>
ocm logs <env> --tail 100
ocm @<env> -- --version
ocm @<env> -- status
ocm @<env> -- doctor --fix

Add plugin/model/TUI checks when the task touches plugins, model auth/catalog, onboarding, or gateway connectivity:

ocm @<env> -- plugins list
ocm @<env> -- plugins update --all --dry-run
ocm @<env> -- models list
ocm @<env> -- tui

Reporting

Keep reports quiet and useful:

  • lead with pass/fail/blocker status
  • include the exact command for failures
  • include concise evidence for passes
  • separate OCM issues from OpenClaw runtime/package issues
  • say which relevant checks were skipped
  • include cleanup performed

Use this failure shape:

Failure:
- Command: `<exact command>`
- Expected: <expected state>
- Actual: <observed state/output>
- Impact: <why it matters>
- Likely owner: OCM | OpenClaw | test setup | external dependency
- Paste to fixer: <short actionable summary>

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

openclaw-release-validation

OpenClaw 官方免费

Validate OpenClaw release candidates through OCM using the built OpenClaw artifact, a broad reusable scenario matrix, copied existing-user state, clean new-user state, concise pass/fail reporting, and focused failure notes. Use when asked to test OpenClaw origin/main, release readiness, upgrade behavior, plugins, services, channels, doctor recovery, packaging, or broad release risk.

中文简介正在准备中。当前显示原文说明。

openclaw/ocm222026年10月21日 更新

查看 openclaw 的全部技能

报告此技能的问题