agentleFS
lingengyuanlingengyuan/my-skills/.claude/skills/wechat2md/SKILL.md

wechat2md

Skill9 starsChanged 2 months agoMITView on GitHub

Convert WeChat Official Account article and album URLs from mp.weixin.qq.com into local Markdown with downloaded images. Use for format conversion or local capture; use wechat-archiver when the user requests a complete knowledge-base archive with notes, metadata, or Canvas/Base artifacts.

  • Installs packages

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use the scripts and dependencies bundled in this Skill.

    line 8
  2. Very specific:

    Use wechat2md_v2.py for single articles because it writes one stable asset directory.

    line 34
  3. Distinctive:

    Do not claim success unless the Markdown exists and local image links resolve.

    line 63

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

WeChat to Markdown

Use the scripts and dependencies bundled in this Skill.

Setup

Python 3.8+ and curl in PATH are required.

pip install -r "<skill-dir>/requirements.txt"

Optional configuration is read by the legacy/album converter only. Copy config.example.json to <skill-dir>/config.json and read references/config.md when using wechat2md.py. The single-article wechat2md_v2.py route does not read this file; use its --output-dir, --target-folder, and --slug options instead. Do not require project-root configuration.

Routing

Single article:

python "<skill-dir>/tools/wechat2md_v2.py" "<article-url>"

Album or collection:

python "<skill-dir>/tools/wechat2md.py" --album "<album-url>"

Use wechat2md_v2.py for single articles because it writes one stable asset directory. Use wechat2md.py only for album mode.

Output

Single article:

outputs/<target-folder>/<slug>/
├── article.md
├── images/
└── meta.json

Album:

outputs/<target-folder>/<album-name>/
├── _index.md
└── 001-<article-title>/
    ├── article.md
    └── images/

Rules

  • Resolve output paths from the user's current working directory.
  • Download正文 images and rewrite links to local relative paths.
  • Preserve the original URL and article metadata.
  • On an image failure, retain the original image URL and report the failure.
  • Do not claim success unless the Markdown exists and local image links resolve.
  • For albums, continue after individual article failures and list them in _index.md.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.