# Openclaw Native

> Build and operate OpenClaw Native decision tracking in this ClawCommit repository. Use when implementing or running OpenClaw-specific SDK/MCP/schema APIs, PR+merge onchain automation, redacted PR link posting, or artifact-based reveal/replay workflows. Use when this capability is needed.

- Skill: `tomevault-io/openclaw-native` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/openclaw-native`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/openclaw-native/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/openclaw-native

---


# OpenClaw Native

## Overview

Use this skill to run the OpenClaw profile end-to-end: deterministic payload build, commit on PR, reveal on merge, and replay verification with artifact persistence.
Keep writes testnet-first and keep PR comments redacted.

## Workflow

1. Verify prerequisites.
- `npm ci`
- `npm run check:node`
- `npm run compile`
- `npm test`

2. Build deterministic OpenClaw payload.
- Input schema: `modelVersion`, `context`, `validations[]`.
- Build using:
`node scripts/integration/build-openclaw-payload.js --input <input.json> --out <payload.json>`

For provider-neutral agent logs (Claude/Codex/Gemini/OpenClaw), first convert:
`node integrations/openclaw/convert-to-clawcommit.js --input <openclaw-run.json> --out <decision.json>`

3. Commit onchain (PR path).
- Use local action (`integrations/github-action`) or CLI.
- Persist `.clawcommit/openclaw/pr-<PR_NUMBER>-latest.json` with commit metadata and full payload.

4. Reveal on merge (artifact path).
- Retrieve the PR artifact.
- Reveal using exact `prompt/output/modelVersion/nonce` from artifact.
- Verify replay and persist `.clawcommit/openclaw/pr-<PR_NUMBER>-revealed.json`.

5. Publish redacted links.
- Build/post markdown via:
`node scripts/integration/post-cycle-links.js --artifact <artifact.json> --post-gh-pr <PR_NUMBER> --repo <OWNER/REPO>`

## Bundled Script

Use the helper script for local OpenClaw cycle execution:

```bash
bash <skill-dir>/scripts/openclaw_ci_cycle.sh \
  --repo <repo-path> \
  --input .clawcommit/openclaw/pr-42-input.json \
  --contract <CONTRACT_ADDRESS> \
  --network bscTestnet \
  --json-out deployment-proof/openclaw-cycle.json
```

Optional flags:
- `--links-out <PATH>`
- `--post-gh-pr <PR_NUMBER>` and `--gh-repo <OWNER/REPO>`
- `--allow-mainnet-writes true` (explicit only)

## Adapter Surface

Use `integrations/openclaw/` for standardized ingestion:
- `openclaw-decision.schema.json`
- `convert-to-clawcommit.js`
- `openclaw.js`

## References

- `references/workflow.md` for PR/merge lifecycle and guardrails.

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/armogida) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-15 -->

