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 renky1025/agent-skills --skill obsidian-kb-buildergit clone --depth 1 https://github.com/renky1025/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/renky1025/agent-skills/obsidian-kb-builder)<a href="https://agentmods.dev/skills/renky1025/agent-skills/obsidian-kb-builder"><img src="https://agentmods.dev/badge/skills/renky1025/agent-skills/obsidian-kb-builder/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/renky1025/agent-skills/obsidian-kb-builder"><img src="https://agentmods.dev/badge/skills/renky1025/agent-skills/obsidian-kb-builder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00174 | $0.02236 |
| Opus 5.5 | $0.00070 | $0.00894 |
| Sonnet 5.5 | $0.00035 | $0.00447 |
| Haiku 4.5 | $0.00017 | $0.00224 |
Grade A, and why
obsidian-kb-builder scanned grade A with 1 finding 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 2mo 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
- 外网抓取失败 / 超时 -> 检查 `http_proxy` / `https_proxy` 是否设置;脚本网络层统一走 curl。 How it starts
The opening of the file, as written. The whole thing — 122 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Obsidian KB Builder
Purpose
按 Karpathy「LLM Wiki」模式,把目录 / 文档 / URL 转化为一个持久、互链、可复利的本地知识库
(Obsidian vault)。图谱即 Obsidian 双链图谱:节点是笔记,边是页面间的 [[链接]]。
脚本负责机械 I/O(建结构、抓取、图片本地化、导出图数据),AI 负责语义抽取与互链。
When to Use
- 用户说「建一个知识库 / 个人 wiki / Obsidian vault」「把这批文章 / 这个文件夹 / 这个网页纳入知识库」。
- 用户要从 URL、PDF、笔记批量生成互链 markdown 并保留图片。
- 用户要「导出知识图谱 / 图数据」用于可视化或导入 Neo4j / Gephi。
- 触发词:知识库、个人 wiki、Obsidian、双链、互链笔记、知识图谱、图数据、vault。
When NOT to Use
- 只想要一次性的内容摘要或改写,不建立持久互链库 -> 直接回答或走写作类技能。
- 目标平台是云端协作笔记(Notion / 飞书文档),而非本地 markdown vault -> 本技能只产出 本地文件,不负责云端导入。
- 只需要转换单个 PDF 为 Markdown -> 用
pdf2md。 - 用户未指定 vault 路径且不允许新建 -> 先追问路径,不要擅自选目录。
Workflow
路径约定:下文
<skill>指本技能安装目录(如~/.claude/skills/obsidian-kb-builder)。
- 初始化(仅首次):若 vault 不存在或缺少
raw/、wiki/、.wiki-schema.md,运行python3 <skill>/scripts/scaffold.py --vault <vault路径> [--topic "知识库主题"]。 - 摄入每个输入:对每个 URL 或本地文件运行
python3 <skill>/scripts/fetch_source.py --input <URL或文件路径> --vault <vault路径> [--subdir articles]; 目录输入则遍历其中受支持文件逐个调用。 - 语义抽取与互链(AI 执行):读取
raw/<subdir>/<file>.md后依次完成—— ① 写 source 摘要页wiki/sources/<date>-<slug>.md;② 更新/新建wiki/entities/与wiki/topics/页面(带 YAML frontmatter:tags/created/updated/sources);③ 在相关页面间加[[链接]],每页底部维护「相关页面」列表(这是图数据的边,务必互链);④ 更新index.md(加一行[[页面名]] — 摘要);⑤ 向log.md追加## [YYYY-MM-DD] ingest | <源标题>。 - 查询与复利:对 wiki 提问,答案用
[[链接]]引用;有价值的对比 / 分析 / 新关联存回wiki/comparisons/或wiki/synthesis/。 - 导出图数据:
python3 <skill>/scripts/export_graph.py --vault <vault路径> [--json], 输出graph/graph-nodes.csv、graph/graph-edges.csv、graph/graph.json,并报告孤儿页与枢纽页。
Decision Rules
选 --subdir:文章 -> articles;推文 -> tweets;微信公众号 -> wechat;
小红书 -> xiaohongshu;知乎 -> zhihu;PDF -> pdfs;手写笔记 -> notes。
输入分发:
- URL -> 经 Jina Reader 取干净 markdown;文中图片下载到
raw/assets/,改写为本地相对路径。 - 本地
.md/.txt/.html-> 直接处理。 - 本地
.pdf/.docx-> 用本机pandoc转换;未装 pandoc 时脚本会提示安装。
图数据取用两条路:
What ships with it
4 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.
- 2mo ago Changed · +27 lines · +52 tokens per session a3f9be468c70
- 3mo ago First seen · 95 lines · 122 tokens per session scan A d2895ed643fe
obsidian-kb-builder is a skill published in the GitHub repository renky1025/agent-skills (14 stars, last pushed 1mo ago), licensed MIT. It adds 174 tokens to every session and 2,236 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
obsidian-kb-builder compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| obsidian-kb-builderrenky1025/agent-skills | Skill | 14 | 1mo ago | MIT | A | 174 | Claude Code, Codex |
| project-wikiGeminiLight/MindOS | Skill | 707 | 23d ago | MIT | A | 63 | Claude Code, Codex |
| mindos-zhGeminiLight/MindOS | Skill | 707 | 23d ago | MIT | A | 490 | Claude Code |
| mindosGeminiLight/MindOS | Skill | 707 | 23d ago | MIT | A | 136 | Claude Code |
| mindos-maxGeminiLight/MindOS | Skill | 707 | 23d ago | MIT | A | 145 | Claude Code |
| mindos-viewsGeminiLight/MindOS | Skill | 707 | 23d ago | MIT | A | 60 | Claude Code, Codex |
| mindosGeminiLight/MindOS | Skill | 707 | 23d ago | MIT | A | 157 | Claude Code, Codex |