← 返回 Skills 市场
infiniteask

创建公众号文章合集_无限

作者 未来X无限 · GitHub ↗ · v1.4.1 · MIT-0
cross-platform ✓ 安全检测通过
123
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install create-wechat-oa-article-collection-infinite
功能描述
在公众号后台创建文章合集。触发场景:创建公众号合集、新建文章合集、在公众号创建一个合集、创建合集。
使用说明 (SKILL.md)

创建公众号文章合集_无限

用于在公众号后台创建文章合集。

触发场景

用户说:

  • "创建公众号合集"
  • "创建公众号文章合集"
  • "新建公众号合集"
  • "新建公众号文章合集"
  • "在公众号创建一个文章合集"
  • "在公众号创建一个合集"
  • "在公众号新建一个文章合集"
  • "在公众号新建一个合集"

重要注意事项

⚠️ 本技能用于创建合集,不是发表文章!

⚠️ Token 动态获取!

  • 公众号后台每次登录 token 会变,必须使用主页当前最新的 token
  • 合集管理页面 URL 格式:https://mp.weixin.qq.com/cgi-bin/appmsgalbummgr?action=list&token=TOKEN&lang=zh_CN
  • 正确做法:先访问 https://mp.weixin.qq.com/(注意是根路径,不是/cgi-bin/home),它会自动重定向到主页并携带最新 token,然后从 URL 中提取 token 值,再用该 token 访问合集页面

⚠️ Tab 标签页管理:

  • 公众号后台点击"创建合集"后,会弹出下拉菜单
  • 选择"文章合集"后,创建表单会打开在新标签页
  • 每次点击创建按钮后,必须调用 tabs 查看新标签页,然后切换到新标签页操作

⚠️ 点击"创建合集"按钮的正确姿势:

  • 合集列表页面右侧有"创建合集"按钮(首次加载 ref 如 e175)
  • 按钮点击后会弹出下拉菜单(包含文章合集、贴图合集、视频合集、音频合集选项)
  • 下拉菜单出现后必须立即操作,稍等片刻菜单会自动收起
  • 需要点击下拉菜单中的"文章合集"选项(注意:左侧筛选栏的"文章合集"是 tab 标签,不是创建按钮,两者不要混淆)
  • 用 ref 直接点击菜单项(如 ref=e376),这是最可靠的方式
  • 不要使用 evaluate 执行 JS(不支持 const/let/箭头函数等 ES6 语法)
  • 不要硬编码 ref 值(每次页面刷新 ref 会变化,必须通过快照获取当前 ref)

操作流程

第零步:确保 OpenClaw 浏览器已启动

在执行任何浏览器操作前,必须先确保 OpenClaw 托管的 Chrome 已运行。按以下步骤操作:

  1. 先调用 browser(action=start, target="host", profile="openclaw") 启动浏览器
  2. 若失败,检查 browser(action=status, target="host") 状态
  3. 浏览器启动后,用 browser(action=navigate, target="host", profile="openclaw", url=...) 导航到目标 URL

关键区别:

  • browser(action=start, target="host", profile="openclaw")profile="user"profile="chrome-relay"
  • browser(action=navigate, ...)browser(action=open, targetUrl=...)(后者会被 SSRF 策略拦截)
  • target="host" 用于控制宿主机浏览器

核心原则:除登录、支付、删除等核心操作外,所有问题自己尝试解决,不指挥用户。

