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.00122 | $0.01476 |
| Opus 5 | $0.00061 | $0.00738 |
| Sonnet 5 | $0.00024 | $0.00295 |
| Haiku 4.5 | $0.00012 | $0.00148 |
Grade A, and why
obsidian-kb-builder 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 11d 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 — 95 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Obsidian KB Builder
Overview
按 Karpathy「LLM Wiki」模式,把目录 / 文档 / URL 转化为一个持久、互链、可复利的本地知识库(Obsidian vault)。图谱即 Obsidian 双链图谱:节点是笔记,边是页面间的 [[链接]]。脚本负责机械的 I/O(建结构、抓取法、图片本地化、导出图数据),AI 负责语义抽取与互链。
When To Use
- 用户说「建一个知识库 / 个人 wiki / Obsidian vault」「把这批文章/这个文件夹/这个网页纳入知识库」。
- 用户要从 URL、PDF、笔记批量生成互链 markdown 并保留图片。
- 用户要「导出知识图谱 / 图数据」用于可视化或导入 Neo4j / Gephi。
Prerequisites
- 确定目标 vault 路径(用户指定;不存在则新建)。
- 访问外网时确保
http_proxy/https_proxy环境变量已设置(fetch_source 走代理)。 - PDF / DOCX 摄入需要本机
pandoc(未装则脚本会提示安装)。
Workflow
路径约定:下文命令中的
<skill>指本技能安装目录(如~/.claude/skills/obsidian-kb-builder)。运行脚本时请将<skill>替换为实际路径,或在技能目录下执行。
1. 初始化(仅首次)
若 vault 不存在或缺少 raw/、wiki/、.wiki-schema.md,运行:
python3 <skill>/scripts/scaffold.py --vault <vault路径> [--topic "知识库主题"]
该脚本创建 raw/{articles,tweets,wechat,xiaohongshu,zhihu,pdfs,notes,assets}、wiki/{entities,topics,sources,comparisons,synthesis}、.wiki-schema.md、index.md、log.md、purpose.md。已存在的文件不覆盖。
2. 摄入每个输入(fetch_source.py)
对每个 URL 或本地文件运行:
python3 <skill>/scripts/fetch_source.py --input <URL或文件路径> --vault <vault路径> [--subdir articles]
- URL:经 Jina Reader 取干净 markdown;文中图片下载到
raw/assets/,改写为本地相对路径../assets/xxx。 - 本地 .md/.txt/.html 直接处理;.pdf/.docx 用 pandoc 转换。
- 目录:遍历受支持文件,按类型选
--subdir(文章→articles,推文→tweets,小红书→xiaohongshu,知乎→zhihu,PDF→pdfs,笔记→notes)。 - 脚本打印写出的
raw/.../*.md路径与图片统计,AI 据此继续抽取。
3. 语义抽取与互链(AI 执行,详见 references/workflow.md)
读取 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 | <源标题>。
新数据反驳旧主张时显式标注矛盾,不静默覆盖。raw/ 只读不改,所有产物在 wiki/。
4. 查询与复利
对 wiki 提问,答案用 [[链接]] 引用;有价值的对比 / 分析 / 新关联存回 wiki/comparisons/ 或 wiki/synthesis/,让探索也复利累积。
5. 导出图数据(export_graph.py)
python3 <skill>/scripts/export_graph.py --vault <vault路径> [--json]
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.
- 11d 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 (11 stars, last pushed yesterday), licensed MIT. It adds 122 tokens to every session and 1,476 once invoked, about $0.0006 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-31.
Other skills, from other repositories
project-wiki
A system for creating and maintaining a project wiki: a set of organized documents that explain a software project's plans, rules, references, and progress.
mindos
MindOS: local knowledge assistant & shared KB. Keeps decisions, notes, SOPs, debugging lessons, research findings, preferences across sessions/agents. Core: save notes, search KB, organize files, run workflows, review, append CSV, hand off context, distill lessons. NOT for app source or paths outside KB. Triggers…
mindos-zh
A local knowledge-base assistant for storing and finding decisions, meeting notes, procedures, troubleshooting lessons, and preferences across conversations and coding agents. It works only with the MindOS knowledge base.
mindos-max
MindOS: local knowledge assistant & global memory layer. Keeps decisions, notes, SOPs, debugging lessons, architecture choices, research findings, preferences, conversation summaries for all connected agents. PROACTIVE: (1) search MindOS first for past context, (2) offer to save after valuable work, (3) persist key…
mindos
Operate a MindOS knowledge base: update notes, search, organize files, execute SOPs/workflows, retrospective, append CSV, cross-agent handoff, route unstructured input to the right files, distill experience, sync related docs. Use when the task targets files inside the user's MindOS KB (mindRoot). NOT for editing app…
plugin-core-builtin-migration
A repeatable process for turning an optional MindOS renderer plugin into a built-in, always-available part of the application. It also covers moving old entry points while keeping existing data usable.