File contents 微信公众号文章
搜索任意微信公众号,获取文章列表和全文内容。
前提
首次使用或凭证过期时,tool 会自动输出绑定链接。用户点击链接、用公众号管理员微信 扫码即可完成绑定(与钉钉 OAuth 同一体验),凭证有效期约 4 天。
工具用法
skills/office/wechat-article/tool.py
常用命令
# 检查登录状态
python3 skills/office/wechat-article/tool.py status
# 搜索公众号
python3 skills/office/wechat-article/tool.py search --query "公众号名称"
# 获取文章列表(需先搜索获取 fakeid)
python3 skills/office/wechat-article/tool.py list --fakeid MjM5OTc2ODUxMw== --count 10
# 获取文章全文
python3 skills/office/wechat-article/tool.py read --url "https://mp.weixin.qq.com/s/xxxxx"
# 在公众号内搜索关键词
python3 skills/office/wechat-article/tool.py list --fakeid MjM5OTc2ODUxMw== --keyword "关键词"
参数速查
search 子命令
参数
说明
必须
--query
搜索关键词(公众号名称)
是
list 子命令
参数
说明
必须
--fakeid
公众号的 FakeID(从 search 获取)
是
--begin
偏移量,默认 0
否
--count
获取数量,默认 10,最大 100
否
--keyword
在该公众号内搜索关键词
否
read 子命令
参数
说明
必须
--url
微信文章链接
是
--format
输出格式:text(默认)或 html
否
凭证设置
当用户说「设置公众号凭证」「绑定公众号」「公众号凭证」时,调用 status 子命令。如果未绑定或已过期,tool 会自动输出绑定链接,引导用户扫码完成授权。微信公众号凭证通过 OAuth 扫码授权设置,不支持手动填写。
典型对话流程
用户:搜索公众号 游戏葡萄 → 调 search,返回 fakeid
用户:获取最新文章 → 调 list,返回文章列表(含标题、链接)
用户:帮我看看第一篇 → 调 read,返回全文内容供总结
安全约束
仅读取公开发布的文章,不涉及私密信息
凭证存储在用户个人 workspace,互不影响
请勿高频请求,避免触发微信风控
1 --- 2 name: skill-13 3 description: 搜索任意公众号、获取文章列表和全文内容 4 --- 5 # 微信公众号文章 6 7 搜索任意微信公众号,获取文章列表和全文内容。 8 9 ## 前提 10 11 首次使用或凭证过期时,tool 会自动输出绑定链接。用户点击链接、用**公众号管理员微信**扫码即可完成绑定(与钉钉 OAuth 同一体验),凭证有效期约 4 天。 12 13 ## 工具用法 14 15 `skills/office/wechat-article/tool.py` 16 17 ### 常用命令 18 19 ```bash 20 # 检查登录状态 21 python3 skills/office/wechat-article/tool.py status 22 23 # 搜索公众号 24 python3 skills/office/wechat-article/tool.py search --query "公众号名称" 25 26 # 获取文章列表(需先搜索获取 fakeid) 27 python3 skills/office/wechat-article/tool.py list --fakeid MjM5OTc2ODUxMw== --count 10 28 29 # 获取文章全文 30 python3 skills/office/wechat-article/tool.py read --url "https://mp.weixin.qq.com/s/xxxxx" 31 32 # 在公众号内搜索关键词 33 python3 skills/office/wechat-article/tool.py list --fakeid MjM5OTc2ODUxMw== --keyword "关键词" 34 ``` 35 36 ### 参数速查 37 38 #### search 子命令 39 40 | 参数 | 说明 | 必须 | 41 |------|------|------| 42 | `--query` | 搜索关键词(公众号名称) | 是 | 43 44 #### list 子命令 45 46 | 参数 | 说明 | 必须 | 47 |------|------|------| 48 | `--fakeid` | 公众号的 FakeID(从 search 获取) | 是 | 49 | `--begin` | 偏移量,默认 0 | 否 | 50 | `--count` | 获取数量,默认 10,最大 100 | 否 | 51 | `--keyword` | 在该公众号内搜索关键词 | 否 | 52 53 #### read 子命令 54 55 | 参数 | 说明 | 必须 | 56 |------|------|------| 57 | `--url` | 微信文章链接 | 是 | 58 | `--format` | 输出格式:text(默认)或 html | 否 | 59 60 ## 凭证设置 61 62 当用户说「设置公众号凭证」「绑定公众号」「公众号凭证」时,调用 `status` 子命令。如果未绑定或已过期,tool 会自动输出绑定链接,引导用户扫码完成授权。微信公众号凭证通过 OAuth 扫码授权设置,不支持手动填写。 63 64 ## 典型对话流程 65 66 1. 用户:搜索公众号 游戏葡萄 → 调 search,返回 fakeid 67 2. 用户:获取最新文章 → 调 list,返回文章列表(含标题、链接) 68 3. 用户:帮我看看第一篇 → 调 read,返回全文内容供总结 69 70 ## 安全约束 71 72 1. 仅读取公开发布的文章,不涉及私密信息 73 2. 凭证存储在用户个人 workspace,互不影响 74 3. 请勿高频请求,避免触发微信风控
tuyoogame/tyclaw.rs/tree/main/workspace/skills/office/wechat-article commit f9db26defe
Frequently asked questions How do I install the 微信公众号文章 skill? Run npx skillmds@latest add tuyoogame/skill-13 in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
What does the 微信公众号文章 skill do? 搜索任意公众号、获取文章列表和全文内容 It is listed under Coding & Dev Tools on SkillMD.
Is 微信公众号文章 safe to use? This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
Which AI agents work with 微信公众号文章? This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Is 微信公众号文章 free to use? Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
Who published 微信公众号文章? tuyoogame (@tuyoogame) published this skill. Their other Agent Skills are listed on their SkillMD profile.