From research-skills
Search WeChat Official Accounts, list their articles, and fetch full article content with auto-login via QR code. Use when the user wants to search WeChat accounts, find WeChat articles, fetch WeChat article content, or work with WeChat Official Account (公众号) articles.
How this skill is triggered — by the user, by Claude, or both
Slash command
/research-skills:wechat-articleThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Fetches articles from WeChat Official Accounts (微信公众号).
Fetches articles from WeChat Official Accounts (微信公众号).
All scripts are in ${CLAUDE_SKILL_DIR}/scripts/. Run commands from that directory.
pip install requests PyYAML beautifulsoup4 lxml playwright
python -m playwright install firefox
search and list commands automatically check the token. If expired or missing, they trigger QR code login — no manual check/login needed.
When auto-login triggers:
cd "${CLAUDE_SKILL_DIR}/scripts" && python __main__.py search "ACCOUNT_NAME" --limit 10
按名称搜索公众号,返回 fakeid、名称、别名。fakeid 用于获取文章列表。
When search returns multiple accounts, use AskUserQuestion to let the user pick which account to use. Present each account as an option with nickname (and alias if available) as the label, and fakeid as the value. Then use the selected fakeid for the subsequent list command.
cd "${CLAUDE_SKILL_DIR}/scripts" && python __main__.py list "FAKEID" --name "ACCOUNT_NAME" --pages 2
分页获取公众号历史文章,每页约5篇。返回标题、链接、封面、摘要、时间戳。
cd "${CLAUDE_SKILL_DIR}/scripts" && python __main__.py fetch "https://mp.weixin.qq.com/s/ARTICLE_ID"
提取文章完整内容,返回标题、作者、描述、正文(HTML)、发布时间、公众号信息。无需 token,直接打开文章 URL。
cd "${CLAUDE_SKILL_DIR}/scripts" && python __main__.py login
手动触发扫码登录,用于 token 失效时重新获取。
cd "${CLAUDE_SKILL_DIR}/scripts" && python __main__.py check-token
检查当前 token 是否有效,过期时需重新登录。
search returns RATE_LIMITED → wait 30-60s, retryfetch returns ENV_ERROR → IP blocked, wait and retryfetch returns DELETED → article removed by authorfetch returns FETCH_ERROR → may retry oncefetch takes 10-30s per article (headless Playwright/Firefox)content from fetch is HTML--pages 1 for article listsCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub mason-1011/mason_skills --plugin analysis-skills