Weixin Multi-Agent Router|微信多 Agent 路由

v1.0.0

Design or implement single-entry multi-agent routing for OpenClaw Weixin setups. Use when one Weixin account should route between any number of backend agent...

5· 130·0 current·0 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for zeqiulee/weixin-multi-agent-router.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Weixin Multi-Agent Router|微信多 Agent 路由" (zeqiulee/weixin-multi-agent-router) from ClawHub.
Skill page: https://clawhub.ai/zeqiulee/weixin-multi-agent-router
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install weixin-multi-agent-router

ClawHub CLI

Package manager switcher

npx clawhub@latest install weixin-multi-agent-router
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
The name/description (Weixin multi-agent routing) matches the SKILL.md and reference files: all content focuses on routing, session keys, per-contact state, command maps, handoff summaries, and validation. There are no unrelated environment variables, binaries, or install steps requested.
Instruction Scope
Runtime instructions stay within the stated purpose: they describe parsing commands, maintaining per-contact router state, building session keys, summary-based handoff, and validation tests. The skill explicitly warns against sharing raw transcripts and against core-level changes. It does instruct state persistence (session keys, recentHistory, summaries)—which is expected for a router—but does not tell the agent to read arbitrary system files, environment variables, or post data to unknown endpoints.
Install Mechanism
No install specification or code distribution is present (instruction-only). That minimizes disk-write or download risk; nothing is pulled from external URLs or third-party package registries.
Credentials
The skill declares no required environment variables, credentials, or config paths. The guidance about state, configs, and timeouts is proportional to the skill's goal. There are no unrelated credential requests.
Persistence & Privilege
always is false and the skill is user-invocable; there is no request to persist or modify other skills or system-wide settings. The SKILL.md recommends persisting router state (normal for this feature) and advises configuration separation from long-lived config—appropriate for its purpose.
Assessment
This skill is a documentation/design guide, not executable code; it asks for nothing sensitive and appears internally consistent. Before implementing or deploying: 1) Decide where router state (session keys, recentHistory, handoff summaries) will be stored and apply access controls, encryption, and retention policies so conversation data isn't exposed. 2) Ensure handoff summaries are intentionally compact and scrub PII; follow the guide's explicit advice to avoid sending full transcripts between agents. 3) Make agent lists, aliases, and timeouts configurable (the docs recommend this) and check defaults to avoid publishing private team names. 4) Test isolation thoroughly (the validation steps provided are good) to prevent context leakage. 5) If you adapt this into runnable code, review any added install steps, external URLs, or required env vars for proportionality and security before enabling it in production.

Like a lobster shell, security has layers — review code before you run it.

latestvk97873hz7zy1asm40xtgrx5d8n83ht6jmulti-agentvk97873hz7zy1asm40xtgrx5d8n83ht6jroutingvk97873hz7zy1asm40xtgrx5d8n83ht6jsession-routingvk97873hz7zy1asm40xtgrx5d8n83ht6jwechatvk97873hz7zy1asm40xtgrx5d8n83ht6jweixinvk97873hz7zy1asm40xtgrx5d8n83ht6j
130downloads
5stars
1versions
Updated 1mo ago
v1.0.0
MIT-0

Weixin Multi Agent Router

Build a chat-friendly multi-agent system behind one Weixin entrypoint.

Prefer plugin-layer routing first. Do not start by changing OpenClaw core unless the user explicitly wants a reusable framework beyond Weixin.

Core capabilities

1. Route one Weixin entry to any number of agents

Treat Weixin as:

  • one human-facing entrypoint
  • one configurable list of backend agents
  • one per-contact current-agent state

Do not assume there are exactly two, three, or any other fixed number of agents. The skill should still work if the user has 1, 3, 5, or more routable backend agents.

Do not model this as Telegram-style multi-bot identity unless the underlying Weixin provider actually supports separate independently routable bot identities.

2. Isolate memory per agent

Do not only switch tone or persona inside a shared session.

Require session identity to include at least:

  • channel
  • accountId
  • peerId
  • agentId
  • optional session version

Recommended session key pattern:

  • agent:<agentId>:openclaw-weixin:<accountId>:dm:<peerId>:v<version>

This is the main guardrail against context mixing.

3. Store current active agent per contact

