Asia/Shanghai
ProjectsMarch 17, 2026

wechat-mp-publisher

wechat-mp-publisher
最初的 mj-wechat 是我自己的公众号发布流程。它知道本地文章目录、密钥管理器记录和具体账号,适合个人自动化,但不适合直接公开。 wechat-mp-publisher v2 把可复用能力重新拆开:npm CLI 负责 Skill 安装、本地校验和沙箱预览,不读取凭证也不调用微信 API;预览可以加载已经上传到微信 CDN 的图片。Agent Skill 只在用户确认后进入微信 API 草稿流程。个人账号信息不进入公共仓库或 npm 包。
层负责什么明确不做什么
本地 CLI安装受管 Skill、校验微信 HTML、启动沙箱预览不读凭证,不调用微信 API
Agent Skill上传微信素材、创建待审核草稿不自动发布,不绕过用户确认
本地预览服务只监听 127.0.0.1,并使用随机会话路径与 Host 校验。文章在禁用脚本、表单和 fetch 连接的沙箱 iframe 中渲染;预览仅允许文章目录下的本地图和 HTTPS 微信 CDN 图片。校验器会阻止脚本、事件属性、javascript: URL、不安全的外部图片和不稳定的微信 HTML 写法。 默认安装到共享 Agents 目录:
Bash
npx wechat-mp-publisher@latest install --target agents
也可以选择 opencode、claude、codex 或 all。安装器拒绝覆盖非受管目录与符号链接,卸载也只删除由本包管理的安装。 发布流程先在本地停止一次:
Bash
npx wechat-mp-publisher@latest validate article.html
npx wechat-mp-publisher@latest preview article.html
用户核对标题、摘要、图片与预览后,Agent 才能上传素材并调用 draft/add。最终手机预览与发布始终留在微信公众平台后台。 上传素材并替换本地图后,还要通过最终门禁:
Bash
npx wechat-mp-publisher@latest validate article.html --final
这次升级不是把私人脚本原样打包,而是重新定义公共边界:
  • 安装方式从手工复制变成跨 Agent 的受管安装。
  • 微信兼容性检查从经验提示变成可重复执行的校验器。
  • 本地预览从直接注入 HTML 改成有 CSP 与 sandbox 的隔离渲染。
  • 远程写入前增加明确的人类确认点。
  • AppID、AppSecret、账号和个人路径全部留在用户自己的运行环境。
完整安装命令、真实校验结果和安全边界可在独立产品页查看。

Related projects

OpenCode Annotate terminal review in Dracula theme with two annotations and a reaction toolbar

OpenCode Annotate

An unofficial OpenCode plugin for annotating AI replies, documents, and webpages, with a bundled terminal reviewer and optional browser companion.
another

another

Every coding-agent session in one place: find, resume and organize them, @-mention across agents, or write one into another agent's native store to continue it instead of pasting a summary.
Clean Design

Clean Design

Use the AI tools you already have to create editable visual projects that stay on your Mac.
Codex Minus

Codex Minus

A slimmed-down Codex manager for macOS and Windows: switch providers safely, manage official and custom model catalogs, and protect OAuth and context.
JumpOTP

JumpOTP

An on-demand TOTP helper for authorized SSH and JumpServer sessions. It calls an unlocked Bitwarden CLI only after a strict prompt match, submits at most once per connection, and keeps a visible manual fallback.
Codex Doubao Pets

Codex Doubao Pets

Six Doubao desktop pets you can install straight into Codex Desktop: choose from real character art, then install with one npm command.
loop

loop

One explicit trigger, then artifact readiness chains deep-grill, deep-design and deep-build until the work reaches a confirmed spec or a verified result.
Slash Saver

Slash Saver

A native macOS tool that does one thing for the physical slash key: switch to your chosen ASCII input source before the original keypress reaches the current app.
deep-grill

deep-grill

One Agent Skill, two modes: exploration turns a raw idea into a confirmed Product Brief, audit pressure-tests a formed plan, and ordinary replies keep the current session going.
Mingjian AI Services

Mingjian AI Services

A focused collaboration entry for teams moving from AI ideas to working products, Agent systems, and operable business workflows.
opencode-metrics

opencode-metrics

A per-session sidebar metrics plugin for the OpenCode TUI. It records speed, TTFT, tokens, cache and timing by sessionID and shows only the session you are attached to, not the global serve-mode totals.
opencode-plugin-fixes

opencode-plugin-fixes

Archived OpenCode guardrail experiment. The final source tree covers four narrow tool-call repairs; no npm package was ever published.
opencode-vibe-island-plugin

opencode-vibe-island-plugin

Keeps Vibe Island recognizing OpenCode sessions as OpenCode when oh-my-openagent is installed. Fixes the mislabeled source and Ghostty click-to-jump.
OpenCode Themes

OpenCode Themes

Terminal-inspired dark themes for Obsidian, Typora, and Ghostty, all synced to the official OpenCode TUI palette.
SIGINT

SIGINT

An archived content-intelligence experiment that once connected Xiaohongshu and Douyin collection, AI analysis, n8n orchestration and a live dashboard into one pipeline.
MdictLive

MdictLive

Modern web reader for MDict dictionaries with React 19 SPA, dark mode, and faithful rendering.
SiliconLM

SiliconLM

Local LLM dashboard for Apple Silicon Macs, currently preserved without an active local deployment.
mdx2apple

mdx2apple

Convert complete MDict entries into native macOS dictionaries, with pronunciation, illustrations and Oxford dark-mode styling.