Install
openclaw skills install claw-mechanicDiagnose, audit, and repair OpenClaw hosts when an agent, gateway, plugin, cron, model route, memory engine, channel, approval policy, or update looks broken, expensive, slow, looping, stale, or misconfigured. Use for focused OpenClaw health checks, post-update triage, plugin update verification, local/self-hosted model wiring audits, cron timeout/root-cause work, exec approval/reviewer problems, and rectification plans that need live proof against openclaw.ai docs instead of guesses.
openclaw skills install claw-mechanicUse this skill like a practical shop manual: find the failing layer, make the smallest safe repair, and prove the host is healthier after the work. Prefer targeted diagnosis over a giant everything-scan unless the user explicitly asks for a full audit or the symptom spans multiple layers.
For broad, mixed, or post-update symptoms, skim references/root-failure-taxonomy.md first. It compresses the update runbook into root failure classes so you can choose the right proof path without loading incident-specific detail. For subsystem-specific signatures and command details, read references/failure-map.md only when the symptom touches that area or the baseline points there. For repeated work on one host, use references/host-profile-template.md to keep non-secret install facts out of the generic skill.
gateway restart, gateway stop, update, or service reinstall, arrange a continuation or wake-up path for post-restart verification.openclaw --version; prefer installed package docs when you need exact-version behavior, then current official docs at https://docs.openclaw.ai. Use docs for command semantics, plugin behavior, cron model/fallback behavior, approvals, secrets, and gateway APIs.openclaw config set, Gateway config.patch, or other supported CLI/Gateway RPC paths over direct file/database edits. Use direct DB/file edits only when the live API has no path, and verify by re-reading through OpenClaw afterward.Establish the real target.
openclaw binary and state dir from the live service user.Capture a small baseline.
openclaw --versionopenclaw config fileopenclaw gateway status --deepcurl -fsS http://127.0.0.1:<port>/healthopenclaw config validateopenclaw plugins doctoropenclaw status --json or openclaw status --deepopenclaw channels status --deepopenclaw tasks auditopenclaw cron list --all --json when cron/cost/looping is relevantopenclaw models status --json and openclaw models list --provider <id> when model routing is relevantopenclaw secrets audit --json when SecretRefs, generated model catalogs, or auth drift are relevantInspect the logs before guessing.
~/.openclaw/logs/gateway.log, ~/.openclaw/logs/gateway.err.log, and /tmp/openclaw/openclaw-YYYY-MM-DD.log.plugin, provider, fallback, approval, cron, timeout, context-engine, memory, secret, auth, stalled, and event loop.Branch to the likely subsystem.
fallbackUsed=false.openclaw memory status --deep; verify embeddings, vector dims, FTS, context-engine plugin load, and model override permissions.lightContext, and avoid flattening intentionally different job classes.openclaw exec-policy show --json and openclaw approvals get --gateway --json; verify effective ask, security, reviewer model, safeBins, and reviewer timeouts.channels status --deep; distinguish diagnostic-shell missing env vars from service-env tokens that are actually available.secrets audit, security audit, and live HTTP auth probes. Treat "HTTP APIs reachable without auth" as unconfirmed until an unauthenticated call actually succeeds.Repair only the failing layer.
openclaw doctor --fix --non-interactive --no-workspace-suggestions only when doctor reports safe migrations/normalizations and the user has approved repair.openclaw plugins update <id> --dry-run before plugin updates; inspect plugin status again after updating.openclaw.json unless replacement is explicitly intended. Use key-level config edits or Gateway config.patch with validation, and restart only when the touched keys require it.openclaw cron edit for supported cron fields. When using Gateway RPC for payload fields not exposed by CLI, confirm method shape against current docs or gateway call help, back up cron state, include payload.kind: "agentTurn" when patching payload fields, and verify with cron show/list.--light-context when the job does not need full workspace bootstrap.Verify and report.
cron list --all, verify enabled counts, fallback refs, lightContext, and recent run status; manually run only a representative safe job unless the user approves a real production run.Use this shape when the user asks for a plan rather than immediate repair:
plugins doctor is necessary but not sufficient; still check tasks, cron, model smokes, and logs./opt/homebrew/bin/openclaw, /opt/homebrew/opt/node/bin, or ~/.local/bin/openclaw and prepend them explicitly.lightContext.curl, because the gateway uses Node.