跳到正文

宝玉:微信公众号内容准备与发布

将 Markdown、HTML 或图文资料整理为微信公众号内容,按原文使用 API 或浏览器完成明确授权的发布操作。

开源精选内容生产33 个文件26,681 Stars浏览次数 0JimLiu/baoyu-skills MIT版本 1567581
开始使用

下载前阅读 SKILL.md 中的使用条件,并确认所用工具支持对应能力。

输入资料
确认后的文章与图片 账号权限及发布授权 阅读本节完整说明
交付内容
公众号内容与排版 实际执行的发布记录 阅读本节完整说明
  1. 获取完整包,保留配套文件的目录结构。
  2. 按照原文准备所需工具、依赖与输入资料。
  3. 阅读对应使用步骤与输入输出说明,在自己的环境中验证结果。

使用提示摘自原文,配套文件保留来源版本;实际运行条件以各包说明为准。

正文

获取原文件

references/api-setup.md

Guided setup when WECHAT_APP_ID / WECHAT_APP_SECRET are missing. Invoked by Step 2 of the article-posting workflow.

Detection

Look for the credentials in this order:

  1. Env vars WECHAT_APP_ID / WECHAT_APP_SECRET
  2. <cwd>/.baoyu-skills/.env with WECHAT_APP_ID=...
  3. $HOME/.baoyu-skills/.env with WECHAT_APP_ID=...

If none are present, run the guided setup below.

Guided Setup

Show this message to the user and ask where to save:

WeChat API credentials not found.

To obtain credentials:
1. Visit https://mp.weixin.qq.com
2. Go to: 开发 → 基本配置
3. Copy AppID and AppSecret

Where to save?
A) Project-level: .baoyu-skills/.env (this project only)
B) User-level: ~/.baoyu-skills/.env (all projects)

After they choose a location, collect the values (prefer a user-input tool, fall back to a numbered prompt per the User Input Tools rule in SKILL.md) and append:

WECHAT_APP_ID=<user_input>
WECHAT_APP_SECRET=<user_input>

Multi-Account Variant

If the user has multiple accounts configured (accounts: block in EXTEND.md), use prefixed keys instead — see multi-account.md → "Credential Resolution".

CONTACT HAONAN

联系haonan

医疗 AI · 产品与独立开发

刘浩南

关注医疗 AI 从 demo 到真实落地,聚焦产品化、商业化与院内工作流效率提升。

12年医疗产研经验,大湾区头部医疗AI公司前产品总监,独立开发者

医疗 AI 产品化医疗 AI 商业化院内工作流效率
刘浩南的微信联系二维码
微信扫一扫,联系 haonan