Wechat Article Ego logo

Wechat Article Ego

Community
terryso
wechat-article-ego

Save one WeChat Official Account (公众号 / mp.weixin.qq.com) article draft through the visible editor in Ego Lite. Not WeChat Channels. Login-check first. Soft-fail with exit 2 when ego-browser is missing, the console is logged out, or --expect-account does not match. If more than one Official Account is visible, stop before saving and print the names. Nothing is uploaded or saved without --yes, and --yes only clicks 保存 / 保存草稿. Never clicks 发表, 群发, 定时群发, or 发送预览. Use when the user asks for a 公众号文章草稿, 图文草稿, or mp.weixin.qq.com article.

Overview

Publisherterryso
Repositoryego-skills
Skill namewechat-article-ego
Stars
34
Forks
3
Bundled files
22
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 22 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by terryso on GitHub. Read the source before you install it.

Installation

Install the Wechat Article Ego AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/terryso/ego-skills/tree/main/skills/wechat-article-ego
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/terryso/ego-skills.git /tmp/ego-skills
mkdir -p .claude/skills
cp -r /tmp/ego-skills/skills/wechat-article-ego .claude/skills/wechat-article-ego
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Wechat Article Ego in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Wechat Article Ego on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Wechat Article Ego is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

wechat-article-ego

用 Ego Lite 里已经登录的微信公众平台会话,把一篇 Markdown 文章存成一篇图文草稿。只走 mp.weixin.qq.com 上看得见的编辑器。这不是视频号,也不会点「发表」。

Save one Official Account article draft through the visible editor. This is not WeChat Channels. --yes clicks 保存 only.

成功标准是草稿箱里能按标题重新打开,标题、正文片段和图片张数与原文一致。没有这条回读就不算成功。

Success is a draft that can be reopened from the draft list, with the same title, body text, and image count.

先装 Ego

先装 Ego Lite,保证 ego-browser 在 PATH。非交互 shell 找不到时,再试 ~/.local/bin/ego-browser。仍然缺失则 soft-fail(退出码 2),不要改用 Playwright、Puppeteer 或云端浏览器。

每次保存前:登录闸门

bash
node scripts/check-login.mjs
node scripts/check-login.mjs --expect-account "账号名称"
退出码含义Agent 做什么
0已登录,且只看到一个公众号(昵称匹配,若传了 --expect-account)把 login_tip 告诉用户,继续
2未登录 / 昵称不符 / 无 ego-browser展示 how_to_login,停。请人在 Ego 里扫码
4看到多个公众号,或看不出是哪一个把 accounts 给人看,停在第一次保存之前。不要猜
3计划已打印把计划给人看。没有 --yes 不上传、不保存
1其它错误报告 JSON error,不要假装已经存成草稿

不要另做 cookie-healthcheck。不要代填密码,不要粘贴 Cookie,不要从 URL 里抄 token。任务空间结束时一律 finish({ keep: [] })。没有 --keep。

确认规则

没有 --yes:检查登录和账号,打印计划 JSON(标题、图片张数、哈希、保真说明),退出码 3。不打开编辑器,不上传。

有 --yes:才创建一篇新草稿并点「保存」或「保存草稿」。点之前会回读标题、正文和图片张数。对不上就不保存。

同一篇文章(同一哈希)如果回执已经是 saved,或者上次结果不确定但草稿箱里能对上标题,就不再保存一次。不确定时先对草稿箱,对不上才允许再存一篇。不要盲重点第二次保存,也不要覆盖或删除旧草稿。

命令

仓库根目录。调用方传绝对路径。

bash
node skills/wechat-article-ego/scripts/check-login.mjs --expect-account "账号名称"
node skills/wechat-article-ego/scripts/save-draft.mjs \
  --markdown /absolute/path/to/article.md
node skills/wechat-article-ego/scripts/save-draft.mjs \
  --markdown /absolute/path/to/article.md \
  --source-url https://example.com/post \
  --expect-account "账号名称" \
  --yes --json
node skills/wechat-article-ego/scripts/cleanup.mjs
退出码含义
0已登录,或草稿已在草稿箱确认,或这篇文章之前已经存过,或 cleanup 关掉了本技能的空间
3计划已打印,没有上传
2未登录、账号不符,或没有 ego-browser
4账号不唯一,或保存结果对不上唯一草稿
1参数、素材、回读或浏览器错误

--json 打出摘要 JSON。不加 --json 且保存成功时,stdout 是一行 saved <标题>。

正文用编辑器的粘贴(keyboard.paste 的 text + html)和文件选择(waitForFileChooser / setInputFiles)。粘贴的 HTML 是浅色正文排版:无衬线正文、带下边线的标题、浅底引用、公众号链接蓝。样式是本技能自己写的行内样式,不内置 mdnice / wechat.bmpi.dev 的 GPL 主题,也不依赖在线编辑器。出处见 references/typography.md。图片从 Markdown 引用的本地文件或该文自己的 http(s) 图片下载后上传,不把外链留在正文里。细节见 references/editor.md。输入见 references/inputs.md。登录见 references/login.md。

测试

bash
npm test

npm test 用 c8 统计 scripts/lib/**/*.mjs(不含 ego-deps.mjs),行覆盖率不低于 80%。单测不打开微信。

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Wechat Article Ego AI skill do?

Save one WeChat Official Account (公众号 / mp.weixin.qq.com) article draft through the visible editor in Ego Lite. Not WeChat Channels. Login-check first. Soft-fail with exit 2 when ego-browser is missing, the console is logged out, or --expect-account does not match. If more than one Official Account is visible, stop before saving and print the names. Nothing is uploaded or saved without --yes, and --yes only clicks 保存 / 保存草稿. Never clicks 发表, 群发, 定时群发, or 发送预览. Use when the user asks for a 公众号文章草稿, 图文草稿, or mp.weixin.qq.com article.

Why use Wechat Article Ego on TypingMind?

Because you install it once and use it with any model. Wechat Article Ego is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Wechat Article Ego in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/terryso/ego-skills/tree/main/skills/wechat-article-ego. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Wechat Article Ego?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Wechat Article Ego?

As many as you like. As long as a model supports skills, you can use Wechat Article Ego with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Wechat Article Ego AI skill free?

Yes. It is published on GitHub by terryso under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