obsidian-ai-vault-template: Instructions file for Claude Code

CLAUDE.md

obsidian-ai-vault-template CLAUDE.md is an instructions file for Claude Code from iamzhihuix/obsidian-ai-vault-template. It costs 1,677 tokens per session, scanned A, original, MIT.

A set of instructions for working in an Obsidian vault, which is a folder of linked Markdown notes, used for personal knowledge and content management.

In plain words
What is it for?
Use it when organizing or creating notes, following the vault's PARA and Zettelkasten structure, preparing public-account content, or handling project and AI-technology materials.
Why use it?
It explains the vault's folder system, writing conventions, subdirectory rules, and sensitive areas so an agent can work consistently within it.

Instructions file for Claude Code

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

This is iamzhihuix/obsidian-ai-vault-template's own configuration. It tells Claude Code how to work on obsidian-ai-vault-template 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-ai-vault-template configures →

Reuse

Borrowing it

Nothing to install: this file belongs to iamzhihuix/obsidian-ai-vault-template. 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/iamzhihuix/obsidian-ai-vault-template/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/iamzhihuix/obsidian-ai-vault-template

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-ai-vault-template CLAUDE.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/iamzhihuix/obsidian-ai-vault-template/claude-md"><img src="https://agentmods.dev/badge/instructions/iamzhihuix/obsidian-ai-vault-template/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,677 This file is loaded in full into every session.
When invoked 1,677 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.01677 $0.01677
Opus 5 $0.00839 $0.00839
Sonnet 5 $0.00335 $0.00335
Haiku 4.5 $0.00168 $0.00168

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

Security

Grade A, and why

obsidian-ai-vault-template 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 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.

CLAUDE.md · 137 lines

How it starts

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

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Vault 概览

这是一个 Obsidian 知识库,用于个人内容创作与 AI 副业知识管理。不是软件项目。

作者身份

目录结构

采用 PARA+Zettelkasten 混合体系,编号前缀表示类别:

文件夹 用途 关键子目录
00.项目/ 当前活跃项目(建站、跨境 SOP)
10.内容创作/ 所有内容创作 公众号/推特/YouTube/短剧/
20.AI技术/ AI 技术学习与研究 Claude-Code/n8n/提示词/tts/知识库/
30.建站变现/ SEO 建站与变现 SEO上站/stripe/
40.工具箱/ 基础设施与账号 服务器与网络/账号记录/链接收藏/
50.学习笔记/ 通用学习记录 卡片笔记/投资/
90.收藏箱/ 剪藏与收集(只读参考) 微信剪藏/
assets/ 全局图片资源

子目录 CLAUDE.md

以下子目录有独立的 CLAUDE.md,包含更细粒度的上下文:

  • 10.内容创作/公众号/CLAUDE.md — 公众号写作风格指南(语气、结构模板、标题公式、常用表达库)
  • 20.AI技术/Claude-Code/CLAUDE.md — AI 编程学习笔记、Agent 开发资料

内容约定

公众号文章

  • 存放路径:10.内容创作/公众号/YYYY-MM/YYYYMMDD-主题.md
  • 写作风格详见 10.内容创作/公众号/CLAUDE.md
  • 选题管理:10.内容创作/公众号/选题库.md,状态标记 ⏳待写 ✍️写作中 ✅已发布 ❌已废弃

敏感文件

  • 40.工具箱/服务器与网络/ — VPS/服务器信息,操作时注意安全
  • 40.工具箱/账号记录/ — 各平台账号信息

已安装插件

  • Claudian — 将 Claude Code 嵌入 Obsidian,vault 作为 Claude 工作目录
  • ObShare — 一键上传笔记到飞书云文档
  • Dataview — 笔记数据库视图
  • codeblock-customizer — 代码块美化渲染
  • Bases(核心)— 笔记数据库视图(.base 文件)
  • Canvas(核心)— 可视化画布(.canvas 文件)
  • Daily Notes(核心)— 每日笔记

飞书知识库配置(可选)

如果你使用飞书,在这里配置你的知识空间:

配置项
知识空间名称
Space ID
类型 team / personal

feishu-cli 使用要点

PATH 设置(每次 Bash 命令前需加):

export PATH="$HOME/go/bin:$PATH"

User Access Token 获取(Wiki 操作必须带 --user-access-token):

UAT=$(python3 -c "import json; d=json.load(open('$HOME/.feishu-cli/token.json')); print(d.get('access_token',''))")

常用命令速查

# 列出知识空间(必须带 UAT)
feishu-cli wiki spaces --user-access-token "$UAT"

# 列出知识库文档目录
feishu-cli wiki nodes <SPACE_ID> --user-access-token "$UAT"

# 导出 wiki 文档为 Markdown
feishu-cli wiki export <node_token> -o ./output.md --download-images --assets-dir ./assets

# 搜索云文档
feishu-cli search docs "关键词"

# 导入 Markdown 到飞书
feishu-cli doc import 文章.md --title "标题" --upload-images

# 认证状态检查 / 重新登录
feishu-cli auth status
feishu-cli auth login

Read the full file on GitHub · 137 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. 11d ago First seen · 137 lines · 1,677 tokens per session scan A 302e001ba0a0

Subscribe to this mod's changes

obsidian-ai-vault-template CLAUDE.md is an instructions file published in the GitHub repository iamzhihuix/obsidian-ai-vault-template (43 stars, last pushed 5mo ago), licensed MIT. It adds 1,677 tokens to every session, about $0.0084 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-30.

Related

Other instructions, from other repositories

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

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,104 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