Featured

LLM WIKI 05 - Improving the CLAUDE.md Schema: Source, Category, and Note-Type Rules

Let's revise the CLAUDE.md schema of the LLM Wiki. The first ingest in part 4 showed several problems: list items had no source, original wording got changed, and there were no criteria for confidence. In this post, I switch the instructions to v2, add an article note, run lint to check the older files too, and verify the fixes by looking at the files. All material is an imaginary example made for illustration. My sample wiki and its instruction file are written in Korean, so the images and quotes below are English translations. This post was written on December 1, 2026.

Previous posts: Part 3: Writing CLAUDE.md, Part 4: First ingest

ingest, query, and lint are names I chose

ingest is not a command built into Claude Code. It is the name of a job that I defined in CLAUDE.md: "when asked like this, handle it in this order." The same goes for query and lint. I introduced all three operations in part 1, but the instructions in part 3 only had ingest, so v2 adds query and lint.

Back up before changing anything

Since this work changes both the instructions and the wiki, I made a copy outside the vault before touching any file. A copy inside the vault would create files with the same names and could blur wikilinks and the graph. In PowerShell, run the following from the parent folder of llm-wiki-sample. If a folder with the same name already exists, the copy goes inside it, so put a date or version in the name.

Copy-Item -Recurse llm-wiki-sample llm-wiki-sample-backup-v1

This time I kept copies at three points: before applying v2, after the article ingest (before the lint fixes), and after the fixes.

Rules changed in v2

Problem seen in part 4 v2 rule
Concept page items had no source Every item starts with Claim:, Note:, or Synthesis: and ends with a source link
key_claims mixed in memorable sentences and changed wording Only key claims, verbatim; memorable sentences go in quotes
No criteria for confidence Define what high, medium, and low mean
Hyphens from file names showed in links Wikilinks with display names
A concept page was created from a single note Create one at two or more notes; otherwise list it as a concept candidate
raw notes stood apart in the graph source_file is a wikilink; log uses plain path text
Only one note type reading-note and article templates, plus categories
No query or lint Add minimal procedures

The whole v2 file is 84 lines in the Korean original, within the official recommendation (200 lines or fewer) that I checked in part 3. Here it is translated into English:

# Reading and study notes LLM WIKI — instructions v2

This folder is a sample wiki that organizes notes into a wiki. The example material is imaginary, for illustration, and keeps the `fictional: true` marker. When a session starts, read this file first and follow its rules.
`ingest`, `query`, and `lint` are job names defined in this file.

## Purpose
Read the notes in `raw/notes`, organize them into summary and concept pages in `wiki/`, and link them.

## Folder structure
- `raw/notes/` : notes added by a person (originals)
- `raw/assets/` : attachments such as images
- `wiki/sources/` : one summary page per note, `summary-{slug}.md`
- `wiki/concepts/` : concept pages, `{concept-name}.md`
- `wiki/index.md` : full catalog
- `wiki/log.md` : activity record, append at the bottom only
- `blog-figures/`, `.obsidian/` : do not read or edit

## Rules you must follow
- Files inside `raw/` are read-only. Do not edit, move, delete, or create files there.
- Do not delete `wiki/` pages. Mark pages that are no longer used with `status: deprecated`.
- Every wiki page starts with YAML frontmatter. Write body text in Korean in the polite style.
- Do not invent content that is not in the notes.

## Links
- Use only wikilinks.
- Add a display name in body text: `[[cost-of-starting|cost of starting]]`. For summary pages, use the book or article title as the display name.
- Link a new page to two or more existing pages when possible.

