agentleFS
lingengyuanlingengyuan/my-skills/.claude/skills/wechat-archiver/SKILL.md

wechat-archiver

Skill9 starsChanged 2 months agoMITView on GitHub

Archive a WeChat Official Account article into a self-contained knowledge asset with article Markdown, local images, a structured note, metadata, and optional Canvas or Base artifacts. Use when the user wants more than conversion and explicitly asks to archive, organize, or add a WeChat article to a knowledge base.

  • Installs packages

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 2 are distinctive, and 5 are 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.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read the reported or generated article.md and meta.json.

    line 29
  2. Very specific:

    If the fetcher reports skipped, validate the existing asset and do not recreate its artifacts.

    line 30
  3. Very specific:

    Create note.md directly in the asset directory:

    line 31
  4. Very specific:

    Create diagram.canvas only when relationships or sequence need a visual.

    line 37
  5. Very specific:

    Create table.base only when multiple comparable Markdown records exist.

    line 38
  6. Distinctive:

    Do not delete existing assets during refresh.

    line 62
  7. Distinctive:

    Do not create optional artifacts merely to increase output count.

    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 Archiver

This Skill is standalone. It contains its own article fetcher and does not call sibling Skills.

Setup

Python 3.8+ and curl in PATH are required.

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

Workflow

  1. Confirm the target knowledge-base directory.
  2. Fetch the article:
python "<skill-dir>/tools/fetch_article.py" "<article-url>" --output-dir "<target-root>/outputs" --target-folder "<folder>"

The fetcher reports STATUS=skipped and leaves the existing asset unchanged when its metadata matches the normalized URL and its article hash is valid. Append --refresh only when the user explicitly requests a refresh.

  1. Read the reported or generated article.md and meta.json.
  2. If the fetcher reports skipped, validate the existing asset and do not recreate its artifacts.
  3. Create note.md directly in the asset directory:
    • concise summary,
    • key arguments and evidence,
    • reusable details,
    • source link,
    • uncertainty or missing context.
  4. Create diagram.canvas only when relationships or sequence need a visual. Use valid JSON Canvas edges with fromNode and toNode.
  5. Create table.base only when multiple comparable Markdown records exist. Scope it to the asset directory.
  6. Merge artifact paths and the final status into meta.json.
  7. Append one JSON object to run.jsonl.
  8. Re-read and validate all artifacts before reporting success.

Output contract

<target-root>/outputs/<folder>/<slug>/
├── article.md
├── images/
├── note.md
├── diagram.canvas      # optional
├── table.base          # optional
├── meta.json
└── run.jsonl

Batch mode

Process URLs one at a time with the same workflow. Continue after an individual failure, preserve successful assets, and return a success/failure summary. Do not edit the source inbox unless the user requests it.

Boundaries

  • Do not delete existing assets during refresh.
  • Do not create optional artifacts merely to increase output count.
  • A fetched article is not a completed archive until note.md, meta.json, and validation are complete.

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.