wechat-manual
Configure the WeChat addon for this agent — read this when the human asks to set up WeChat.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Configure the WeChat addon for this agent — read this when the human asks to set up WeChat.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
灵台量化数据管道——股票/加密币行情采集、清洗、存储与质量检查。含 Yahoo Finance + Kraken (CCXT) 双数据源,支持日线/1h 自动增量更新。
Configure the Feishu (Lark) bot addon for this agent — read this when the human asks to set up a Feishu bot.
Configure the IMAP email addon for this agent — read this when the human asks to set up email.
Configure the Telegram bot addon for this agent — read this when the human asks to set up a Telegram bot.
Reference manual for the `avatar` tool — debugging, advanced patterns, best practices, and worked examples. Read when you need depth beyond the tool description.
Reference manual for the `bash` tool — debugging, advanced patterns, best practices, and worked examples. Read when you need depth beyond the tool description.
| name | wechat-manual |
| description | Configure the WeChat addon for this agent — read this when the human asks to set up WeChat. |
| version | 3.0.0 |
You are helping the human connect this agent to WeChat via Tencent's iLink Bot API. Unlike other addons, WeChat uses QR code login — there are no static credentials to paste. Your job is to walk the human through setup and execute the steps yourself — do not just list instructions and ask the human to do everything.
.secrets/The WeChat config and credentials live inside your own working directory:
.secrets/wechat.json (config — plaintext JSON)
.secrets/credentials.json (bot token — written by login command)
init.json addons.wechat.config field is simply .secrets/wechat.json (no ../, no absolute path).*_env indirection. One WeChat account per agent.Addons are an admin-only responsibility. Avatars should never configure addons — the orchestrator owns them. Colocating the config with the orchestrator's working directory makes that ownership explicit.
If your init.json already has addons.wechat.config pointing at ../.addons/wechat/config.json and the old setup is working, leave it alone. The old path (and its companion ../.addons/wechat/credentials.json) keeps functioning. Only use the new path when setting up WeChat for the first time, or when the human explicitly asks to migrate.
credentials.json manually. It is managed by the login command.system(action="refresh") yourself after any config change.connected: false even when working. Always verify by attempting actual operation — if it succeeds, the connection is fine.Create the config file at .secrets/wechat.json in your own working directory (create the .secrets/ directory as needed):
{
"base_url": "https://ilinkai.weixin.qq.com",
"cdn_base_url": "https://novac2c.cdn.weixin.qq.com/c2c",
"poll_interval": 1.0,
"allowed_users": []
}
If the human provided specific allowed_users, include them as a list of WeChat user ID strings.
Run the login command to display the QR code. Pass the directory containing wechat.json — the login script writes credentials.json into that same directory:
python -c "from lingtai.addons.wechat.login import cli_login; cli_login('.secrets')"
This will:
bot_token to .secrets/credentials.json on successful scanWire it into init.json. Read your init.json. If addons.wechat is missing, add it:
"addons": {
"wechat": {
"config": ".secrets/wechat.json"
}
}
If addons.wechat.config already exists and points at a legacy path, see the "Legacy Path" section above — do not rewrite it unless the human asked you to migrate.
Activate: run system(action="refresh") to reload the addon config. Then verify the connection is working. Tell the human WeChat is configured.
WeChat sessions can expire. When this happens, the addon pauses and sends the human a notification mail. To re-login:
.lingtai/.addons/wechat instead of .secrets.system(action="refresh") to reload after successful login.See the example config at assets/config.json (next to this SKILL.md) for all available fields.
| Field | Type | Default | Description |
|---|---|---|---|
base_url | string | https://ilinkai.weixin.qq.com | iLink API endpoint |
cdn_base_url | string | https://novac2c.cdn.weixin.qq.com/c2c | CDN for media uploads/downloads |
poll_interval | float | 1.0 | Seconds between long-poll retries |
allowed_users | string[] | [] | WeChat user IDs to accept. Empty = accept all. |