obsidian-kb-builder

obsidian-kb-builder is a skill for Claude Code, Codex from renky1025/agent-skills. It costs 122 tokens per session (1,476 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 122 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,476 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00122 $0.01476
Opus 5 $0.00061 $0.00738
Sonnet 5 $0.00024 $0.00295
Haiku 4.5 $0.00012 $0.00148

Measured 11d ago against content hash d2895ed643fe, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

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.

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.

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.

obsidian-kb-builder/SKILL.md · 95 lines

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.mdindex.mdlog.mdpurpose.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 后:

  1. 写 source 摘要页 wiki/sources/<date>-<slug>.md
  2. 更新 / 新建 wiki/entities/wiki/topics/ 页面,带 YAML frontmatter(tags/created/updated/sources);
  3. 在相关页面间加 [[链接]],每页底部维护「相关页面」列表(这是图数据的边,务必互链);
  4. 更新 index.md(加一行 [[页面名]] — 摘要);
  5. 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]

Read the full file on GitHub · 95 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. 11d 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 (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.

Related

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.

GeminiLight/MindOS · 63 tokens

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…

GeminiLight/MindOS · 136 tokens

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.

GeminiLight/MindOS · 490 tokens

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…

GeminiLight/MindOS · 145 tokens

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…

GeminiLight/MindOS · 157 tokens

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.

GeminiLight/MindOS · 86 tokens