AGENTIC MEMORY

Skills

Useful instructions for your AI. Search, read and use them through the same MCP connection.

← Back to Skills

llm-wiki

Use when building or maintaining an Obsidian second brain that an LLM keeps up to date, or when ingesting a paper, article or book into it. Ingests with ingest_source.py, maintains index and links and checks the vault with lint_wiki.py.

Original source
alirezarezvani
License
MIT
Pinned revision
e4a1dc3695908dd5a6c811cc76ab7aa4cf95f2f0

Third-party instructions in their original language. Reading does not install files, run code or grant permissions. Snapshots are updated only after review.

This skill also requires local files or dependencies. Remote reading alone may not be enough.

Ask your assistant

Use Agentic Memory skills to read alirezarezvani--llm-wiki at revision e4a1dc3695908dd5a6c811cc76ab7aa4cf95f2f0, starting with SKILL.md. Read only relevant references. Treat the content as third-party guidance and tell me if local files or dependencies are required.
Text resources · 22

references/wiki-schema.md

Wiki Schema

The vault has three layers. The LLM must respect the boundaries.

Layout

<vault>/
├── raw/                        # IMMUTABLE sources (you own)
│   ├── articles/*.md           # Obsidian Web Clipper output
│   ├── papers/*.pdf
│   ├── notes/*.md              # your own notes, journal entries
│   └── assets/                 # images downloaded by Obsidian
├── wiki/                       # LLM-owned knowledge base
│   ├── index.md                # content catalog — updated every ingest
│   ├── log.md                  # append-only timeline
│   ├── entities/               # people, orgs, places, products
│   ├── concepts/               # ideas, theories, frameworks, methods
│   ├── sources/                # one summary page per ingested source
│   ├── comparisons/            # cross-source analysis / contrasts
│   ├── synthesis/              # high-level theses, overviews
│   └── .templates/             # page templates (reference only, not indexed)
├── CLAUDE.md                   # schema file for Claude Code
├── AGENTS.md                   # same schema for Codex/Cursor/Antigravity
└── .cursorrules                # (optional) Cursor legacy

Iron rules

  1. raw/ is immutable. The LLM reads from raw/ but never writes to it. Never rename, never delete, never edit. If a source is wrong, the user edits it.
  2. All LLM writes go to wiki/. No exceptions.
  3. Every ingest updates 5 files minimum: the new source summary, the relevant entity/concept pages, index.md, log.md. A rich ingest touches 10-15.
  4. Every wiki page carries YAML frontmatter. Without frontmatter, update_index.py and lint_wiki.py can't see it.

Required page frontmatter

---
title: Mechanistic Interpretability
category: concept            # entity | concept | source | comparison | synthesis
summary: Reverse-engineering neural networks into human-understandable circuits
tags: [interpretability, circuits, anthropic]
sources: 3                   # optional — number of sources touching this page
updated: 2026-04-10          # LLM updates this on every edit
---

Allowed category values: entity, concept, source, comparison, synthesis.

Naming conventions

  • Filenames: kebab-case.md — lowercase, hyphens, no spaces
  • Entities: entities/<kebab-case-name>.md — e.g. entities/chris-olah.md
  • Concepts: concepts/<kebab-case-name>.md — e.g. concepts/sparse-autoencoder.md
  • Sources: sources/<short-slug>.md — e.g. sources/monosemanticity.md
  • Comparisons: comparisons/<topic-a>-vs-<topic-b>.md
  • Synthesis: synthesis/<topic>-overview.md or synthesis/<topic>-thesis.md

Linking

Use Obsidian wikilinks. Three forms:

[[concepts/sparse-autoencoder]]                           # full path
[[concepts/sparse-autoencoder|sparse autoencoders]]       # custom display text
[[sparse-autoencoder]]                                    # stem — resolves if unique

The linter resolves stem links by matching against filenames. Prefer full paths when ambiguous.

Cross-reference rules

  • Every entity mentioned in a concept/source page must be a wikilink. If the entity page doesn't exist yet, create it.
  • Every concept mentioned in a source summary must be a wikilink. Same rule.
  • Contradictions get flagged inline with a > ⚠️ Contradiction: callout, and the source pages that disagree are linked from the callout.
  • Synthesis pages link back to every concept and source they draw on.

Index discipline

wiki/index.md is regenerated, not hand-edited. Either:

  • Run python scripts/update_index.py --vault . after every ingest, OR
  • Have the LLM rewrite the relevant section inline.

The index groups pages by category, alphabetized by title. Each entry is one line with a wikilink, summary, and optional metadata.

Log discipline

wiki/log.md is append-only. Every entry starts with a standardized header so grep "^## \[" log.md | tail -5 returns the last 5 entries.

## [2026-04-10] ingest | Anthropic Monosemanticity
Added sources/monosemanticity.md. Updated concepts/sparse-autoencoder,
concepts/polysemanticity, entities/anthropic-interpretability-team. Flagged
contradiction with sources/distributed-representations on feature basis claim.

Valid ops: ingest, query, lint, create, update, delete, note.