ocm-debugging
Skill59 starsChanged 6 months agoApache-2.0View on GitHub
Debug OpenClaw Machines profile, auth, Worker routing, host enrollment, agent API, Firecracker, rootfs, and VM runtime behavior by choosing the right boundary and proof before changing code.
In this repository3 other files it gives its agents.
- ocm-reviewSkill
- ocm-self-hostedSkill
- ocm-testingSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use this skill when behavior differs between local, operator, hosted-like, Worker, agent, guest VM, or KVM integration paths and the next …
- Distinctive: line 25
Add or enable the narrowest signal that proves that boundary.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
OCM Debugging
Use this skill when behavior differs between local, operator, hosted-like, Worker, agent, guest VM, or KVM integration paths and the next move should be a debug signal rather than a guess.
Default Loop
- State the suspected boundary:
- profile/config
- auth/cookie/session exchange
- Cloudflare Worker/KV routing
- host enrollment or heartbeat
- placement/capacity
- backend-to-agent API
- metadata server
- guest init/rootfs
- Firecracker network/storage
- runtime artifact/version selection
- Add or enable the narrowest signal that proves that boundary.
- Reproduce with the same profile, env, domain shape, host state, and runtime version. Do not switch profiles or providers unless that variable is under test.
- Compare configured state with actual activated state.
- Patch the root cause.
- Rerun the exact failing probe, then broaden only if a shared contract needs it.
Useful Starting Points
- Config/profile load:
backend/internal/config. - Session cookies and auth:
backend/internal/api/auth_handlers.go. - Worker route selection and resolve fallback:
worker/worker.js. - Route provisioning and signing keys:
backend/internal/routing. - Machine start/upgrade lifecycle:
backend/internal/machines/runtime.go. - Host enrollment:
backend/internal/api/enrollment.go. - Agent control API:
backend/internal/agentapi. - Firecracker orchestration:
backend/internal/orchestrator. - Guest metadata:
backend/internal/metadata. - Guest init:
scripts/init-openclaw.sh. - Local full-stack runbook:
docs/local-firecracker-e2e.md.
Proof Choices
- Single backend invariant: focused Go package test.
- Worker route/auth bug:
make test-worker. - Frontend/auth UI bug: focused frontend test plus
make typecheck. - Local control-plane setup:
make local-statusor the relevantscripts/local-dev.shcommand. - Firecracker/agent/rootfs/network bug: KVM integration or local
scripts/local-e2e-firecracker.sh status, with exact blocker reported when unavailable. - Cloudflare/operator routing bug: local Worker test plus config/doc review; live Cloudflare proof only when credentials and operator approval are present.
Output Habit
Report:
- boundary tested
- command or probe used, with secrets redacted
- observed signal
- fix location
- narrow proof
- remaining risk
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

