mcpbeat Sign in

Wechat Article Ingest Agent Skill

> 微信公众号文章 → Markdown 提取 + A层观点提取 + B层问题链生成。 支持直接链接抓取和 PDF 提取两种方式。

4k tokens
context cost
the whole folder, loaded on every use
4
files
ships runnable scripts
0
copies elsewhere
how many repositories repackaged it
588
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/chubbyguan/chubbyskills --skill wechat-article-ingest

The instruction itself

7 sections, as written by the author

微信公众号文章处理 Skill

将微信公众号文章转换为 Markdown,生成 A 层观点提取 + B 层问题链,存入知识库。

两种模式

模式 1:直接链接抓取(推荐)

python scripts/fetch_article.py "https://mp.weixin.qq.com/s/xxxxx"

公众号文章 URL 是公开的,不需要登录,直接抓取即可。

模式 2:PDF 提取

python scripts/extract.py "path/to/article.pdf"

适用于通过「笔记同步助手」等工具导出的 PDF。

环境要求

# Python 3.10+
pip install beautifulsoup4 markitdown pymupdf

# 或者用 uv
uv pip install beautifulsoup4 markitdown pymupdf

使用方法

单篇处理(链接)

python scripts/fetch_article.py "https://mp.weixin.qq.com/s/xxxxx" --output ./output

链接模式会尽量保留:

  • 标题层级:h1/h2/h3 会转成 Markdown 标题
  • 图片:data-src / src 会转成 Markdown 图片引用
  • 链接:正文里的 <a> 会转成 Markdown 链接

单篇处理(PDF)

python scripts/extract.py "path/to/article.pdf" --output ./output

A+B 处理(需要 Agent)

帮我处理这篇文章:https://mp.weixin.qq.com/s/xxxxx
提取观点 + 问题链

核心流程

公众号链接/PDF → 提取内容 → A层观点提取 + B层问题链 → 存入知识库

A层:观点提取

生成 观点提取-{作者}-{主题}.md

  • 🔴 支柱观点(P1-P6):文章最核心的论点
  • 🟡 支撑观点(S1-S8):支撑支柱的论据
  • 🟢 延伸观点(E1-E4):可以延伸思考的方向
  • Takeaway:每条含核心观点 + 行动指向

B层:问题链

生成 问题链-{作者}-{主题}.md

  • 3-5 条问题链,每条对应一个核心主题
  • 每条链分 L1(安全区)→ L2(边缘区)→ L3(核心区)
  • 每条链 6 道问题
  • 终局种子:一个带回家的问题

知识库目录结构

知识库/
├── 素材库/
│   └── 公众号文章/
│       └── {公众号名}/
│           └── article.md
└── wiki/
    └── 外部输入/
        └── 公众号/
            └── {公众号名}/
                └── {主题}/
                    ├── 观点提取.md
                    └── 问题链.md

已知限制

  • 部分公众号文章有防盗链,可能抓取失败
  • 纯图片文章无法提取文字
  • MarkItDown 需要 Python ≥ 3.10
  • PDF 提取质量取决于原文排版;链接模式比 PDF 模式更能保留图片和链接
  • 长文档拆分需要 Agent 判断

参考项目

⚖️ 合规声明

仅供个人学习与研究使用。请遵守目标平台的服务条款(ToS)与 robots 规则,控制请求频率,不要用于批量抓取、商用爬取或侵犯他人权益的场景。下载内容的版权归原作者所有。

Other skills for the same job

different authors, same section of the catalogue
DOCX
by anthropics
vendor ×16

Comprehensive document creation, editing, and analysis with support for tracked changes, comments, formatting preservation, and text extraction. When Claude needs to work with professional documents (.docx files) for: (1) Creating new documents, (2) Modifying or editing content, (3) Working with tracked changes, (4) Adding comments, or any other document tasks

7k tokens
PDF
by anthropics
vendor ×16

Comprehensive PDF manipulation toolkit for extracting text and tables, creating new PDFs, merging/splitting documents, and handling forms. When Claude needs to fill in a PDF form or programmatically process, generate, or analyze PDF documents at scale.

13k tokens scripts
PPTX
by JayZeeDesign
×15

Presentation creation, editing, and analysis. When Claude needs to work with presentations (.pptx files) for: (1) Creating new presentations, (2) Modifying or editing content, (3) Working with layouts, (4) Adding comments or speaker notes, or any other presentation tasks

308k tokens scripts
Canvas Design
by anthropics
vendor ×13

Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.

1388k tokens
PDF
by anthropics
vendor ×10

Use this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill.

15k tokens scripts
DOCX
by w95
×6

Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation.

5k tokens
PPTX
by w95
×4

Use this skill any time a .pptx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates, layouts, speaker notes, or comments. Trigger whenever the user mentions \"deck,\" \"slides,\" \"presentation,\" or references a .pptx filename, regardless of what they plan to do with the content afterward. If a .pptx file needs to be opened, created, or touched, use this skill.

2k tokens
Obsidian Markdown
by ZhanlinCui
×3

Create and edit Obsidian Flavored Markdown with wikilinks, embeds, callouts, properties, and other Obsidian-specific syntax. Use when working with .md files in Obsidian, or when the user mentions wikilinks, callouts, frontmatter, tags, embeds, or Obsidian notes.

3k tokens

How to use it

Copy the folder

Take chubbyguan/wechat-article-ingest from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.

Install what it needs

The instructions reference pip, uv. Without those the skill loads but fails at the first command.