llm-knowledge-base: Instructions file for Claude Code

CLAUDE.md

llm-knowledge-base CLAUDE.md is an instructions file for Claude Code from gatelynch/llm-knowledge-base. It costs 2,283 tokens per session, scanned A, original, MIT.

A project instruction file for a personal knowledge base managed in Obsidian, a note-taking application. It defines the user's preferences, writing language, interaction rules, and four-part storage structure.

In plain words
What is it for?
Use it when organizing raw material, summaries, concepts, brainstorming, or finished work in the knowledge base.
Why use it?
It tells an agent how to communicate and where different kinds of notes belong, reducing inconsistent edits and responses.

Instructions file for Claude Code

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

This is gatelynch/llm-knowledge-base's own configuration. It tells Claude Code how to work on llm-knowledge-base 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 llm-knowledge-base configures →

Reuse

Borrowing it

Nothing to install: this file belongs to gatelynch/llm-knowledge-base. 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/gatelynch/llm-knowledge-base/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/gatelynch/llm-knowledge-base

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/gatelynch/llm-knowledge-base/claude-md"><img src="https://agentmods.dev/badge/instructions/gatelynch/llm-knowledge-base/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,283 This file is loaded in full into every session.
When invoked 2,283 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.02283 $0.02283
Opus 5.5 $0.00913 $0.00913
Sonnet 5.5 $0.00457 $0.00457
Haiku 4.5 $0.00228 $0.00228

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

Security

Grade A, and why

llm-knowledge-base 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 2mo 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 · 223 lines

How it starts

The opening of the file, as written. The whole thing — 223 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 this repository.


關於使用者

[YOUR_BIO — 用 1-2 句話描述你是誰、你關心什麼]

互動原則

  • 使用 [YOUR_LANGUAGE] 跟我對話,請叫我「[YOUR_NAME]」
  • 第一性原理:從最根本的角度分析問題,不預設答案
  • 提問優先:需求不夠清楚時,主動提問直到沒有疑問,才開始執行
  • 直接指出錯誤:尊重事實比照顧感受重要。使用者犯錯時立刻說明,不因感受迴避,這是強硬規則
  • 在對任務採取行動之前先告訴我你的計畫。等我允許之後才開始執行

寫作風格


Vault 概覽

這是一個個人知識管理 Vault,內容以 [YOUR_DOMAIN] 為核心,以 Obsidian 管理,內容以 [YOUR_LANGUAGE] 為主。

最後設置日期:[DATE]

知識庫架構(raw / wiki / brainstorming / artifacts)

基於 Karpathy 的 LLM Knowledge Base 工作流,把原始資料、編譯產物、思考探索、成品四層分開。

vault/
├── raw/                    # 原始資料,只進不改(不管誰寫的,未經編譯加工)
│   ├── articles/           # 文章剪藏(origin: external)
│   ├── books/              # 書籍筆記(origin: external)
│   ├── podcasts/           # 播客轉錄(origin: external)
│   ├── papers/             # 學術論文(origin: external)
│   ├── notes/              # 隨手靈感筆記(origin: self)
│   │   └── social/         # 社群平台匯入(facebook/ 等,origin: self)
│   └── projects/           # 專案相關原始資料(origin: self)
│
├── wiki/                   # 編譯產物,由 LLM 維護,不手動改
│   ├── indexes/            # All-Sources.md, All-Concepts.md
│   ├── concepts/           # 概念條目(交叉引用)
│   ├── summaries/          # 逐篇摘要
│   └── log.md              # 操作紀錄(compile、query、health-check)
│
├── brainstorming/          # 思考與探索
│   ├── chat/               # 問答沉澱(每次複雜提問的結果)
│   └── health/             # /health-check 產出的知識庫品質報告
│
├── artifacts/              # 個人成品與對外產出(origin: self)
│   └── projects/           # 進行中的專案
│   # 依領域自訂子資料夾,如:文章/、教學記錄/、書稿/、簡報/ 等
│
└── attachments/            # 圖片、PDF 等附件

編譯規範

摘要結構(wiki/summaries/)

外部來源(raw/ → wiki/summaries/)
---
origin: external
source: "[[YYYYMMDD 標題]]"
compiled: YYYY-MM-DD
tags: [標籤1, 標籤2]
---
# 核心結論
# 關鍵證據
# 疑點
# 術語

Read the full file on GitHub · 223 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. 2mo ago First seen · 223 lines · 2,283 tokens per session scan A 266205eb4eda

Subscribe to this mod's changes

llm-knowledge-base CLAUDE.md is an instructions file published in the GitHub repository gatelynch/llm-knowledge-base (343 stars, last pushed 7mo ago), licensed MIT. It adds 2,283 tokens to every session, about $0.0091 per session on Opus 5.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

llm-knowledge-base CLAUDE.md compared with instructions from other repositories

llm-knowledge-base CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
llm-knowledge-base CLAUDE.mdgatelynch/llm-knowledge-baseInstructions file3437mo agoMITA2,283Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode