agentleFS
mathaixmathaix/OpenClawMachines/.agents/skills/ocm-testing/SKILL.md

ocm-testing

Skill59 starsChanged 6 months agoApache-2.0View on GitHub

Choose and run the smallest safe OpenClaw Machines verification path for backend, frontend, Worker, host enrollment, Firecracker, rootfs, and self-hosted changes.

  • Reads credentials

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 4 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when deciding what to test, debugging failing checks, or validating changes before commit, push, or PR review.

    line 8
  2. Very specific:

    Prefer make targets over direct tool invocations when a target exists.

    line 49
  3. Distinctive:

    Do not run privileged KVM, Docker, Cloudflare, GCP, or deploy commands unless the user asked or the change genuinely needs that proof.

    line 50
  4. Distinctive:

    Do not kill unrelated processes.

    line 52
  5. Very specific:

    Do not print secrets from env files, logs, cookies, JWTs, database URLs, or Cloudflare/Firebase/GCP credentials.

    line 54
  6. Distinctive:

    If dependency install or network access is required and blocked, report the blocker and use the closest local proof.

    line 56

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

OCM Testing

Use this skill when deciding what to test, debugging failing checks, or validating changes before commit, push, or PR review.

Read First

  • AGENT.md for repo-wide testing expectations.
  • Makefile for supported commands.
  • docs/local-firecracker-e2e.md for local KVM/Firecracker proof.
  • docs/kvm-integration-ci.md for maintainer-gated KVM runners.
  • Relevant package docs near the changed code.

Default Rule

Prove the touched surface first. Do not reflexively run every expensive lane.

  1. Inspect the diff and classify touched surfaces.
  2. Reproduce narrowly before fixing when a bug is reported.
  3. Patch the implicated owner module.
  4. Rerun the narrow proof.
  5. Broaden only when a shared contract, integration boundary, or user workflow requires it.

Surface Map

  • Backend control plane, store, runtime, routing: cd backend && go test ./internal/<pkg>.
  • Shared backend behavior or broad API changes: make test-go.
  • Worker routing/auth/CORS/KV behavior: make test-worker.
  • Frontend UI or auth/client behavior: make test-frontend and make typecheck.
  • Cross-cutting code changes: make check, make test, make typecheck.
  • Docs-only: inspect rendered links/commands when practical and run git diff --check.
  • Scripts/shell automation: make check-scripts if available through make check; otherwise run the script's dry-run/help path when it has one.
  • Firecracker, rootfs init, agent networking, TAP/bridge/NAT, VM persistence, or KVM placement: run the narrowest KVM integration lane available, or state the exact blocker such as missing /dev/kvm, root privileges, artifacts, network, or Cloudflare credentials.
  • Cloudflare Worker deployment shape: test Worker logic locally and review worker/wrangler.toml plus docs/self-hosted.env.example for routing loops.

Guardrails

  • Prefer make targets over direct tool invocations when a target exists.
  • Do not run privileged KVM, Docker, Cloudflare, GCP, or deploy commands unless the user asked or the change genuinely needs that proof.
  • Do not kill unrelated processes. Treat running services as user-owned unless they were started in the current task.
  • Do not print secrets from env files, logs, cookies, JWTs, database URLs, or Cloudflare/Firebase/GCP credentials.
  • If dependency install or network access is required and blocked, report the blocker and use the closest local proof.

Output Habit

Report:

  • touched surface
  • exact command run
  • pass/fail result
  • any skipped broader proof and the concrete blocker
  • remaining risk if only narrow proof was possible

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.