## Sources
- End every item in a concept page body with a link to the supporting summary.
- Start an item with `Claim:` (a claim from the original) or `Note:` (the note writer's thought).
- If you add a classification or connection that is not in the original, start with `Synthesis:` and follow the confidence rules.

## confidence
- high: original sentences carried over as they are
- medium: several originals combined or paraphrased
- low: a connection with no direct support in the notes
- If a page mixes these, record the lowest value. When evidence grows, judge again and update `updated`.

## Note types
Choose the summary template by the note's `note_type`. If the value is missing or not listed below, ask the user before processing.
- `reading-note`: body sections `Key claims`, `Memorable sentences`, `Note writer's thoughts`, `To look into`
- `article`: body sections `Key claims`, `Evidence and sources`, `Note writer's thoughts`, `To verify`

## Page templates
- Summary frontmatter: `type: source`, `title`, `note_type`, `source_file` (e.g. `"[[book-small-habits-lab]]"`), `date_ingested`, `key_claims`, `quotes`, `related`, `category`, `confidence`
- Put only the sentences of the original `Key claims` into `key_claims`, verbatim. Put memorable sentences into `quotes`.
- Concept frontmatter: `type: concept`, `title`, `aliases`, `sources`, `related`, `category`, `created`, `updated`, `confidence`

## Categories
- Choose from `habits`, `reading method`, `review`. If none fits, propose a new value and get confirmation.
- Group the concept list in `wiki/index.md` under category subheadings.

## When to create a concept page
- Create a new page only for a concept that appears in two or more notes, or that the user asked for.
- List a concept that appears in only one note under `Concept candidates` in `wiki/index.md`, with a link to the supporting summary.
- Do not force a claim with no matching concept into another concept page.
- Do not delete existing pages.

## ingest
When the user says "ingest [file name]", process only one note at a time.
1. Read the note and check its `note_type`.
2. Report the key claims of the original as they are, list the files to create or edit, and wait for confirmation.
3. The slug is the file name without `book-`, `article-`, and `.md`. Create the summary page.
4. Create or update concept pages according to the criteria.
5. If something contradicts existing content, write both sentences and their sources in a `> [!contradiction]` callout.
6. Update `wiki/index.md`.
7. Append an entry to `wiki/log.md`.
- If another ingest request arrives while waiting for confirmation, ask about the processing order first.
- For a note that already has a summary, do not create a new one; update only what changed and record it as `re-ingest` in the log.

## query
Read `wiki/index.md` and the related pages, then answer with source links. If it is not in the wiki, say so. Leave a `query` entry in the log.

## lint
Without editing files, check the following, report them as a list, and ask whether to fix them.
- Places that break the template, source, link, or confidence rules of these instructions
- Places where `key_claims` differs from the original
- Broken links, pages with no connections, concepts with only one source
- Contradictory content

## Log format
`## [YYYY-MM-DD] ingest|re-ingest|query|lint | title`
Below it, write the `Source:`, `Pages created:`, `Pages updated:`, and `Notes:` lines. Write page names as file path text, not wikilinks.

Testing with an article note

To see whether the rules work, I added one imaginary article note to raw/notes. Its note_type is article, and I put three test elements in it: a claim to "start at 30 minutes or more," which opposes the 2-minute rule from part 4; a second claim supporting rewriting in your own words; and a claim about "reviewing once a week" that appears only in this note.

The confirmation step

In a new session, I typed ingest article-habit-start-debate.md. Claude identified the note type as article, listed the files to create and edit, the two contradicting sentences, and what it would not do this time, then waited. It said it would leave the format problems of existing pages untouched for now and check them with lint. It judged that the "reviewing once a week" claim, which appears only in this note, belongs in the existing habit tracking concept, so it would not create a new concept page or candidate. That means the criteria for creating a new concept were not tested in this ingest.

Confirmation step: files to edit, the contradiction, and what will not be done (translated from Korean)

When I answered "go ahead" (in Korean), one summary file was created and existing files were edited.

Properties of the new summary

The new summary had note_type: article, a source_file that links to the original, three key_claims verbatim, empty quotes, and category: habits.

Properties of the article summary page (translated from Korean)

Contradiction mark

A contradiction box appeared on the cost-of-starting page, keeping both claims with their sources. It did not judge which one is right.

Contradiction box about the starting size (translated from Korean)

Checking the old files with lint

When I typed lint in the same session, Claude reported a list without editing files. First it pointed out where key_claims differed from the originals. When writing part 4, I had listed only one place where wording changed, but there were two more places where quotation marks were dropped or separators changed. It also reported its own error: the quote in the contradiction box it made earlier came from the existing summary, not from the original.

lint report: places where key_claims differs from the original (translated from Korean)

Next it listed template, source-mark, and confidence problems. Numbers such as 23 unmarked list items and 4 first paragraphs in concept bodies, and 4 concepts without a category, matched the report when I counted the files myself. I also compared the files with the backup after lint and confirmed that nothing had changed.

lint report: template, source, and confidence problems (translated from Korean)

Results of the fixes

When I chose "fix everything," 10 files were edited. Claude said it would leave the wikilinks in old log entries as they are because of the rule that the log is only appended to.

Fix completion report and the confidence table (translated from Korean)

On the cost-of-starting page, every item now has Claim:, Synthesis:, or Note:, and the source links show book titles. Connecting the 30-minute claim to this concept is not a link written directly in the note, so Claude stated that in a Synthesis: line.

The cost-of-starting page after the fixes (translated from Korean)

The concept list in index.md is now grouped into habits, reading method, and review, and "set questions before reading," which appears in only one note, became a concept candidate.

Index grouped by category, with a concept candidate (translated from Korean)

Before and after

Check Before After
key_claims differing from the original 3 0
Concept items without mark and source 27 (23 list items, 4 paragraphs) 0 (all 34 items have a mark and link)
Concepts with a category 0 4
Concept candidates None 1
Broken links 0 0
raw notes 4, unchanged 4, unchanged (same hash values)

"Before" means the state right after ingesting the article.

In the graph, all four raw notes, including the three that stood apart in part 4 and the new article, are now connected to their summary pages. CLAUDE is still separate. The log keeps its connections because of the wikilinks in old entries, and it is not connected to the new summary, which is written as path text. There are still many lines in the middle, so it is hard to say "the graph became clean."

Graph view after the fixes (translated from Korean)

What did not go as intended

  • Synthesis: lines also got a source link at the end. A connection such as "how to start a habit you want to record in a small size is covered in cost of starting" is not written directly in the notes, but the book link at the end makes it read as if the book supports it. This problem comes from the rule that every item needs a source link.
  • Content from a memorable sentence was also marked Claim: on the concept page (for example, "reading one page a day"). The definitions of the mark types were too narrow.
  • The 30-minute claim stayed under the existing "how to apply" subheading.
  • Concept aliases were added only as empty lists.
  • A Synthesis: line got mixed into the key claims list of the article summary.
  • The quote in the contradiction box was corrected to match the original, which left the double quotation marks doubled.
  • Because of the rule "if a page mixes values, record the lowest," two concepts and two summaries became low for having Synthesis: connections without direct support. The criteria became clear, but the meaning of the values became coarse.
  • The instructions were ambiguous about whether lint leaves a log entry. lint left no log entry; one was recorded together with the fixes.

Comments