Skip to main content

Build

Openclaw Testing

OpenClawOfficialCertified

Choose proportional OpenClaw tests/checks, diagnose failures, route environment-sensitive or release proof to its owner.

  • New
  • v1.0.35
  • Reviewed Jul 21
  • No reviews yet

Capabilities

  • Proof policy

    Automatic CI skips drafts

  • Select the proof

    Crabbox, OpenClaw remote setup,

  • Source and state boundaries

    Use secretless fork CI or the AWS build warmup

  • CI failures

Getting started

Full instructions

Install the skill, then ask your AI tool for the task in plain words. The full SKILL.md below shows what it covers.

Instructions: SKILL.mdv1.0.35

OpenClaw Testing

Proof policy

  • PR CI = default broad proof. Change builds + focused tests pass → open
    ready PR. CI runs broad suites; never delay PR for pre-PR suite runs.

  • Build unavailable before publication: when publication is already authorized,
    remote capacity is unavailable, and local execution is unqualified, push/open a
    draft PR with the exact missing build and capacity gap recorded. Defer that build
    to exact-head CI. Require its success before marking ready or merging. This
    changes proof timing only, not publication authority, source trust, credentials,
    owner approval, or merge gates.
    Automatic CI skips drafts. For a trusted canonical PR targeting main, use
    scripts/pr ci-dispatch <PR>. This maintainer-only route binds the pushed head
    and selects PR-shaped CI through the existing workflow qualification.
    Verify the selected checkout SHA and successful build-artifacts job cover the
    required build. CI's build:ci-artifacts omits full declaration emission. Keep
    uncovered proof pending. A skipped job or workflow-ref SHA is not build proof.
    Link the run in the PR, then use normal ready-PR CI and landing gates.
    Untrusted source keeps its secretless route.

  • Before PR, prove narrowly: touched tests with
    pnpm test <file> --maxWorkers=1, targeted typecheck, lint, format.
    Prefer local proof for trusted, bounded work when dependencies and current
    host capacity are qualified. Local execution is optional: a focused command
    can still load a large compiler graph or expand to broad lanes.

  • Choose remote proof deliberately. Use PR CI for broad proof; Crabbox/Testbox
    may cover expensive checks, a busy or unqualified local host, another OS/device,
    live providers/channels, long E2E, or heavy benchmarks. Acquire only when the
    command is ready and capacity is granted promptly. If queued, stop only the
    task-owned allocation; use PR CI or a safe local scope. Keep uncovered
    platform-specific proof pending. Never force heavy work onto a busy machine
    or chain providers. Use the smallest profile proven for the selected workload.

  • Never rerun or re-push just for green. Fix real failures; read available
    CI failure classification before attributing red.

  • Reuse valid proof; complete required gates within user/host limits. Broaden
    or repeat for changed inputs, failures or named risks. Report gaps.

  • Follow scoped AGENTS.md; authoring/reviewing tests: use
    boundary guide
    and test-audit.

Select the proof

  • Runtime defect: reproduce real entry point; rerun it + relevant siblings.

  • Trusted source: use pnpm changed:lanes --json to select lanes; pnpm check:changed is optional.

  • Public SDK/plugin contract: representative consumers, not all-plugin sweep.

  • Build output, lazy imports, package boundaries: include pnpm build or the
    repository CI build that covers the changed contract. Record uncovered
    packaging/platform/declaration requirements. Required full package or release
    builds still need their matching proof.

  • Workflow: git diff --check + pnpm check:workflows.

  • Docs only: relevant docs/link/format checks + git diff --check; no runtime tests.

  • Read on demand: local commands,
    Crabbox, OpenClaw remote setup,
    package/Docker proof,
    release CI,
    plugin release matrix,
    Docker authoring, channel skill/
    Control UI E2E/iOS E2E.

  • An isolated mock-Gateway harness is valid channel boundary proof; state live
    gaps. Prove user-visible behavior through the real flow when feasible;
    external APIs require live contract proof. Read the scoped channel/platform
    guide for live-channel or native-app work. Telegram claims require
    Test Server userbot proof with Convex-leased credentials.
    Platform claims require real-device evidence; macOS permission proof requires
    a stable signed app.

  • Release proof: preserve candidate/Tooling SHAs; never grants publication authority.

