wechat-cursor-agent-bridge

wechat-cursor-agent-bridge is a skill for Claude Code, Codex from kaixindelele/wechat_agent_bridge_skills. It costs 84 tokens per session (2,010 once invoked), scanned D, original, MIT.

A bridge between WeChat and a locally running Claude Agent SDK process, allowing messages and media to move between them. It also lets people approve tool use from WeChat.

In plain words
What is it for?
Use it to send text, images, and files to a local agent, receive replies, and confirm tool permissions remotely.
Why use it?
It allows someone away from their computer to communicate with an agent and control whether it may use tools.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: mentions CLAUDE.md; mentions Claude Code; built for openclaw.

Good fit Use it to send text, images, and files to a local agent, receive replies, and confirm tool permissions remotely.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kaixindelele/wechat_agent_bridge_skills/wechat-cursor_agent_bridge-skill
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add kaixindelele/wechat_agent_bridge_skills --skill wechat-cursor_agent_bridge-skill
Clone the repo
git clone --depth 1 https://github.com/kaixindelele/wechat_agent_bridge_skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for wechat-cursor-agent-bridge

README.md
[![agentmods](https://agentmods.dev/badge/skills/kaixindelele/wechat_agent_bridge_skills/wechat-cursor_agent_bridge-skill/github.svg)](https://agentmods.dev/skills/kaixindelele/wechat_agent_bridge_skills/wechat-cursor_agent_bridge-skill)
Your own site
<a href="https://agentmods.dev/skills/kaixindelele/wechat_agent_bridge_skills/wechat-cursor_agent_bridge-skill"><img src="https://agentmods.dev/badge/skills/kaixindelele/wechat_agent_bridge_skills/wechat-cursor_agent_bridge-skill/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for wechat-cursor-agent-bridge

Your own site · 80×15
<a href="https://agentmods.dev/skills/kaixindelele/wechat_agent_bridge_skills/wechat-cursor_agent_bridge-skill"><img src="https://agentmods.dev/badge/skills/kaixindelele/wechat_agent_bridge_skills/wechat-cursor_agent_bridge-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,010 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00084 $0.02010
Opus 5 $0.00042 $0.01005
Sonnet 5 $0.00017 $0.00402
Haiku 4.5 $0.00008 $0.00201

Measured 11d ago against content hash 89e8472d8f09, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade D, and why

wechat-cursor-agent-bridge scanned grade D with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

The scan reads SKILL.md. This mod also ships 8 executable files (templates/src/bridge.ts, templates/src/config.ts, templates/src/ilink.ts, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- **关键危险操作**(匹配 `criticalCommandPatterns`,如 `rm -rf /`、`sudo rm`、`mkfs`、`dd if=`):拒绝后**终止整个 Agent**,因为此类操作不可安全跳过。

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- **关键危险操作**(匹配 `criticalCommandPatterns`,如 `rm -rf /`、`sudo rm`、`mkfs`、`dd if=`):拒绝后**终止整个 Agent**,因为此类操作不可安全跳过。
wechat-cursor_agent_bridge-skill/SKILL.md · 114 lines

How it starts

The opening of the file, as written. The whole thing — 114 lines — stays where its author put it; the contents beside it link to each section on GitHub.

微信 ↔ Cursor 侧 Claude Agent 桥接

用微信连接 本机运行的 Claude Agent SDK 进程(与 Cursor / Claude Code 同源工具与权限语义)。你在 Cursor 里熟悉的「工具权限 / 会话 / 项目目录」可与本桥接对齐:将 bridge.config.jsoncwd 设为 Cursor 工作区根目录,并按需开启 settingSources: ["project"] 以加载 .claude/CLAUDE.md 与项目技能。

如需在全局 Cursor 对话中被自动召回,可将本目录下的 SKILL.md 复制到 ~/.cursor/skills/wechat-cursor-agent-bridge/SKILL.md(与路径中的 bridge 拼写无关,技能名以 frontmatter 为准)。

如果需要修改和微信桥接的功能代码,可以参考wechat_agent_bridge_skills/openclaw-weixin的原版SDK通信协议和逻辑。

目录说明

路径 作用
templates/ 可独立运行的 Node 桥接服务(npm 安装依赖后 npm run setup / npm start
templates/src/ilink.ts 微信 ilink(ClawBot)HTTP API:收发消息、媒体加解密
templates/src/bridge.ts 主循环:getupdates + query() + canUseTool 微信确认
templates/bridge.config.example.json 配置模板,复制为 bridge.config.json

templates/src/ilink.ts 已与官方 SDK 行为对齐(对照 openclaw-weixin/ 与上游 Tencent/openclaw-weixin):

  • 请求头:iLink-App-Idpackage.json 顶层 ilink_appid,当前为 bot)、iLink-App-ClientVersion(由桥接包 version 计算 0x00MMNNPP)、X-WECHAT-UINcrypto.randomBytes)。
  • base_info.channel_version:使用本桥接 package.jsonversion 字段(与 openclaw 使用其自身 npm 版本一致)。
  • CDN 下载:{cdnBaseUrl}/download?encrypted_query_param=...(不再把 encrypt_query_param 当作整段 query 拼在主机名后)。
  • 长轮询:getupdates 客户端超时返回 ret: 0, msgs: [] 并保留 get_updates_buf
  • 扫码:scaned_but_redirect 时切换 redirect_host 轮询;网络错误时轮询返回 wait 并重试。
  • 可选:若需多地域路由标签,设置环境变量 ILINK_SK_ROUTE_TAG(对应 openclaw 的 SKRouteTag)。

前置条件

  • Node.js ≥ 18
  • ANTHROPIC_API_KEY(或 Bedrock / Vertex 等 SDK 支持的认证方式)
  • 微信侧已完成 ClawBot / ilink 机器人绑定(通过 npm run setup 扫码完成)

安装与启动(由 Agent 执行)

cd wechat-cursor_agent_bridge-skill/templates
cp bridge.config.example.json bridge.config.json
# 编辑 bridge.config.json:至少设置 cwd 为 Cursor 项目根目录
npm install
npm run setup    # 扫码,生成 credentials.json
npm start        # 启动桥接

微信端:权限确认(核心)

当 Agent 请求执行敏感工具时,你会收到一条带说明的权限消息。在 同一会话 中回复以下任一形式:

Read the full file on GitHub · 114 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 114 lines · 84 tokens per session scan D 89e8472d8f09

Subscribe to this mod's changes

wechat-cursor-agent-bridge is a skill published in the GitHub repository kaixindelele/wechat_agent_bridge_skills (20 stars, last pushed 4mo ago), licensed MIT. It adds 84 tokens to every session and 2,010 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it D with 2 findings (asks for root, recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens

next-cache-components-optimizer

Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…

vercel/next.js · 170 tokens

next-partial-prefetching-adoption

Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…

vercel/next.js · 103 tokens