Keep per-contact router state containing at least:

  • currentAgent
  • lastActiveAt
  • optional lastSwitchAt
  • optional per-agent sessionVersions
  • optional per-agent recentHistory

Recommended default behavior:

  • default agent = primary coordinator
  • inactivity fallback = reset current agent to default after a configurable timeout

4. Use summary-based handoff, not raw transcript sharing

When the user asks to hand work from one agent to another:

  1. collect recent history from the current agent only
  2. build a compact handoff summary
  3. switch currentAgent
  4. confirm the handoff in chat
  5. prefer silent handoff so the target agent does not immediately double-reply

Do not automatically expose one agent's full transcript to another.

Recommended command surface

Support at least four command groups.

Switching

Examples:

  • 切到{agent}
  • 切换到{agent}
  • 回到{defaultAgent}
  • {agent} ...

Status

Examples:

  • 当前是谁
  • 现在是谁
  • 你是谁
  • 角色列表

Reset

Examples:

  • 重置当前
  • 清空当前上下文
  • 清空{agent}
  • 只重置{agent}

Prefer version-based session reset over destructive transcript deletion.

Handoff / summary

Examples:

  • 转给{agent}
  • 交给{agent}
  • 让{agent}接手
  • 总结后交给{agent}
  • 查看当前上下文摘要
  • 查看{agent}上下文摘要

Implementation workflow

Follow this order.

Step 1: define the agent map

Decide:

  • the full configurable agent list
  • per-agent ids
  • per-agent display names shown to the user
  • per-agent role descriptions
  • per-agent aliases / command triggers
  • default agent
  • inactivity timeout

Keep this data-driven. A public skill must not depend on one private team's exact agent count or naming scheme.

If these are hard-coded in the current implementation, plan a config layer before publishing the system as a generic skill.

For configuration patterns and prompts, read references/configurability.md.

Minimal productized config shape:

{
  "defaultAgent": "main",
  "inactivityTimeoutMs": 1800000,
  "agents": [
    {
      "agentId": "main",
      "displayName": "主助理",
      "description": "综合处理、调度、总结",
      "aliases": ["主助理", "总助理"]
    },
    {
      "agentId": "ops",
      "displayName": "技术助手",
      "description": "维护、配置、诊断",
      "aliases": ["技术", "运维"]
    }
  ]
}

Productization checklist for an update/public release:

  • ensure agent list, aliases, default agent, and timeout are configuration-driven
  • keep router runtime state separate from long-lived top-level config
  • keep public examples generic; do not publish private team names as defaults
  • validate against at least two different agent maps before packaging

Step 2: define the command map

Map natural-language commands to:

  • switch current agent
  • switch and send content
  • query status
  • show roles
  • reset current or target agent
  • show summary
  • handoff

Keep first-pass matching explicit and conservative. Avoid fuzzy aliasing until the stable command set works.

For concrete command patterns, read references/commands.md.

Step 3: implement router state + session isolation

Create or update router modules such as:

  • command parser
  • state store
  • session-key builder
  • router decision layer
  • handoff summary builder
  • direct reply strings

Persist state outside the core config when possible so per-contact runtime data does not pollute long-lived top-level config.

For architecture guidance, read references/architecture.md.

Step 4: validate behavior in chat

Test at minimum:

  • switching
  • current-agent persistence
  • inactivity fallback
  • agent memory isolation
  • reset behavior
  • summary-based handoff
  • no duplicate reply after silent handoff
  • no “summary of summary” nesting in recent-history views

For validation scenarios, read references/validation.md.

Output standards

When helping with this task:

  • explain the routing model in plain language
  • separate “single-entry multi-agent” from “multi-bot identity”
  • make session isolation explicit
  • make handoff rules explicit
  • prefer a config-driven design if the user wants to share the solution publicly
  • avoid implying that the system needs exactly 3 roles or any specific private naming scheme

Opinionated but safe starting point

If the user has not decided how many agents to expose yet, suggest starting with a small set such as:

  • 1 primary coordinator only, or
  • 2 to 3 clearly differentiated agents

Present this only as a starting point for usability, not as a requirement of the architecture.

Resources

  • Architecture details: references/architecture.md
  • Command patterns: references/commands.md
  • Configurability patterns: references/configurability.md
  • Validation checklist: references/validation.md

Comments

Loading comments...