Skip to content
Agent Memory
Skill

/wechat-article-extractor

提取微信公众号文章(mp.weixin.qq.com)内容为 Markdown。遇到 mp.weixin.qq.com 链接时使用此 skill,禁止使用 WebFetch。

BOOST
From plugin
molio
4358 skills
Install
$ npx -y skills add zhuzhaoyun/Molio --skill wechat-article-extractor --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/wechat-article-extractor

Context preview

The summary Claude sees to decide when to auto-load this skill.

提取微信公众号文章(mp.weixin.qq.com)内容为 Markdown。遇到 mp.weixin.qq.com 链接时使用此 skill,禁止使用 WebFetch。

SKILL.md

wechat-article-extractor.SKILL.md
name: wechat-article-extractor
description: 提取微信公众号文章(mp.weixin.qq.com)内容为 Markdown。遇到 mp.weixin.qq.com 链接时使用此 skill,禁止使用 WebFetch。
version: 1.0.0

WeChat Article Extractor

提取微信公众号文章内容为结构化 Markdown,保留表格、代码块、图片占位。

⚠️ 重要:禁止使用 WebFetch

WebFetch 对 `mp.weixin.qq.com` 会被企业安全策略拦截。**必须**使用本 skill 的 `extract.js` 脚本提取文章内容。

使用方法

从 URL 提取

node "<skill_dir>/extract.js" "https://mp.weixin.qq.com/s?__biz=...&mid=...&idx=...&sn=..."

其中 `<skill_dir>` 是本 skill 所在目录的绝对路径(即包含此 SKILL.md 的目录)。

从本地 HTML 文件提取

node "<skill_dir>/extract.js" --html /path/to/article.html [source_url]

输出格式

成功(退出码 0)

  • **stdout**: Markdown 格式的文章正文(保留表格、代码块、图片占位)
  • **stderr**: 一行 JSON 元数据:
{"title":"文章标题","author":"作者","account":"公众号名称","publishTime":"2024/01/15 10:30:00","url":"原始链接","type":"post","chars":12345}

失败(退出码非 0)

  • **stderr**: `[wechat-extractor] ERROR <code>: <错误信息>`
  • **退出码含义**:
  • `1`: 一般性错误(缺少输入、不支持的链接等)
  • `2`: 内容不可用(风控拦截、已删除、已过期、违规等)— **不要重试**,提示用户手动粘贴正文
  • `3`: 网络/HTTP 错误 — 可重试 1 次

错误码表

| 代码 | 错误信息 | 处理方式 | |------|----------|----------| | 1000 | 文章获取失败 | 检查 URL 是否正确 | | 1001 | 无法获取文章信息 | 页面结构异常 | | 1002 | 请求失败 | 网络问题,可重试 | | 1003 | 响应为空 | 网络问题,可重试 | | 1004 | 访问过于频繁 | 等待后重试或请用户手动粘贴 | | 1006 | 公众号已迁移 | 自动跟随重定向 | | 2001 | 请提供文章内容或链接 | 缺少输入 | | 2002 | 链接已过期 | 请用户提供新链接 | | 2003 | 内容涉嫌侵权 | 内容不可用 | | 2005 | 内容已被发布者删除 | 内容不可用 | | 2006 | 内容因违规无法查看 | 内容不可用 | | 2009 | 不支持的链接 | 仅支持 mp.weixin.qq.com | | 2012 | 帐号已被屏蔽 | 内容不可用 | | 2013 | 帐号已自主注销 | 内容不可用 |

与知识库工作流集成

提取成功后,按以下步骤处理:

1. 将 Markdown 正文暂存到 `raw/wechat/YYYY-MM-DD/HHmm-简短标题.md` 2. 在暂存文件头部添加 frontmatter:

---
title: "文章标题"
author: "作者"
source: "公众号名称"
url: "原始链接"
published: "YYYY/MM/DD HH:mm:ss"
extracted_at: "ISO时间戳"
---

3. 回复用户:已暂存到哪个路径,提示"回复入库/保存到知识库/归档后,我再整理进知识库" 4. 用户确认后,按增量导入流程整理进 wiki

失败兜底

当退出码为 2(内容不可用)时:

  • **不要重试抓取**
  • 回复用户:"该文章无法自动提取(原因:xxx)。请在浏览器中打开文章,复制正文内容发给我,我来帮你保存。"
Read more
Ships withmolio

Give AI your personal knowledge base. Local-first, and every byte stays yours.

Get the whole plugin

Other skills on molio.

docling
Skill

docling

PRIMARY skill for converting .pdf, .docx, .pptx, .xlsx, .doc, .ppt, .xls, images, and audio/video files (.mp3, .wav, .m4a, .mp4,…

wiki-build
Skill

wiki-build

构建/重建本地知识库的 Wiki。扫描 vault 中所有源文件,从中构建一个结构化的 wiki(源文件摘要、实体、概念、对比、概述页),创建分层 INDEX(根索引 +…

wiki-ingest
Skill

wiki-ingest

将源文件/资料增量导入(入库)到现有 wiki,使知识持续积累和演进。读取源文件,生成或更新 source 摘要页与实体/概念/对比等页面,建立交叉链接,检测矛盾,更新分层…

wiki-lint
Skill

wiki-lint

对本地知识库的 Wiki 做健康检查/质量审查。查孤立页、断链、断引用、frontmatter 缺失、空段落、内容矛盾、过时内容、INDEX 偏差、知识缺口,生成 lint 报告并给出补充方向建议。Triggers on: 健康检查, 检查 wiki…

wiki-query
Skill

wiki-query

基于本知识库已构建的 wiki 和源文件回答用户关于库内内容的问题,或为库内主题的任何任务(写作、分析、咨询等,形式不限)提供依据。先读 wiki/hot.md 与根 wiki/INDEX.md、再按需读相关目录的 INDEX.md 定位页面,读取最相关的…