wechat-official-account-qr
Installation
SKILL.md
微信公众号二维码
Overview
根据微信公众号 ID 生成关注二维码链接,并在用户没有提供 ID 时,用内置引导图帮助用户在微信中找到公众号 ID。
二维码规则:
https://open.weixin.qq.com/qr/code?username={公众号ID}
Workflow
- If the user provides a公众号 ID, normalize it and generate the QR code URL directly.
- If the user provides a full QR URL, extract the
usernamevalue and regenerate the canonical URL. - If the user does not provide an ID, show the three guide images from
assets/and ask them to follow the steps to copy the ID. - In Agent/Codex chat surfaces, download the QR image to a local file and embed it with an absolute local path. Do not rely on the remote WeChat image URL for Markdown preview.
- Return the公众号 ID, the canonical URL, and the local image preview.