cyxj-obsidian-build

cyxj-obsidian-build is a skill for Claude Code from chenyuxiaojin/xiaochen-skills. It costs 107 tokens per session (2,847 once invoked), scanned A, original, MIT.

A compiler for turning an Obsidian vault—a folder of linked Markdown notes—into a three-layer knowledge wiki.

In plain words
What is it for?
Use it to ingest notes, query the compiled knowledge base, maintain wiki pages, and check the vault for problems.
Why use it?
It keeps original notes unchanged while organizing reusable knowledge pages, links, indexes, and maintenance logs.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: mentions CLAUDE.md; mentions Claude Code.

Runs only inside a plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else, and the catalogue could not identify which plugin ships it.

Good fit Use it to ingest notes, query the compiled knowledge base, maintain wiki pages, and check the vault for problems.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

There is no command for this one: it runs only inside a plugin, and the catalogue could not identify which plugin ships it. The source is linked below.

Made for: Claude Code.

Its marketplace also offers this one on its own, as the plugin cyxj-obsidian-build/plugin install cyxj-obsidian-build after adding the marketplace above.

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 cyxj-obsidian-build

README.md
[![agentmods](https://agentmods.dev/badge/skills/chenyuxiaojin/xiaochen-skills/cyxj-obsidian-build/github.svg)](https://agentmods.dev/skills/chenyuxiaojin/xiaochen-skills/cyxj-obsidian-build)
Your own site
<a href="https://agentmods.dev/skills/chenyuxiaojin/xiaochen-skills/cyxj-obsidian-build"><img src="https://agentmods.dev/badge/skills/chenyuxiaojin/xiaochen-skills/cyxj-obsidian-build/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 cyxj-obsidian-build

Your own site · 80×15
<a href="https://agentmods.dev/skills/chenyuxiaojin/xiaochen-skills/cyxj-obsidian-build"><img src="https://agentmods.dev/badge/skills/chenyuxiaojin/xiaochen-skills/cyxj-obsidian-build.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 107 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,847 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.
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.00107 $0.02847
Opus 5 $0.00053 $0.01424
Sonnet 5 $0.00021 $0.00569
Haiku 4.5 $0.00011 $0.00285

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

Security

Grade A, and why

cyxj-obsidian-build 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 12d 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.

plugins/cyxj-obsidian-build/skills/cyxj-obsidian-build/SKILL.md · 228 lines

How it starts

The opening of the file, as written. The whole thing — 228 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Obsidian 知识库编译器

灵感来源:Andrej Karpathy 的 LLM Wiki 方法论 核心理念:LLM 增量构建并维护一个持久的 Wiki — 一个结构化、互相链接的 Markdown 文件集合。知识编译一次,持续维护,而不是每次查询时重新推导。


定位库(任何操作之前先做)

全文的 $VAULTObsidian 库的根目录。确认方式:

  1. 当前工作目录(或用户明确给出的路径)下存在 .obsidian/ 目录 → 该目录即 $VAULT
  2. cwd 不是库(没有 .obsidian/)→ 停下来问用户库路径,不要猜
  3. 用户给的路径不存在或仍无 .obsidian/终止并报告,不要在错误的目录里建任何东西

「首次运行」的建目录、写 CLAUDE.md 等动作,必须在确认 $VAULT 之后才能执行。


三层架构

Layer 1: Raw Sources(原始资料)— 用户写的,LLM 只读不写
       ↓ LLM 编译
Layer 2: Wiki(知识层)— LLM 全权维护,用户只读
       ↑ 规则来自
Layer 3: Schema(配置层)— SKILL.md + $VAULT/CLAUDE.md

Layer 1: Raw Sources(原始资料)

用户的原始笔记。完全不可变 — LLM 读取但绝不修改这些文件。库根 CLAUDE.md 除外(仅首次运行或用户要求时可写,见「权限边界」)。

包括:日记、灵感、收藏的文章、资源笔记等。具体目录结构由 $VAULT/CLAUDE.md 定义。

Layer 2: Wiki(知识层)

LLM 维护的知识产物,存放在 $VAULT/资源库/Wiki/(默认,可在 CLAUDE.md 中自定义)。

Wiki 层包含:

  • 概念页 — 工具、人物、方法论的结构化页面
  • 合成页 — Query 操作产生的对比分析、总结
  • index.md — 按分类组织的内容目录
  • log.md — 操作时间线日志

所有跨笔记的链接关系都在 Wiki 页面里维护。原始笔记不需要写任何链接 — Obsidian 的反向链接面板会自动显示哪些 Wiki 页面引用了它。

Layer 3: Schema(配置层)

分两部分:

  • 本 SKILL.md — 操作流程、页面模板、权限边界(通用逻辑)
  • $VAULT/CLAUDE.md — 库专属配置(目录结构、分类体系)

用户在 Obsidian 库目录启动 Claude Code 时,CLAUDE.md 被自动读取。


首次运行

前提:已按「定位库」确认 $VAULT。如果 $VAULT/CLAUDE.md 不存在,先生成它再开始工作:

  1. 扫描库的顶层目录结构
  2. ${CLAUDE_PLUGIN_ROOT}/skills/cyxj-obsidian-build/templates/vault-claude-md.md,按实际目录调整后生成 CLAUDE.md
  3. 让用户确认或修改后再继续

同时创建 Wiki/index.mdWiki/log.md(格式见 ${CLAUDE_PLUGIN_ROOT}/skills/cyxj-obsidian-build/templates/index-and-log.md)。


操作一:Ingest(摄入)

将原始资料编译进 Wiki。一篇资料可能触及 10-15 个 Wiki 页面。

单条摄入

用户指定一篇笔记(或刚添加的新笔记):

  1. 读取配置:从 $VAULT/CLAUDE.md 获取目录结构和分类体系
  2. 读取资料:用 obsidian-cli read 读取指定笔记
  3. 讨论要点:和用户简要讨论这篇笔记的核心内容和值得提取的概念
  4. 识别概念:提取笔记中的概念、工具名、人名、方法论
  5. 匹配 Wiki:对每个概念,用 obsidian-cli search 检查是否已有 Wiki 页面
    • 已有 → 用 obsidian-cli read 读取,用 obsidian-cli append 追加新信息
    • 没有 → 用 obsidian-cli create 创建新概念页,模板与规则见 ${CLAUDE_PLUGIN_ROOT}/skills/cyxj-obsidian-build/templates/concept-page.md
  6. 更新索引:更新 Wiki/index.md,添加新页面条目
  7. 记录日志:追加到 Wiki/log.md
  8. 汇报结果:告诉用户创建/更新了哪些页面

Read the full file on GitHub · 228 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. 12d ago First seen · 228 lines · 107 tokens per session scan A 563c3211a501

Subscribe to this mod's changes

cyxj-obsidian-build is a skill published in the GitHub repository chenyuxiaojin/xiaochen-skills (6 stars, last pushed 8d ago), licensed MIT. It adds 107 tokens to every session and 2,847 once invoked, about $0.0005 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.