obsidian-kb-builder

obsidian-kb-builder is a skill for Claude Code, Codex from renky1025/agent-skills. It costs 174 tokens per session (2,236 once invoked), scanned A, original, MIT.

A tool for turning folders, documents, and web pages into a local Obsidian knowledge base. Obsidian is a note-taking app where Markdown notes can link to one another, forming a graph of related ideas.

In plain words
What is it for?
It helps collect URLs, PDFs, DOCX files, and notes into an Obsidian vault, organize source and topic notes, and export graph data for tools such as Neo4j or Gephi.
Why use it?
It reduces the manual work of creating notes, preserving source material and images, and adding links between related information.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths.

Good fit It helps collect URLs, PDFs, DOCX files, and notes into an Obsidian vault, organize source and topic notes, and export graph data for tools such as Neo4j or Gephi.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/renky1025/agent-skills/obsidian-kb-builder
Install

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.

Any agent
npx skills add renky1025/agent-skills --skill obsidian-kb-builder
Clone the repo
git clone --depth 1 https://github.com/renky1025/agent-skills

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for obsidian-kb-builder

README.md
[![agentmods](https://agentmods.dev/badge/skills/renky1025/agent-skills/obsidian-kb-builder/github.svg)](https://agentmods.dev/skills/renky1025/agent-skills/obsidian-kb-builder)
Your own site
<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.

agentmods 80×15 button for obsidian-kb-builder

Your own site · 80×15
<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>
Per session 174 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,236 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 2mo ago against content hash a3f9be468c70, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/export_graph.py, scripts/fetch_source.py, scripts/scaffold.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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。
obsidian-kb-builder/SKILL.md · 122 lines

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)。

  1. 初始化(仅首次):若 vault 不存在或缺少 raw/、wiki/、.wiki-schema.md,运行 python3 <skill>/scripts/scaffold.py --vault <vault路径> [--topic "知识库主题"]。
  2. 摄入每个输入:对每个 URL 或本地文件运行 python3 <skill>/scripts/fetch_source.py --input <URL或文件路径> --vault <vault路径> [--subdir articles]; 目录输入则遍历其中受支持文件逐个调用。
  3. 语义抽取与互链(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 | <源标题>。
  4. 查询与复利:对 wiki 提问,答案用 [[链接]] 引用;有价值的对比 / 分析 / 新关联存回 wiki/comparisons/ 或 wiki/synthesis/。
  5. 导出图数据: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 时脚本会提示安装。

图数据取用两条路:

Read the full file on GitHub · 122 lines

Files

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.

Changes

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.

  1. 2mo ago Changed · +27 lines · +52 tokens per session a3f9be468c70
  2. 3mo ago First seen · 95 lines · 122 tokens per session scan A d2895ed643fe

Subscribe to this mod's changes

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.

Related

obsidian-kb-builder compared with skills from other repositories

obsidian-kb-builder next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
obsidian-kb-builderrenky1025/agent-skillsSkill141mo agoMITA174Claude Code, Codex
project-wikiGeminiLight/MindOSSkill70723d agoMITA63Claude Code, Codex
mindos-zhGeminiLight/MindOSSkill70723d agoMITA490Claude Code
mindosGeminiLight/MindOSSkill70723d agoMITA136Claude Code
mindos-maxGeminiLight/MindOSSkill70723d agoMITA145Claude Code
mindos-viewsGeminiLight/MindOSSkill70723d agoMITA60Claude Code, Codex
mindosGeminiLight/MindOSSkill70723d agoMITA157Claude Code, Codex