Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Post articles and image-text content to WeChat Official Account via API or Chrome CDP, with markdown-to-WeChat HTML conversion.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
references/api-setup.md
1# API Credential Setup23Guided setup when `WECHAT_APP_ID` / `WECHAT_APP_SECRET` are missing. Invoked by Step 2 of the article-posting workflow.45## Detection67Look for the credentials in this order:891. Env vars `WECHAT_APP_ID` / `WECHAT_APP_SECRET`102. `<cwd>/.baoyu-skills/.env` with `WECHAT_APP_ID=...`113. `$HOME/.baoyu-skills/.env` with `WECHAT_APP_ID=...`1213If none are present, run the guided setup below.1415## Guided Setup1617Show this message to the user and ask where to save:1819```20WeChat API credentials not found.2122To obtain credentials:231. Visit https://mp.weixin.qq.com242. Go to: 开发 → 基本配置253. Copy AppID and AppSecret2627Where to save?28A) Project-level: .baoyu-skills/.env (this project only)29B) User-level: ~/.baoyu-skills/.env (all projects)30```3132After 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:3334```35WECHAT_APP_ID=<user_input>36WECHAT_APP_SECRET=<user_input>37```3839## Multi-Account Variant4041If the user has multiple accounts configured (`accounts:` block in EXTEND.md), use prefixed keys instead — see `multi-account.md` → "Credential Resolution".42