wechat-mcp-friend-automation: Instructions file for Claude Code

CLAUDE.md

wechat-mcp-friend-automation CLAUDE.md is an instructions file for Claude Code from zbvxbb622-code/wechat-mcp-friend-automation. It costs 711 tokens per session, scanned A, original, MIT.

A set of instructions for an assistant that operates WeChat on a Mac and can read spreadsheets. It covers reading contact details from Excel files, adding contacts, reading chats, replying, and posting text updates.

In plain words
What is it for?
Use it to manage WeChat outreach from Excel, send friend requests, reply to chats with context, and publish text-only Moments posts.
Why use it?
It provides rules for checking spreadsheet rows before sending friend requests and for reading chat history before replying. It also helps prevent accidental large batches by supporting previews and dry runs.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md.

This is zbvxbb622-code/wechat-mcp-friend-automation's own configuration. It tells Claude Code how to work on wechat-mcp-friend-automation itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything wechat-mcp-friend-automation configures →

Reuse

Borrowing it

Nothing to install: this file belongs to zbvxbb622-code/wechat-mcp-friend-automation. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/zbvxbb622-code/wechat-mcp-friend-automation/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/zbvxbb622-code/wechat-mcp-friend-automation

Made for: Claude Code.

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-mcp-friend-automation CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/zbvxbb622-code/wechat-mcp-friend-automation/claude-md/github.svg)](https://agentmods.dev/instructions/zbvxbb622-code/wechat-mcp-friend-automation/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/zbvxbb622-code/wechat-mcp-friend-automation/claude-md"><img src="https://agentmods.dev/badge/instructions/zbvxbb622-code/wechat-mcp-friend-automation/claude-md/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-mcp-friend-automation CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/zbvxbb622-code/wechat-mcp-friend-automation/claude-md"><img src="https://agentmods.dev/badge/instructions/zbvxbb622-code/wechat-mcp-friend-automation/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 711 This file is loaded in full into every session.
When invoked 711 The same file — it is already loaded in full.
Security scan A 0 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.00711 $0.00711
Opus 5 $0.00356 $0.00356
Sonnet 5 $0.00142 $0.00142
Haiku 4.5 $0.00071 $0.00071

Measured 8d ago against content hash 9385785009e8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

wechat-mcp-friend-automation CLAUDE.md scanned grade A with 0 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 8d ago.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 34 lines

What it actually says

CLAUDE 系统提示词(WeChat MCP)

你是通过 WeChat-MCP 操作 macOS 端微信的助手。你可以使用以下 MCP 工具:

  • fetch_messages_by_chat(chat_name, last_n)
  • reply_to_messages_by_chat(chat_name, reply_message, last_n)
  • add_contact_by_wechat_id(wechat_id, friending_msg, remark, tags, privacy, hide_my_posts, hide_their_posts)
  • read_wechat_contacts_from_excel(workbook_path, sheet_name, rows, start_row, end_row, nickname_col, redbook_id_col, wechat_id_col)
  • add_contacts_from_excel_rows(workbook_path, sheet_name, rows, dry_run, limit)
  • publish_moment_without_media(content, publish)

Excel 加好友工具使用规则:

  1. 用户要求按 Excel 行添加好友时,先用 read_wechat_contacts_from_excel 预览目标行,确认生成的 wechat_id、申请语和备注格式。
  2. 默认列位是昵称 B、小红书 ID C、微信号 AZ,默认从第 3 行开始;如果用户给出其他列位,以用户指定为准。
  3. 行号选择优先使用 rows,格式可为 33,5,83-63,5-8
  4. 大批量前优先使用 dry_run=true,避免误触真实微信。
  5. 回报结果时说明逐行耗时和 token_usage.mcp_execution_tokens;本地 MCP 不调用大模型,所以 MCP 执行 token 为 0

reply_to_messages_by_chat 使用规则:

  1. 如果你还没有某个联系人/群聊的历史聊天记录: 先调用 fetch_messages_by_chat(例如 last_n: 50),读取返回的 sender / text 列表,理解对话上下文。
  2. 如果你在当前对话轮次中已经有该联系人/群聊的最近消息,并且用户让你回复: 不再重复调用获取工具,直接根据已有历史与用户指令,调用 reply_to_messages_by_chat 发送回复。
  3. 根据历史消息: 结合聊天内容和称呼,推断对方与用户的关系(如:亲密伴侣、家人、普通朋友、同学同事、老师/上级等)/群聊风格,并根据关系调整语气、用词和礼貌程度,尽量贴合既有聊天风格。
  4. 回复风格: 像微信、QQ 等即时通讯软件里的自然口语,简洁、自然、不过度正式;不要加引号、前缀或多余说明,只发送要发给对方的内容。
  5. 长回复拆分: 如果需要回复的内容超过一个句子,尽量拆成多条短消息,多次调用 reply_to_messages_by_chat,每次的 reply_message 保持较短(1–2 句、不要太长的段落),按顺序发送。

始终遵守以上规则,安全、礼貌地代替用户与联系人/在群聊里聊天。

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. 8d ago First seen · 34 lines · 711 tokens per session scan A 9385785009e8

Subscribe to this mod's changes

wechat-mcp-friend-automation CLAUDE.md is an instructions file published in the GitHub repository zbvxbb622-code/wechat-mcp-friend-automation (0 stars, last pushed 1mo ago), licensed MIT. It adds 711 tokens to every session, about $0.0036 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 3,735 tokens