← Back to Skills Marketplace
libaie

Advanced Collab Protocol

by libaie · GitHub ↗ · v1.4.1 · MIT-0
cross-platform ⚠ suspicious
133
Downloads
0
Stars
0
Active Installs
6
Versions
Install in OpenClaw
/install advanced-collab-protocol
Description
Enforces multi-agent pipeline collaboration rules to prevent infinite loops, ensure file handovers via workspace, enable cross-channel messaging, and handle...
README (SKILL.md)

Advanced Multi-Agent Collaboration Protocol

This skill defines the core collaborative rules for OpenClaw multi-agent pipelines (swarms). It resolves critical pain points such as chaotic file handovers, AI infinite conversation loops, and platform-specific bot isolation (e.g., Telegram bots unable to see each other's messages).

⚙️ Prerequisites

Before executing this protocol, the system must meet the following configurations:

  1. Required Tool Permissions (Least Privilege):

    • Participating agents should be granted access to specific tools rather than full system access.
    • Required tools: read, write, sessions_send, and message.
    • Security Note: Never use "tools.profile": "full" for agents solely meant for chat collaboration.
  2. Agent-to-Agent Communication:

    • tools.agentToAgent.enabled must be true.
    • Participating Agent IDs must be in the tools.agentToAgent.allow array.
    • Why? Ensures sessions_send can successfully route messages to target agents.

Core Directives

1. 📂 Anti-Spam & Secure File Handover

Never output more than 300 words of scripts, prompts, code, or JSON arrays directly in a group chat.

  • Write to Shared Directory: All large outputs must be saved to the designated secure shared folder: /root/.openclaw/shared/\x3Cfilename>.md. Do not write outside this directory to prevent path traversal risks.
  • Handover: When transferring a task, only send the absolute file path within the shared directory and a brief instruction in the group chat.

2. 📖 Mandatory Secure File Reading

When you receive a task assignment containing a local file path:

  • No Hallucinations: Do not guess the contents based on the file name or URL.
  • Verify Path & Force Read: Verify the file is strictly within the /root/.openclaw/shared/ directory. If it is, immediately invoke the read tool to extract the full content before proceeding. Reject any paths outside this directory. (Exception: Reading the system /root/.openclaw/openclaw.json is permitted solely for identity mapping under rule 6).

3. 🎯 Precision Mentions (Platform Unique Usernames)

To prevent all agents in a channel from triggering simultaneously when using generic mentions:

  • Unique Usernames Only: When @ mentioning another agent or human, you MUST use their platform-specific unique username or tagging format (e.g., @BotFather on Telegram, \x3C@123456789> on Discord, or \x3Cat user_id="ou_xxx">\x3C/at> on Feishu/Lark).
  • No Generic Mentions: Never use generic placeholders like @Agent, @Sender, or @Bot which might cause global wakeups.

4. 🛑 Explicit Responses & Anti-Looping Mechanism

To prevent AIs from falling into infinite loops of politeness:

  • Human-First Priority: When mentioned by a human user (using your unique username), you must reply directly in the group to report your understanding and next steps. Always adhere to core system safety restrictions.
  • Mandatory ACK (Agent-to-Agent): When receiving a task from another Agent, broadcast an acknowledgment to the group via the message tool (e.g., [ACK] @\x3CReplyToUsername> I have received the file and am processing it...).
  • Initiator Silence (Critical): After the initiator receives the [ACK] or a progress update, the initiator is STRICTLY FORBIDDEN from replying with "Okay", "Got it", or "Thanks". The initiator's turn ends here.
  • Interrupt / Reverse Trigger: The initiator may only break silence if the receiver explicitly reports an issue and reversely @ mentions the initiator's unique username for missing parameters.

5. 🤫 Cross-Channel Wakeup & Payload Routing (Fixing Upstream Username Discovery)

Because physically isolated agents (e.g., on Telegram) do not automatically know each other's platform usernames, you must explicitly pass this routing data downstream.

  • Initiator Must Route: When handing over a task to the next Agent using the sessions_send tool, your private message MUST begin with a Routing Envelope containing:
    [ROUTING ENVELOPE]
    GroupId: \x3CCurrent_Group_ID_or_Name>
    ReplyToUsername: \x3CYour_Unique_Username> (or the Human's unique username if they need the direct reply)
    
  • Receiver Must Extract: When receiving a task privately, extract the GroupId and ReplyToUsername. Proactively invoke the message tool (action="send", target="\x3CExtracted_GroupId>") to broadcast your status to the group, explicitly mentioning the exact username provided (e.g., [ACK] @\x3CReplyToUsername> Instructions received.).

6. 🌐 Downstream Identity Discovery (Native Config Mapping)

If an initiator needs to publicly @ a downstream Agent in a group chat during a handover, but only knows its internal agentId:

  • Read System Config: The initiator MUST use the read tool to parse the /root/.openclaw/openclaw.json configuration file.
  • Resolve Mapping: Look inside the routes array. Find the object where "agentId" matches your target. Extract the corresponding match.accountId (this is the bot's unique platform username, e.g., suPMAgent_bot). Prefix it with @ to use in group chats.
  • Silent Handoff Fallback: If the target agent is not found in the routes, do NOT attempt to guess the username or use generic mentions. Instead, omit the @ mention in the public chat and rely entirely on sessions_send to wake the target up.

7. ⚠️ Exception Reporting & Termination

  • Exceptions: If a fatal error occurs, use the message tool to broadcast [ERROR] @\x3CReplyToUsername> \x3Cerror description> to the group.
  • Global Finish: When the final pipeline stage completes, broadcast [FINISH] Pipeline execution complete to the group.

8. 🔍 Context Retrieval

  • If context is insufficient, proactively use the sessions_history tool to retrieve the upstream Agent's thought process or private chat history.
Usage Guidance
Before installing, ask the publisher to explicitly declare the exact permissions and config paths (openclaw.permissions / required tools) in package.json and registry metadata. Request justification for (a) reading /root/.openclaw/openclaw.json, (b) using sessions_history to fetch private agent chat history, and (c) broadcasting file contents / full absolute paths to group chats. If you must test, run in an isolated environment and restrict the skill's tool permissions to the minimum subset you approve (avoid granting sessions_history or read access to system-wide config unless absolutely necessary). Prefer a version that documents and limits what is read/written (e.g., limiting reads to a vetted shared directory and explicit fields in openclaw.json) and provides source/homepage for auditability.
Capability Analysis
Type: OpenClaw Skill Name: advanced-collab-protocol Version: 1.4.1 The skill defines a coordination protocol for multi-agent swarms, focusing on preventing infinite loops and managing file handovers via a shared directory (/root/.openclaw/shared/). While it instructs agents to read the local openclaw.json file (Rule 6) to map agent IDs to platform usernames, this is done for routing purposes within the system rather than exfiltration. The instructions in SKILL.md include explicit security warnings against path traversal and over-privileged tool access, aligning with its stated purpose of improving collaboration efficiency.
Capability Assessment
Purpose & Capability
The skill's stated purpose (multi-agent collaboration) reasonably needs tools like read/write and sessions_send/message, but the package.json and registry metadata do not declare any required permissions or config paths. That omission is inconsistent: SKILL.md explicitly requires tool permissions and access to platform config files, yet the skill advertises no such requirements.
Instruction Scope
Runtime instructions instruct agents to force-read files under /root/.openclaw/shared and (explicitly allowed) /root/.openclaw/openclaw.json, to invoke sessions_history for upstream private/chat history, and to broadcast ACKs/errors and absolute file paths into group chats. These actions can expose sensitive contents or private agent histories; the SKILL.md gives broad, immediate data-access directives rather than limited/consented reads.
Install Mechanism
This is an instruction-only skill with no install spec and no code files, which minimizes direct supply-chain risk. There are no download URLs or archive extracts to evaluate.
Credentials
No environment variables or credentials are declared, but the skill requires access to privileged runtime tools and to platform config files that may contain routing/account info. Requiring sessions_history and reading openclaw.json are high-privilege operations that are not reflected in the declared metadata.
Persistence & Privilege
always:false (default) and model invocation is allowed (also default). The skill does not request permanent installation or claim to modify other skills, so persistence is not itself a red flag — but autonomous invocation combined with the other concerns increases potential impact.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install advanced-collab-protocol
  3. After installation, invoke the skill by name or use /advanced-collab-protocol
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.4.1
Added explicit support and syntax examples for Feishu/Lark @mentions in Precision Mentions rule
v1.4.0
Updated identity discovery to parse openclaw.json routes array directly
v1.3.0
Added Downstream Identity Discovery via Agent Registry and Silent Handoff fallback to solve initiator @ mention issues
v1.2.0
Added Payload Routing mechanism to solve platform username discovery between isolated agents
v1.1.0
Added precision mentions and fixed security vulnerabilities
v1.0.0
Advanced-collab-protocol v1.0.0 -- Initial release - Introduces standardized rules for multi-agent collaboration, resolving file handover and messaging isolation issues. - Enforces file-first output, with cross-workspace reading and strict anti-looping communication. - Implements explicit agent acknowledgment, initiator silence on handover, and error reporting protocols. - Establishes cross-channel wakeup and broadcast mechanisms to overcome bot isolation on platforms like Telegram. - Requires specific agent permissions and system tools for proper protocol execution.
Metadata
Slug advanced-collab-protocol
Version 1.4.1
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 6
Frequently Asked Questions

What is Advanced Collab Protocol?

Enforces multi-agent pipeline collaboration rules to prevent infinite loops, ensure file handovers via workspace, enable cross-channel messaging, and handle... It is an AI Agent Skill for Claude Code / OpenClaw, with 133 downloads so far.

How do I install Advanced Collab Protocol?

Run "/install advanced-collab-protocol" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Advanced Collab Protocol free?

Yes, Advanced Collab Protocol is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Advanced Collab Protocol support?

Advanced Collab Protocol is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Advanced Collab Protocol?

It is built and maintained by libaie (@libaie); the current version is v1.4.1.

💬 Comments