obsidian-llm-wiki: Instructions file for Claude Code

CLAUDE.md

obsidian-llm-wiki CLAUDE.md is an instructions file for Claude Code from levi-qiao/obsidian-llm-wiki. It costs 3,290 tokens per session, scanned A, original, MIT.

Project instructions for maintaining an Obsidian LLM wiki, a linked note collection that turns scattered material into structured knowledge.

In plain words
What is it for?
Use them when maintaining this repository's raw files, wiki pages, indexes, archives, logs, and media assets.
Why use it?
They give the coding agent a fixed structure and rules for preserving raw material, updating the wiki, handling conflicts, and writing in Simplified Chinese.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions Claude Code.

This is levi-qiao/obsidian-llm-wiki's own configuration. It tells Claude Code how to work on obsidian-llm-wiki itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything obsidian-llm-wiki configures →

Reuse

Borrowing it

Nothing to install: this file belongs to levi-qiao/obsidian-llm-wiki. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/levi-qiao/obsidian-llm-wiki/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/levi-qiao/obsidian-llm-wiki

Made for: Claude Code.

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-llm-wiki CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/levi-qiao/obsidian-llm-wiki/claude-md/github.svg)](https://agentmods.dev/instructions/levi-qiao/obsidian-llm-wiki/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/levi-qiao/obsidian-llm-wiki/claude-md"><img src="https://agentmods.dev/badge/instructions/levi-qiao/obsidian-llm-wiki/claude-md/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-llm-wiki CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/levi-qiao/obsidian-llm-wiki/claude-md"><img src="https://agentmods.dev/badge/instructions/levi-qiao/obsidian-llm-wiki/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,290 This file is loaded in full into every session.
When invoked 3,290 The same file — it is already loaded in full.
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.03290 $0.03290
Opus 5 $0.01645 $0.01645
Sonnet 5 $0.00658 $0.00658
Haiku 4.5 $0.00329 $0.00329

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

Security

Grade A, and why

obsidian-llm-wiki CLAUDE.md 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.

CLAUDE.md · 308 lines

How it starts

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

LLM Wiki - 核心架构

一句话总结

将碎片化资料编译成结构化、高度互联的 Obsidian 知识库。基于 Karpathy 的 LLM Wiki 规范


语言与角色

  • 语言:始终使用简体中文进行思考、回复和知识库编写
  • 角色:你是 LLM Wiki 的维护者,负责簿记、交叉引用、冲突检测
  • 人类职责:策展素材、探索问题、做决策
  • 比喻:Obsidian 是 IDE,LLM 是程序员,Wiki 是代码库

三层架构

1. Raw 层(内容不可变,位置可变)

  • 路径/raw/
  • 权限:LLM 不修改文件内容,但可以移动到 raw/09-archive/
  • 处理后行为/ingest 完成后自动移动源文件到归档目录
  • 状态追踪raw/.processed.json 记录原始路径 + 归档路径 + 处理时间

2. Wiki 层(LLM 完全控制)

  • 路径/wiki/
  • 目录结构
    wiki/
    ├── concepts/       # 概念、框架、方法论(TitleCase)
    ├── entities/       # 人物、公司、工具、产品(TitleCase)
    ├── sources/        # 原始素材摘要(kebab-case)
    ├── syntheses/      # 深度研究报告(kebab-case)
    ├── _conflicts/     # 待人工决策的知识冲突(临时)
    ├── _lint/          # Lint 报告(临时)
    ├── index.md        # 总索引(唯一索引)
    ├── log.md          # 操作日志(追加式)
    └── README.md
    

3. Assets 层(媒体资源)

  • 路径/assets/
  • 用途:存放图片、PDF、媒体文件
  • 引用语法![[文件名.png]]

核心文件

wiki/index.md(总索引)

格式:按 type 分组,每个条目一行,无链接数统计

# Wiki 总索引

## Concepts (42)
- [[Transformer架构]] — 注意力机制的核心实现
- [[复利效应]] — 时间与收益的指数关系

## Entities (28)
- [[Claude Code]] — Anthropic 的 AI 编程助手

## Sources (156)
- [[摘要-attention-is-all-you-need]] — Transformer 论文精读

## Syntheses (15)
- [[分析-transformer-vs-rnn]] — Transformer 与 RNN 的本质区别

---

## 标签云
#AI (45) · #财务 (12) · #NLP (23) · #工具 (18) · #投资 (7) · #深度学习 (15)

更新时机:每次新增/删除页面后必须更新


wiki/log.md(操作日志)

格式:追加式(Append-only),每次操作记录一条

## [2026-04-29] ingest | 引入 Transformer 论文
- 变更: 新增 [[Transformer架构]], [[摘要-attention-is-all-you-need]]; 更新 [[注意力机制]]
- 标签: #AI #NLP #深度学习
- 冲突: 无

## [2026-04-29] query | 解析 Transformer 与 RNN 的区别
- 输出: 已保存至 [[syntheses/分析-transformer-vs-rnn]]
- 引用: 5 个页面

## [2026-04-29] lint | 周度健康检查
- 自动修复: 索引同步 3 处
- 建议修复: 死链 2 处,孤岛页面 1 处
- 人工决策: 知识冲突 1 个

## [2026-04-29] sync | 手动同步到 Git
- 提交: [ingest] Transformer 论文 | 更新了 3 个页面
- Hash: abc123

Read the full file on GitHub · 308 lines

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 · 308 lines · 3,290 tokens per session scan A 832f8c27a10a

Subscribe to this mod's changes

obsidian-llm-wiki CLAUDE.md is an instructions file published in the GitHub repository levi-qiao/obsidian-llm-wiki (10 stars, last pushed 29d ago), licensed MIT. It adds 3,290 tokens to every session, about $0.0164 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 instructions, from other repositories

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,126 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens