Back to skills
SKILL.md
Openclaw Interchange
ASecurityShared .md interchange library for OpenClaw skills — atomic writes, deterministic serialization, YAML frontmatter, advisory locking, and schema validation. The foundation all other OpenClaw skills build on.
- 14 stars
- 0 votes
- 0 copies
- 2 views
- Added September 7, 2026
Security analysis
100/100Pro scans all 19 files and shows the line behind each finding
npx -y skills add modbender/skill-library-mcp --skill openclaw-interchange --agent claude-codeAre you the author of Openclaw Interchange?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/modbender-openclaw-interchange)---
name: openclaw-interchange
description: Shared .md interchange library for OpenClaw skills — atomic writes, deterministic serialization, YAML frontmatter, advisory locking, and schema validation. The foundation all other OpenClaw skills build on.
---
# @openclaw/interchange
The shared library that powers agent-to-agent communication via `.md` files.
## Usage
```javascript
import { writeMd, readMd, acquireLock } from '@openclaw/interchange';
// Write an interchange file atomically
await writeMd('ops/status.md', { skill: 'crm', status: 'healthy' }, '## Status\nAll systems go.');
// Read it back
const { meta, content } = readMd('ops/status.md');
```
## Key Features
- Atomic writes (tmp + fsync + rename)
- Deterministic serialization (sorted keys, stable YAML)
- Advisory file locking with stale lock detection
- YAML frontmatter parsing
- Schema validation
- Circuit breaker pattern
- Generation tracking + content hashing
Files in this skill
- CODEX_REVIEW.md
- README.md
- SKILL.md
- ecommerce/ops/capabilities.md
- ecommerce/state/summary.md
- package-lock.json
- package.json
- src/circuit-breaker.js
- src/generation.js
- src/helpers.js
- src/index.js
- src/indexer.js
- src/io.js
- src/lock.js
- src/reconcile.js
- src/serialize.js
- src/stale.js
- src/validate.js
- test/interchange.test.js
Attribution
Comments
Loading comments…