openclaw-interchange
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.
Why use this skill?
Learn how to use OpenClaw Interchange for reliable agent-to-agent communication. Features atomic markdown writes, schema validation, and advisory file locking.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/frank-bot07/openclaw-interchangeWhat This Skill Does
The @openclaw/interchange skill serves as the foundational communication layer for the OpenClaw agent ecosystem. It standardizes how agents exchange information by using structured markdown files (.md) as a persistent, human-readable, and machine-verifiable transport layer. By implementing atomic file operations, it ensures that data integrity is maintained even during sudden agent failures or power interruptions. The library utilizes a combination of YAML frontmatter for metadata and raw markdown for content, allowing agents to store context, state, and instructions in a single, version-controlled format.
Installation
To integrate this core library into your environment, run the following command in your terminal or agent command prompt:
clawhub install openclaw/skills/skills/frank-bot07/openclaw-interchange
Use Cases
- Agent State Synchronization: Maintain consistent agent state across restarts by writing progress to disk.
- Inter-Agent Communication: Pass structured tasks between different agents by writing to shared directories where multiple agents monitor for changes.
- Audit Logging: Create verifiable, hash-tracked logs of agent decisions that can be audited later.
- Configuration Management: Update skill configurations dynamically using YAML frontmatter without rewriting the entire logic file.
Example Prompts
- "Check the current system status by reading the ops/status.md interchange file and report any critical errors found in the metadata."
- "Write an updated task list for the research agent to the shared workspace using the interchange format, ensuring you include the schema-validated frontmatter."
- "Initialize a new project state file using openclaw-interchange, setting the status to 'initialized' and including the current timestamp in the YAML metadata."
Tips & Limitations
- Atomicity: Always rely on the library's built-in write methods rather than standard file system write calls to ensure the tmp-fsync-rename process prevents file corruption.
- Locking: Utilize advisory locking when working in multi-agent environments to prevent race conditions when two agents attempt to write to the same interchange file simultaneously.
- Performance: While file-based interchange is highly reliable and persistent, it is intended for state synchronization and small data packets rather than high-throughput streaming. Keep files under 1MB for optimal performance. The library includes circuit breaker patterns; monitor these logs to detect if an agent is repeatedly failing to release file locks.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-frank-bot07-openclaw-interchange": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-write, file-read
Related Skills
Model Switchboard
Skill by frank-bot07
nano-banana-2
Gemini image generation, editing, and search-grounded image creation via gemini-3.1-flash-image-preview (Nano Banana 2). USE FOR: - Generating images from text prompts (text-to-image) - Editing or transforming an existing image with text instructions - Generating images grounded in live web/image search results Requires GEMINI_API_KEY environment variable. See rules/setup.md for configuration and rules/security.md for output handling guidelines.
Openclaw Voice
Skill by frank-bot07
openclaw-ecommerce
E-commerce price monitoring, order tracking, and margin analysis for OpenClaw agents. Track product prices, get alerts on drops, manage orders, and calculate real margins after fees.
Openclaw Crm
Skill by frank-bot07