第一步:获取最新 Token 并进入合集管理页面

  1. 导航到 https://mp.weixin.qq.com/(注意是根路径,不是 /cgi-bin/home)
  2. 页面会自动重定向到主页 URL,其中包含最新 token
  3. 从重定向后的 URL 中提取最新 token(如 token=582165464
  4. 访问合集管理页面:https://mp.weixin.qq.com/cgi-bin/appmsgalbummgr?action=list&token=最新TOKEN&lang=zh_CN

第二步:创建新合集

  1. 在合集列表页面,找到右侧的**"创建合集"按钮**并点击,会弹出下拉菜单
  2. 下拉菜单弹出后,立即调用 snapshot 获取当前 refs(菜单项的 ref 值如 e376,非固定)
  3. click + ref 直接点击"文章合集"选项(例:ref=e376,具体值从快照获取)
  4. 立即调用 tabs 查看新打开的标签页,获取创建表单的 targetId
  5. ⚠️ 新标签页的 URL 会带旧 token,必须替换为当前最新 token 再导航

第三步:填写合集信息

  1. 切换到创建表单标签页
  2. 获取页面快照(snapshot),从快照中获取名称输入框 ref(如 e68)和简介输入框 ref(如 e77)
  3. type 命令输入合集名称到文本框
  4. 简介为选填项,可省略

第四步:发布合集

  1. 获取发布按钮的 ref(如 e106)
  2. 点击"发布"按钮
  3. 发布成功后,导航回合集列表页面验证:
    • 先访问主页获取新 token
    • 然后用新 token 访问合集列表

关键元素参考

元素 描述 操作方式
主页URL https://mp.weixin.qq.com/ 用于获取最新token(根路径会自动重定向携带token)
合集列表URL /cgi-bin/appmsgalbummgr?action=list&token=xxx 需要替换最新token
创建合集按钮 合集列表右侧,ref=e175 点击弹出下拉菜单
文章合集选项 下拉菜单第一项,ref=e376(每次会话变化) 点击后创建表单在新tab打开
名称输入框 placeholder="填写名称",ref=e68 type 命令输入
简介输入框 placeholder="填写简介",ref=e77 type 命令输入(选填)
发布按钮 表单底部,ref=e106 点击发布合集

技术要点总结

  1. 每次操作前获取最新 token — 从主页 URL 中提取当前 token
  2. 创建后立即 tabs — 创建按钮点击后要检查新标签页
  3. 创建表单在新标签页 — 必须切换到新 tab 才能填写表单
  4. 输入用 type 命令 — 直接使用 type 命令即可,无需 JS
  5. 发布后要刷新 token — 发布成功后再访问合集列表要用新 token
  6. 区分按钮和筛选标签 — "创建合集"是按钮,"文章合集"在左侧是筛选标签
  7. 下拉菜单出现后立即快照获取 ref — 菜单自动收起很快,操作要快
  8. ref 值每次会话都会变化 — 禁止硬编码,必须实时从快照获取

常见失败原因

  • ❌ 硬编码旧 token 的 URL → 跳转到登录页
  • ❌ 创建后没有 tabs → 在旧标签页操作,找不到表单元素
  • ❌ 在旧标签页等待表单 → 表单已在新标签打开
  • ❌ 发布后用旧 token 访问 → 页面提示登录超时
  • ❌ 点击左侧筛选标签"文章合集" → 必须点击"创建合集"按钮弹出的下拉菜单里的"文章合集"选项,两者 class 相同但位置不同,要用 offsetParent 判断可见性
  • ❌ 新标签页直接用旧 token → 新标签页 URL 里的 token 可能是旧的,必须替换为当前最新 token 再导航
  • ❌ Chrome 未启动就直接调用 browser → 应先用 browser(action=start, profile=user) 启动,禁止用 exec/Start-Process
  • ❌ 使用 evaluate 执行 JS → evaluate 不支持 ES6 语法(const/let/箭头函数),会报错 "Unexpected token",点击菜单项改用 click + ref
  • ❌ 硬编码 ref 值 → 每次页面刷新 ref 会变化,用快照获取当前 ref
  • ❌ 下拉菜单出现后犹豫不决 → 菜单约 3-5 秒后自动收起,要立即快照+点击
安全使用建议
This skill is coherent for automating creation of a WeChat article collection, but it requires controlling your browser and will access session tokens visible in URLs. Only install if you trust the skill and the agent runtime. Recommendations before use: (1) test with a throwaway or low-privilege WeChat MP account, not with production credentials; (2) run it in an isolated browser profile that doesn't contain other logged-in services; (3) review platform logs for any unexpected network exfiltration, and do not enable 'always:true' or give unrelated credentials to the skill. If you need more assurance, ask the skill author how session tokens are handled and whether the agent ever transmits them outside the browser.
功能分析
Type: OpenClaw Skill Name: create-wechat-oa-article-collection-infinite Version: 1.4.1 The skill bundle provides detailed instructions for an AI agent to automate the creation of article collections on the WeChat Official Account platform. The logic focuses on web navigation, dynamic token extraction from URLs, and handling specific UI behaviors like dropdown menus and multi-tab management using standard OpenClaw browser actions. There is no evidence of data exfiltration, malicious execution, or harmful prompt injection; the instructions are strictly aligned with the stated purpose of automating the WeChat backend (SKILL.md).
能力评估
Purpose & Capability
The name/description match the instructions: all steps describe driving a browser to the WeChat MP (mp.weixin.qq.com) backend to create a collection. The skill does not request unrelated credentials or external services and does not attempt operations beyond creating a collection in the MP backend.
Instruction Scope
The SKILL.md instructs the agent to start/control the host OpenClaw-managed Chrome, navigate to the WeChat MP root to extract a session token from the redirected URL, open pages, take snapshots, click refs, switch tabs and type into inputs. Those actions are within the stated purpose. Important caution: extracting and substituting the token requires access to a session token embedded in the browser URL (sensitive data). The instructions do not tell the agent to transmit that token externally, but an agent controlling the browser will have access to it — treat that as a sensitive capability.
Install Mechanism
This is an instruction-only skill with no install spec and no code files; nothing is downloaded or written to disk by the skill package itself, which minimizes installation risk.
Credentials
The skill requests no environment variables or external credentials. However, it requires control of the host browser and will operate within your logged-in WeChat MP session (access to session tokens and UI). That level of access is necessary for the task but is sensitive — ensure the browser profile used does not expose other unrelated accounts or secrets.
Persistence & Privilege
always is false and the skill does not request persistent/automatic system-wide privileges or modify other skills. Autonomous invocation is enabled (platform default) which is expected for skills that perform interactive browser actions; there is no explicit elevation of privilege in the package metadata.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install create-wechat-oa-article-collection-infinite
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /create-wechat-oa-article-collection-infinite 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.4.1
create-wechat-oa-article-collection-infinite 1.4.1 - No code or file changes detected in this version. - Skill/project name, description, trigger examples, and operation flow documentation updated in SKILL.md to focus on creating WeChat Official Account (公众号) article collections. - Clarifies usage, token management, browser startup requirements, and tab handling for accurate operation in WeChat Official Account backend. - Adds detailed technical notes, common pitfalls, and step-by-step guidance for reliably creating article collections, including dynamic ref and token extraction.
v1.4.0
- Skill renamed to create-wechat-channel-collection-infinite. - Updated documentation with detailed multi-step instructions for creating video collections in the WeChat Channels backend. - Added clear operational notes for single-page app (SPA) behaviors and tab management requirements. - Provided guidance on navigating the UI, locating elements, and handling modal dialogs during the collection creation flow. - Included common pitfalls and troubleshooting tips for reliable operation.
元数据
Slug create-wechat-oa-article-collection-infinite
版本 1.4.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

创建公众号文章合集_无限 是什么?

在公众号后台创建文章合集。触发场景:创建公众号合集、新建文章合集、在公众号创建一个合集、创建合集。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 123 次。

如何安装 创建公众号文章合集_无限?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install create-wechat-oa-article-collection-infinite」即可一键安装,无需额外配置。

创建公众号文章合集_无限 是免费的吗?

是的,创建公众号文章合集_无限 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

创建公众号文章合集_无限 支持哪些平台?

创建公众号文章合集_无限 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 创建公众号文章合集_无限?

由 未来X无限(@infiniteask)开发并维护,当前版本 v1.4.1。

💬 留言讨论