memoriki CLAUDE.md

memoriki CLAUDE.md is an instructions file for Claude Code from AyanbekDos/memoriki. It costs 621 tokens per session, scanned A, original, MIT.

Instructions for an AI-powered personal wiki. A wiki is a linked collection of knowledge pages; this one stores source documents separately from generated pages about people, companies, ideas, and cross-topic analysis.

In plain words
What is it for?
Use it when ingesting source documents, creating or updating wiki pages, maintaining the catalogue, recording operations, or following the project’s directory and editing rules.
Why use it?
It gives the assistant clear rules for preserving original source files and keeping indexes and activity logs up to date. That makes the knowledge base easier to trust and navigate.

Instructions file for Claude Code

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

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/ayanbekdos/memoriki/claude-md
Clone the repo
git clone --depth 1 https://github.com/AyanbekDos/memoriki

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/ayanbekdos/memoriki/claude-md.svg)](https://agentmods.dev/instructions/ayanbekdos/memoriki/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/ayanbekdos/memoriki/claude-md"><img src="https://agentmods.dev/badge/instructions/ayanbekdos/memoriki/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 621 This file is loaded in full into every session.
When invoked 621 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.00621 $0.00621
Opus 5 $0.00311 $0.00311
Sonnet 5 $0.00124 $0.00124
Haiku 4.5 $0.00062 $0.00062

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

Security

Grade A, and why

memoriki 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 · 72 lines

How it starts

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

LLM Wiki - Schema

Overview

This is a personal LLM-powered knowledge base following Andrej Karpathy's "LLM Wiki" pattern. The LLM maintains a structured, interlinked markdown wiki compiled from raw source documents.

Directory Structure

llm-wiki/
  idea-file.md        # Karpathy's original idea file (reference)
  CLAUDE.md            # This schema file (instructions for the LLM)
  raw/                 # Immutable source documents (LLM reads, NEVER modifies)
    assets/            # Downloaded images
  wiki/                # LLM-generated wiki (LLM owns this entirely)
    index.md           # Content catalog - updated on every ingest
    log.md             # Chronological activity log (append-only)
    entities/          # Pages about specific people, companies, products
    concepts/          # Pages about ideas, patterns, frameworks
    sources/           # Summary pages for each ingested source
    synthesis/         # Cross-cutting analysis, comparisons, insights

Rules

  1. NEVER modify files in raw/ - they are immutable source of truth
  2. ALWAYS update wiki/index.md after creating or updating any wiki page
  3. ALWAYS append to wiki/log.md after any operation (ingest, query, lint)
  4. Use [[wiki-links]] to connect related pages
  5. Add YAML frontmatter to every wiki page:
    ---
    title: Page Title
    type: entity|concept|source|synthesis
    sources: [list of raw/ files referenced]
    related: [[linked-pages]]
    created: YYYY-MM-DD
    updated: YYYY-MM-DD
    ---
    
  6. Log format: ## [YYYY-MM-DD] operation | Description

Operations

Ingest

When user drops a new source into raw/:

  1. Read the source document
  2. Discuss key takeaways with user
  3. Create a summary page in wiki/sources/
  4. Create or update entity pages in wiki/entities/
  5. Create or update concept pages in wiki/concepts/
  6. Update wiki/index.md
  7. Append entry to wiki/log.md

Query

When user asks a question:

  1. Read wiki/index.md to find relevant pages
  2. Read relevant wiki pages
  3. Synthesize answer with citations to wiki pages
  4. If answer is valuable, offer to save as wiki/synthesis/ page

Read the full file on GitHub · 72 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 · 72 lines · 621 tokens per session scan A d874abea0d5e

Subscribe to this mod's changes

memoriki CLAUDE.md is an instructions file published in the GitHub repository AyanbekDos/memoriki (120 stars, last pushed 4mo ago), licensed MIT. It adds 621 tokens to every session, about $0.0031 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