Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add YangsonHung/awesome-agent-skills --skill weixin-article-to-obsidian-cngit clone --depth 1 https://github.com/YangsonHung/awesome-agent-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/yangsonhung/awesome-agent-skills/weixin-article-to-obsidian-cn)<a href="https://agentmods.dev/skills/yangsonhung/awesome-agent-skills/weixin-article-to-obsidian-cn"><img src="https://agentmods.dev/badge/skills/yangsonhung/awesome-agent-skills/weixin-article-to-obsidian-cn/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/yangsonhung/awesome-agent-skills/weixin-article-to-obsidian-cn"><img src="https://agentmods.dev/badge/skills/yangsonhung/awesome-agent-skills/weixin-article-to-obsidian-cn.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00042 | $0.00961 |
| Opus 5 | $0.00021 | $0.00481 |
| Sonnet 5 | $0.00008 | $0.00192 |
| Haiku 4.5 | $0.00004 | $0.00096 |
Grade A, and why
weixin-article-to-obsidian-cn scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
微信公众号文章转 Obsidian
Overview
把微信公众号文章保存为 Obsidian 知识库里的 Markdown 文档,并把正文图片下载到本地资源目录。流程优先使用 opencli weixin download 获取正文,再解析页面源码补齐长图文章的图片和文章元信息。
何时使用
当用户提出以下需求时使用本技能:
- 提供
mp.weixin.qq.com文章链接 - 要把微信公众号文章正文保存为 Markdown 笔记
- 要把文章图片下载到本地,而不是保留远程 CDN 链接
- 要使用 Obsidian 图片双链,例如
![[assets/标题/图片.png]] - 要把这类微信公众号剪藏流程沉淀为可重复执行的操作
不要使用
以下场景不应使用本技能:
- 链接不是微信公众号文章
- 用户只想提取文章视觉样式或排版主题
- 用户想把 Markdown 发布回微信公众号
- 目标不是本地 Markdown 或 Obsidian 知识库
使用说明
- 先阅读目标知识库规则,重点确认文档分类、图片资源目录、索引维护要求。
- 根据文章主题选择语义目录。知识库已有更具体分类时,不要默认放到通用剪藏目录。
- 如果本机有
opencli,先运行:
opencli weixin download --url "https://mp.weixin.qq.com/s/example" --output /tmp/weixin-article --download-images true -f yaml
- 如果
opencli没有抓全图片,或文章是长图页,运行本技能脚本:
python3 scripts/download_weixin_article.py "https://mp.weixin.qq.com/s/example" \
--vault-root /path/to/obsidian-vault \
--target-dir "FrontEnd/安全"
- 检查生成的 Markdown,删除平台按钮、推荐阅读、打赏、重复元信息等残留内容。
- 确认所有图片引用都指向
assets/<文档标题>/下的本地文件,并使用 Obsidian 双链语法。 - 如果知识库要求维护专题索引,把新文档以 wiki 链接加入对应索引页。
脚本行为
scripts/download_weixin_article.py 会执行以下操作:
- 优先尝试
opencli weixin download,在正文足够完整时复用其 Markdown 正文 - 直接抓取文章 HTML 作为兜底或补充
- 提取标题、公众号名称、发布时间、正文摘要和长图文章图片 URL
- 下载图片到
assets/<安全标题>/ - 将 Markdown 写入指定
--target-dir - 输出 JSON 摘要,包含文档路径、资源目录、图片数量、是否运行 opencli
常用参数:
--vault-root:Obsidian 知识库根目录,默认当前目录。--target-dir:知识库内的相对文档目录,默认知识库根目录。--title:覆盖自动提取到的标题,同时影响资源目录名。--locale:元信息标签语言,可选zh或en,默认zh。--overwrite:允许覆盖同名 Markdown 文档。
输出规则
- Markdown 放在语义正确的内容目录下。
- 图片放在知识库根目录的
assets/<文档标题>/下。 - 图片引用使用 Obsidian 双链语法,不使用普通 Markdown 图片语法。
- 默认保留原文链接这一行,除非用户明确要求删除。
- 不主动添加 YAML frontmatter,除非目标知识库已有此要求。
校验清单
- 文档已出现在选择的目录中。
- 资源目录存在,并包含预期数量的文章图片。
rg "mmbiz|data:image|http" <文档>只剩原文链接,没有远程图片引用。- 图片引用格式是
![[assets/...]]。 - 目标知识库要求索引时,对应专题索引已经更新。
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 12d ago First seen · 83 lines · 42 tokens per session scan A c9ed1eba7043
weixin-article-to-obsidian-cn is a skill published in the GitHub repository YangsonHung/awesome-agent-skills (18 stars, last pushed 1mo ago), licensed MIT. It adds 42 tokens to every session and 961 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
baoyu-youtube-transcript
A tool for downloading the written captions, subtitles, chapter information, speaker labels, and cover image from a YouTube video using its URL or ID.
pydicom
Use pydicom to read, inspect, write, transform, and safely preflight local DICOM datasets and pixel data. Applies to DICOM metadata, transfer syntaxes, compression plugins, frames, private elements, JSON, and bounded de-identification review.
treatment-plans
Format and structurally validate local treatment-plan documentation after clinical decisions have already been supplied and verified by authorized licensed professionals. Use for source traceability, clinician-authored intervention records, goals and checkpoints, shared-decision records, reconciliation handoffs, and…
venue-templates
Prepare journal manuscripts, conference papers, research posters, and grant documents using venue-specific formatting guidance and bundled LaTeX scaffolds. Use when selecting an official template, checking current page or anonymity rules, adapting academic writing to a venue, or inspecting a submission PDF.
xlsx
Create, edit, analyze, or convert Excel spreadsheets (.xlsx, .xlsm, .xltx) where the workbook file is the primary deliverable. Use for formulas, formatting, financial models, multi-sheet workbooks, and tabular cleanup exported to Excel. Also applies to .csv/.tsv when the user wants spreadsheet output. Do NOT use for…
outline
Search, read, and manage Outline wiki documents. Use when: (1) searching wiki for documentation, (2) reading wiki pages or articles, (3) listing wiki collections or documents, (4) creating or updating wiki content, (5) exporting documents as markdown. Works with any Outline wiki instance (self-hosted or cloud).