Source and state boundaries

  • Never execute untrusted contributor/fork code, wrappers, config locally.
    Use secretless fork CI or the AWS build warmup
    from trusted main: node scripts/crabbox-wrapper.mjs warmup --provider aws
    with the required isolation flags. Never use a credential-hydrated Testbox.
    Credentialed execution: maintainer approval after review required; never hydrate untrusted lease.
  • Isolated state + free port. Never restart, edit, or test operator Gateway/real
    data without explicit per-task approval. Preserve unrelated processes and
    shared dependency installs.
  • Concurrent test/check commands: separate OPENCLAW_VITEST_FS_MODULE_CACHE_PATH
    values or run serially; checks can run Vitest too. Repository wrappers only,
    never raw Vitest. Prepared linked worktrees: node scripts/run-vitest.mjs <file> --maxWorkers=1 avoids pnpm reconciliation.

CI failures

  • PR CI fails → pnpm test:ci-failed <pr>; read pre-existing/new/unknown classification.
  • Fix new failures; investigate unknown → pnpm test:ci-failed <pr> --run until selected tests pass locally → push once.
  • --run enables OPENCLAW_NODE_TEST_PLAN_CONTINUE_ON_FAILURE=1: collect ordinary failures across selected configs, while infrastructure failures still stop; use the same opt-in for manual focused reruns.
  • Pre-existing failures: failure-table landing rule. Matching signatures ≠ job-name-only attribution.
  • Never gh run rerun to chase green; never local full suite for CI repair.
  • Bind diagnosis to exact SHA + job. Fetch failed logs once; prefer exact run/job
    state over stale PR rollups.
  • Distinguish product, harness, infrastructure, credentials, superseded-run
    cancellation. Snapshots pass macOS/fail CI: reproduce Linux/Node bytes before
    regenerating.

Baseline and expected-failure exceptions

Narrow baseline, snapshot, ignore, and expected-failure exceptions are implementer
decisions only when each entry is verified against source and the PR records its
reason (for example, tool-owned metadata in an upgrade snapshot while user data
stays exact). Never mask a real regression or user-data change. Blanket or
unverified exceptions need approval. Exact shrink-only ratchet updates are
maintenance. For test runtime costs, see the
cost budget.

For module mocks, follow the
fixture contract.
When an isolation annotation retires an existing baseline entry, commit the annotation and corresponding baseline removal together.
Inspect the full baseline diff because --prune scans the whole checkout.
Verify the updated baseline with a guard run without --prune.

Test failure policy

  • Failures = defects. Bounded reproduction attempt (same shard order first);
    identify owner; fix product, fixture, shared-state, ordering bugs.
  • Proven repair: add regression; cite another owner's fix when applicable.
  • Safe fix cannot be established/completed: record original failure, attempts,
    evidence, uncertainty in PR; continue under normal CI/review gates.
  • Unresolved failure alone neither blocks landing nor requires extra approval.
    Passing replay ≠ proven fix.
  • Never hide failures with retries, longer timeouts, weaker assertions, broader
    mocks, altered baselines.

Explore more skills

Browse all
This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

More from OpenClaw

View source →

Frequently asked questions about openclaw-testing

What does the openclaw-testing skill do?

Choose proportional OpenClaw tests/checks, diagnose failures, route environment-sensitive or release proof to its owner. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the openclaw-testing skill?

Run `npx @skills-hub-ai/cli install openclaw-testing` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/openclaw-testing/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does openclaw-testing work with?

openclaw-testing runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the openclaw-testing skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use openclaw-testing after installing it?

In Claude Code, type `/openclaw-testing` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the openclaw-testing skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.

Badge for your README

Show that this skill is on Skills Hub. The badge links back to this page and shows the live install count.

Install on Skills Hub badge preview
Markdown
[![Install on Skills Hub](https://skills-hub.ai/api/badges/skill/openclaw-testing)](https://skills-hub.ai/skills/openclaw-testing)
HTML
<a href="https://skills-hub.ai/skills/openclaw-testing"><img src="https://skills-hub.ai/api/badges/skill/openclaw-testing" alt="Install on Skills Hub"></a>

More options in the badge docs.