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.
git clone --depth 1 https://github.com/HeminWon/claude-code-marketplaceWrote 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/commands/heminwon/claude-code-marketplace/to-obsidian)<a href="https://agentmods.dev/commands/heminwon/claude-code-marketplace/to-obsidian"><img src="https://agentmods.dev/badge/commands/heminwon/claude-code-marketplace/to-obsidian/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/commands/heminwon/claude-code-marketplace/to-obsidian"><img src="https://agentmods.dev/badge/commands/heminwon/claude-code-marketplace/to-obsidian.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.00032 | $0.01227 |
| Opus 5.5 | $0.00013 | $0.00491 |
| Sonnet 5.5 | $0.00006 | $0.00245 |
| Haiku 4.5 | $0.00003 | $0.00123 |
Grade A, and why
to-obsidian 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 1mo 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.
How it starts
The opening of the file, as written. The whole thing — 136 lines — stays where its author put it; the contents beside it link to each section on GitHub.
To Obsidian Command
Goal
把微信公众号文章链接转换为 Markdown,并落盘为 Obsidian 友好的目录结构。
Inputs
- 原始参数:
$ARGUMENTS - 必填:
- 文章链接(
mp.weixin.qq.com) - 保存目录(Obsidian 仓库内相对路径,如
xxx/xxx)
- 文章链接(
Workflow
1) 参数与路径检查
- 从
$ARGUMENTS解析文章链接与保存目录。 - 缺少任一必填参数时,使用
AskUserQuestion补齐。 - 保存目录必须是仓库内相对路径:
- 以
/开头(绝对路径)→ 报错并停止。 - 包含
..(如../、..\\、独立..段)→ 报错并停止。
- 以
- 目录存在性检查:
test -d "<保存目录>"- 不存在时先询问是否创建;确认后
mkdir -p "<保存目录>",拒绝则停止。
2) 抓取并转换(调用 skill)
通过 Skill 工具调用 wechat-article-export:wechat-article-export,传入文章链接,执行下载与转换,不在本 command 内重复实现。
完成后必须拿到并记录:
- 文章标题
- 作者
- 发布时间
- Markdown 产物路径
规则:
- 优先从工具输出提取。
- 输出不一致时,可基于已生成文件和目录结构回溯定位。
- 无法确认 Markdown 路径则视为失败并停止。
3) 文件重组(仅用 mv)
目标结构:
保存目录/
├── safe_title.md
└── assets/
└── a1b2c3/
├── image-001.png
├── image-002.png
└── ...
执行规则:
- 先定位源
.md与图片目录(可验证优先,禁止猜测)。 - 生成
safe_title:- 将
/ \\ : * ? " < > |替换为- - 去首尾空白与尾随
.,连续空白折叠为单个空格 - 为空时回退为
untitled-article
- 将
- 生成 6 位小写字母或数字的
asset_id,并创建目录:mkdir -p "<保存目录>/assets/${asset_id}"
- 移动文件:
mv "<源md路径>" "<保存目录>/<safe_title>.md"- 图片资源
mv到"<保存目录>/assets/${asset_id}/"
- 禁止
cp。 - 重组后仅在目录已空时使用
rmdir清理源目录(可逐级)。 - 路径含空格必须加引号。
4) Obsidian Markdown 规范整理
仅做格式整理,不改动事实信息。
允许项:
- 图片链接统一为标准 Markdown:
(不用 wikilink) - frontmatter 至少补齐:
title、source、author、created - 标题层级修正为单一 H1,子级不跳级
- 统一空行、列表缩进(每级 2 空格)、引用、代码块
- 表格补齐表头分隔并对齐
- 分割线统一为
--- - 中英文、中文与数字之间按规范补空格
执行顺序(先计划、后确认、再改动):
- 在任何 Markdown 文本改动前,先进入 Plan 模式(
EnterPlanMode)。 - 读取当前 Markdown 后,输出“拟变更点清单”,至少包含:
- 将新增或修正的 frontmatter 字段
- 图片路径/写法将如何调整(含目标路径模式)
- 标题层级、空行/缩进、表格、分割线、空格规范中将触发的具体项
- 使用
ExitPlanMode展示计划并请求用户批准。 - 仅在用户同意后执行规范化编辑;用户拒绝时,仅完成文件重组并保留原文。
Output
返回固定字段(按实际填值):
title: <文章标题>
author: <作者>
created: <发布时间>
markdown_path: <源md路径>
final_path: <保存目录>/<safe_title>.md
assets_path: <保存目录>/assets/<asset_id>/
可附加:已保存到 <保存目录>/<safe_title>.md
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.
- 1mo ago Changed · +1 lines 79e128725f6b
- 3mo ago First seen · 135 lines · 32 tokens per session scan A 4a1e046e92e0
to-obsidian is a command published in the GitHub repository HeminWon/claude-code-marketplace (2 stars, last pushed 1mo ago), licensed MIT. It adds 32 tokens to every session and 1,227 once invoked, about $0.0001 per session on Opus 5.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-31.
to-obsidian compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| to-obsidianHeminWon/claude-code-marketplace | Command | 2 | 1mo ago | MIT | A | 32 | Claude Code |
| cti-report7onez/cti-expert | Command | 631 | 10d ago | none | A | 45 | Claude Code |
| brand-generateferdinandobons/brand-docs | Command | 312 | 4mo ago | MIT | A | 0 | Claude Code |
| render-figuresbraininahat/brains-in-a-hat | Command | 4 | 1mo ago | MIT | A | 17 | Claude Code |
| ppt-image2-editable-rebuildwwe-dog/ppt-image2-editable-rebuild | Command | 208 | 6mo ago | Unlicense | A | 15 | Claude Code |
| arckit.uk-food-record-sheetstractorjuice/arckit-codex | Command | 19 | today | none | A | 73 | Claude Code |
| publish-api-docsnavraj007in/architecture-cowork-plugin | Command | 3 | 4mo ago | Apache-2.0 | A | 17 | Claude Code |