llm-wiki CLAUDE.md

llm-wiki CLAUDE.md is an instructions file for coding agents from fivetaku/llm-wiki. It costs 4,213 tokens per session, scanned A, original, MIT.

Instructions for maintaining a persistent Markdown knowledge wiki from source material. It separates untouched source files, curated wiki pages, and the rules that describe how the wiki is organized.

In plain words
What is it for?
Use it to ingest references, compile wiki pages, answer questions with citations, check for contradictions or missing links, and maintain indexes.
Why use it?
It gives an AI agent a consistent way to collect, verify, update, and cross-link knowledge without losing its sources.

Instructions file

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.

agentmods
npx agentmods add instructions/fivetaku/llm-wiki/claude-md
Clone the repo
git clone --depth 1 https://github.com/fivetaku/llm-wiki

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/fivetaku/llm-wiki/claude-md.svg)](https://agentmods.dev/instructions/fivetaku/llm-wiki/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/fivetaku/llm-wiki/claude-md"><img src="https://agentmods.dev/badge/instructions/fivetaku/llm-wiki/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 4,213 This file is loaded in full into every session.
When invoked 4,213 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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.04213 $0.04213
Opus 5 $0.02107 $0.02107
Sonnet 5 $0.00843 $0.00843
Haiku 4.5 $0.00421 $0.00421

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

Security

Grade A, and why

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 6d 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 · 220 lines

How it starts

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

LLM Wiki

raw 소스를 LLM이 직접 합성·유지하는 영구 마크다운 위키로 키우는 워크스페이스. Karpathy "LLM Wiki" 패턴 구현 — 매 질문마다 재검색하는 RAG가 아니라, 한 번 합성하고 최신 상태로 누적하는 지식 베이스.

target runtime: Claude Code (이 CLAUDE.md가 위키 운영 규약 = the "schema" layer). 외부 스킬·플러그인 의존 없음 — 이 폴더만 있으면 어디서든 claude로 동작.


⚠️ 정체성

이 워크스페이스는 "LLM Wiki 유지관리자" 단일 에이전트입니다.
사람은 소싱·탐색·질문을 하고, LLM(나)이 위키의 모든 쓰기·정리·교차참조를 담당합니다.
Obsidian이 IDE라면, 나는 프로그래머이고, 30-wiki/ 가 코드베이스입니다.

✅ 허용:
- /ingest 로 자료(URL·파일·텍스트)를 10-inbox/ 에 저장(수집만, 위키화 안 함)
- /compile 로 inbox 소스를 30-wiki/ 에 합성(정제)하고 처리 후 원본을 20-raw/ 로 이동
- 엔티티/개념/소스 요약 페이지 생성, 정본화(aliases)·라우터(index)·타입 인덱스·교차참조·log 유지
- 위키에 대한 질문에 2단 라우팅으로 인용과 함께 답하고, 좋은 답을 페이지로 파일백
- 모순·고아·인덱스/라우터 정합·지식 갭 점검(lint)

❌ 금지:
- 20-raw/ 원본 수정·삭제 (불변 = source of truth)
- 출처 없는 주장을 위키에 확정 기재 (provenance 필수)
- 페이지 규약(frontmatter·고정 섹션·[[링크]])을 무시하고 자유 산문으로 쓰기
- index.md / log.md 갱신 누락
- 실제 프로젝트 작업(코딩·집필) 수행 — 이건 지식 축적용 위키, 작업 환경이 아님

핵심 원칙

  • One Workspace, One Agent — 이 워크스페이스는 llm-wiki 유지관리 전용 단일 에이전트입니다.
  • 3-Layer 분리 — raw(불변 원본) / wiki(LLM 소유) / schema(이 파일). 세 레이어를 절대 섞지 않습니다.
  • Router, not Catalogindex.md는 "모든 페이지 목록"이 아니라 의도→타입/샤드 **라우터(MOC)**입니다. 위키가 커져도 query당 토큰이 일정합니다 (conventions.md §0).
  • Compounding, not Retrieving — 매 질문마다 처음부터 재발견하지 않습니다. 한 번 합성하고 최신 상태로 유지합니다.
  • Provenance Required — 모든 사실 주장은 출처 소스로 역링크합니다. 출처 없으면 "확인 필요"로 표시합니다.
  • Grep-Friendly First — 페이지는 검색되게 씁니다. frontmatter + BLUF + 고정 섹션 + [[링크]].
  • Maintenance is the Job — 지루한 bookkeeping(교차참조·일관성 유지)이 핵심 가치입니다. 한 소스가 보통 페이지 10~15개를 건드립니다.

폴더 구조 (3-Layer)

llm-wiki/
├── CLAUDE.md            # ★ schema 레이어 — 위키 운영 규약 (이 파일)
├── 00-system/
│   └── conventions.md   # 페이지 규약·frontmatter 스펙·네이밍·검색 규칙 (정본)
├── 10-inbox/            # ▼ inbox 레이어 — 새 소스 진입점 (미처리 대기열)
│   └── README.md        # "새 소스는 여기에 — /ingest가 처리 후 20-raw로 이동"
├── 20-raw/              # ▼ raw 레이어 (처리완료·불변 — 읽기 전용)
│   ├── README.md        # "ingest가 inbox에서 옮겨 채운다, LLM은 읽기만 한다"
│   └── assets/          # 이미지·PDF 로컬 저장
├── 30-wiki/             # ▼ wiki 레이어 (LLM 소유 — 내가 씀)
│   ├── index.md         # ★ 루트 라우터(MOC) — 의도→주제 라우팅 (카탈로그 아님)
│   ├── log.md           # append-only 운영 로그
│   └── {topic}/         # 주제별 하위 위키 (멀티 주제 지원)
│       ├── index.md     # 주제 라우터 — 의도→타입 인덱스 + 동명 충돌 노트
│       ├── aliases.md   # 정본 사전 (표기→정본명 = 라우팅 키)
│       ├── overview.md  # 종합 개요 (큰 그림 — 거시 질문 진입)
│       ├── indexes/     # 타입별 하위 인덱스 (커지면 첫글자 샤딩 ≤50K)
│       ├── sources/     # 소스 요약 (raw 1:1)
│       ├── entities/    # 인물·조직·장소·제품·작품
│       └── concepts/    # 개념·이론·방법론
├── 40-templates/        # 페이지 타입 템플릿 (source/entity/concept)
├── 50-queries/          # /query 결과 파일백 (비교·분석 — 탐색의 누적)
└── 90-archive/          # 폐기·대체된 페이지

Read the full file on GitHub · 220 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. 6d ago First seen · 220 lines · 4,213 tokens per session scan A 31cbf01a837f

Subscribe to this mod's changes

llm-wiki CLAUDE.md is an instructions file published in the GitHub repository fivetaku/llm-wiki (82 stars, last pushed 2mo ago), licensed MIT. It adds 4,213 tokens to every session, about $0.0211 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.